News:

Support the VirtueMart project and become a member

Main Menu

empty cart in cart module

Started by teoxtrm, April 08, 2015, 00:31:20 AM

Previous topic - Next topic

teoxtrm

Hello,

I have seen countless threads about this.. most of them without a solution.. but none works on virtuemart 3.
What i want is a button in cart module that deletes products one by one or just empty all the cart !

From what i found beeing neabie with php and javascript the code must be entered around this part:

<div class="product_row">
               <span class="quantity"><?php echo  $product['quantity'] ?></span>&nbsp;x&nbsp;<span class="product_name"><?php echo  $product['product_name'] ?></span>

            <?php if ($show_price and $currencyDisplay->_priceConfig['salesPrice'][0]) { ?>
              <div class="subtotal_with_tax" style="float: right;"><?php echo $product['subtotal_with_tax'] ?></div>
            <?php } ?>
            <?php if ( !empty($product['customProductData']) ) { ?>
               <div class="customProductData"><?php echo $product['customProductData'] ?></div>

but i can't find the correct one... i tried copying the one from the cart on checkout page but it didn't not actually work :(

Anyone have a solution to this ?
Even any tip to start looking for something will be great !

joomla : 3.3.6 vm:3.0.6

Thanks for your time in advance
Teo