TurtleDove Posted July 19, 2006 Share Posted July 19, 2006 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 --><?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 -->[/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"; ?></ul><br class="clearBoth" /><?php }?><!--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.Thanks! ;D Quote Link to comment https://forums.phpfreaks.com/topic/15002-need-help-editing-php/ Share on other sites More sharing options...
TurtleDove Posted July 21, 2006 Author Share Posted July 21, 2006 *Here's hoping someone can help me out* ;D Quote Link to comment https://forums.phpfreaks.com/topic/15002-need-help-editing-php/#findComment-61906 Share on other sites More sharing options...
ryanlwh Posted July 22, 2006 Share Posted July 22, 2006 try to locate the $template class and read the code. it should be something like $template->output() Quote Link to comment https://forums.phpfreaks.com/topic/15002-need-help-editing-php/#findComment-61916 Share on other sites More sharing options...
TurtleDove Posted July 23, 2006 Author Share Posted July 23, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/15002-need-help-editing-php/#findComment-62295 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.