Jump to content


Photo

Need Help Editing PHP


  • Please log in to reply
3 replies to this topic

#1 TurtleDove

TurtleDove
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 19 July 2006 - 02:49 AM

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:

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

<!--bof Additional Product Images -->
<?php
/**
 * 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 -->



into this:

<!--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"; ?>
</ul>
<br class="clearBoth" />
<?php
  }
?>
<!--eof Product details list -->

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.

Thanks!

;D

#2 TurtleDove

TurtleDove
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 21 July 2006 - 11:47 PM

*Here's hoping someone can help me out*

;D

#3 ryanlwh

ryanlwh
  • Staff Alumni
  • Advanced Member
  • 511 posts

Posted 22 July 2006 - 12:14 AM

try to locate the $template class and read the code. it should be something like $template->output()
Please use EDIT * 100...
Please use
or [php] * 1000...

PLEASE READ THE POSTED SOLUTIONS CAREFULLY * 1000000...

#4 TurtleDove

TurtleDove
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 23 July 2006 - 04:06 AM

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. 




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users