Results 1 to 3 of 3

Thread: Disable Ordering

  1. #1
    Join Date
    Aug 2011
    Posts
    19

    Default Disable Ordering

    I just spent a bit looking through the Hooks documentation and didn't find anything, so I thought I would post here. I was looking for a way to disable new order's in the system, quick and easily and flipping a switch. I can't find one

    Any thoughts?

    I want to be able to disable new order's of any type just be turning it on or off really.

  2. #2
    Join Date
    Dec 2008
    Location
    Myrtle Beach, SC
    Posts
    386

    Default

    You could use the ClientAreaPage hook which does get called before any of the order form pages are display and define a smarty variable to enable/disable new orders. Then on your order form templates check for the variable to either display the order form, product list, etc or display a message that ordering is closed.

  3. #3
    Join Date
    Aug 2011
    Posts
    19

    Default

    Awesome! Just what I was looking for! Thanks for the help.

Similar Threads

  1. Disable Ordering button for whmcsurl/cart.php {if}
    By Experthost in forum Feature Requests
    Replies: 0
    Last Post: 09-20-11, 08:44 AM
  2. Improved Ordering
    By Mt. Nick in forum Feature Requests
    Replies: 2
    Last Post: 02-15-11, 04:54 PM
  3. Ordering
    By geckofrog in forum Pre-Sales Questions
    Replies: 0
    Last Post: 07-10-07, 07:10 PM