In the product view, 'sale' is set in the template context (extra_content) as the best discount for the current product, which should be None if there is no discount available.
I'm experiencing the trouble of having context = RequestContext (request, extra_content) overwriting the sale variable, setting it to a discount that doesn't necessarily apply to the product. If I add context['sale'] = best_discount below the aforementioned line, I get normal behavior. On Mar 24, 5:07 pm, Daniel <[email protected]> wrote: > I have an automatic 10% discount applied to a small number of > ConfigurableProducts in my store, and it works beautifully for those > products. However, I'm finding that I still see a message on other, > non-discounted products that they are eligible for this same > discount. Also, on plain-old, vanilla, non-discounted Products, I get > the price displayed twice: once as a strikethrough, regular and again > as if it was discounted (same price, though). I also get the message > about an available discount. > > I went into the product view (get_product() in product/views/ > __init__.py) and set 'sale' to be passed to the template as None > instead of best_discount, and somehow this doesn't change any discount > behavior. > > I feel lost and confused =O I'll keep poking around to see if I can > figure this out, but I thought I'd ask in case someone else knows > what's going on. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
