Skip to contentFreeSend your store URL, get a written audit back within 1 business day
All posts

Flash Cart Drawer Upsell3 min read

Show the cart total on the checkout button

Flash Cart Drawer Upsell fills {{total}} and {{subtotal}} in the checkout button label with the cart’s prices, so the button reads “Checkout · $6,237.75” and keeps up as the cart changes. Here is how to set it up.

On this page
  1. Two values: total and subtotal
  2. Set it up
  3. What shoppers see
  4. Good to know

The last thing a shopper reads before they pay is the checkout button. On most stores it says “Proceed to checkout”, and the number that matters sits a line above it, in smaller type, next to a struck-through price and a discount line. A shopper who is about to commit has to look in two places to know what they are committing to.

Flash Cart Drawer Upsell can put that number on the button itself. Write {{total}} in the button label and the cart drawer fills it with the cart total, in your store’s own money format, and keeps it up to date as the cart changes.

The checkout button Settings card in the Flash Cart Drawer Upsell cart editor. The Checkout button label field reads Proceed to Checkout, and a small button beside it has opened a menu with two entries: {{total}}, Formatted cart total, what the customer pays, and {{subtotal}}, Formatted cart subtotal. Below are the Button action select set to Checkout, four icon choices with the lock picked, and a Require a minimum cart value switch
The button beside the label lists the two values it can carry.

Two values: total and subtotal

The label takes two placeholders. Each is replaced with a formatted price.

  • {{total}} is what the shopper pays: the cart after automatic discounts and free gifts.
  • {{subtotal}} is the figure on the Subtotal line just above the button, in whichever summary layout the cart uses. In the itemized layout that is the price before savings, so it is the number to pair with the total when you want the saving to show.

Everything else in the label stays exactly as you type it. A label without a placeholder still works as it always did.

Set it up

  1. In Flash Cart Drawer Upsell, open your cart in the cart editor. Under Footer, click Checkout button.
  2. In Checkout button label, write the label you want. Click the button beside the field to drop in {{total}} or {{subtotal}}, or type them yourself.
  3. Watch the preview on the right; the button updates as you type. Then click Save.
The cart editor with the Checkout button label set to Checkout · {{total}} and the Classic summary layout picked. In the live preview on the right, a cart with four items, three ticked reward milestones and a free snowboard shows Subtotal $6,237.75, struck through from $7,262.75, and the black checkout button reads CHECKOUT · $6,237.75 next to a lock icon
“Checkout · {{total}}” in the label becomes “Checkout · $6,237.75” in the drawer.

What shoppers see

The button reads like a receipt: the action and the amount in one place. Change a quantity, take an upsell or unlock a free gift, and the price on the button moves with the rest of the cart.

Close-up of the drawer footer: SUBTOTAL with $7,262.75 struck through and $6,237.75 in bold, and below it a black button with a lock icon reading CHECKOUT · $6,237.75
The figure the shopper pays, on the button they press.

Both values together tell the saving without another line of copy. With the itemized summary, “Pay {{total}} · was {{subtotal}}” shows what the cart costs now and what it cost before the free gift came off.

The cart editor with the label Pay {{total}} · was {{subtotal}} and the Itemized summary layout picked. In the preview the order summary is open: You saved $1,025.00, Subtotal $7,262.75, Free gift unlocked −$1,025.00, Free shipping Applied, Total $6,237.75, and the checkout button reads PAY $6,237.75 · WAS $7,262.75
With the itemized layout, {{subtotal}} is the price before savings.

Good to know

  • Short labels read best. The button is one line on a phone. “Checkout · {{total}}” or “Pay {{total}}” fits; a sentence will not.
  • Translations keep the placeholders. On the app’s Translations page you can write the label per language and use the same placeholders in each.
  • A/B tests can compare labels. Give variant B a label with the total and keep the plain one on A, and the test tells you which one sells more.
  • Only these two values. The button does not take an item count or the amount saved. For the saving, pair {{total}} with {{subtotal}} as above.

The total on the checkout button is in Flash Cart Drawer Upsell now. Put the number on the button, and let shoppers see what they are paying before they press it.

Written by

Zenkai

A Shopify development studio with three of its own apps on the Shopify App Store.

All posts

Make the last click in your cart the easy one.

Running a Shopify store? Flash Cart Drawer Upsell gives you a slide-out cart with upsells, rewards, free gifts and a checkout button that shows the total. Install it, or tell me what your cart needs and I’ll help you set it up.

  • Fixed price, in writing
  • Live store untouched until you sign off
  • 14 days of free bug support