"Max quantity of product (NAME) reached, new quantity in cart set (DIGIT)" Alert

Started by ndmk5, May 29, 2018, 10:29:48 AM

Previous topic - Next topic

ndmk5

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


Jörgen

Use Joomla laguage manager and create an override for this string:

QuoteCOM_VIRTUEMART_CART_PRODUCT_OUT_OF_QUANTITY

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

jenkinhill

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

ndmk5

Quote from: Jörgen on May 29, 2018, 10:48:48 AM
Use Joomla laguage manager and create an override for this string:

QuoteCOM_VIRTUEMART_CART_PRODUCT_OUT_OF_QUANTITY

regards

Jörgen @ Kreativ Fotografi

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

That did the trick.

Jörgen

Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.