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
Views: 15,593
New Zenner
Never mind. I forgot to add
define('FILENAME_DEFINE_PAGE_5', 'define_page_5');
to filenames.php
Black Belt
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.
New Zenner
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
New Zenner
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
Tell staff why this post should be reviewed.