2

I want to change the cart subtotal calculation in magento 2

but i try this code but not changing

 $quoteQty = $quote->getQuoteQty();
 $priceOne=$priceOne/$quoteQty;
 $quoteItem->setCustomPrice($priceOne);

 $quoteItem->setOriginalCustomPrice($priceOne);
 quoteItem->setRowTotal(($priceOne/$quoteQty) * $quoteQty); //Here i edited the Cart values

setRowTotal()

method not working how I change the cart subtotal value and what is the use of setRowTotal() ??

  • Have you found the solution? – aravind Feb 25 '19 at 11:13
  • nope........................... – prabhakaran7 Feb 25 '19 at 11:25
  • how i can change the cart sub total value in my module – prabhakaran7 Feb 25 '19 at 11:27
  • In shopping cart (or) Minicart ? – aravind Feb 25 '19 at 11:30
  • what is mini cart – prabhakaran7 Feb 25 '19 at 11:32

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.