Jumping in a bit late here. I think that Bob is right and you should just use variants along with a custom template to show your products the way you envision. If you boil down the problem, you only need to manage one thing - inventory - a bit differently than normal. It is quite possible to handle this via an "order_success" signal listener. Usually we decrement inventory by orderqty on a success, but you could write a listener which would handle decrementing the master inventory by the proper amount, then adjusting all the sub-inventories for each of the variants.
Normal Flow: 1) Sale is final. 2) order_success signal is emitted. 3) "decrement_inventory_on_sale" listener fires, and decreases inventory based on orderitem. Your Flow: 1) Sale is final. 2) order_success signal is emitted. 3) "yourspecial_decrement_inventory_on_sale" listener fires, and decreases inventory based on orderitem unless it is one of the special items you've set up, in which case it calculates the right amount to decrement from the master item. To do this right, you'll also want to override "veto_out_of_stock", to use the master inventory level for your special items when determining when an item is in stock. How to override. Put something like this in some local app on your store. Usually I put this kind of thing in "listeners.start_listening()" from satchmo_store.shop import listeners, signals signals.order_success.disconnect(listeners.decrement_inventory_on_sale) signals.order_success.connect(yourspecial_decrement_inventory_on_sale) signals.satchmo_cart_add_verify.disconnect(listeners.veto_out_of_stock) signals.satchmo_cart_add_verify.connect(yourspecial_veto_out_of_stock) (note, the decrement_inventory_on_sale is a new listener, which I just added in rev 2016 because it makes more sense than doing it in the view like we were before.) -- Bruce Kroeze http://solidsitesolutions.com Dynamic Designs, Optimized --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
