Merchandising eVars and product string with multiple products | Community
Skip to main content
jorisdebeer
Level 4
Dec 14, 2016 5:52 AM UTC
Solved

Merchandising eVars and product string with multiple products

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"
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
AdamGreco
AdamGrecoAccepted solution
Level 4
Dec 14, 2016 2:03 PM UTC

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"

3 replies

jorisdebeer
Level 4
Dec 14, 2016 10:18 PM UTC

Thanks Adam. Product strings are so cryptic! 

Translate
New Participant
Feb 10, 2023 12:05 PM UTC

hey @jorisdebeer  yes you need to include each eVar and their values with each product item with proper product string syntax as below i mentioned, here events is not used but u need to add event place blank between product revenue and eVar.

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

 

Translate
AdamGreco
AdamGrecoAccepted solution
Level 4
Dec 14, 2016 2:03 PM UTC

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"
Translate