When determining the list of products for which a discount is valid, a
list of slugs is generated for products in categories to which the
discount applies (product/models.py line 520).
But when determining the best price for a product, discounts are not
searched by category. (product/templatetages/satchmo_discounts.py
line 31).
Is this intentional? It seems to be fairly easily fixed by changing
line 31 to:
return discs.filter(Q(valid_products__in=product) |
Q(valid_categories__product__in=product) |
Q(allValid=True)).order_by('-percentage')
--
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.