0

I am using REST API for Magento 2.

I want to add 1 product only in Cart using REST API. Like if cart is empty one product is added is cart and if one product is in cart then remove that existing product and add new product in cart.

Thanks, Any help is appreciated.

0

I have Follow this article https://magecomp.com/blog/programmatically-clear-shopping-cart-magento-2/ to solve the issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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