Re: Cookies to Cart question

2010-02-26 Thread WebbedIT
I haven't used cookies directly. I would personally store this in the database and mark each record with the session id. This then allows you to analyse abandoned carts etc. Paul Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

Re: Cookies to Cart question

2010-02-26 Thread Jeremy Burns
I do the same. I create an order record and store the order_id in a session. The first thing I do in any action is look for the id in the session. If it's not there, go back to the start. If it's there, do some some stuff, reading from the db if appropriate. This means I can process an order

Cookies to Cart question

2010-02-25 Thread Dave
Whats the best way to save product info to cookie when user clicks add to cart? The cookie section in the book is rather slim... I simply want to have my Product cookie to have all items that have been added. So anarray that adds to the bottom array_push each new items but other thanthat