Good work Bruce, you beat me to it... I made the same change in my
site but didn't get a change to fold it back into satchmo.
I did it a bit different - an input field for quantity and an "update
cart" button (pretty much the "standard" way, I suppose).
Can you explain your motivation for using a fixed list of quantities?
I wonder which way would be preferable to most users.
Itai
Please keep in mind that I am a developer on Satchmo, but I do not speak for the team. I could be very off base in my assumptions about the intended use.
The choice of what UI to include for changing quantities in the cart
is obviously not at all critical then...
Just one thing though - if you wanted to implement input boxes for
quantities and an "update cart" button, besides customizing the
template you'd also need to add a view that will process the update
for all the cart items. Do you think it might be a good idea to
provide this view in satchmo, even if it's not used in the standard
template? That would keep the options open for users who can make
their own templates but not extend satchmo at the python level.
There's another example for this... I added "buy this product" links
to each product in the category listing template, and that feature
also required a new view. So currently my site has its own shop app
which adds these views. We could make these options available to all
users by folding the new views into satchmo.shop.cart.views and maybe
adding sample templates somwhere to show their use.
What do you think?
Itai
I'm starting to think that django is too easy to work with... it
takes longer to report on patches than to make them. There's got to
be a catch somewhere.