Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • bznida Friend
    #146597

    I have installed Mesolite Quickstart and interest me how to solve this problem. I like to display on my shopping cart (top right modules) only number of items and total price eg. 5 products $300 and not all 5 products separated and then total.
    Thank you.

    kr0n2600 Friend
    #326358

    I got the same problem. Please solve.

    Saguaros Moderator
    #326505

    Hello guys!

    Please open the file : componentscom_virtuemartthemesdefaulttemplatescommonminicart.tpl.php and try to find a section code at line 15=>34:
    [PHP]
    // 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
    ?>
    <div style=”float: left;”>
    <?php echo $cart[‘quantity’] ?> x <a href=”<?php echo $cart[‘url’] ?>”><?php echo $cart[‘product_name’] ?></a>
    </div>
    <div style=”float: right;”>
    <?php echo $cart[‘price’] ?>
    </div>
    <br style=”clear: both;” />
    <?php echo $cart[‘attributes’];
    }
    }
    [/PHP]

    and comment this block:

    [PHP]
    /*
    // 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
    ?>
    <div style=”float: left;”>
    <?php echo $cart[‘quantity’] ?> x <a href=”<?php echo $cart[‘url’] ?>”><?php echo $cart[‘product_name’] ?></a>
    </div>
    <div style=”float: right;”>
    <?php echo $cart[‘price’] ?>
    </div>
    <br style=”clear: both;” />
    <?php echo $cart[‘attributes’];
    }
    }
    */

    [/PHP]

    Good luck

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 3 voices, and was last updated by  Saguaros 14 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum