How to display total cart cost + shipping?

How to display total cart cost + shipping?

UK_Aspire_Vendo
Pathfinder
128 8 26

Hi folks, I hope everyone is well.

 

We've got an on-site checkout function where customers can input their card details and pay for their orders without leaving our store.

I'm trying to implement a feature where the button that the customer will press to be charged will show the amount we will charge them, but I can't for the life of me figure out how to pull the data across.

The page where the customer enters their card details is immediately after pressing "Complete order" in the built in Shopify checkout.

Any help would be much appreciated - I've created an image below to help describe what I'm trying to do.

Thank you all!

 

PAY.jpg

Replies 2 (2)

pawankumar
Shopify Partner
755 111 128

If you have access to cart object there then you can access total like this

{{cart.total_price | money}}

Thanks!

- Need a Shopify developer? Chat on WhatsApp +91-9467121281
- Coffee Tip: Buymeacoffee  | Email: thepkpawankumar@gmail.com
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Best regards,
Pawan
UK_Aspire_Vendo
Pathfinder
128 8 26

Unfortunately this just produces the subtotal and I have tried this before - this does not include the shipping rate selected by the customer.

If we were to use that field in the "Charge (cart.total_price)" then they would see a button that says "charge £3.98" but in truth we'd be taking £8.98.

Any other ideas?