Answer the question
In order to leave comments, you need to log in
How to make a basket with one item and one quantity?
There are a dozen items in the store. But you can put in the basket only one and in one quantity. If you add any other product, it replaces the one that was previously in the cart.
Thus, the cart can either be empty, or one product in the amount of 1. How to implement this?
Shop on miniShop2
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question