How to add a text line for taxable items in e-commerce?

Hi there,

I am looking to add a line of text next to the price for all my items that are taxable (only 5-10% of my total items) I thought something like this could work but it doesn’t. Any ideas?

{% if variant.taxable == true %}
custom text
{% endif %}

Note: almost all of my items do not have variants.

Hi,

got the same problem - have you found a solution in the meantime?

Thanks and best regards

{% if product.taxable == true %}

Preis inkl. 19% MwSt ({{ product.price | times: 0.19 | money }})

{% else %}

Kein Mehrwertsteuerausweis, da Differenzbesteuerung nach §25a UStG.

{% endif %}