Jump to content

Cart override - modifying cart doesn't effect SUM


urosg

Recommended Posts

Hi!

 

I made an override class for CartController in which I've overriden the "preProcess" function and after I call the parent "preProcess" I modify the cart with

self::$cart->addDiscount(1);

the discount is visible in cart (looking at returning JSON) but the SUM of the cart is not updated until I refresh the page.

 

How can I "force" cart SUMs to be updated or is there somewhere else I should place this code?

 

Thank you!

 

Kind regards,

Uros

Link to comment
Share on other sites

  • 5 months later...

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...