I have recently installed the UPC/ISBN product fields add on http://www.zen-cart.com/index.php?ma...roducts_id=651
I have installed everything and applied the SQL patch. However, the UPC and or ISBN fields do not display on the tpl_product_info_display.php page. The install instructions state that you should insert two lines of code where you want the fields to be displayed but I find that the code is different than that of the rest of the section and I was hoping to get some help/input.
The following code is default:
<!--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 have to insert the following two lines:
<?php if (!empty($product_info->fields['products_upc'])) echo '<p>UPC: ' . $product_info->fields['products_upc'] . '</p>'; ?>
<?php if (!empty($product_info->fields['products_isbn'])) echo '<p>ISBN: ' . $product_info->fields['products_isbn'] . '</p>'; ?>
I have tried a few times and have been unsuccessful... so if there is any input I would appreciate it!
Bookmarks