Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Edit "More Information" sidebox pages?

Edit "More Information" sidebox pages?

Views: 15,593

Results 21 to 24 of 24
5 May 2011, 12:35 PM
#21
jorger avatar

jorger

New Zenner

Join Date:
Aug 2010
Posts:
53
Plugin Contributions:
0

Edit "More Information" sidebox pages?

Never mind. I forgot to add

define('FILENAME_DEFINE_PAGE_5', 'define_page_5');

to filenames.php

5 May 2011, 1:37 PM
#22
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Edit "More Information" sidebox pages?

Anyone who wants to add more define pages can download the About Us mod from Free Addons. It has all of the 8 files and edits you need to correctly make a define page.

8 May 2016, 2:38 PM
#23
jinja avatar

jinja

New Zenner

Join Date:
May 2016
Location:
tokyo,japan
Posts:
2
Plugin Contributions:
0

Re: Edit "More Information" sidebox pages?

ZCguy:

I am trying to add another page within my "more information" sidebox. I have added the link but it reads "main_page=FILENAME_PAGE_5".

Not sure why this is happening. Anyone know how i can properly add an additional page to that sidebox?:frusty::frusty::frusty:

dude, i had the same problem.
in order to define FILENAME_PAGE_5, edit
$zen/include/filename.php

define('FILENAME_PAGE_5', 'page_5');

there you have it.

:D

8 May 2016, 2:45 PM
#24
jinja avatar

jinja

New Zenner

Join Date:
May 2016
Location:
tokyo,japan
Posts:
2
Plugin Contributions:
0

Re: Edit "More Information" sidebox pages?

sped1530:

Did you ever find the how do add page 4, 5, ... I've looked everywhere but still can not find the answer.

well, create a new page called "my1" following the wiki,
https://www.zen-cart.com/wiki/index.php/Creating_new_pages

and then edit /include/languages/english.php

define('BOX_INFORMATION_MY1', 'my1');

if you want the new page to appear in the more info sideboxes, edit

/include/modules/sideboxes/more_information.php

if (DEFINE_MY1_STATUS <= 0) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_MY1) . '">' . BOX_INFORMATION_MY1 . '</a>';
}

dont forget to also edit filename.php to link the page name:

/includes/filename.php

define('FILENAME_MY1', 'my1');

hope you got it.

:D