Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Need Main Page Text on Product Pages

Need Main Page Text on Product Pages

Locked

Views: 587

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
19 Sep 2010, 5:10 AM
#1
paul69 avatar

paul69

Zen Follower

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

Need Main Page Text on Product Pages

Ok I've played with some code and still having trouble trying to get this to work. What I need is the main page text (from the define pages editor) to show on the product info pages. I really need this to work somehow. I've tried inserting the similar code after the bread crumbs with no luck. Any ideas?

19 Sep 2010, 5:55 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Need Main Page Text on Product Pages

What I need is the main page text (from the define pages editor) to show on the product info pages.

I've tried inserting the similar code after the bread crumbs with no luck.
Try adding it to a copy of /includes/templates/template_default/templates/tpl_product_info_display.php placed into your templates override structure

19 Sep 2010, 9:06 PM
#3
paul69 avatar

paul69

Zen Follower

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

Re: Need Main Page Text on Product Pages

Yes I did I'm just struggling with the syntax as it seems when I insert it the product pages do not load. I tried to insert the following before the product class and it still gets an error but not sure what I'm doing wrong. I even placed the define statement in and even tried renaming $define_page to match thinking it was duplicating in some way but still doesn't work. It's probably a syntax error of some type... Any ideas?

$define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_MAIN_PAGE, 'false');

/**
 * get the Define Main Page Text
 */
<div id="indexDefaultMainContentProduct" class="content"><?php require($define_page); ?></div>
<?php } ?>
22 Sep 2010, 12:36 AM
#4
paul69 avatar

paul69

Zen Follower

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

Re: Need Main Page Text on Product Pages

Well I figured it out by using the "include" function as opposed to "require" just for troubleshooting. The header does not load the variable "$define_page" for the product pages and I could not define it in the same class. I know I'm stumbling through PHP here but I did accomplish what I needed. The define main page text is now at the top of my product pages. Maybe someone else can benefit from it too? Let me know if I can help as this will allow me to place text for sales, coupons, etc... directly in the pages as when I get hits from the shopping sites they land directly on the product pages not the main page.