Expand my Community achievements bar.

SOLVED

I'm using a pipe (|) character in an evar inside s.products. How do I escape that pipe character?

Avatar

Level 1

If the value of some of my eVars is something like

"orange|70|coats"

and I want to include multiple evar in s.products, it would make sense that I need to escape the inner pipe character. That's because, of course, multiple evars in s.products are also delimited using a pipe character.

So, without escaping, s.products with a single product would like like

s.products=";ABC123;1;10;event1=1.99|event2=25;evar1=orange|70|coats|evar2=3 Stars"

Assuming I cannot change the inner delimiter character to something other than a pipe character, how would I escape it?

1 Accepted Solution

Avatar

Correct answer by
Level 2

You have to use an alternate delimiter, there is no method to escape it.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

You have to use an alternate delimiter, there is no method to escape it.