Zen Cart Logo
Forums / Basic Configuration / Enabling a page despite website maintenance

Enabling a page despite website maintenance

Views: 1,626

Results 1 to 4 of 4
13 Oct 2024, 3:18 AM
#1
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

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?

13 Oct 2024, 5:54 AM
#2
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,963
Plugin Contributions:
8

Re: Enabling a page despite website maintenance

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/blob/b44bb30e2009afe194391f55425e2f783a3fdc3e/includes/init_includes/init_customer_auth.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.

13 Oct 2024, 2:08 PM
#3
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: Enabling a page despite website maintenance

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/blob/b44bb30e2009afe194391f55425e2f783a3fdc3e/includes/init_includes/init_customer_auth.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.

13 Oct 2024, 2:32 PM
#4
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,963
Plugin Contributions:
8

Re: Enabling a page despite website maintenance

retched:

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

:thumbsup: