Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default "Before down for maintenance" notice is an error instead of warning?

    Running 1.3.9c. When I enable "NOTICE PUBLIC Before going Down for Maintenance: ON/OFF" in my admin, the message "NOTICE: This website is scheduled to be down for maintenance on: 15/05/2003 2-3 PM" appears, as expected, in my store's header message ... but the message is formatted as an error (i.e. red background) instead of a warning (yellow background).

    I'm not sure if this was intended, but I made the following change (in red) to /includes/init_includes/init_header.php to get the message to display as a warning:

    Code:
    // give the visitors a message that the website will be down at ... time
    if ( (WARN_BEFORE_DOWN_FOR_MAINTENANCE == 'true') && (DOWN_FOR_MAINTENANCE == 'false') ) {
      $messageStack->add('header', TEXT_BEFORE_DOWN_FOR_MAINTENANCE . PERIOD_BEFORE_DOWN_FOR_MAINTENANCE, 'warning');
    }

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

    Default Re: "Before down for maintenance" notice is an error instead of warning?

    The Notice is in RED ... if you want it in YELLOW change it to a:
    caution
    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: v1.5.5]
    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. v150 "Down for Maintenance" only on admin/orders.php?
    By ecclescake in forum Managing Customers and Orders
    Replies: 2
    Last Post: 18 Jan 2015, 07:59 AM
  2. v151 Changing the "Down For Maintenance" to "Under Construction"
    By SilverHD in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 18 Feb 2014, 04:51 AM
  3. View "Down For Maintenance" page new images - site is not down
    By sbbemn in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 21 Feb 2012, 04:52 PM
  4. Down for Maintenance - "Contact us" page still works
    By dlucarelli in forum General Questions
    Replies: 6
    Last Post: 8 Sep 2010, 12:02 PM
  5. NOTICE PUBLIC Before going Down for Maintenance: ON/OFF
    By curezone in forum General Questions
    Replies: 1
    Last Post: 15 Feb 2010, 10:26 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR