Client has a wholesale site and we are using the SKU field to store the UPC code. All our products are parents with color variants. So the actual product ordered is the color variant.
I'm using the following toolkit code to be able to print out the SKU field on all pages: BASK, OCST, OPAY, INVC
Where I'm stumped is the Printable Invoice template page: ORDP
No matter what, the info isn't showing for the SKU field. In looking at the variables, it seems things are slightly different on the ORDP page than the other pages.
Any ideas on why this code doesn't work on ORDP?
-Kevin
I'm using the following toolkit code to be able to print out the SKU field on all pages: BASK, OCST, OPAY, INVC
Code:
<mvt:item name="toolkit" param="vassign|variantcode|" /> <mvt:if expr="l.settings:item:variant_id GT 0"> <mvt:item name="toolkit" param="variantlistbasketinfo|vcount|l.all_settings:item:product_id|l.all_settings:item:variant_id" /> <mvt:if expr="vcount GT 0"> <mvt:foreach iterator="part" array="basketitem:variant:parts"> <mvt:item name="toolkit" param="vassign|productcode|l.all_settings:part:code" /> <mvt:item name="toolkit" param="vassign|productsku|l.all_settings:part:sku" /> </mvt:foreach> </mvt:if> <mvt:else> <mvt:item name="toolkit" param="vassign|productcode|l.all_settings:item:code" /> <mvt:item name="toolkit" param="vassign|productsku|l.all_settings:item:product:sku" /> </mvt:if> <br />SKU: &mvt:part:sku;
No matter what, the info isn't showing for the SKU field. In looking at the variables, it seems things are slightly different on the ORDP page than the other pages.
Any ideas on why this code doesn't work on ORDP?
-Kevin
Comment