This is definitely not the intended behavior. We probably do need to give some TLC to the discount process. Any patches are welcome.
-Chris On Wed, Jun 1, 2011 at 5:04 PM, Nan <[email protected]> wrote: > DiscountManager.get_sale() does not filter on whether a sale is > restricted to certain products, and due to Satchmo's settings context > processor, the result of this method call is applied as a "sale" > context variable to every page, overriding any "sale" variable set in > the view. > > Since the product/product_discount_eligible.html template is included > based on the value of "sale", the sale message ("This product is > eligible to receive a discount...") displays on every product's page, > not only the eligible ones. > > So say I have a 50% off sale on all T-shirts, applied to the T-shirt > category. There's a message not only on the T-shirt pages but also on > the coffee mug pages saying that the product on that page is eligible > for a discount. Then I get a bunch of irate customers calling up > asking why the heck they were charged full price for coffee mugs when > my site said they were half off. > > Additionally, the "sale" variable is used to calculate the displayed > discounted price, so if the "best discount" available for a product > (as calculated in the get_product view) is not the one being > advertised in this site-wide sale, the discounted price is incorrect. > > I'm trying to work around some of this with custom views and > templates, but is this the intended behavior? > > -- > 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.
