Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I want to remove the words "tax included" from my cart. I use the Turbo theme by out of the sand box.
I'm a "i'll give it a go coder" so please excuse me if I'm wrong here.
I have found the code I believe it's related to in the cart-template.liquid shown in orange below but I don't know what to delete:
<p class="cart_subtotal js-cart_subtotal">
<span class="right">
<span class="money">
{%
render 'price-element',
price: cart.total_price
%}
</span>
</span>
<span>{{ 'cart.general.subtotal' | t }}</span>
</p>
{%- capture taxes_shipping_checkout -%}
{%- if cart.taxes_included and shop.shipping_policy.body != blank -%}
{{ 'cart.general.taxes_included_and_shipping_policy_html' | t: link: shop.shipping_policy.url }}
{%- elsif cart.taxes_included -%}
{{ 'cart.general.taxes_included_but_shipping_at_checkout' | t }}
{%- elsif shop.shipping_policy.body != blank -%}
{{ 'cart.general.taxes_and_shipping_policy_at_checkout_html' | t: link: shop.shipping_policy.url }}
{%- else -%}
{{ 'cart.general.tax_and_shipping' | t }}
{%- endif -%}
{%- endcapture -%}
<p class="cart-message meta">{{ taxes_shipping_checkout }}</p>
{% if section.settings.display_savings and total_saving > 0 or section.settings.display_savings and cart.total_discount > 0 %}
<p class="cart_savings js-cart_savings sale">
<span class="right">
<span class="money">
{% assign total_savings = total_saving | plus: cart.total_discount %}
can any one help?
Solved! Go to the solution
This is an accepted solution.
Hi @MrP
You could remove this text by editing your theme language. The following steps below may help you achieve what you want so make sure you'll check it out.
Hope this helps.
This is the call to remove:
{%- capture taxes_shipping_checkout -%}
{%- if cart.taxes_included and shop.shipping_policy.body != blank -%}
{{ 'cart.general.taxes_included_and_shipping_policy_html' | t: link: shop.shipping_policy.url }}
{%- elsif cart.taxes_included -%}
{{ 'cart.general.taxes_included_but_shipping_at_checkout' | t }}
{%- elsif shop.shipping_policy.body != blank -%}
{{ 'cart.general.taxes_and_shipping_policy_at_checkout_html' | t: link: shop.shipping_policy.url }}
{%- else -%}
{{ 'cart.general.tax_and_shipping' | t }}
{%- endif -%}
{%- endcapture -%}
Give it a go and let us know!
thanks. oddly when i remove the whole section it has no effect on the whole line of copy. It stays there
@MrP
Please remove the below code from the red mark and your goal will be achieve
Need to remove/modify elseif from red color code:
{%- elsif cart.taxes_included -%}
{{ 'cart.general.taxes_included_but_shipping_at_checkout' | t }}
Before:
{%- capture taxes_shipping_checkout -%}
{%- if cart.taxes_included and shop.shipping_policy.body != blank -%}
{{ 'cart.general.taxes_included_and_shipping_policy_html' | t: link: shop.shipping_policy.url }}
{%- elsif cart.taxes_included -%}
{{ 'cart.general.taxes_included_but_shipping_at_checkout' | t }}
{%- elsif shop.shipping_policy.body != blank -%}
{{ 'cart.general.taxes_and_shipping_policy_at_checkout_html' | t: link: shop.shipping_policy.url }}
{%- else -%}
{{ 'cart.general.tax_and_shipping' | t }}
After:
{%- capture taxes_shipping_checkout -%}
{%- if cart.taxes_included and shop.shipping_policy.body != blank -%}
{{ 'cart.general.taxes_included_and_shipping_policy_html' | t: link: shop.shipping_policy.url }}
{%- elsif shop.shipping_policy.body != blank -%}
{{ 'cart.general.taxes_and_shipping_policy_at_checkout_html' | t: link: shop.shipping_policy.url }}
{%- else -%}
{{ 'cart.general.tax_and_shipping' | t }}
I tried that too but it had no effect. I deleted all the orange text above too and it had no effect on the preview either. hmmm this is puzzling.
This is an accepted solution.
Hi @MrP
You could remove this text by editing your theme language. The following steps below may help you achieve what you want so make sure you'll check it out.
Hope this helps.
Brilliant. I didn't even think to look there! That worked!
Go to theme page, press thee dot menu on the theme, edith default theme content, text display via
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024