Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Setting Up Categories, Products, Attributes / Any way to automatically set products as out of stock by date?

Any way to automatically set products as out of stock by date?

29 Apr 2011, 7:20 PM
#1
kaliphornia avatar

kaliphornia

New Zenner

Join Date:
Apr 2011
Posts:
1
Plugin Contributions:
0

Post #1 by kaliphornia

Is there a way to have products "expire" or be set to out of stock on a given date? :no:

I know you can set products to expire from the Featured Products list by date, but this does not removed them from the the All Products listing.

I'm talking about actually keeping them from displaying so they can't be purchased after a certain date.

It would suck to have to go in and manually set the out of stock feature every day.

I'm using ZC for selling classes and other date-sensitive info:
http://store.homeresource.org/

It's version 1.3.9 using the "Simply Kerrin" template.

Thanks much!

30 Apr 2011, 5:33 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #2 by ajeh

There isn't anything built into Zen Cart for this but you could customize the code by adding a new field to the products table for a new field such as:
expiry_date

and build a new function such as how the featured products are expired to manage this ...

I would recommend the field name:
expiry_date

as it would work better with future upgrades ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!