We are implementing 4Cite tracking on our website and need to collect ecommerce data on the INVC page. Most data is easily collected, but the SKU field needs to be comma delimited (without a comma after the last value).
Example with one product purchased: sku1
Example with two products purchased: sku1, sku2
I had it setup like this <mvt:foreach iterator="item" array="order:items">'&mvt:item:code;',</mvt:foreach>, but that adds a comma at the end.
What's the best way to repeat &mvt:item:code; without the comma at the end?
Thanks,
Jay
Example with one product purchased: sku1
Example with two products purchased: sku1, sku2
I had it setup like this <mvt:foreach iterator="item" array="order:items">'&mvt:item:code;',</mvt:foreach>, but that adds a comma at the end.
What's the best way to repeat &mvt:item:code; without the comma at the end?
Thanks,
Jay
Comment