I made custom calculation to change product price on cart page.

Product type is bundle.

I used this observer event to set custom price for bundle product.


My code to set custom price.


Issue is that product price is changed, rowtotal is also changed but grand total and subtotal of cart was not changed. grandtotal and subtotal take bundle product original price not my calculated price.

Bundle product price type is dynamic.

But when I create bundle product price type fixed custom price calculation is working perfectly.

1 Answer 1


To update the cart via an observer don't forget:

$quote = $observer->getEvent()->getQuote();


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.