Merchandising eVars and product string with multiple products | Community
Skip to main content
jorisdebeer
Level 4
December 14, 2016
Solved

Merchandising eVars and product string with multiple products

  • December 14, 2016
  • 2 replies
  • 3474 views

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.
Best answer by AdamGreco

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"

2 replies

AdamGreco
AdamGrecoAccepted solution
Level 4
December 14, 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"
jorisdebeer
Level 4
December 14, 2016

Thanks Adam. Product strings are so cryptic! 

February 10, 2023

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"