Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product_info weight


000---000

Recommended Posts

Hi, I've been trying to add the weight details of each product to the product listing on index.php, product_info.php, shopping_cart.php and checkout_shipping.php. So far I've managed to get the total_weight and shipping_weight to appear on checkout_shipping.php and individual product weights on product listing (admin) but cannot work out the correct variable to display the weight on the product_info.php and shipping.php pages. I have no tare value for packaging so the total_weight = shipping_weight... using <?php echo $products_weight;?> I would have thought I could call the info... any ideas what else I need to add in? I think I may be missing some "include" line at the top of the php files in question??

oscommerce_community_forums.gif
Link to comment
Share on other sites

I've cracked it at last if anyone's interested....

 

Added on line 103 of product_info.php

 

$products_weight = $product_info['products_weight'];

 

and then just added

 

(Approx <?php echo $products_weight;?> kgs)

 

Where I wanted the weight to appear.

 

If only I knew it was that easy to start with.

oscommerce_community_forums.gif
Link to comment
Share on other sites

Archived

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

×
×
  • Create New...