event.ShippingRate|default:'' = 'Standard Shipping (with Tracking)'
^^ this works fine so far for showing an image in the conditional logic.
I want to include an OR statement to also include ‘Standard Shipping (with Tracking) - Free Activated’
I’ve tried a number of combinations and can’t get this to work
Can someone please help?
I ended up ditching the conditional logic in the show/hide image feature and just went to a text box with coding and html. Thanks anyway.
Hi
Apologies for the delay here. Have you referenced this Help Article? It should help get you down the right path. I would first recommend that you double check the event variables by following the steps below:
- From the template editor, click Preview and Test
- Under Preview data source, click Event
- From the dropdown menu, select the event that will trigger the message you’re building
- Scroll through the Event properties to find the property you’d like to include
- Click the property name to copy the variable
- Paste the variable into a text block or text editor
- Remove the curly brackets (i.e., {{ and }}) from around the variable, as well as any filters
- Use the variable that remains in your show/hide condition
Let me know if other questions come up!
~Chloe
this doesn’t work;
event.ShippingRate|default:'' = 'Standard Shipping (with Tracking)' or event.ShippingRate|default:'' = 'Standard Shipping (with Tracking) - Free Activated' and event.extra.line_items.0.product.tags|default:'' = ‘8Days’
Ok I did get this to work like this, i’m not sure if its correct:
event.ShippingRate|default:'' = 'Standard Shipping (with Tracking)' or event.ShippingRate|default:'' = 'Standard Shipping (with Tracking) - Free Activated'
but how do I now wrap this in an “and” statement to include the following:
if event.extra.line_items.0.product.tags includes "8Days"
Reply
Log in to the Community
Use your Klaviyo credentials
Log in with Klaviyo
Use your Klaviyo credentials
Log in with KlaviyoEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.