Hey Matt, thanks for the reply. Correct me if I'm wrong, but I see that the 'Agile Web Development v3' Depot example stores the cart contents in the session. Doesn't that create problems such as using too much memory, scalability concerns or even security issues?
Do you happen to know any examples - tutorials of creating a shopping cart with the cart_id stored in session, but the rest of the cart contents stored in a database? (.and thinking out loud now, someone must have written a 'add-to-cart' gem or plugin that helps you insert a solid add-to-cart feature to your app, i'm sure that every developer out there does not write this from scratch, falling into the same pitfalls that I'm about to fall myself..:) Alex On Aug 20, 12:48 am, Matt Jones <[email protected]> wrote: > On Thu, Aug 19, 2010 at 2:45 PM, Alex <[email protected]> wrote: > > Hello, > > I would like to implement a very simple shopping cart functionality to > > my application, just selecting some products and saving them as an > > order. Only logged in users will be able to 'checkout' and send > > through the order, but apart from that, I do not need credit card > > processing, inventory tracking, shipping, coupons or any other > > complicated e-commerce features. > > > What do you recommend? > > I have the options of: > > > 1) Using some of the poorly-documented available gems: > > (http://rubygems.org/search?_snowman=%E2%98%83&query=cart) > > (Unrelated: somewhat of a shock that rubygems.org is already running > on Rails 3 - the _snowman is a giveaway) > > Anyways, this will probably not be a good idea. > > > > > 2) Spree? Has anyone used it with Hobo? > > (spreecommerce.com/) > > Spree is a good system, but vastly overkill for your needs. Never > tried using it with Hobo, but it should mostly work... > > > 3) Writing it myself from scratch. (100% session based or database- > > driven?) > > You might want to try adapting the AWDWRv3 Depot app cart to your > needs; it's not particularly complicated. Ultimately, all you really > need for a basic "pick products and put quantity X in cart" is a hash > in the session (product_id => quantity). > > --Matt Jones -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
