Jump to content

Cart total in header changes after a second :/


Recommended Posts

I have changed the cart total in block cart from {$total} to {$product_total} in both blockcart.tpl (in two places) and changed a line in ajax-cart.js

 

When first coming in to the website, clicking the cart to see the dropdown with the info, the total is correct. But after just a second the total changes to the total with shipping. So weird. :S

 

Anyone know why?

Link to comment
Share on other sites

Oh, nevermind.

 

This solved it:

 

in blockcart.php replace this

'total' => Tools::displayPrice($totalToPay, $currency),

to

'total' => Tools::displayPrice($params['cart']->getOrderTotal($useTax, Cart::BOTH_WITHOUT_SHIPPING), $currency),

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...