We added a Product Custom Field to support a custom Vendor Part Number that's different from the ModelNumber and SKU and would like to add it as a column on our vendor notification so they don't have to know our SKU or the ModelNumber, but we can't seem to get the email template to work.
We tried the following code:
#foreach( $CustomField in $orderItem.Product.CustomFields) #if($CustomField.FieldName = "VendorPartNo") $CustomField.FieldValue #end #end
Can anyone suggest a fix please?
Showing a product custom field in an email template
-
- Ensign (ENS)
- Posts: 5
- Joined: Sun Mar 08, 2009 10:59 am
Re: Showing a product custom field in an email template
try following
Code: Select all
#foreach ($customField in $orderItem.Product.CustomFields)
#if ($customField.FieldName == "VendorPartNo")
$customField.FieldValue
#end
#end