Forums / Managing Customers and Orders / Restricting the days you can order

Restricting the days you can order

Locked

Views: 880

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
4 May 2009, 6:19 PM
#1
cebollaflowers avatar

cebollaflowers

New Zenner

Join Date:
May 2009
Posts:
5
Plugin Contributions:
0

Restricting the days you can order

I have a client who does not want to place orders on Sunday. Is there any way I can restrict ordering that day without it being a permanent fix? for example - most holidays (if they fall on sunday) ordering must be turned back on.

Thanks!
Alicia

4 May 2009, 7:02 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Restricting the days you can order

You could write a function to run and test the day/dates and set the store status to be a showcase ... and on other days, set it back as a normal shop ...

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!

4 May 2009, 7:04 PM
#3
cebollaflowers avatar

cebollaflowers

New Zenner

Join Date:
May 2009
Posts:
5
Plugin Contributions:
0

Re: Restricting the days you can order

How would I do that? Im very new at this.

4 May 2009, 7:58 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Restricting the days you can order

If you look in the file:
/includes/int_includes/init_special_funcs.php

you will see where various functions are run that manage the specials, featured products and sales in SaleMaker ...

In that section, any code will run:

1 Once per session

2 Run again in the same session if the session started before midnight and was still active past midnight

You could add your function there that manages when to change the store status ...

By running it Once per session, then it is only run the first time someone comes to the site and is then run again if they are still there and pass midnight ...

This way, it is not run on every click ...

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!