Jump to content


This topic is now archived and is closed to further replies.


Need Help Editing PHP

Recommended Posts

Hi all,

I'm hoping that I can get some help here about editing my Product Information Page (I use Zencart).

How do I incorporate these:

[code]<!--bof Product description -->
<?php if ($products_description != '') { ?>
<div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>
<?php } ?>
<!--eof Product description -->[/code]

[code]<!--bof Additional Product Images -->
* display the products additional images
  require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?>
<!--eof Additional Product Images -->[/code]

into this:

[code]<!--bof Product details list  -->

<?php if ( (($flag_show_product_info_model == 1 and $products_model !=”) or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
<ul id="productDetailsList" class="floatingBox back">
  <?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>
  <?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT .  $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>'  : '') . "\n"; ?>
  <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>'  : '') . "\n"; ?>
  <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>
<br class="clearBoth" />
<!--eof Product details list -->[/code]

I tried using the 'echos' for the Product's Additional Images and Product Description, but they don't show up. If anyone can help me out, I'd appreciate it, as I have no clue as to what I am looking for.



Share this post

Link to post
Share on other sites
try to locate the $template class and read the code. it should be something like $template->output()

Share this post

Link to post
Share on other sites
Thanks for the response Ryan!

Looking at my product_info_display.php, I could not find a $template for the product description, or the product additional images. What would I do with the $template, I am not at all literate at php. 

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.