Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: adding multiple pages to define page editor

    Admin->Configuration->My Store->Missing Page Check ... turn it off so it can show you the error it's encountering instead of doing the user-friendly thing and redirecting to the home page.
    Likely the page folder doesn't exist under /includes/modules/pages/
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #2
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: adding multiple pages to define page editor

    Made changes to my store.

  3. #3
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: adding multiple pages to define page editor

    Quote Originally Posted by DrByte View Post
    Admin->Configuration->My Store->Missing Page Check ... turn it off so it can show you the error it's encountering instead of doing the user-friendly thing and redirecting to the home page.
    Likely the page folder doesn't exist under /includes/modules/pages/

    Made the change as requested.

    FYI I also created a page 6 but for some reason I get 500 error.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: adding multiple pages to define page editor

    Page 5 for example only draws part of the screen, and then halts ... typical blank-page scenario, caused by a PHP error: https://www.zen-cart.com/tutorials/index.php?article=82

    And, for 500 errors, see your server's system logs: https://www.zen-cart.com/tutorials/index.php?article=63
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: adding multiple pages to define page editor

    Quote Originally Posted by DrByte View Post
    Page 5 for example only draws part of the screen, and then halts ... typical blank-page scenario, caused by a PHP error: https://www.zen-cart.com/tutorials/index.php?article=82
    should I be adding the extra pages to mytemplate/templates or template_default/templates or both?

  6. #6
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: adding multiple pages to define page editor

    here is the text from tpl_page_2_default.php in template_default/templates.

    <?php
    /**
    * tpl_page_2_default.php
    *
    * @package templateSystem
    * @copyright Copyright 2003-2005 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: tpl_page_2_default.php 3464 2006-04-19 00:07:26Z ajeh $
    */
    ?>
    <div class="centerColumn" id="pageTwo">
    <h1 id="pageTwoHeading"><?php echo HEADING_TITLE; ?></h1>
    <?php if (DEFINE_PAGE_2_STATUS >= 1 and DEFINE_PAGE_2_STATUS <= 2) { ?>
    <div id="pageTwoMainContent" class="content">
    <?php
    /**
    * load the html_define for the page_2 default
    */
    require($define_page);
    ?>
    </div>
    <?php } ?>
    <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>
    </div>

    Do all of the RED numbers get incremented to whatever page I am creating?

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: adding multiple pages to define page editor

    Yes, they do, or else you will have constants and element ids controlling pages they should not affect, and not able to distinguish between different pages.

  8. #8
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: adding multiple pages to define page editor

    Im not really up on div tags. Are all of those div tags arbitrary names or are they defined somewhere else?

 

 

Similar Threads

  1. adding images in define pages editor
    By discoverytdi in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 6 Jul 2011, 10:12 PM
  2. Adding Images to Define Pages Editor Pages
    By nickymcn in forum Managing Customers and Orders
    Replies: 2
    Last Post: 31 Oct 2007, 05:07 AM
  3. Define Pages Editor & Adding External Links
    By stormysar in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Jun 2007, 02:05 AM
  4. Adding pictures in Define Pages Editor
    By jemenvy in forum Customization from the Admin
    Replies: 1
    Last Post: 5 Apr 2007, 08:52 PM

Posting Permissions

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