Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    681
    Plugin Contributions
    8

    Default Enabling a page despite website maintenance

    PHP 8.2.1
    ZC 2.0.1

    I have cloned the html_include page for conditions and renamed it. When I closed the site for maintenance, I noticed that the page itself is blocked by the maintenance page when its enabled.

    Is there a way to enable a page to be viewable when the cart site is disabled by maintenance?

  2. #2
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,845
    Plugin Contributions
    11

    Default Re: Enabling a page despite website maintenance

    Quote Originally Posted by retched View Post
    PHP 8.2.1
    ZC 2.0.1

    I have cloned the html_include page for conditions and renamed it. When I closed the site for maintenance, I noticed that the page itself is blocked by the maintenance page when its enabled.

    Is there a way to enable a page to be viewable when the cart site is disabled by maintenance?
    there is not a way to do it without modifying core code.

    if your page for conditions worked while in maintenance mode, that would suggest you are in what ZC called a relaxed type. if you want to add a new page that would NOT redirect to the down by maintenance page, look at this section of code:

    https://github.com/zencart/zencart/b...th.php#L92-L97

    and specifically the array on line 92. add your new page into that array and it looks like the new page will display.

    hope that helps.

    best.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #3
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    681
    Plugin Contributions
    8

    Default Re: Enabling a page despite website maintenance

    Quote Originally Posted by carlwhat View Post
    there is not a way to do it without modifying core code.

    if your page for conditions worked while in maintenance mode, that would suggest you are in what ZC called a relaxed type. if you want to add a new page that would NOT redirect to the down by maintenance page, look at this section of code:

    https://github.com/zencart/zencart/b...th.php#L92-L97

    and specifically the array on line 92. add your new page into that array and it looks like the new page will display.

    hope that helps.

    best.
    That is exactly what I was both hoping and looking for. Thank you.

  4. #4
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,845
    Plugin Contributions
    11

    Default Re: Enabling a page despite website maintenance

    Quote Originally Posted by retched View Post
    That is exactly what I was both hoping and looking for. Thank you.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 

Similar Threads

  1. v154 Website maintenance period
    By DML73 in forum General Questions
    Replies: 4
    Last Post: 25 Nov 2019, 05:28 PM
  2. v153 trouble enabling HTTPS for my website
    By Herbs2Care in forum General Questions
    Replies: 18
    Last Post: 11 Nov 2017, 12:20 AM
  3. Website maintenance
    By KTNaturals in forum Basic Configuration
    Replies: 7
    Last Post: 2 Dec 2010, 03:34 PM
  4. Website Maintenance
    By lofty in forum General Questions
    Replies: 6
    Last Post: 19 Jan 2010, 05:00 PM

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