As it turns out, just today I'm working on a shopping cart!

It's far from finished and rather specific for my needs, no payment or
anything, people just press "add to cart" in a list of products and
can check their cart in another view. There they get an ordernumber
and the account number and get the delivery when money is transferred
via regular bank transfer.

In general I added an addtocart($id) function to my
products_controller, which stores info on the product with id $id from
the database in a Cookie (which lasts for an hour), and increments a
counter so you can keep adding products. An added view called viewcart
gets all the products-info out of the cart (Cookie) with a for-loop
and displays it. From that view people can send the list via e-mail to
me and get payment info, This screen also holds a "clear Cart" button
that destroys the cookie.

I plan to add the orders to my database too for reference at a later
date.

I know you're new and this probably makes no sense now, but hopefully
at a later state it can help. Anybody else reading this, is this a
good way of going about is, or are there better ideas?




On 15 okt, 09:01, aravind raj <aravind0...@gmail.com> wrote:
> am a new to cakephp
> can any one help to have shopping cart in my project...
>
> --
> Aravind "Think Global Act Local"
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to