Hi I know this is not the thread but my query is more code related than anything else. Trying to display all products on the details tabs this includes two custom fields:
Product Code: NEBR3001
Delivery/Shipping Weight: 1.7kg
Manufactured by: Nestle
36 0.89
The input code is as follows:
// Preload Details
if ($bDetailsOnTab != false) {
$fmtDOT = '<div style="width:100%;">' . "\n";
$fmtDOT .= '<ul id="productDetailsList" class="floatingBox back">';
$fmtDOT .= (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n";
$fmtDOT .= (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT . $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>' : '') . "\n";
$fmtDOT .= (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n";
$fmtDOT .= (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n";
$fmtDOT .= ($product_info->fields['products_count']). "\n";
$fmtDOT .= ($product_info->fields['products_unit_cost']). "\n";
$fmtDOT .= '</ul>';
$fmtDOT .= "\n" . '<br class="clearBoth" />';
$fmtDOT .= "\n" . '</div>';
The 36 is the Count and
The 0.89 is unit price, (in red) all that is missing is that field name, and just cannot seem to work it in. I am sure it can be done as it iust could be hardcoded but I have tried so many different scenarios so not being a progammer it doesn't jump out at me. should read as follows:
Product Code: NEBR3001
Delivery/Shipping Weight: 1.7kg
Manufactured by: Nestle
Count: 36
RRP: 0.89
So near now.... please someone add the finishing touches!!! thanks
Bookmarks