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.
1 Answer 1
I have Follow this article https://magecomp.com/blog/programmatically-clear-shopping-cart-magento-2/ to solve the issue.
default