Page 8 of 10 FirstFirst ... 678910 LastLast
Results 71 to 80 of 100
  1. #71
    Join Date
    Sep 2007
    Location
    Far South Coast, NSW, Australia
    Posts
    333
    Plugin Contributions
    0

    Default Re: Add Pages to More Information Sidebox

    Cool, thanks Ajeh. Not sure what went wrong but all fixed now. Jen

  2. #72
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,886
    Plugin Contributions
    6

    Default Re: Add Pages to More Information Sidebox

    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 ...

  3. #73
    Join Date
    Sep 2007
    Location
    Far South Coast, NSW, Australia
    Posts
    333
    Plugin Contributions
    0

    Default Re: Add Pages to More Information Sidebox

    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?

  4. #74
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,886
    Plugin Contributions
    6

    Default Re: Add Pages to More Information Sidebox

    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:
    Code:
    <?php if (DEFINE_PAGE_3_STATUS >= 1 and DEFINE_PAGE_3_STATUS <= 2) { ?>
    That DEFINE_PAGE_3_STATUS is in the Configuration table ...

    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 ...

  5. #75
    Join Date
    Aug 2010
    Posts
    3
    Plugin Contributions
    0

    Default Re: Add Pages to More Information Sidebox

    Thank you Linda, that did it!

  6. #76
    Join Date
    Sep 2007
    Location
    Far South Coast, NSW, Australia
    Posts
    333
    Plugin Contributions
    0

    Default Re: Add Pages to More Information Sidebox

    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

  7. #77
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,886
    Plugin Contributions
    6

    Default Re: Add Pages to More Information Sidebox

    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 ...

  8. #78
    Join Date
    Sep 2007
    Location
    Far South Coast, NSW, Australia
    Posts
    333
    Plugin Contributions
    0

    Default Re: Add Pages to More Information Sidebox

    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) { ?>

  9. #79
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,886
    Plugin Contributions
    6

    Default Re: Add Pages to More Information Sidebox

    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 ...

  10. #80
    Join Date
    Sep 2007
    Location
    Far South Coast, NSW, Australia
    Posts
    333
    Plugin Contributions
    0

    Default Re: Add Pages to More Information Sidebox

    OK, I tried that but "Error ERROR: Cannot insert configuration_key "DEFINE_PAGE_5_STATUS" because it already exists"
    Any other ideas? Much obliged...

 

 
Page 8 of 10 FirstFirst ... 678910 LastLast

Similar Threads

  1. ez-pages on information sidebox
    By NullMind in forum Basic Configuration
    Replies: 1
    Last Post: 1 Oct 2007, 11:11 PM
  2. Adding pages to Information sidebox
    By nkostaki in forum Customization from the Admin
    Replies: 15
    Last Post: 17 Nov 2006, 03:08 AM
  3. Information sidebox pages
    By east coast in forum Basic Configuration
    Replies: 1
    Last Post: 16 May 2006, 01:07 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •