Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Sep 2007
    Location
    Far South Coast, NSW, Australia
    Posts
    436
    Plugin Contributions
    0

    Default More Information page not working

    Hi,
    I added extra pages under More Information using the add-on a while back and all was well. I only used page 5 at that point.
    I just tried to use another - page 6. I changed the name in english.php, and turned it on in Admin/Define page status, and added content using Tools/Define Pages Editor. But when I click on the link in the box, I get "Page Not Found".
    The link is "Promotional Products".
    http://www.coolcountryhats.com.au/

    I also noticed that none of the More Information pages appear in the site map.

    Thanks...

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

    Default Re: More Information page not working

    You have messed something up

    Note url

    Code:
    main_page=page_5
    
    main_page=FILENAME_PAGE_6

  3. #3
    Join Date
    Sep 2007
    Location
    Far South Coast, NSW, Australia
    Posts
    436
    Plugin Contributions
    0

    Default Re: More Information page not working

    Hmm, you're right. But which file do I need to correct?

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

    Default Re: More Information page not working

    which file do I need to correct
    Use developers tool kit and search for "FILENAME_PAGE_6" case sensitive

  5. #5
    Join Date
    Sep 2007
    Location
    Far South Coast, NSW, Australia
    Posts
    436
    Plugin Contributions
    0

    Default Re: More Information page not working

    in includes/modules/sideboxes/<template>/more_information.php all looks well:
    if (DEFINE_PAGE_2_STATUS <= 1) {
    $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>';
    }
    if (DEFINE_PAGE_3_STATUS <= 1) {
    $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_3) . '">' . BOX_INFORMATION_PAGE_3 . '</a>';
    }
    if (DEFINE_PAGE_4_STATUS <= 1) {
    $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</a>';
    }
    if (DEFINE_PAGE_5_STATUS <= 1) {
    $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_5) . '">' . BOX_INFORMATION_PAGE_5 . '</a>';
    }
    if (DEFINE_PAGE_6_STATUS <= 1) {
    $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_6) . '">' . BOX_INFORMATION_PAGE_6 . '</a>';
    }
    if (DEFINE_PAGE_7_STATUS <= 1) {
    $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_7) . '">' . BOX_INFORMATION_PAGE_7 . '</a>';
    }

    The syntax for page 6 looks the same as the others.

    Also in includes/templates/<template>/templates/tpl_site_map_default.php:
    <?php if (DEFINE_PAGE_2_STATUS <= '1') { ?>
    <li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>'; ?></li>
    <?php } ?>
    <?php if (DEFINE_PAGE_3_STATUS <= '1') { ?>
    <li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_3) . '">' . BOX_INFORMATION_PAGE_3 . '</a>'; ?></li>
    <?php } ?>
    <?php if (DEFINE_PAGE_4_STATUS <= '1') { ?>
    <li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</a>'; ?></li>
    <?php } ?>
    <?php if (DEFINE_PAGE_5_STATUS <= '1') { ?>
    <li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_5) . '">' . BOX_INFORMATION_PAGE_5 . '</a>'; ?></li>
    <?php } ?>
    <?php if (DEFINE_PAGE_6_STATUS <= '1') { ?>
    <li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_6) . '">' . BOX_INFORMATION_PAGE_6 . '</a>'; ?></li>
    <?php } ?>
    <?php if (DEFINE_PAGE_7_STATUS <= '1') { ?>
    <li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_7) . '">' . BOX_INFORMATION_PAGE_7 . '</a>'; ?></li>
    <?php } ?>

    Nothing amiss AFAICS.

    Any help appreciated...

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: More Information page not working

    You are missing the specific define for the:
    FILENAME_PAGE_6

    Do a search in the Tools ... Developers Tool Kit ... for:
    FILENAME_PAGE_4

    and then for:
    FILENAME_PAGE_7

    Notice how each has a specific define statement for these pages ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Sep 2007
    Location
    Far South Coast, NSW, Australia
    Posts
    436
    Plugin Contributions
    0

    Default Re: More Information page not working

    Sorry Linda, can you tell me what a specific define statement looks like? I did that search and each one seems to throw up a different list of files. Getting more and more confused.

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: More Information page not working

    The original define pages for Page 2, 3 and 4 have various components ...

    In the database there are the settings for:
    DEFINE_PAGE_2_STATUS
    DEFINE_PAGE_3_STATUS
    DEFINE_PAGE_4_STATUS

    The filenames are the defines of the pages filenames:
    define('FILENAME_PAGE_2', 'page_2');
    define('FILENAME_PAGE_3', 'page_3');
    define('FILENAME_PAGE_4', 'page_4');

    The filenames for the pages to pull into the define pages are the filenames:
    define('FILENAME_DEFINE_PAGE_2', 'define_page_2');
    define('FILENAME_DEFINE_PAGE_3', 'define_page_3');
    define('FILENAME_DEFINE_PAGE_4', 'define_page_4');

    There are various other components to this but these will get you started ...

    For your missing page 6, you will see in the URL when you try to go to that page, one of the constants that has not been defined:
    FILENAME_PAGE_6

    you will also notice that if you change that in the url to:
    page_6

    that the page comes up ...

    Look how your page 5 works ...

    Now do a search in the Developers Tool Kit for:
    DEFINE_PAGE_5_STATUS
    FILE_NAME_PAGE_5
    FILENAME_DEFINE_PAGE_5

    these would be a good clue where you are missing things for Page 6 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #9
    Join Date
    Sep 2007
    Location
    Far South Coast, NSW, Australia
    Posts
    436
    Plugin Contributions
    0

    Default Re: More Information page not working

    OK, so now I'm feeling really dumb or blind or something because I did a search for those 3 things, checked all the files that came up, and looked in the corresponding page 6 files (or the page 6 lines of code in those files) and they all looked exactly the same. Tearing my hair out here...

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: More Information page not working

    Search for these, via Developers Tool Kit and what do you get:
    DEFINE_PAGE_6_STATUS
    FILE_NAME_PAGE_6
    FILENAME_DEFINE_PAGE_6

    on each one of these, as in everything that comes up in the Catalog ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 6
    Last Post: 24 Oct 2015, 03:18 PM
  2. Page 3 & Page 4 Missing From More Information Sidebox
    By andoverit in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Jul 2010, 12:20 PM
  3. Page 4 Not showing in More Information but It is Defined
    By Jeffey in forum Basic Configuration
    Replies: 5
    Last Post: 12 May 2007, 06:12 AM
  4. More information links not working
    By high2K in forum General Questions
    Replies: 5
    Last Post: 5 Feb 2007, 02:50 PM

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