Results 1 to 4 of 4
  1. #1
    Join Date
    May 2009
    Posts
    5
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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!

  3. #3
    Join Date
    May 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Restricting the days you can order

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

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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!

 

 

Similar Threads

  1. Can you auto update the order status?
    By ricky_moore in forum Managing Customers and Orders
    Replies: 3
    Last Post: 11 Jan 2011, 05:35 PM
  2. Replies: 1
    Last Post: 2 Nov 2010, 12:22 PM
  3. can you control the sort order of the featured products on the front page
    By George Susini in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Apr 2009, 08:05 PM
  4. Can you Can you exclude shipping cost from the group discounts?
    By blind1 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 5 May 2008, 04:45 AM
  5. Can you sort products by their ID (the order you enter them)
    By amdowney in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 31 May 2007, 03:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg