Zen Cart Logo
Forums / General Questions / Auto expiring products?

Auto expiring products?

Locked

Views: 1,452

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
29 Nov 2006, 6:53 PM
#1
s_p_ike avatar

s_p_ike

Zen Follower

Join Date:
Feb 2005
Location:
Italy
Posts:
178
Plugin Contributions:
0

Auto expiring products?

Is there a way to auto expires (status = 0) products by date, without having to code it?

I'm trying to use ZC to manage congress reservations (this is only 1 'product' among many 'standard' products). I'd need this features 'cause of price change based on date of request (mainly due to hotel policy).

With attributes I may manage a good registration 'form', but this date stuff is not so simple.

Of course I'd create 2 products and I could disable the old one manually, but would be much easier to have an authomated tool.

I know ZC is not the best suite to accomplish this task (using attributes for this is complex when you have to manage prices depending on what user choose, basically every option must be an attribute, so not very user friendly), but this way everything would remain in the same 'environment'.

Thanks!

3 Dec 2006, 1:43 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Auto expiring products?

There are automated functions for expiring banners and features and specials. You could use these as an example for expiring specific products.
Look at the functions initiated in init_special_funcs.php for a starting point.

3 Dec 2006, 1:56 PM
#3
s_p_ike avatar

s_p_ike

Zen Follower

Join Date:
Feb 2005
Location:
Italy
Posts:
178
Plugin Contributions:
0

Re: Auto expiring products?

Thanks Doc, I know. I already worked with those functions. But I didn't want (at the moment) to hack core files and db (maybe in front-end ther's no need to hack core files, but in admin of course it would be needed... hmmm since I'll manage the store maybe I could code everything without the need to make management of this feature available by admin... hmmm... good :) )