
Originally Posted by
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.

Originally Posted by
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.

Originally Posted by
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:
Code:
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_5) . '">' . BOX_INFORMATION_PAGE_5 . '</a>';