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

How to change totalProductTxt in the cart module

Started by jordantsap, March 13, 2016, 14:14:26 PM

Previous topic - Next topic

jordantsap

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" ???

jenkinhill

totalProductTxt comes from /components/com_virtuemart/helpers/cart.php

What you actually need to override is COM_VIRTUEMART_CART_X_PRODUCTS
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

jordantsap

Thanks for your help i fond and changed it thanks to you!!!