- Posts: 344
- Thank you received: 3
Availability: On Stock / Out of Stock
Is it possible to have feature in each product
Availability: On Stock / Out of Stock
I do not want to show the number of what I have in stock of each product. But I just want to display if I have the product "in stock" or "Out of Stock"
Does Hikashop 2.0 have this function ?
Please Log in or Create an account to join the conversation.
HikaShop does not have this option but it is already possible to do it.
You can override the view "product | quantity" via the menu Display>Views in order to display a text when the product is available instead of displaying the quantity.
Two modifications are required:
After that, you should create a new translation entry for "IN_STOCK" in your override file.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
One thing I am missing:
I need a prefix to the word "in stock"
By this I mean it is displaying like this:
Availability: In stock
How can fix this ?
Tnx
Please Log in or Create an account to join the conversation.
It's just a translation.
You have to edit your language file in Systeme>Configuration>Language and change the translation for IN_STOCK.
However, this translation may be used somewhere else in your website. So you can also change the IN_STOCK in the code given by Jerome with IN_STOCK_FRONTEND and make a new translation for this one.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
There is no directory for theses files, they are accessible thought the HikaShop backend.
Views are accessible thanks to the menu "Display > Views" and Language thanks to "System > Configuration > Language".
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
I have looked into the the file " product | quantity, but it looks like the file has gone trought some changes sine the last time I did this.
Any advice....
Please Log in or Create an account to join the conversation.
I've updated the code on Jerome's post:
www.hikashop.com/forum/4-how-to/76154-av...-of-stock.html#78759
Please Log in or Create an account to join the conversation.
You should make this function a part of Hikashop core. Not every online store wants to display the number of products that they have in stock, only that they have it in stock like me.
Please Log in or Create an account to join the conversation.
- Posts: 6
- Thank you received: 0
Where do I change the code / what file ?
And if it is "out of stock" can i Change it to "on demand" or something ...
(HIKA SHOP 2.3.5)
Please Log in or Create an account to join the conversation.
Best is to use language override.
www.hikashop.com/download/languages.html#modify
www.hikashop.com/support/faq.html#tran
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- Posts: 6
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Saludos,
Fernando
Please Log in or Create an account to join the conversation.
We are not speaking Spanish ; this forum is an English forum.
Please create a new thread in English and explain your issue.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Regards,
Fernando
Please Log in or Create an account to join the conversation.
Alternatively it's file components\com_hikashop\views\product\tmpl\quantity.php
Please Log in or Create an account to join the conversation.
Hikashop 3.0
I want the same function on my site using hikashop 3.0
But when I look at the file product | Quantiy its different than before.
Could you please advice my on what code I should use and where to implement it ?
tnx
Please Log in or Create an account to join the conversation.
It's now that code which handles that:
Please Log in or Create an account to join the conversation.