Hi all,

I'm currently trying to complete what I thought would be a fairly
simple shopping cart, however I have run into some issues with the
logic side of add/updating a users cart.

As it stands I have a cart table & a cart options table (to store
users product variation choices), now I have it successfully checking
for the existance of an existing product in the cart and incrementing
quantity if found, and adding the relevant variation option (via a
foreach loop on the posted data array and cartoption->save). It
currently is set up so a product can have limitless variations so
thats also a bit of a headache looping through every variation choice
once the product is added to the cart.

As it stands it will increment the cart qty if there is a match BUT
add a new entry in the cart options table regardless.

I cannot seem to work out a logical way to check for duplicate
submission using BOTH tables ie exactly same product and options being
added to the cart...

Any thoughts, ideas, suggestions would be greatfully recieved - I'm
not looking for someone to code it for me, just help me work thru the
logic and hopefully generate some good ideas!

Thanks,

toby.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to