Forums / Addon Sideboxes / Issues with adding 'Page_5' to the More Information Sidebox

Issues with adding 'Page_5' to the More Information Sidebox

Views: 1,846

Results 1 to 7 of 7
1 May 2013, 8:49 PM
#1
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

Issues with adding 'Page_5' to the More Information Sidebox

I've already added a php page named page_5.php and modified the more_information sidebox to display the page in the sidebox. The page_5 link shows up in the sidebox as I would like. The issue is that when you click on the page_5 link it goes to a page: /index.php?main_page=FILENAME_PAGE_5 which doesn't exist. It gives me a 404 error.

I've already used the About Us plugin to add an about us page to the information sidebox. I would like this new link to appear in the more_information sidebox.

I'm using Zen Cart version 1.5

Any help would be appreciated.

1 May 2013, 8:53 PM
#2
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

Re: Issues with adding 'Page_5' to the More Information Sidebox

btw, the line item Define Page 5 does not show up under Admin-->Configuration-->Define Page Status

1 May 2013, 9:44 PM
#3
stevesh avatar

stevesh

Black Belt

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

Re: Issues with adding 'Page_5' to the More Information Sidebox

How exactly did you create the new page ? FILENAME_PAGE_5 is a define name that hasn't been defined with a value. There is a mod in the plugins area that allows you to create extra More Information pages.

1 May 2013, 10:49 PM
#4
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

Re: Issues with adding 'Page_5' to the More Information Sidebox

I don't see that plugin under sideboxes, do you have a link to it?

For the Page_5 I added a line to the define('BOX_INFORMATION_PAGE_5', 'Page_5'); in the English file.

And I added the following to the includes/modules/sideboxes/more_information.php file:

if (DEFINE_PAGE_5_STATUS <= 1) {

$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_5) . '">' . BOX_INFORMATION_PAGE_5 . '</a>';

}

1 May 2013, 10:58 PM
#5
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Issues with adding 'Page_5' to the More Information Sidebox

In2Deep:

I've already added a php page named page_5.php and modified the more_information sidebox to display the page in the sidebox. The page_5 link shows up in the sidebox as I would like. The issue is that when you click on the page_5 link it goes to a page: /index.php?main_page=FILENAME_PAGE_5 which doesn't exist. It gives me a 404 error.

I've already used the About Us plugin to add an about us page to the information sidebox. I would like this new link to appear in the more_information sidebox.

I'm using Zen Cart version 1.5

Any help would be appreciated.

stevesh:

How exactly did you create the new page ? FILENAME_PAGE_5 is a define name that hasn't been defined with a value. There is a mod in the plugins area that allows you to create extra More Information pages.

In2Deep:

I don't see that plugin under sideboxes, do you have a link to it?

For the Page_5 I added a line to the define('BOX_INFORMATION_PAGE_5', 'Page_5'); in the English file.

And I added the following to the includes/modules/sideboxes/more_information.php file:

if (DEFINE_PAGE_5_STATUS <= 1) {

$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_5) . '">' . BOX_INFORMATION_PAGE_5 . '</a>';

}

Your defined page is not properly setup and is missing files which is why you are getting the error you are getting..

getting back to Steves earlier question (which you did not answer). HOW did you create your new defined page?

Your error indicates that you did not create it correctly as it is missing AT LEAST the required language files. The code you added to the "More Information" sidebox implies that you added an option to the defined pages status admin configuration settings to show or not show the new defined page (the** if **conditional statement you have wrapped around your defined page link)

As Steve indicated there is an add-on in the Plugins section of the site which will generate your defined pages for you.. It still works.. I use it all the time.. You should download it and let it do the heavy lifting and correctly create your defined page.. I am on a mobile device and searching let alone copying and pasting links is a real bear.. You will have to search the plugins section to find this add-on.. search for "define pages" and you should find easily it..

then the code you SHOULD use (unless you do plan to add the admin configuration options to turn your defined page on/off -- in which case your code is fine) should look like this:

$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_5) . '">' . BOX_INFORMATION_PAGE_5 . '</a>';

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

1 May 2013, 11:24 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Issues with adding 'Page_5' to the More Information Sidebox

I don't see that plugin under sideboxes
Add Pages to More Information Sidebox in the sidebox plugin area

http://www.zen-cart.com/downloads.php?do=file&id=787

The code is still valid for latest ZenCart v1.5.1

Zen-Venom Get Bitten

7 May 2013, 7:04 PM
#7
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

Re: Issues with adding 'Page_5' to the More Information Sidebox

Thanks everyone, I went ahead and used the module to add more pages.