


we are trying to setup a new design for recommendations. everything works fine appart from language split.
goal: display different attributes based on page language
setup: in the target call we added a new parameter "language" that can be used in the design
problem: everything works fine and the mbox parameter gets populated correctly. however, we are not able to create any if-then-else clause based on this mbox parameter. whatever we tried, it failed.
what it might look like is something like this:
---
#if( \${mbox.language} == "en" )
## layout for en here
#else
## other layout here
#end
---
question: anybody has a working example of an "if-then-else" using a mbox parameter?
thanks for any help!
Views
Replies
Total Likes
Don't have an exact answer to the right code to use in design, but can't you use your language mbox parameter as filtering condition in audience and qualify different users based on the language to different design experiences (you will have to setup Recommendations as an offer in XT activity).
Views
Replies
Total Likes
Hi @kchaitanya thanks for the reply.
the idea for audiences is what we use currently (but means we have to maintain a lot of designs just with a small change). And this only works if the difference in the design is solely based on the mbox parameter.
but think of a design where you want to add something based on mbox parameter AND product attribute. as an example, display a batch (sign) for a special offer if the user has a certain membership status AND the product is allowed to be a special offer... this would mean we need a way to do the if-statement in the design.
I still hope somebody has an example ...
Views
Replies
Total Likes