Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2008
    Location
    Kent, UK
    Posts
    42
    Plugin Contributions
    0

    Default How do I merge the sideboxes for 'Information' and 'More Information'

    Hi, I have searched the forum for the answer, but with no luck.

    What I want to do is add extra page 2, to the 'Information' sidebox, as I cant see the point having a seperate sidebox purely for one link.

    I have tried tinkering with the code but with no luck!!

    Can anybody help?

    Jym
    TheVDM - Personal site
    Linux Distro UK - Reviving
    Books 'n' DVDs - Work in progress

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

    Default Re: How do I merge the sideboxes for 'Information' and 'More Information'

    Keep in mind that one box is using:
    $more_information[]

    and the other box is using:
    $information[]

    Each box has its own, which you can change to match in your overrides ...
    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!

  3. #3
    Join Date
    Jul 2008
    Location
    Kent, UK
    Posts
    42
    Plugin Contributions
    0

    Default Re: How do I merge the sideboxes for 'Information' and 'More Information'

    Hi Ajeh, many thanks for your help... that answered the problems I was having with just copy/pasting the code...

    For those of you who want to know how to add the 'page_2' etc... to the Information section instead of More Information.

    Open /Shop/includes/modules/sideboxes/information.php in your favorite editor and add the following code

    Code:
      // BOF add Page_2 - 4 to Information
      
        if (DEFINE_PAGE_2_STATUS <= 1) {
    
        $information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>';
    
      }
      
        if (DEFINE_PAGE_3_STATUS <= 1) {
    
        $information[] = '<a href="' . zen_href_link(FILENAME_PAGE_3) . '">' . BOX_INFORMATION_PAGE_3 . '</a>';
    
      }
    
      if (DEFINE_PAGE_4_STATUS <= 1) {
    
        $information[] = '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</a>';
    
      }
    
    
      // EOF add Page_2 - 4 to Information
    I added this code in at line 73 (just after the Site Map, but it can go between any part you want!!) and just a bit of general playing around if you want to split the extra pages up.

    Hope this helps somebody one day :)

    Jym
    TheVDM - Personal site
    Linux Distro UK - Reviving
    Books 'n' DVDs - Work in progress

 

 

Similar Threads

  1. combining Information & More Information Sideboxes
    By mek113 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 4 Jan 2012, 06:52 PM
  2. how to move link from more information to information side box?
    By mrobson86 in forum General Questions
    Replies: 1
    Last Post: 21 Sep 2011, 09:01 PM
  3. How to add more pages into "Information"? (sideboxes/information.php)
    By n_t_r in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 27 May 2011, 01:50 PM
  4. How to combine items from Information & More Information side boxes
    By jackryan in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Dec 2008, 06:19 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