How to remove checkout text from cart code?

How to remove checkout text from cart code?

Chardia
Visitor
2 0 0

Hi everyone!

 

I am trying to remove "Shipping and discount codes are added at checkout" from my cart. Does anyone have any idea where in the store's code this is located? Any recommendations on whether I should just remove the entire line or change the text?

 

Thanks!

 

Chardia_0-1639080293465.png

 

Replies 5 (5)

Niki_K
Shopify Partner
462 47 135

Hi @Chardia,

 

I'm not sure why you wish to remove the text or if you just want to remove, go to your Shopify Admin, click "Customize" and then "Edit code". In the Dawn theme, you need to find file called main-cart-footer.liquid

 

And then find this element with the following class and remove the entire "small" element.

<small class="tax-note caption-large rte">​

 

If you're using another theme, you need to check other cart.liquid files and find out which one is relevant for your theme as well as use the developers tools in your browser to find the element with the text and then find it in the file and remove it.

 

Hope this helps!

Send me a link to your store to niki@ecommercepot.com and I'll help you out.
For more info what I do, visit my agency website ecommercepot.com or my personal website nikikozak.me.
Chardia
Visitor
2 0 0

Hi @Niki_K,

 

Thank you for your response. I was trying to remove the note about the shipping since I don't have any physical product to ship. I am using the debut theme so I did not find the exact code you were referring to. But I did discover that the additional note is tied to the buy button, so I could remove the text using the buy button customization panel before copying the code.

 

 

PaulNewton
Shopify Partner
7450 657 1564

@Chardia Since you using debut if your on standard plan and above contact shopify support and you can use some of your free design time to have such text removed.

Also would be a good time to remind them this text is pointless for digital products and there should be a check for that instead of always rendering.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


Niki_K
Shopify Partner
462 47 135

Hi @Chardia,

 

in the debut theme, find the following piece of code in the cart-template.liquid file.

 

<div class="cart__shipping rte">{{ taxes_shipping_checkout }}</div>

 

You might need to add a margin to the following element (which is the button element). 

 

Hope this helps!

Send me a link to your store to niki@ecommercepot.com and I'll help you out.
For more info what I do, visit my agency website ecommercepot.com or my personal website nikikozak.me.
elliem
Visitor
1 0 0

Do you know this same answer for the Soul theme? I found "tax-note" in the main-cart-footer.liquid under this section:
<span class="tax-note rte body-md">
{%- if cart.taxes_included and shop.shipping_policy.body != blank -%}
{{ 'sections.cart.taxes_included_and_shipping_policy_html' | t: link: shop.shipping_policy.url }}
{%- elsif cart.taxes_included -%}
{{ 'sections.cart.taxes_included_but_shipping_at_checkout' | t }}
{%- elsif shop.shipping_policy.body != blank -%}
{{ 'sections.cart.taxes_and_shipping_policy_at_checkout_html' | t: link: shop.shipping_policy.url }}
{%- else -%}
{{ 'sections.cart.taxes_and_shipping_at_checkout' | t }}
{%- endif -%}
</span>

But when I remove this whole block, nothing happens. Soul says "Taxes, Discounts, and shipping calculated at checkout." Shipping links to the shipping policy. The note has a capitalization inconsistency and it's also incorrect because discounts are applied in the cart. I'm not sure why it's like this but I need to fix it.