PDA

View Full Version : Only 1 item in the cart...


daniel279790
03-03-2009, 10:33 AM
Hello
Is it possible to make ECart only display 1 item in the cart. I know about the 'If item in cart' - Replace, Add New, Ignore and Sum. But that only seems to work if its the same item you are adding to the cart.

I need my cart to only ever have one item in it and to replace old items with the new one you've just added.

So if item '1' is in the cart and then you click to add a different item '2' it would replace '1' and only have '2' in the cart.

Hope that makes sense.

I'm using PhpMyAdmin, Ecart 4.15, on a MacBook Pro running Dreamweaver CS3.

Many Thanks

Ray Borduin
03-03-2009, 10:37 AM
Just give them all the same ID in the cart and set to replace if item is in the cart. Set all of the ID values to 1. If you want to store the ID, create another column to store that in so that items always have the same ID. This in conjunction with using the replace option in the add to cart button will accomplish what you need.

Brainthief
05-31-2009, 04:03 PM
Glad I found this post... just what I needed.