I tried to change the subtotal value of cart. I used sales_quote_collect_totals_after event to change it, and inside the observer, i do the code below, but nothing change, where should i change the subtotal value?

Observer :

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


  • You have to override TotalsCollector i think so . Private property you are not able to set like this. – Yogesh Oct 31 '17 at 12:29
  • Im still new with magento, can you tell me how to do it? – Edwin Widhiyanto Nov 1 '17 at 3:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.