News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Cart qty number of different products - POSSIBLE?

Started by Beni, November 11, 2013, 17:58:17 PM

Previous topic - Next topic

Beni

Hi,
I searched this question but not found. Sorry, It is possible, that a simple thing but I can't solve.
I want to display in cart module not a full product qty, only a different products qty.
Eg: now: add to cart 5 apples, 3 bananas. Cart module display 8 items.
I want to show only 2 items!
It is possible? Thanks for reviews!
Sorry for my English!

GJC Web Design

do u mean like attached?

modules/mod_virtuemart_cart/tmpl/default.php from ~ line 51

original
<div class="total_products"><?php echo  $data->totalProductTxt ?></div>
<div class="show_cart"rel="nofollow">
<?php if ($data->totalProduct and $show_price) echo  $data->cart_show?>
</div>
<div style="clear:both;"></div>


change to

<div class="total_products"><?php #echo  $data->totalProductTxt ?></div>
<div style="clear:both;"></div>
<div class="show_cart"rel="nofollow">
<?php if ($data->totalProduct and $show_price) echo  $data->cart_show?>
</div>
<div style="clear:both;"></div>




[attachment cleanup by admin]
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Beni

Thanks, GJC Web Design!
But I don't want this.
Only show the total different products. See in attachment.
In this image, add to cart 2 bananas and 3 apples. But show only the total price and the different product qty (2).

[attachment cleanup by admin]

Maxim Pishnyak

Beni, I'm sure you'll be able to count ordered positions IF you will at least TRY to do this yourself first.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

PRO


Beni

Thanks. Important for me, I would like to hack this... How do I?