Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How do I merge the sideboxes for 'Information' and 'More Information'

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

Locked

Views: 1,572

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
19 Jul 2008, 6:02 PM
#1
val_ent avatar

val_ent

New Zenner

Join Date:
Jul 2008
Location:
Kent, UK
Posts:
42
Plugin Contributions:
0

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

19 Jul 2008, 6:55 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

22 Jul 2008, 9:59 AM
#3
val_ent avatar

val_ent

New Zenner

Join Date:
Jul 2008
Location:
Kent, UK
Posts:
42
Plugin Contributions:
0

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

  // 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