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(); error_log($cartQuote->getGrandTotal());
But I'm not able to set the grand total
$grandTotal = "200"; $cartQuote->setGrandTotal($grandTotal); $this->quoteRepository->save($cartQuote);
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