Skip to main content
Solved

Reviews and how to remove products with variables?

  • August 16, 2021
  • 1 reply
  • 407 views

Forum|alt.badge.img+2

I’m looking to modify the standard review block in a flow to display all products but the product with the variable attribute “0”. All other products 1-∞ are fine, I have a product that is automatically added to all orders at checkout and do not want it to show up in the flow asking for a review.

 

Ive gotten pretty close, but not been successful. If I get everything else working then the images don't show up. If I Get the images to show up then nothing else works.

 

PLACEHOLDER IMAGE:

item.product.images.0.src|missing_product_image

LINK:

{{ organization.url|trim_slash }}/products/{{ item.product.handle }}

Best answer by David To

Hello @elsalescorp,

Thanks for sharing your question with the Klaviyo Community! 

I would suggest using the method shared by @retention in their wonderfully informative Community post on this subject of how to hide certain products from dynamic table blocks populated in flow emails. I’ve linked the Community post below: 

In it, he provide a code that allows you to hide products from being dynamically being pulled into the table block if it has a certain tag. Since it sounds like your product may have this variable attribute of “0”, you can rework the code provided by Joseph (Retention) to accomplish this.

If instead of this product you are trying to hide actually passing a variable attribute of “0” but instead always being displayed in the list array position “0”, then I would recommend manually tagging this product within your backend. Doing so would allow you to use the same strategy as Joseph had also highlighted in their solution.

Thanks for being a part of the Klaviyo Community! Have a great day!

David

View original
Did this topic or the replies in the thread help you find an answer to your question?

1 reply

David To
Klaviyo Employee
Forum|alt.badge.img+60
  • Klaviyo Employee
  • 2456 replies
  • Answer
  • August 18, 2021

Hello @elsalescorp,

Thanks for sharing your question with the Klaviyo Community! 

I would suggest using the method shared by @retention in their wonderfully informative Community post on this subject of how to hide certain products from dynamic table blocks populated in flow emails. I’ve linked the Community post below: 

In it, he provide a code that allows you to hide products from being dynamically being pulled into the table block if it has a certain tag. Since it sounds like your product may have this variable attribute of “0”, you can rework the code provided by Joseph (Retention) to accomplish this.

If instead of this product you are trying to hide actually passing a variable attribute of “0” but instead always being displayed in the list array position “0”, then I would recommend manually tagging this product within your backend. Doing so would allow you to use the same strategy as Joseph had also highlighted in their solution.

Thanks for being a part of the Klaviyo Community! Have a great day!

David