Hello please help me to sorted out the issue
I need to update Grand Total and Subtotal of the current cart using observer in magento 2 please let me know how to do this!!!
I need cart item price total in Grand Total and Subtotal please give me step by step execution!!!
Best Answer
Some Minor Correction is Required, Please Try below code
First add the
event.xml
file in your moduleDirectory Path:
app/code/Vendor/Module/etc/frontend/events.xml
Then add observer file :
app/code/Vendor/Module/Observer/CheckoutCartAddObserver.php
After code change run below command