I am doing the customization to update the quantity. When changing the quantity of the product I need to re-calculate the subtotal, shipping, Tax and Grand total. We are using the Matrix rate as shipping.
So I need to know how we can update the existing quote according to the update quantity of the product to re-calculate the above details.
As a workaround I tried to create the new quote using the existing quote details and it is not calculating the subtotal, shipping, tax or grand total. Always showing as 0 when I am debugging. So can you please help me to sort out this method or to find the another workaround to achieve this?
Hasitha Anuruddha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.