I’m trying to use show/hide logic with an abandoned cart sequence, as for a certain SKU the price is displaying as zero, so I’d like to hide the price when the added item event data is for this SKU.
Whatever logic I enter it doesn’t seem to be working. I’ve tried:
Since an abandoned cart sequence is a repeating array, you’ll need to surround your logic in your text block with an If/Else Statement and you might be able to simplify if where is Price = 0, then to hide the price or could stick to SKUs.
I need to test it a few times to get the exact statement outline (& if any other Klaviyo Champions are statement pros, they can chime in too!) but it’ll be something like this below but may totally need to be tested and tweaked further! But something like this would just pop into where you variable for price lives in the text block.
Since an abandoned cart sequence is a repeating array, you’ll need to surround your logic in your text block with an If/Else Statement and you might be able to simplify if where is Price = 0, then to hide the price or could stick to SKUs.
I need to test it a few times to get the exact statement outline (& if any other Klaviyo Champions are statement pros, they can chime in too!) but it’ll be something like this below but may totally need to be tested and tweaked further! But something like this would just pop into where you variable for price lives in the text block.
Since an abandoned cart sequence is a repeating array, you’ll need to surround your logic in your text block with an If/Else Statement and you might be able to simplify if where is Price = 0, then to hide the price or could stick to SKUs.
I need to test it a few times to get the exact statement outline (& if any other Klaviyo Champions are statement pros, they can chime in too!) but it’ll be something like this below but may totally need to be tested and tweaked further! But something like this would just pop into where you variable for price lives in the text block.
I’m trying to use show/hide logic with an abandoned cart sequence, as for a certain SKU the price is displaying as zero, so I’d like to hide the price when the added item event data is for this SKU.
Whatever logic I enter it doesn’t seem to be working. I’ve tried:
Our Template expert, @Anna McCarthy also has a great tutorial video she previously posted in our Community which I’ll share below that could prove helpful: