Solved

Hide/show logic to exclude products from order overview not working?

  • 22 July 2022
  • 4 replies
  • 80 views

Badge

HI! I am trying to exclude a specific product from a repeated content block (the administration fees)). I am using event data for the logic. I have entered the following logic:

event.ProductnamenList.title != 'Administratiekosten (eenmalig)'

 

The event is called ‘ProductnamenList’
The product variable is called ‘title’
The specific product is ‘Administratiekosten (eenmalig)’

 

However, the product ‘Administratiekosten (eenmalig)’ is still showing up in the order overview. What am I doing wrong?

icon

Best answer by alex.hong 23 July 2022, 02:03

View original

4 replies

Userlevel 6
Badge +54

Hi @PennyTinyLibrary,

Welcome to the Community.

You can hide items from the Dynamic Table Block using conditional statements in each column.

You can base this on product titles, SKUs, prices, etc. An example would be:
{% if item.product.title != "Exact Product Title" %} Display this content. {% endif %}
If you are unsure about using conditionals, I would recommend chatting with a developer to help you build those statements!

 

Hope this helped,

Alex

Badge

Thank you, it works!

Badge

Is this also possible for dynamic images in Dynamic Table Blocks?

Userlevel 6
Badge +54

Hi @PennyTinyLibrary,

For your images or dynamic tables, I would take a look at this article and use the show/hide feature to display specific blocks only. 

 

Thanks!

Alex

Reply