How to remove price and put custom text in center below dynamic buttons

Topic summary

A Shopify store owner using the Dawn theme wanted to customize the cart drawer by removing the price display and replacing it with custom text about free shipping, centered between the dynamic buttons and the tax/shipping information.

Initial Solution Attempt:

  • B2Bridge provided code to replace the tax-note section in snippets/cart-drawer.liquid
  • This approach removed the bottom shipping text, which wasn’t the desired outcome

Final Working Solution:

  • Insert custom text (<small>Your text here.</small>) before the tax-note section in the cart-drawer.liquid file
  • Keep the original tax-note code intact to preserve the shipping/tax information at the bottom
  • This positions the custom free shipping message between the checkout buttons and the existing tax/shipping details

Status: Resolved - the user confirmed the updated code worked as intended.

Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.

I’m looking to remove the price only and center the estimated total text in the middle that instead says Free shipping on orders over (amount) or remove both and add normal text that says (free shipping ect.) on dawn theme for desktop and mobile

url knmb1c-pf.myshopify.com

password samurai

Hi, @undercoverfresh

I can help you with it. But it needs to add some custom code. If you need my help, please let me know.

Hi @undercoverfresh , to do that, please follow our instructions:

Step 1: Open Online Store → Themes → Edit code.

Step 2: Find snippets/cart-drawer.liquid.

Step 3: Replace the tax-note with this code (like this image):

<small>Your text here</small>

If this helpful, please let us know by giving us a like and marking its as a solution. Thanks you :heart_eyes:

Tried it but it removed the text from the bottom shipping (ect) text. I used the code you made from before to remove the estimated cost and price could you make a code where you can just add text in between the dynamic buttons and price and taxes text?

1 Like

You mean like this?

B2Bridge_0-1739258131700.png

Yes

Ok. Here the updated code:

Please paste this code before the tax-note (like this image):

Code:


   <small>Your text here.</small>
 

In this case, you deleted the old tax-note code, this is old tax-note code:

<small>
            {%- if cart.duties_included and cart.taxes_included -%}
              {%- if shop.shipping_policy.body == blank -%}
                {{ 'sections.cart.duties_and_taxes_included_shipping_at_checkout_without_policy' | t }}
              {%- else -%}
                {{
                  'sections.cart.duties_and_taxes_included_shipping_at_checkout_with_policy_html'
                  | t: link: shop.shipping_policy.url
                }}
              {%- endif -%}
            {%- elsif cart.duties_included == false and cart.taxes_included -%}
              {%- if shop.shipping_policy.body == blank -%}
                {{ 'sections.cart.taxes_included_shipping_at_checkout_without_policy' | t }}
              {%- else -%}
                {{
                  'sections.cart.taxes_included_shipping_at_checkout_with_policy_html'
                  | t: link: shop.shipping_policy.url
                }}
              {%- endif -%}
            {%- elsif cart.duties_included and cart.taxes_included == false -%}
              {%- if shop.shipping_policy.body == blank -%}
                {{ 'sections.cart.duties_included_taxes_at_checkout_shipping_at_checkout_without_policy' | t }}
              {%- else -%}
                {{
                  'sections.cart.duties_included_taxes_at_checkout_shipping_at_checkout_with_policy_html'
                  | t: link: shop.shipping_policy.url
                }}
              {%- endif -%}
            {%- elsif cart.duties_included == false and cart.taxes_included == false -%}
              {%- if shop.shipping_policy.body == blank -%}
                {{ 'sections.cart.taxes_at_checkout_shipping_at_checkout_without_policy' | t }}
              {%- else -%}
                {{
                  'sections.cart.taxes_at_checkout_shipping_at_checkout_with_policy_html'
                  | t: link: shop.shipping_policy.url
                }}
              {%- endif -%}
            {%- endif -%}
          </small>
1 Like

worked thank you

1 Like

You are welcome :heart_eyes: