AbanteCart Community

eCommerce construction => How-to questions => Topic started by: paulbg on July 22, 2017, 11:40:46 AM

Title: 'Out of stock' text replacement.
Post by: paulbg on July 22, 2017, 11:40:46 AM
I need to change the 'Out of Stock' label on product blocks to read 'Adopted' I know,
innerHTML:"Out Of Stock"
innerText:"OUT OF STOCK"
are called by .thumbnail.nostock  but I can't find which template file adds this text. 
Any help I would be grateful.
Title: Re: 'Out of stock' text replacement.
Post by: Geoffrey on July 22, 2017, 01:02:45 PM
Use the same search box: search for "out of stock".  Yields 9 results, only a few of which have the key "Out of Stock", so edit those, clear cache, refresh site page, repeat until you find the proper key.
Title: Re: 'Out of stock' text replacement.
Post by: paulbg on July 23, 2017, 05:25:59 AM
I tried that Geoffrey, it changes some instances but not the one on the 'add to cart' area; which is the main one I need to change. Could it be in the database?
When I change the Language to Spanish it becomes Agotado, so it is somewhere?
Title: Re: 'Out of stock' text replacement.
Post by: Basara on July 24, 2017, 04:59:11 AM
Hello.

First check Admin > System > Localization > Stock Statuses
and you can also search in Language Definitions section
Title: Re: 'Out of stock' text replacement.
Post by: paulbg on July 24, 2017, 05:17:05 AM
Thanks...I just found it as you posted. What about that.