Remove "Item" in Product Display "1 Item in Stock"

  • Posts: 50
  • Thank you received: 0
4 years 1 month ago #329591

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.24
-- PHP version -- : 7.4
-- Browser(s) name and version -- : Firefox 85.0.1

Hi
I want to remove the word "Item" on product Listings where it shows "1 Item in Stock" to achieve "1 in Stock"
On System/languages when editing the English File displays for products the following
Thanks in advance

;product
ITEM_NOT_SOLD_ANYMORE="Item not sold anymore"
ITEM_SOLD_ON_DATE="This item will be sold starting on %s"
ADD_TO_CART="Add to cart"
NO_STOCK="Sold"
X_ITEMS_IN_STOCK=""
SPECIFICATIONS="Specifications"
REFRESH_INFORMATION="Refresh information"
NO_VALUES_FOUND="No values found"
PRODUCT="Product"

Please Log in or Create an account to join the conversation.

  • Posts: 4816
  • Thank you received: 654
  • MODERATOR
4 years 1 month ago #329600

Hello,

You are close to your solution, did you test to edit your Key Translation (here, X_ITEMS_IN_STOCK) like this :
X_ITEMS_IN_STOCK="%s in stock"

Does there are something that blocking you to achieved what you required ? If there are issue can you be more specific and maybe detail it via screenshot, url, etc...

Awaiting news from you to be able to progress on your subject.
Regards

Last edit: 4 years 1 month ago by Philip.

Please Log in or Create an account to join the conversation.

  • Posts: 50
  • Thank you received: 0
4 years 1 month ago #329623

Hi, thanks for your answer.
I edit the file as per your recommendation but the listings still displaying the same.
Each time i update Hikashop i need to change the "No Stock" to "Sold", the "Free" to "Confidential" when no price is set (client requirement) and the "1 Item in Stock" to "1 in Stock", i don't understand why this time it only works for the 2 first.
Today i load the latest file version but it still the same, only 2 out of 3 show the changes after editing :S

See enclosed
you can access the website (need to create a profile in order to access the store)
dominicanamberfossils.com

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83404
  • Thank you received: 13498
  • MODERATOR
4 years 1 month ago #329626

Hi,

You have two different translation keys: X_ITEMS_IN_STOCK and X_ITEM_IN_STOCK
You modified the one used for when the quantity in stock is higher than 1 while your products have a stock of 1 in your screenshot.
So that's why you think it's not working.

Please Log in or Create an account to join the conversation.

  • Posts: 50
  • Thank you received: 0
4 years 3 weeks ago #329675

Thanks so from where i will be able to edit the one i want to change?

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
4 years 3 weeks ago #329684

Hello,

You can edit your Hikashop language files via "Hikashop->System->Configuration->Languages", for more information :
www.hikashop.com/download/languages#translate

Kind regards,
Mohamed.

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum