Forums / Setting Up Categories, Products, Attributes / Stopping items on menu to be ordered after a certain time

Stopping items on menu to be ordered after a certain time

Views: 575

Results 1 to 3 of 3
31 Jul 2012, 12:21 PM
#1
mkyle avatar

mkyle

New Zenner

Join Date:
Mar 2005
Location:
Scotland
Posts:
76
Plugin Contributions:
0

Stopping items on menu to be ordered after a certain time

Hi,

is there any way I can stop products being ordered after a certain time. I have built a online takeaway shop and certain meals are only available 4pm to 9pm each evening (Mon to Thurs). Although this is clearly marked on the site customers are still placing orders.

Thanks, Martin

5 Aug 2012, 7:08 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Stopping items on menu to be ordered after a certain time

Sure. Write custom code to check the time of day and if the status needs to change, have it update the status on all the specific product IDs you tell it to process.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Aug 2012, 12:40 PM
#3
mkyle avatar

mkyle

New Zenner

Join Date:
Mar 2005
Location:
Scotland
Posts:
76
Plugin Contributions:
0

Re: Stopping items on menu to be ordered after a certain time

DrByte:

Sure. Write custom code to check the time of day and if the status needs to change, have it update the status on all the specific product IDs you tell it to process.

Thanks, any ideas of any coders who could write it for me

Martin