Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / how to disable some ezpage?

how to disable some ezpage?

Locked

Views: 599

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
3 Aug 2010, 2:45 AM
#1
fei2010 avatar

fei2010

New Zenner

Join Date:
Jun 2010
Posts:
56
Plugin Contributions:
0

how to disable some ezpage?

one of my site is just showroom, so I disabled some pages such as shipping&return, but I can still access the page if I enter the url directly: index.php?main_page=shippinginfo.

how can I disable it so user can't access it?

3 Aug 2010, 9:37 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: how to disable some ezpage?

I suppose you could remove the define page files or just remove the content from them so they're blank.

EZ pages can be turned off in admin.

3 Aug 2010, 3:50 PM
#3
fei2010 avatar

fei2010

New Zenner

Join Date:
Jun 2010
Posts:
56
Plugin Contributions:
0

Re: how to disable some ezpage?

I actually "delete" those ezpage that I don't use in the admin: tools->ez pages. but they still can be accessed using direct url.

I hesitate to actually delete the files, since the site will be using the in the future.

I am hoping that we can "turn off" the pages so when accessed using direct url, zen cart can direct user to the page not found page? is that possible?

Thanks.

3 Aug 2010, 4:28 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: how to disable some ezpage?

Say you want to "turn off" completely, even by manual hack of URL, and not be able to get to the Privacy page and not lose the code for future use ...

Go to the:
/includes/modules/pages

rename the directory:
/includes/modules/pages/privacy

to something like:
/includes/modules/pages/privacy_HIDDEN

now it is "gone" but can be used later ...

Or, delete the directory:
/includes/modules/pages/privacy

and later, when you need it, just upload it again ... :smile:

3 Aug 2010, 5:58 PM
#5
fei2010 avatar

fei2010

New Zenner

Join Date:
Jun 2010
Posts:
56
Plugin Contributions:
0

Re: how to disable some ezpage?

thank you. that should work.