On 12/19/08, Alessandro Ronchi <[email protected]> wrote:
> I need a way to change the product price until an expiration date.
>
>  satchmo.discount is not the correct solution for me.
>
>  Is it possible to create a new model that changes the unity product
>  price dinamically,
>  until it expires?
>
>  something like:
>
>  class Offer(models.Model):
>     product = models.ForeignKey(Product)
>     new_price = models.DecimalField(_("old price"), max_digits=14,
>  decimal_places=6, help_text=_("The original price of the product. Will
>  be set as the product price after offer is ended")
>     expires = models.DateField(_("Expires"), null=True, blank=True)
>
>  I dont' want to change the product model or satchmo code, if it's possible.

The class Offer can be used in a django script, run by cron with:
./manage.py runscript

Regards, James.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to