Hi,
I needed to add size and weight to the description of the product page. Is it possible?
Thanks.
//Product Dimensions & weight
$product_width = number_format($db_product->f("product_width"))." x ";
$product_length = number_format($db_product->f("product_length"))." x ";
$product_height = number_format($db_product->f("product_height"))." ";
$product_weight = "Weight: ".number_format($db_product->f("product_weight"));
$product_weight_uom = $db_product->f("product_weight_uom");
$product_dims = "Dimensions (WxLxH): ".$product_length.$product_width.$product_height." & ".$product_weight.$product_weight_uom."";
if ($product_width > 0) {
$tpl->set( 'product_dims', $product_dims);
}
else {
$tpl->set( 'product_dims', "");
}
//end product dimensions
<div> <?php echo $product_dims ?> </div>