Solved

Adding text next to the product price for taxable products

Kazi61
Visitor
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!

Accepted Solution (1)

LitExtension
Shopify Partner
4860 1001 1132

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
Check out our Shopify migration app to migrate your online store to Shopify

View solution in original post

Reply 1 (1)

LitExtension
Shopify Partner
4860 1001 1132

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
Check out our Shopify migration app to migrate your online store to Shopify