Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Merchandising eVars and product string with multiple products

Avatar

Level 4

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"
1 Accepted Solution

Avatar

Correct answer by
Level 6

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"

View solution in original post

0 Replies

Avatar

Correct answer by
Level 6

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"