VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: bobthebob01 on December 07, 2015, 20:45:06 PM

Title: add to cart confirmation popup message in plural
Post by: bobthebob01 on December 07, 2015, 20:45:06 PM
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
Title: Re: add to cart confirmation popup message in plural
Post by: GJC Web Design on December 08, 2015, 10:02:18 AM
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>';