Author Topic: "Max quantity of product (NAME) reached, new quantity in cart set (DIGIT)" Alert  (Read 300 times)

ndmk5

  • Beginner
  • *
  • Posts: 2
  • A beginner
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

  • Global Moderator
  • Full Member
  • *
  • Posts: 1721
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Use Joomla laguage manager and create an override for this string:

Quote
COM_VIRTUEMART_CART_PRODUCT_OUT_OF_QUANTITY

regards

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26993
  • Always on vacation
    • Jenkin Hill Internet
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.4.0.9935 on Joomla 3.8.12 PHP 7.0.31
Testing VM 3.4.0.9941 on Joomla 3.8.12

ndmk5

  • Beginner
  • *
  • Posts: 2
  • A beginner
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.

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1721
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
You´re welcome  ;)

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)