Merchandising eVars and product string with multiple products

jorisdebeer

13-12-2016

Hi, I have a question about how to format the product string when there are multiple products, with multiple merch eVars.

I've read the Adobe documentation, but the example show is for just once basked item.

Normal product string:

s.products="fruit;orange;1;99,fruit;pear;2;180"

Say I have 3 merchandising eVars: eVar10, eVar11, eVar12 that I want to merchandise with all products in the cart. Do I need to include the eVars and their values for each basked item?

s.products="fruit;orange;1;99|eVar10=HeroBanner|eVar11=Autumn|eVar12=Bob|fruit;pear;2;180,eVar10=HeroBanner|eVar11=Autumn|eVar12=Bob"

Or can I get away with just including it once?

s.products="fruit;orange;1;99,fruit;pear;2;180|eVar10=HeroBanner|eVar11=Autumn|eVar12=Bob"

Accepted Solutions (1)

Accepted Solutions (1)

AdamGreco

MVP

14-12-2016

You would need to repeat them for each product.  Note that your string had commas and semi colons wrong and you need to leave a space for incrementer events.  Here is what it should look like:

  1. s.products="fruit;orange;1;99;;eVar10=HeroBanner|eVar11=Autumn|eVar12=Bob,fruit;pear;2;180;;eVar10=HeroBanner|eVar11=Autumn|eVar12=Bob"