В файле макета корзины, который нужно переопределить в свой шаблон /components/com_virtuemart/views/cart/tmpl/default_pricelist.php И вверху Код (CODE): defined ('_JEXEC') or die('Restricted access'); if (!class_exists('shopFunctionsF')) require(JPATH_VM_SITE . DS . 'helpers' . DS . 'shopfunctionsf.php'); $cart = VirtueMartCart::getCart(); $to_weight_unit = "KG"; foreach ($cart->products as $product) { $weight[$to_weight_unit] += (ShopFunctions::convertWeightUnit ($product->product_weight, $product->product_weight_uom, $to_weight_unit) * $product->quantity); } echo "<pre>";var_dump($weight);echo "</pre>";//die('Ok 1'); ?>