5 replies [Last post]
BenStallings's picture
Offline
Joined: 03/13/2008
Juice: 91
Was this information Helpful?

Hello! Has anyone yet found a way to create an "early bird" discount for a product, that is, to have the price of the product increase automatically at a specified time? Please advise. Thank you!

Alaska's picture
Offline
Joined: 10/16/2007
Juice: 1433
Price

See if 'custom price calculation' would work. It allows for the addition of custom PHP to "be associated with a product in order to adjust the price of the product".

It is contrib/2289

Jim

BenStallings's picture
Offline
Joined: 03/13/2008
Juice: 91
early bird in Drupal 6?

Hello again. The way I wound up solving this problem in Ubercart for Drupal 5 was with Workflow-NG, invoked on the event "User is going to view a page."

Now I'm upgrading my Ubercart sites to Drupal 6, and Workflow-NG has been replaced by triggers and conditional actions. There does not appear to be a trigger equivalent to "User is going to view a page" -- the closest equivalent appears to be "When content is viewed by an authenticated user," but that's not close enough (it needs to work for anonymous users as well) and that trigger is not available in the Conditional Actions admin page.

Am I on the right track? If so, how do I get the right trigger and make it available to conditional actions so I can raise the price of an item after a given time? If not, what should I be trying to do instead? Thanks!

BenStallings's picture
Offline
Joined: 03/13/2008
Juice: 91
any suggestions?

Can anyone give me a hand with this question, above? I've got some products about to increase in price next week, and I'd rather they do it automatically if possible. Thanks!

manatwo's picture
Offline
Joined: 02/19/2008
Juice: 235
Re: any suggestions?

The alt_discounts module should be able to provide you with what you need. It allows you to pick starting and ending dates for your discounts. You can print the discounted price in your product, but IIRC you'll have to add something to your theme.

BenStallings's picture
Offline
Joined: 03/13/2008
Juice: 91
uc_discounts_alt

Assuming you mean uc_discounts_alt. Thanks for the tip, manatwo!