Yes, somewhere you need to have that constant:
DEFINE_PAGE_5_STATUS
actually defined or its value is 0 ...
On the regular pages, we have that stored in the configuration table for the define pages ...
Yes, somewhere you need to have that constant:
DEFINE_PAGE_5_STATUS
actually defined or its value is 0 ...
On the regular pages, we have that stored in the configuration table for the define pages ...
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!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Aha...
light went on. I need to add it to Define Page Status in admin and then turn it 'on'. Can you tell me which file to edit to add it as its not appearing as a choice right now?
Zen Cart does this in the configuration table ... for example Page 4 uses DEFINE_PAGE_4_STATUS and that is added to the database with the INSERT of:
You could customize that and make the 4s be 5s and change the '25, '84' to 25', 85' and you should then find it in the Configuration ... Define Page Status ... with all of the other settings ...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 Page 4', 'DEFINE_PAGE_4_STATUS', '1', 'Enable the Defined Page 4 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', '84', 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!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
So each extra page I add, I can edit that insert as necessary and then copy/paste it to the text box on
admin/sqlpatch.php
to add the page to the database and thus the config pages?
And again, thanks so much for your super swift reply to my inital post...
:-)
Yeps ... as easy as that ...
Just edit those settings and and increment everything appropriately ...
NOTE: Make sure that there is a semi-colon on the end of the line when using the Insert SQL Patches ...
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!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
That worked like a charm and the page is now active.
Just one small problem. The text content on the page looks like it is pointing to the text content of the page 4 instead of page 5.
I'm guessing that the include I just edited is pointing it the define_page_4 instead of define_page_5, right?
I changed the 84 to an 85, should I edit again to an 86?
Browse the configuration table in phpMyAdmin and look at the configuration_key for anything that starts with DEFINE_PAGE and see what you have in there ...
If all is well ... make sure that your tpl_ is calling the page 5 and not page 4 ...
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!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Its pointing to the right pages from what I can tell. How do I access the configuration table in phpMyAdmin to look at it?
You would go to phpMyAdmin on your site or your Control Panel and find your access to phpMyAdmin or contact your hosting site and ask where it is hiding ... then find your database and browse your configuration table ...
As these things are added in order you can either go to the end of the file, the most likely place it will be when sorted on the configuration_id or do a search on a Like % ... % for:
DEFINE_PAGE
and you should see them all ...
I am surprised, however, that unless you have a typo on the one you just added that it could have been added as a duplicate ...
Also, you might do a search with Tools ... Developers Tool Kit ... in the bottom input box for:
DEFINE_PAGE_5_STATUS
and see what files are using it ... then do a search on:
DEFINE_PAGE_4_STATUS
to see what files are using that ... and make sure everyone is matching up in the right groups ...
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!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Wooo hoooo I found it!
I had modules/pages/page_5/header_php.php pointing to page 4 instead of page 5.
whew...
thanks again for the assist.
Have a great weekend,
Kristy