Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2009
    Location
    New York, NY
    Posts
    45
    Plugin Contributions
    0

    Default New defined page in html_includes not showing

    I followed a tutorial here on creating new defined pages: http://www.zen-cart.com/wiki/index.p...ting_new_pages

    Everything is working EXCEPT for the body of the page which is contained in the html_includes file under define_why_zencart.php. I've look over and over each 4 components of the defined page files.

    In the tpl_why_zencart_default.php this line:

    PHP Code:
    <?php
    /**
     * load the html_define for the why_zencart default
     */
      
    require($define_page);
    ?>
    is supposed to be the line to call the defined page.

    In includes/extra_datafiles/why_zencart.php has this code only:

    PHP Code:
    <?php 
    define
    (FILENAME_WHY_ZENCART'why_zencart');
    ?>
    What am I missing? I think everything is configured correctly because the headings, titles, tpl, is where it's supposed to be except for the define page.

    The page is here: http://diva-designz.net/templates/?m...ge=why_zencart

  2. #2
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    789
    Plugin Contributions
    7

    Default Re: New defined page in html_includes not showing

    You are close look here includes/languages/english/html_includes/YOUR_TEMPLATE/define_why_zencart.php

    Also this app is great for making define pages Define Pages Generator found under Free Software Addons

    Skip
    • 446F63746F722057686F •

  3. #3
    Join Date
    Dec 2009
    Location
    New York, NY
    Posts
    45
    Plugin Contributions
    0

    Default Re: New defined page in html_includes not showing

    Thank you for your prompt response!

    I forgot to mention that I have it in the includes/languages/english/html_includes/my_template/define_why_zencart.php AND in html_includes/define_why_zencart.php . I will check out the add-on however I would also still like to figure out what's going on because I know I'm very close!

  4. #4
    Join Date
    Dec 2009
    Location
    New York, NY
    Posts
    45
    Plugin Contributions
    0

    Default Re: New defined page in html_includes not showing

    Okay, I figured it out. For people who are trying to manually create their own define page here's what happened:

    In the tpl_pagename_default.php, if you duplicated an already established defined page the code will be:

    PHP Code:
    <?php if (DEFINE_PAGE_2_STATUS >= 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 ?>
    You have to strip 2 lines of php codes to look like this:

    PHP Code:
    <div id="pageTwoMainContent" class="content">
    <?php
    /**
     * load the html_define for the page_2 default
     */
      
    require($define_page);
    ?>
    </div>

  5. #5
    Join Date
    Jan 2010
    Posts
    1
    Plugin Contributions
    0

    Default Re: New defined page in html_includes not showing

    Hi,

    I'm also having touble with this. My new define page will not present the text within the mainContent div. Everything else is presented, such as name, navbar heading etc. The history go-back button etc. But not the maincontent.

    The page is not a dubblicate of another page, however, I have tried to follow your example, as stated above. No luck.

    Further more I have follow the instruction from the adding ABOUT_US page here on the zen-cart Tutorials.

    I have in the define_pagename only one line of code:
    PHP Code:
    <?php include 'conditions/pagename.htm'?>
    This line work on another page, the shipping_info and conditions.

    Any one that might have an idea?

    //JE

 

 

Similar Threads

  1. Replies: 2
    Last Post: 15 Mar 2014, 09:42 PM
  2. Defined text, not showing on web page
    By Mr Griswald in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 7 Apr 2011, 11:16 PM
  3. Page 4 Not showing in More Information but It is Defined
    By Jeffey in forum Basic Configuration
    Replies: 5
    Last Post: 12 May 2007, 06:12 AM
  4. Defined Page Not Showing in Information Sidebox
    By kjloh in forum Basic Configuration
    Replies: 0
    Last Post: 1 Jun 2006, 08:07 AM

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