Установить модуль мини-корзины если не установлен (mod_virtuemart_cart_1.1.5.j15.zip). В мини-корзине будут отображены: Изображение, количество товаров, общая стоимость.

В файл /administrator/component/com_virtuemart/languages/common/russian.php

'PHPSHOP_PRODUCT_COUNT_NAME' => 'Товаров',
'PHPSHOP_PRODUCTS_PAYS' => 'Сумма',

 

Заменить содержимое файла /com_virtuemart/themes/default/templates/common/minicart.tpl.php

<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); ?>

    <table border=0 cellpadding=0 cellspaceing=0 width=100%><tr valign=top><td>
    <?php if(!$vmMinicart) { ?>
        <a href="/component/virtuemart/?page=shop.cart" target="_self">
        <img style="display: block;" src="/<?php echo $mm_action_url ?>components/com_virtuemart/shop_image/ps_image/menu_logo.gif" alt="VirtueMart" border="0" /></a>
</td>
    <td>
    <a href="/component/virtuemart/?page=shop.cart" target="_self">
    <?php }
    echo $VM_LANG->_('PHPSHOP_CART_TITLE')?>
    </a>
    <br />
    <?php 
    $qnt = 0;
    // Loop through each row and build the table
    foreach( $minicart as $cart ) {         

        foreach( $cart as $attr => $val ) {
            // Using this we make all the variables available in the template
            // translated example: $this->set( 'product_name', $product_name );
            $this->set( $attr, $val );
        }
        if(!$vmMinicart) { // Build Minicart
            ?>
            <?php $qnt = $qnt + $cart['quantity']; 
        }
    }

    echo $VM_LANG->_('PHPSHOP_PRODUCT_COUNT_NAME').': '.$qnt.' '.$VM_LANG->_('PHPSHOP_PRODUCT_FORM_UNIT_DEFAULT');?>
    <br />
<?php  if ($total_price != '') echo $VM_LANG->_('PHPSHOP_PRODUCTS_PAYS').': '.$total_price; ?>
    </table>

 

Источник