VirtueMart Forum

VirtueMart 2 + 3 => Product creation => Topic started by: ndmk5 on May 29, 2018, 10:29:48 am

Title: "Max quantity of product (NAME) reached, new quantity in cart set (DIGIT)" Alert
Post by: ndmk5 on May 29, 2018, 10:29:48 am
Joomla 3.8.8    VirtueMart 3.2.14      PHP 7.0.28 

The site I'm working on sells clothing, and I'm using stockable custom fields plugin to manage stock levels of child products (size variations of parent). Parent products cannot be purchased. This seems to be working fine, except for the prompt displayed when an item is added to cart for amount greater than items that are in stock.

The user gets the following prompt:

"Max quantity of product nose inspired jacket reached, new quantity in cart set to 2" For example.

I would like to either change the wording of this prompt to something more user-friendly like "Sorry, this item is out of stock", or failing that just disable the prompt altogether!

Would someone please be able to point me in the right direction? New to VirtueMart!

Many, many thanks in advance,
N

Title: Re: "Max quantity of product (NAME) reached, new quantity in cart set (DIGIT)" Alert
Post by: Jörgen on May 29, 2018, 10:48:48 am
Use Joomla laguage manager and create an override for this string:

Quote
COM_VIRTUEMART_CART_PRODUCT_OUT_OF_QUANTITY

regards

Jörgen @ Kreativ Fotografi
Title: Re: "Max quantity of product (NAME) reached, new quantity in cart set (DIGIT)" Alert
Post by: jenkinhill on May 29, 2018, 11:18:20 am
For an overview see http://forum.virtuemart.net/index.php?topic=113895.0
Title: Re: "Max quantity of product (NAME) reached, new quantity in cart set (DIGIT)" Alert
Post by: ndmk5 on May 29, 2018, 11:22:38 am
Use Joomla laguage manager and create an override for this string:

Quote
COM_VIRTUEMART_CART_PRODUCT_OUT_OF_QUANTITY

regards

Jörgen @ Kreativ Fotografi

Thank you Jörgen, you're a hero!  ;D

That did the trick.
Title: Re: "Max quantity of product (NAME) reached, new quantity in cart set (DIGIT)" Alert
Post by: Jörgen on May 29, 2018, 14:12:28 pm
You´re welcome  ;)

Jörgen @ Kreativ Fotografi