How to block a same Product being added to the cart twice?
Ex: Online Bookstore site has different books. I want the customer to be able to add a book (Ex; Book name : Cricket 911) only once to the cart and want to restrict adding the same book to the cart again.
Have anyone done this kind of a development before?
When saving user cart information format it in this way:
Then any same
bookID
will override previous selection and you will have unique keys