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?
Re: Enabling a page despite website maintenance
Quote:
Originally Posted by
retched
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.
Re: Enabling a page despite website maintenance
Quote:
Originally Posted by
carlwhat
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.
Re: Enabling a page despite website maintenance
Quote:
Originally Posted by
retched
That is exactly what I was both hoping and looking for. Thank you.
:thumbsup: