I'm in the process of finishing up a mirgration from an older version 1.2.4 to 1.3.7 - I have a custom product type that merely adds a field to the products_info_display page. All the coding and setup for the new product type went perfectly with no issues for the admin. New product type is displayed correctly - new field is listed in the product_info Layout setting and is turned on (set to "1") Data is being collected on the product in put screen in the admin and is correctly being listed and stored in the db. Field was merely added to the products table no new tables needed to be created - The product type is called candle ID#6 - new field added to the product table is burn_time.
Includes files all created to include the language file - no sideboxes needed.
Here is the code added to the product_candle_info_display -
Code:
<!--bof Product details list -->
<?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_candle_info_burn_time == 1 and $products_burn_time !=0) 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_candle_info_burn_time == 1 and $products_burn_time !='') ? '<li>' . TEXT_PRODUCT_BURN_TIME . $products_burn_time . '</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 -->
Problem - the "Burn Time" is not being displayed on the Product Details page.
Based on this information - can anyone see what I've missed here? To reach the site in question - click here
Any thoughts would be much appreciated.
Bookmarks