I am putting this in here for others who may run in to this problem
If you follow the directions here
http://www.thatsoftwareguy.com/zenca...ate_files.html
it will tell you to put the code in tpl_product_info_display.php
right before
<!--bof Product description -->
in most cases this works just fine. However if you use TPP it will not work
you must put the code at the very beginning of tpl_product_info_display.php right after the first ?> at the top of the page.
in 1.51 it would look like this
Code:
<?php
/**
* Page Template
*
* Loaded automatically by index.php?main_page=product_info.<br />
* Displays details of a typical product
*
* @package templateSystem
* @copyright Copyright 2003-2006 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_product_info_display.php 3435 2006-04-14 03:42:46Z ajeh $
*/
//require(DIR_WS_MODULES . '/debug_blocks/product_info_prices.php');
?>
<!--bof Product description -->
<?php if ($products_description != '') { ?>
<div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>
<?php } ?>
<!--eof Product description -->
<br class="clearBoth" />
<!-- bof html description -->
<?php
function html_include_cb($match) {
$prefix = "HTML_INCLUDE_";
$match_filename = str_replace($prefix, '', $match[0]);
$filename = DIR_WS_LANGUAGES . $_SESSION['language'] .
'/boilerplate/' .
$match_filename . ".html";
$buffer = "";
if (file_exists($filename)) {
$handle = @fopen($filename, "r");
while (!feof($handle)) {
$buffer .= fgets($handle, 4096);
}
fclose($handle);
}
return $buffer;
}
if ($products_description != '') {
$pattern = "/HTML_INCLUDE_[a-zA-Z0-9]*/";
$products_description = preg_replace_callback($pattern, "html_include_cb",
$products_description, -1);
}
?>
<!-- eof html description -->
Hope this might help someone.
Dan
Bookmarks