Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2011
    Posts
    214
    Plugin Contributions
    0

    Default 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.
    Last edited by In2Deep; 1 May 2013 at 09:51 PM.

  2. #2
    Join Date
    Jul 2011
    Posts
    214
    Plugin Contributions
    0

    Default 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

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default 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.

  4. #4
    Join Date
    Jul 2011
    Posts
    214
    Plugin Contributions
    0

    Default 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>';

    }

  5. #5
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

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

    Quote Originally Posted by In2Deep View Post
    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.
    Quote Originally Posted by stevesh View Post
    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.
    Quote Originally Posted by In2Deep View Post
    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>';
    Last edited by DivaVocals; 2 May 2013 at 12:02 AM.
    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.

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default 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

  7. #7
    Join Date
    Jul 2011
    Posts
    214
    Plugin Contributions
    0

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

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

 

 

Similar Threads

  1. add page_5 for MORE INFORMATION
    By george_usa in forum Customization from the Admin
    Replies: 2
    Last Post: 15 Nov 2010, 01:02 AM
  2. More Information. Added Page_5,6,7 but content is empty
    By bax79 in forum Basic Configuration
    Replies: 8
    Last Post: 22 Apr 2009, 06:44 AM
  3. Additional Links to the 'More Information' Sidebox
    By gbnet in forum Basic Configuration
    Replies: 4
    Last Post: 17 Jan 2007, 05:46 AM
  4. Adding a new page 5 in 'more information sidebox?
    By pilot in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 14 Aug 2006, 08:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg