Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2007
    Posts
    16
    Plugin Contributions
    0

    Default How to add some pages in Information slide-box

    Hi all,

    Please tell me how can I add some pages in Information slide-box ???

    ex:
    * Shipping & Returns
    * Privacy Notice
    * Conditions of Use
    * Contact Us
    * Site Map
    * Gift Certificate FAQ
    * Discount Coupons
    * Newsletter Unsubscribe
    * Shipping & Returns
    * Test page 1
    * Test page 2
    * Test page 3
    .......


    You can see what I did

    At First

    I going to page information.php in /includes/modules/sideboxes
    At line:
    Code:
      if (DEFINE_CONDITIONS_STATUS <= 1) {
        $information[] = '<a href="' . zen_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>';
      }
    I copy and paste one edited below:

    Code:
     
     if (DEFINE_TEST1_STATUS <= 1) {
        $information[] = '<a href="' . zen_href_link(FILENAME_TEST1) . '">' . BOX_INFORMATION_TEST1 . '</a>';
      }
    save and upload it back.
    --------------------

    Second step:


    In page english.php in /includes/languages
    At line:
    Code:
    // information box text in sideboxes/information.php
      define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');
    I copy and paste one edited below:
    Code:
    // information box text in sideboxes/information.php
      define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');
      define('BOX_INFORMATION_TEST1', 'Test page 1');
    save and upload it back.
    --------------------

    Third step:

    I copy define_conditions.php and paste one with new name is define_test1.php in /includes/languages/english/html_includes

    --------------------

    Fourth step:
    I copy header_php.php in /includes/modules/pages/conditions and paste one at
    /includes/modules/pages/test1

    In this file, I has replaced:
    Code:
    // include template specific file name defines
    $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_CONDITIONS, 'false');
    after replaced:
    Code:
    // include template specific file name defines
    $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_TEST1, 'false');
    --------------------

    Fift step:
    I copy conditions.php and paste one with new name is test1.php in /includes/languages/english

    At line:
    Code:
    define('NAVBAR_TITLE', 'Conditions of Use');
    define('HEADING_TITLE', 'Conditions of Use');
    
    define('TEXT_INFORMATION', 'Your Conditions of Use information should be on this page.');
    ?>
    Replace to:
    Code:
    define('NAVBAR_TITLE', 'Test page 1');
    define('HEADING_TITLE', 'Test page 1');
    
    define('TEXT_INFORMATION', 'Your Test page 1 information should be on this page.');
    ?>
    =====================================

    Finally, I saw a new link Test page 1 in Information slide-box. But when I click this link, it's doesn't work.
    Example:

    What's wrong with me
    Last edited by Necro; 11 Oct 2007 at 09:35 PM.

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

    Default Re: How to add some pages in Information slide-box

    You made up this constant to use for the filename:
    FILENAME_TEST1

    Did you define that constant somewhere so that php knows what to translate it to?
    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: v1.5.5]
    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!

  3. #3
    Join Date
    Sep 2007
    Posts
    16
    Plugin Contributions
    0

    Default Re: How to add some pages in Information slide-box

    You made up this constant to use for the filename:
    FILENAME_TEST1

    Did you define that constant somewhere so that php knows what to translate it to?
    Hi Ajeh,

    I don't know how to do it... Please show what I need to make this page working ok?

    Thanks for your reply,

    Necro

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

    Default Re: How to add some pages in Information slide-box

    Peek at ... but don't touch ... the file:
    /includes/filenames.php

    See how all the filenames have definitions?

    Now, using the special directory:
    /includes/extra_datafiles

    add your own file such as:
    mycustomfiles.php

    and include the code:
    PHP Code:
    <?php
    define
    ('FILENAME_TEST1''whateveryourfilenameishere');
    ?>
    Now that will translate to your filename similar to page_2, page_3, etc.
    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: v1.5.5]
    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!

  5. #5
    Join Date
    Sep 2007
    Posts
    16
    Plugin Contributions
    0

    Default Re: How to add some pages in Information slide-box

    Hello Ajeh,

    Many thanks for your reply,

    I didn't add /includes/extra_datafiles/mycustomfiles.php. I had try, and saw the result. <~~ I don't like this method because when I do it, my site got some errors.

    I using define in /includes/filenames.php.
    Added two line:
    Code:
    define('FILENAME_DEFINE_TEST1', 'define_test1');
    define('FILENAME_TEST1', 'test1');
    After that I click the link Test page 1 on Information slide-box,
    Yeah, I see what I defined in support.php, NAVBAR_TITLE, HEADING_TITLE.

    But I don't know why file define_support.php doesn't work. I just see the navbar title, head title, back button and nothing else.

    Please try to help me one again...

    Necro

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

    Default Re: How to add some pages in Information slide-box

    The errors were cause by typos or space(s) or blank line(s) before the opening php tag <?php or after the closing php tag ?> which will produce errors ...

    You cannot see the define page due to:

    1 all define pages must have a blank file in the:
    /includes/languages/english/html_includes

    or there is nothing to override ...

    2 You have not defined the status for this page

    Most likely you cloned an existing file and that has a status in it such as for page_2 you would see:
    PHP Code:
    <?php if (DEFINE_PAGE_2_STATUS >= and DEFINE_PAGE_2_STATUS <= 2) { ?>
    <div id="pageTwoMainContent" class="content">
    <?php
    /**
     * load the html_define for the page_2 default
     */
      
    require($define_page);
    ?>
    </div>
    <?php ?>
    If there isn't a status in your file and you are using this define status, then the value is 0 and 0 means OFF ...
    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: v1.5.5]
    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!

 

 

Similar Threads

  1. How do I add additional pages to more information side box?
    By marketimpact in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Sep 2010, 11:59 AM
  2. Moved Define Pages to Information Box Now Some Issues
    By pheniks in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 2 May 2008, 11:46 PM
  3. How to sort order link in Information slide-box???
    By Necro in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Oct 2007, 10:41 AM
  4. Add pages to More Information Box?
    By centrix in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Apr 2007, 07:33 PM
  5. Add EZ-Pages to Information box?
    By Danielle in forum Basic Configuration
    Replies: 2
    Last Post: 7 Dec 2006, 10:28 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR