Adding text next to the product price for taxable products

New Member
2 0 0

Hi there!

Any help would be appreciated

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 %}
<span class="money">custom text</span>
{% endif %}

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


Thank you so much in advance!

Shopify Partner
1211 155 216

This is an accepted solution.

Hi @Kazi61

Please change code:

{%- assign current_variant = product.selected_or_first_available_variant -%}

{% if current_variant.taxable == true %}

<span class="money">custom text</span>

{% endif %}

LitExtension - Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!