Dimensions and weight - Addition

Change your online store into modern look with myStore eCommerce VirtueMart Joomla template - discussion forum.
GK User
Mon Sep 06, 2010 3:43 pm
Hi,

I needed to add size and weight to the description of the product page. Is it possible?
Thanks.
User avatar
Fresh Boarder

GK User
Mon Sep 06, 2010 7:02 pm
[center]Image[/center]

please ask this in the virtuemart forum
User avatar
Platinum Boarder

GK User
Tue Sep 07, 2010 1:01 am
Hi,

I have it solved. add to file administratorcomponentscom_virtuemarthtmlshop.product_details.php line 351

Code: Select all
//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


TIP *instead of "&" can also be used "<br /> for two line display*

and add to file componentscom_virtuemartthemesdefaulttemplatesproduct_detailsflypage.tpl.php line 61

Code: Select all
                         <div> <?php echo $product_dims ?> </div>


;)
User avatar
Fresh Boarder


cron