I am new Satchmo user and trying to figure out how I can do a query to find a product and all its variations. For example, I have the settings set to only have one featured item, but that featured item is a configurable product, with multiple variations. I am trying to do a query from the shell to return the product, but since the items in stock are on the actual variations and not the configurable(featured product itself) it always returns nothing. >>> s = Product.objects.filter(items_in_stock__gte=1, featured=True, >>> active=True) >>> s [] >>> s = Product.objects.filter(featured=True, active=True) >>> s [<Product: Orage Sebastian Shorts>] When filtering with items in stock, it is only looking at the configurable product itself, which is the featured item, not looking at if the variations of the main configurable product have items in stock. Any ideas on how to get it to look through the variations as well?
-- 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.
