celextel Posted December 19, 2004 Posted December 19, 2004 Can some one please help us with the modified code for making the weights to be displayed as a whole number in the Product Info Page. Our current code is as follows: if (tep_not_null($product_info['products_weight'])) { $products_name = $product_info['products_name'] . '<br><span class="main">[' . ($product_info['products_weight']) . ' Gms.]</span>'; A Correction Code is seen at the following URL for the Product Listing Page: http://www.oscommerce.info/kb/osCommerce/Tips_and_Tricks/63
boxtel Posted December 19, 2004 Posted December 19, 2004 Can some one please help us with the modified code for making the weights to be displayed as a whole number in the Product Info Page. Our current code is as follows: if (tep_not_null($product_info['products_weight'])) { $products_name = $product_info['products_name'] . '<br><span class="main">[' . ($product_info['products_weight']) . ' Gms.]</span>'; A Correction Code is seen at the following URL for the Product Listing Page: http://www.oscommerce.info/kb/osCommerce/Tips_and_Tricks/63 <{POST_SNAPBACK}> if (tep_not_null($product_info['products_weight'])) { $products_name = $product_info['products_name'] . '<br><span class="main">[' . ceil($product_info['products_weight']) . ' Gms.]</span>'; Treasurer MFC
Recommended Posts
Archived
This topic is now archived and is closed to further replies.