Forums / Templates, Stylesheets, Page Layout / New defined page in html_includes not showing

New defined page in html_includes not showing

Locked

Views: 1,825

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
10 Dec 2009, 8:58 PM
#1
sheryll avatar

sheryll

New Zenner

Join Date:
Dec 2009
Location:
New York, NY
Posts:
45
Plugin Contributions:
0

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.php/Creating_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
/**
 * 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 
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/?main_page=why_zencart

10 Dec 2009, 9:10 PM
#2
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

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 •

10 Dec 2009, 9:15 PM
#3
sheryll avatar

sheryll

New Zenner

Join Date:
Dec 2009
Location:
New York, NY
Posts:
45
Plugin Contributions:
0

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!

10 Dec 2009, 9:58 PM
#4
sheryll avatar

sheryll

New Zenner

Join Date:
Dec 2009
Location:
New York, NY
Posts:
45
Plugin Contributions:
0

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 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 } ?>

You have to strip 2 lines of php codes to look like this:

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

:P

17 Jan 2010, 3:33 PM
#5
hayabuza10 avatar

hayabuza10

New Zenner

Join Date:
Jan 2010
Posts:
1
Plugin Contributions:
0

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 include 'conditions/pagename.htm'; ?>

This line work on another page, the shipping_info and conditions.

Any one that might have an idea?

//JE