0

In Magento 2.2.5, I am using custom price in order total. It is displaying in the cart and checkout pages. But I need to set and display this custom price in everywhere like order, invoice and credit memos.

I am using this code: https://pastebin.com/LCUghSBZ

How to achieve this.

  • You will need to use Sales order place after observer and in this observer you will need Load order object , then u can set grand total using $order->setGrandTotal($customPrice); – Mohit chauhan Jan 7 at 10:19

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.