I am trying to add two new pages to my Information Sidebox. I've read many messages about this, and did some experimenting, but can't get this to work.
I noticed an add-on module to automatically add new pages to More_information, but I wanted to do this manually to learn how the pageswork.
I entered this SQL patch via the admin area: (taken from the discussion of the add-on mod to add pages to More Info)
Code:
insert into configuration (configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, last_modified, date_added,
use_function, set_function) values ('Define Site News', 'DEFINE_SITE_NEWS_STATUS', '1', 'Enable
the Defined Site News Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define
Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', '25', '85',
now(), now(), NULL, 'zen_cfg_select_option(array(\'0\', \'1\', \'2\', \'3\'),');
insert into configuration (configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, last_modified, date_added,
use_function, set_function) values ('Define Feedback', 'DEFINE_FEEDBACK_STATUS', '1', 'Enable
the Defined Feedback Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define
Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', '25', '85',
now(), now(), NULL, 'zen_cfg_select_option(array(\'0\', \'1\', \'2\', \'3\'),');
The options for setting the two pages then appeared in Admin, under Config.
I set both pages to 1. (What do the other non-zero options do?!)
Next, I added the following to my information.php file:
Code:
if (DEFINE_SITE_NEWS_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_SITE_NEWS) . '">' . BOX_INFORMATION_SITE_NEWS . '</a>';
}
if (DEFINE_FEEDBACK_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_FEEDBACK) . '">' . BOX_INFORMATION_FEEDBACK . '</a>';
Next, English.Php file:
Code:
define('BOX_INFORMATION_FEEDBACK', 'Feedback!');
define('BOX_INFORMATION_SITE_NEWS', 'Site News');
To filenames.php, I added:
Code:
define('FILENAME_DEFINE_SITE_NEWS', 'define_site_news');
define('FILENAME_DEFINE_FEEDBACK', 'define_feedback');
define('FILENAME_SITE_NEWS', 'site_news');
define('FILENAME_FEEDBACK', 'feedback');
(did I actually need BOTH? ( I think so; One does the 'nav' part, the other the actual HTML)
Next, I placed files into
includes/languages/english
feedback.php
site_news.php
Each looks like this:
Code:
<?php
define('NAVBAR_TITLE', 'Feedback');
define('HEADING_TITLE', 'Feedback');
define('TEXT_INFORMATION', 'Page 3 text goes here.');
?>
And in includes/languages/english/html includes/custom_template/
I placed the actual HTML file, error-free and containing nothing but straight html.
What I get is....
The two names appear in the Information sidebox.
They are clickable.
When I click on them, though, the pages that TRY loads are:
.....cart/index.php?main_page=feedback
.....cart/index.php?main_page=site_news
and I am taken to the internal cart 404 error page.
I have tried solving this with the sole help of messages, wikis, and other zen-cart info that's on the site, but I cannot figure out what's wrong.
Any help would be greatly appreciated.
PS---I saved the filenames correctly on the server with regard to case-sensitivity...
Bookmarks