Skip to main content

Overview

This customization adds a clear cost breakdown above the checkout button, showing subtotal, shipping, and total based on a fixed shipping rate. It helps customers understand their final amount before checkout, improving trust and reducing hesitation. Important: This method only works with fixed shipping rates. If your store uses dynamic shipping, results may be inaccurate.

If you are on Upcart V1.0

Step 1: Add custom HTML

  1. Go to Upcart > Cart Editor > Settings > Custom HTML
  2. From the Select HTML Location dropdown, choose Above checkout button
  3. Paste the following code and update the variables to reflect your store’s shipping cost and threshold:
Legacy note: window.upcartOnCartLoaded callbacks still work but are deprecated and log console warnings. Use upcartSubscribeCartLoaded for all new scripts.

Step 2: Add custom CSS

  1. Go to Upcart > Cart Editor > Settings > Custom CSS
  2. Paste the following CSS and adjust background-color or other styles to match your cart footer:

Final result

Once applied:
  • A cost breakdown appears above the checkout button
  • Customers see subtotal, shipping (fixed or FREE), and total
  • The shipping cost dynamically adjusts based on your threshold
This increases cost transparency, improves trust, and can reduce checkout abandonment.

If you are on Upcart V2.0

Step 1: Go to cart summary module

  1. Go to Upcart > Cart Editor > Cart Summary > Custom template
  2. Paste the following code:
    1. The custom code for the section is from Line 52 to Line 73
      b. The relevant part is this section from line 52 - 73, use this doc to decide what value you are planning to display on the screen
      c. Go to Upcart > Cart Editor > Settings > Custom CSS, add this:

Need help?

If you want to adapt this for multiple shipping thresholds or advanced logic, we recommend working with a Shopify Expert. Upcart’s support team does not provide assistance with implementing or debugging custom code.