Replace "x items in stock"

  • Posts: 62
  • Thank you received: 1
10 years 8 months ago #186113

-- HikaShop version -- : HikaShop Business: 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.6.3
-- Browser(s) name and version -- : Chrome

Hi,

I would like to know if it is possible to have instead of "x items in stock" "just a few left" if the quantity of a product is low.

Thanks in advance
florcar

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 8 months ago #186120

Hi,

Yes. You can use a translation override in order to change any text of the interface on your website:
hikashop.com/download/languages.html#modify

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

  • Posts: 62
  • Thank you received: 1
10 years 8 months ago #186165

Thank you for your answer. But the text should just show up if the quantity of the product is low. That wouldnt work with an override, right?

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 8 months ago #186168

Hi,

There are three translations:
X_ITEMS_IN_STOCK
X_ITEM_IN_STOCK
NO_STOCK
And you can change each one independently. But if you want something more complex, like for example a message below 10 items in stock but not above, then it would require that you customize the file "quantity" of the view "product" via the menu Display>Views.

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

  • Posts: 62
  • Thank you received: 1
10 years 8 months ago #186274

Hi nicolas,

Thank you again for answering my question but I want to have the last example you mentioned. :)
Could you give me a hint of how I could customize the "quantity" file? That would be great.

Thanks in advance

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

  • Posts: 12953
  • Thank you received: 1778
10 years 8 months ago #186281

Checking that thread will probably help you : www.hikashop.com/forum/product-category-...ss-or-more-than.html

The following user(s) said Thank You: florcar

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

  • Posts: 62
  • Thank you received: 1
10 years 7 months ago #186484

Thank you so much. It worked!

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

Time to create page: 0.074 seconds
Powered by Kunena Forum