Take a look at the new tests I've just added to product/tests.py in rev 1841. test_expiring_price test_quantity_price_productvariation_expiring
They explicitly test what I'm talking about, and pass with no problems. Here's the logic: 1.1: The current price should be the one with the earliest expires date, and the highest quantity that's still below the user specified (IE: ordered) quantity, that matches a given product. 1.2: If no expiring price is found, use the one without any expiration date, and the highest quantity that's still below the user specified (IE: ordered) quantity, that matches a given product. For a ProductVariation, it is one step more complex: 2.1: First look to see if there is an explicit price set on the variation, follow the rules as in #1 above, using the ProductVariation's associated Product. 2.2: If none, then use the parent product's price calculated as in #1 above + any price delta from the product options. On Sat, Dec 20, 2008 at 2:10 PM, Alessandro Ronchi < [email protected]> wrote: > 2008/12/19 Alessandro Ronchi <[email protected]>: > > >>> Yes, it is very easy. You do *not* need to use the Offer model above. > It > >>> is already built-in to Satchmo. > >>> Just make two prices for the product. One expires, the other doesn't. > The > >>> expiring price will be used until it expires. > > Does it work for you? > > -- > Alessandro Ronchi > Skype: aronchi > http://www.alessandroronchi.net > > Rispetta l'ambiente: se non ti รจ necessario, non stampare questa mail > > > > -- 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 -~----------~----~----~----~------~----~------~--~---
