VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: jordantsap on March 13, 2016, 14:14:26 PM

Title: How to change totalProductTxt in the cart module
Post by: jordantsap on March 13, 2016, 14:14:26 PM
Hello to everyone.
As you can see here->http://thesecretbox.gr/ and you input a product in the cart, the text that is displayed is "1 product".
I want to display only the total ammount "1" of the current in-cart products and not the word "products" next to it.
I found that in the core cart module the reference is /*<div class="total_products"><?php echo  $data->totalProductTxt ?></div>
*/  but i cannot find how to change it as above said.


Any help where to find this "totalProductTxt" ???
Title: Re: How to change totalProductTxt in the cart module
Post by: jenkinhill on March 13, 2016, 15:01:21 PM
totalProductTxt comes from /components/com_virtuemart/helpers/cart.php

What you actually need to override is COM_VIRTUEMART_CART_X_PRODUCTS
Title: Re: How to change totalProductTxt in the cart module
Post by: jordantsap on March 17, 2016, 13:01:53 PM
Thanks for your help i fond and changed it thanks to you!!!