1

I have added a button on cart page. Clicking on the button the cart items should get deleted but the quote should not be erased.

1 Answer 1

0

Found the solution. We have to set the quote to inactive.

$quote->setIsActive(0);
$quote->save();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.