In Cart page , Summary Section is there know , in that shipping flat rate will be 5. so i want to add static amount 10. so whenever i will go to cart page shipping rate will be 5+10 = 15 . So how i can achieve this? I want to use only observer. Can anyone please help me to do this.

getEvent()->getQuote(); $quote->setShippingAmount(10); $quote->save(); } } I have used this code. but i didnt get. Thanks
  • Please describe what you are trying to do? Sep 2, 2020 at 13:54
  • I want to set shipping amount in magento2 , while going to cart page
    – Priya
    Sep 3, 2020 at 4:48
  • Please share solutions for this, thanks Oct 12, 2022 at 12:19


Your Answer

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

Browse other questions tagged or ask your own question.