The functionality you need may already be in satchmo (I see it in there, but frankly I'm not familiar with it). Have a look at satchmo_store/shop/templates/shop/multiple_product_form.html and its corresponding view, add_multiple, in satchmo_store/shop/views/cart.py.
--Stuart On Sat, Mar 5, 2011 at 7:46 PM, Mike Hostetler <[email protected]> wrote: > Hello all, > I have a case where there is a table of products on the page, and the user > needs to specify the quantity of each item (if any) and then click the > submit button. > The examples with Satchmo show an individual product page, so it is uses > "url satchmo_smart_add" but that's not what I want to use, since my URL will > not have the slug of any product in it. > I'm fine with writing a custom view to make this happen, but how does one > create a CartItem to add to a Cart? Or is there an easier way that I'm > overlooking? > Thanks, > Mike > > -- > You received this message because you are subscribed to the Google Groups > "Satchmo 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/satchmo-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Satchmo 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/satchmo-users?hl=en.
