News:

Looking for documentation? Take a look on our wiki

Main Menu

add to cart confirmation popup message in plural

Started by bobthebob01, December 07, 2015, 20:45:06 PM

Previous topic - Next topic

bobthebob01

Hi,

First, please keep in mind that I am not an English teacher and English being my second language. So I am just inquiring as I found the add to cart confirmation popup message not correct if one select more than 1 in the quantity box.
This is obviously correct: "1 x iPhone was added to your cart."
But
"3 x iPhone was added to your cart." does not sound correct to me.
Shouldn't it be "3 x iPhone were added to your cart."

Cheers

GJC Web Design

Yes - your correct

you could add a 3rd variable in components\com_virtuemart\views\cart\tmpl\padded.php that was quantity dependent

echo '<h4>'.vmText::sprintf('COM_VIRTUEMART_CART_PRODUCT_ADDED',$product->product_name,$product->quantity).'</h4>';
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