VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: hendrikdebeer on April 17, 2019, 16:35:28 PM

Title: In Stock Levels
Post by: hendrikdebeer on April 17, 2019, 16:35:28 PM
Hi Guys

Where can I change the wording "in stock" - see image attached.

I know it has something to do with the stock levels.

I could change the COM_VIRTUEMART_STOCK_LEVEL_DISPLAY_NORMAL_TIP wording.
Title: Re: In Stock Levels
Post by: Jörgen on April 17, 2019, 19:48:26 PM
Use normal Joomla language override. Best way and secures that updates don't revert your changes.
Regards
Jörgen @ Kreativ Fotografi
Title: Re: In Stock Levels
Post by: hendrikdebeer on April 18, 2019, 09:05:25 AM
I have searched in the language override, but I just can't find that specific reference.

I have renamed the following, but none of these worked.

COM_VIRTUEMART_PRODUCT_IN_STOCK
COM_VIRTUEMART_SEARCH_ORDER_PRODUCT_IN_STOCK

I thought maybe it will be in the CONFIGURATION settings somewhere.
Title: Re: In Stock Levels
Post by: jenkinhill on April 18, 2019, 11:34:33 AM
That is not the default VM template, so check the code in your override files. Availability status is likely to be in Joomla-root/templates/[your template]/html/com_virtuemart/productdetails/default_pdf.php
Title: Re: In Stock Levels
Post by: Jörgen on April 18, 2019, 16:37:39 PM
Have You added this key COM_VIRTUEMART_STOCK_LEVEL_DISPLAY_NORMAL_TIP in Joomla override ?

Add it for back end and tick use at both ends.

Jörgen @ Kreativ Fotografi
Title: Re: In Stock Levels
Post by: hendrikdebeer on April 23, 2019, 16:04:36 PM
Eventually found this

PLG_SYSTEM_VPFRAMEWORK_PRODUCT_IN_STOCK

It was found under the Administrator Language override - all is working now!

Thanks to everyone who helped me on this topic.
Title: Re: In Stock Levels
Post by: Jörgen on April 23, 2019, 16:10:32 PM
These are custom keys if you have the key then you can do a override even if the original string does not exist.  And what about the other keys you were asking about. Were they missing translations or have the wrong worthing?

Jörgen @ Kreativ Fotografi