TheSmithsDoBusiness Posted July 19, 2020 Share Posted July 19, 2020 Hello, I would like to modify the cart page to show the cart totals without the default shipping cost. I tried using {$cart.subtotals.products.value}, but it doesn't calculate coupons (if any have been used). If I use {$cart.totals.total.value}, it automatically calculates the shipping cost and I don't want that. Here's what I'd like to have on the page: Product subtotal: £85 Discount: -£8.50 Shipping (calculated at checkout): -- Order total: £76.5 I tried something along the lines of {$cart.totals.total.value - $cart.subtotals.shipping.value} but it returns a value of '0'. We don't offer free shipping, so adding another carrier with a £0 cost as the default carrier doesn't help. Any ideas? Many thanks. Link to comment Share on other sites More sharing options...
Guest Posted July 20, 2020 Share Posted July 20, 2020 {Tools::displayPrice($cart.totals.total.amount - $cart.subtotals.shipping.amount)} Link to comment Share on other sites More sharing options...
TheSmithsDoBusiness Posted July 20, 2020 Author Share Posted July 20, 2020 Tried your code, @Guest, and it worked PERFECTLY. Many thanks, it really is much appreciated. Link to comment Share on other sites More sharing options...
Guest Posted July 20, 2020 Share Posted July 20, 2020 I gladly helped. You can give a like by clicking on the gray heart below the post. Link to comment Share on other sites More sharing options...
TheSmithsDoBusiness Posted July 20, 2020 Author Share Posted July 20, 2020 Done! Thanks again! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now