Liquid, JavaScript, themes, sales channels
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!
Solved! Go to the solution
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 %}
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 %}
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024