Cool, thanks Ajeh. Not sure what went wrong but all fixed now. Jen
Cool, thanks Ajeh. Not sure what went wrong but all fixed now. Jen
Thanks for the update that you were able to get this working ...![]()
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: v1.5.1]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Actually Ajeh, it seems I spoke too soon. The page is now there, but when I add content via the Define Pages Editor or by editing the file and uploading via FTP, the content does not appear and also the page is missing the footer etc. Any more clues?
Next clue would be ... on the tpl_ file for this is probably an IF statement to check if the page is turned on ...
Example: for Page 3 the tpl_page_3_default.php has a line:
That DEFINE_PAGE_3_STATUS is in the Configuration table ...Code:<?php if (DEFINE_PAGE_3_STATUS >= 1 and DEFINE_PAGE_3_STATUS <= 2) { ?>
1 in the tpl_page_5_default.php does it use DEFINE_PAGE_5_STATUS in the IF ...
2 Where is your DEFINE_PAGE_5_STATUS defined ...
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: v1.5.1]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Thank you Linda, that did it!
Not for me - not quite sure what you mean. In tpl_page_5_default.php there is this line:
<?php if (DEFINE_PAGE_5_STATUS >= 1 and DEFINE_PAGE_5_STATUS <= 2) { ?>
then the div for the content.
In the corresponding page 3 file:
<?php if (DEFINE_PAGE_3_STATUS >= 1 and DEFINE_PAGE_3_STATUS <= 2) { ?>
but this is in the template_default folder, not my custom folder. Would that make a difference? Let's see <a minute later> ... no.
Hmm. More guidance much appreciated. Jen
In Zen Cart, the Page 3 uses the constant:
DEFINE_PAGE_3_STATUS
which is in the database configuration table where you can set the value for enabled or disabled by changing its value from 1 to 0 ...
If you want to use a Page 5 and it uses the constant:
DEFINE_PAGE_5_STATUS
somewhere, either in the database configuration table or in a php file, there needs to be something to say what its value is ...
If it is not defined, the value is 0 and 0 means OFF ...
Do a search, in the Developers Tool Kit in the bottom input box for:
DEFINE_PAGE_5_STATUS
select Catalog ... and click SEARCH ...
Do you see anything that looks like:
define('DEFINE_PAGE_5_STATUS', 0);
Or, enter that in the top input box:
DEFINE_PAGE_5_STATUS
and select NONE and click SEARCH ...
Does it get found?
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: v1.5.1]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Yes, it gets found...
/home/coolcoun/public_html/includes/modules/sideboxes/ocean_front/more_information.php
Line #26 : if (DEFINE_PAGE_5_STATUS <= 1) {
/home/coolcoun/public_html/includes/templates/ocean_front/templates/tpl_page_5_default.php
Line #26 : <?php if (DEFINE_PAGE_5_STATUS >= 1 and DEFINE_PAGE_5_STATUS <= 2) { ?>
/home/coolcoun/public_html/includes/templates/ocean_front/templates/tpl_site_map_default.php
Line #107 : <?php if (DEFINE_PAGE_5_STATUS <= '1') { ?>
/home/coolcoun/public_html/includes/templates/template_default/templates/tpl_page_5_default.php
Line #26 : <?php if (DEFINE_PAGE_5_STATUS >= 1 and DEFINE_PAGE_5_STATUS <= 2) { ?>
All of those are conditions for when to run Page 5 ... but none of them turn on Page 5 ...
Try this command in the Tools ... Install SQL Patches:
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 Page 5', 'DEFINE_PAGE_5_STATUS', '1', 'Enable the Defined Page 5 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\'),');
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: v1.5.1]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
OK, I tried that but "Error ERROR: Cannot insert configuration_key "DEFINE_PAGE_5_STATUS" because it already exists"
Any other ideas? Much obliged...
Bookmarks