Each Customer has few points in their account. 1 point = 1 Rupee. I want to give a textbox and a button in a cart page when the customer enters the points in the text box I want to subtract that points with the grand total and update the grand total.

With the below code I can get the grand total

$cartQuote = $this->cart->getQuote();

But I'm not able to set the grand total

$grandTotal = "200";

I know all other logic and flow I just want to update the grand total

Could anyone please help to update the grand total

Any help would be appreciated

Thank you

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.