Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Weight Display


celextel

Recommended Posts

Posted

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

Posted
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

 

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...