[Skip to main content](#vessel-content)

#   Availability: On Stock / Out of Stock

##

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile") Topic Author
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

13 years 11 months ago [\#78733](#78733) by [river](/forum/user/9591-river "View river's Profile")  *[Availability: On Stock / Out of Stock](/forum/4-how-to/76154-availability-on-stock-out-of-stock#78733 "Hikashop 2.0 Business  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 &quot;in stock&quot; or &quot;Out of Stock&quot;  Does Hikashop 2.0 have this function ?")* was created by *[river](/forum/user/9591-river "View river's Profile")*

Hikashop 2.0 Business

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTU0LWF2YWlsYWJpbGl0eS1vbi1zdG9jay1vdXQtb2Ytc3RvY2s/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago -  11 years 9 months ago [\#78759](#78759) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Availability: On Stock / Out of Stock](/forum/4-how-to/76154-availability-on-stock-out-of-stock#78759 "Hikashop 2.0 Business  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 &quot;in stock&quot; or &quot;Out of Stock&quot;  Does Hikashop 2.0 have this function ?")*

Hi,

HikaShop does not have this option but it is already possible to do it.
You can override the view "product &#124; quantity" via the menu Display&gt;Views in order to display a text when the product is available instead of displaying the quantity.

Two modifications are required: Code:

&lt;div class="hikashop_product_stock"&gt; &lt;?php // Just add this line echo JText::_('IN_STOCK'); if(!empty($this-&gt;row-&gt;has_options)){

And Code:

&lt;div class="hikashop_product_stock"&gt; &lt;?php // Just add this line echo JText::_('IN_STOCK'); if($this-&gt;row-&gt;product_quantity==1){ if(JText::_('X_ITEM_IN_STOCK')=='X_ITEM_IN_STOCK'){ $text = JText::sprintf('X_ITEMS_IN_STOCK',$this-&gt;row-&gt;product_quantity); }else{ $text = JText::sprintf('X_ITEM_IN_STOCK',$this-&gt;row-&gt;product_quantity); } }else{ $text = JText::sprintf('X_ITEMS_IN_STOCK',$this-&gt;row-&gt;product_quantity); } // And comment the next one //echo '&lt;span class="hikashop_product_stock_count"&gt;'.$text.'&lt;br/&gt;&lt;/span&gt;'; if($config-&gt;get('button_style','normal')=='css'){

After that, you should create a new translation entry for "IN_STOCK" in your override file.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 11 years 9 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

The following user(s) said Thank You: [river](/forum/user/9591-river "View river's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTU0LWF2YWlsYWJpbGl0eS1vbi1zdG9jay1vdXQtb2Ytc3RvY2s/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile") Topic Author
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

13 years 11 months ago -  13 years 11 months ago [\#78783](#78783) by [river](/forum/user/9591-river "View river's Profile")  Replied by *[river](/forum/user/9591-river "View river's Profile")* on topic *[Availability: On Stock / Out of Stock](/forum/4-how-to/76154-availability-on-stock-out-of-stock#78783 "Hikashop 2.0 Business  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 &quot;in stock&quot; or &quot;Out of Stock&quot;  Does Hikashop 2.0 have this function ?")*

Thank you for reply this works great.

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

Last edit: 13 years 11 months ago by [river](/forum/user/9591-river "View river's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTU0LWF2YWlsYWJpbGl0eS1vbi1zdG9jay1vdXQtb2Ytc3RvY2s/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 11 months ago [\#78804](#78804) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Availability: On Stock / Out of Stock](/forum/4-how-to/76154-availability-on-stock-out-of-stock#78804 "Hikashop 2.0 Business  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 &quot;in stock&quot; or &quot;Out of Stock&quot;  Does Hikashop 2.0 have this function ?")*

Hi there,

It's just a translation.
You have to edit your language file in Systeme&gt;Configuration&gt;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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTU0LWF2YWlsYWJpbGl0eS1vbi1zdG9jay1vdXQtb2Ytc3RvY2s/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile") Topic Author
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

13 years 11 months ago [\#78813](#78813) by [river](/forum/user/9591-river "View river's Profile")  Replied by *[river](/forum/user/9591-river "View river's Profile")* on topic *[Availability: On Stock / Out of Stock](/forum/4-how-to/76154-availability-on-stock-out-of-stock#78813 "Hikashop 2.0 Business  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 &quot;in stock&quot; or &quot;Out of Stock&quot;  Does Hikashop 2.0 have this function ?")*

Thank you this works great

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTU0LWF2YWlsYWJpbGl0eS1vbi1zdG9jay1vdXQtb2Ytc3RvY2s/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kimneak](/forum/user/8427-kimneak "View kimneak's Profile")**
- [![kimneak's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8427-kimneak "View kimneak's Profile")
- [ Offline](/forum/user/8427-kimneak)

Less More

- Posts: 1
- Thank you received: 0
-
-

13 years 10 months ago [\#80965](#80965) by [kimneak](/forum/user/8427-kimneak "View kimneak's Profile")  Replied by *[kimneak](/forum/user/8427-kimneak "View kimneak's Profile")* on topic *[Availability: On Stock / Out of Stock](/forum/4-how-to/76154-availability-on-stock-out-of-stock#80965 "Hikashop 2.0 Business  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 &quot;in stock&quot; or &quot;Out of Stock&quot;  Does Hikashop 2.0 have this function ?")*

what is the directory to these files?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTU0LWF2YWlsYWJpbGl0eS1vbi1zdG9jay1vdXQtb2Ytc3RvY2s/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 10 months ago [\#81091](#81091) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Availability: On Stock / Out of Stock](/forum/4-how-to/76154-availability-on-stock-out-of-stock#81091 "Hikashop 2.0 Business  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 &quot;in stock&quot; or &quot;Out of Stock&quot;  Does Hikashop 2.0 have this function ?")*

Hi,

There is no directory for theses files, they are accessible thought the HikaShop backend.
Views are accessible thanks to the menu "Display &gt; Views" and Language thanks to "System &gt; Configuration &gt; Language".

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTU0LWF2YWlsYWJpbGl0eS1vbi1zdG9jay1vdXQtb2Ytc3RvY2s/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile") Topic Author
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

11 years 10 months ago [\#184287](#184287) by [river](/forum/user/9591-river "View river's Profile")  Replied by *[river](/forum/user/9591-river "View river's Profile")* on topic *[Availability: On Stock / Out of Stock](/forum/4-how-to/76154-availability-on-stock-out-of-stock#184287 "Hikashop 2.0 Business  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 &quot;in stock&quot; or &quot;Out of Stock&quot;  Does Hikashop 2.0 have this function ?")*

How do I implement this function in Hikashop 2.3.4 ?

I have looked into the the file " product &#124; quantity, but it looks like the file has gone trought some changes sine the last time I did this.

Any advice....

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTU0LWF2YWlsYWJpbGl0eS1vbi1zdG9jay1vdXQtb2Ytc3RvY2s/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 10 months ago [\#184297](#184297) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Availability: On Stock / Out of Stock](/forum/4-how-to/76154-availability-on-stock-out-of-stock#184297 "Hikashop 2.0 Business  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 &quot;in stock&quot; or &quot;Out of Stock&quot;  Does Hikashop 2.0 have this function ?")*

Hi,

I've updated the code on Jerome's post:
[ www.hikashop.com/forum/4-how-to/76154-av...-of-stock.html#78759](http://www.hikashop.com/forum/4-how-to/76154-availability-on-stock-out-of-stock.html#78759)

The following user(s) said Thank You: [river](/forum/user/9591-river "View river's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTU0LWF2YWlsYWJpbGl0eS1vbi1zdG9jay1vdXQtb2Ytc3RvY2s/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile") Topic Author
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

11 years 10 months ago [\#184343](#184343) by [river](/forum/user/9591-river "View river's Profile")  Replied by *[river](/forum/user/9591-river "View river's Profile")* on topic *[Availability: On Stock / Out of Stock](/forum/4-how-to/76154-availability-on-stock-out-of-stock#184343 "Hikashop 2.0 Business  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 &quot;in stock&quot; or &quot;Out of Stock&quot;  Does Hikashop 2.0 have this function ?")*

Tnx Nicolas. The updated code works great.

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. ![=)](/smile.gif "=)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTU0LWF2YWlsYWJpbGl0eS1vbi1zdG9jay1vdXQtb2Ytc3RvY2s/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Temperament](/forum/user/35691-temperament "View Temperament's Profile")**
- [![Temperament's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35691-temperament "View Temperament's Profile")
- [ Offline](/forum/user/35691-temperament)

Less More

- Posts: 6
- Thank you received: 0
-
-

11 years 9 months ago [\#187543](#187543) by [Temperament](/forum/user/35691-temperament "View Temperament's Profile")  Replied by *[Temperament](/forum/user/35691-temperament "View Temperament's Profile")* on topic *[Availability: On Stock / Out of Stock](/forum/4-how-to/76154-availability-on-stock-out-of-stock#187543 "Hikashop 2.0 Business  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 &quot;in stock&quot; or &quot;Out of Stock&quot;  Does Hikashop 2.0 have this function ?")*

Sorry guys, for I am quite new in this so I need to ask ![:(](/media/kunena/emoticons/5.png ":(")

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTU0LWF2YWlsYWJpbGl0eS1vbi1zdG9jay1vdXQtb2Ytc3RvY2s/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 9 months ago [\#187544](#187544) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Availability: On Stock / Out of Stock](/forum/4-how-to/76154-availability-on-stock-out-of-stock#187544 "Hikashop 2.0 Business  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 &quot;in stock&quot; or &quot;Out of Stock&quot;  Does Hikashop 2.0 have this function ?")*

Hi,

Best is to use language override.
[ www.hikashop.com/download/languages.html#modify](http://www.hikashop.com/download/languages.html#modify)
[ www.hikashop.com/support/faq.html#tran](http://www.hikashop.com/support/faq.html#tran)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [Temperament](/forum/user/35691-temperament "View Temperament's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTU0LWF2YWlsYWJpbGl0eS1vbi1zdG9jay1vdXQtb2Ytc3RvY2s/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Temperament](/forum/user/35691-temperament "View Temperament's Profile")**
- [![Temperament's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35691-temperament "View Temperament's Profile")
- [ Offline](/forum/user/35691-temperament)

Less More

- Posts: 6
- Thank you received: 0
-
-

11 years 9 months ago [\#187674](#187674) by [Temperament](/forum/user/35691-temperament "View Temperament's Profile")  Replied by *[Temperament](/forum/user/35691-temperament "View Temperament's Profile")* on topic *[Availability: On Stock / Out of Stock](/forum/4-how-to/76154-availability-on-stock-out-of-stock#187674 "Hikashop 2.0 Business  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 &quot;in stock&quot; or &quot;Out of Stock&quot;  Does Hikashop 2.0 have this function ?")*

why is this code than?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTU0LWF2YWlsYWJpbGl0eS1vbi1zdG9jay1vdXQtb2Ytc3RvY2s/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 9 months ago [\#187681](#187681) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Availability: On Stock / Out of Stock](/forum/4-how-to/76154-availability-on-stock-out-of-stock#187681 "Hikashop 2.0 Business  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 &quot;in stock&quot; or &quot;Out of Stock&quot;  Does Hikashop 2.0 have this function ?")*

NO_STOCK ?

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTU0LWF2YWlsYWJpbGl0eS1vbi1zdG9jay1vdXQtb2Ytc3RvY2s/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Lepi](/forum/user/35956-lepi "View Lepi's Profile")**
- [![Lepi's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35956-lepi "View Lepi's Profile")
- [ Offline](/forum/user/35956-lepi)

Less More

- Posts: 2
- Thank you received: 0
-
-

11 years 8 months ago [\#188764](#188764) by [Lepi](/forum/user/35956-lepi "View Lepi's Profile")  Replied by *[Lepi](/forum/user/35956-lepi "View Lepi's Profile")* on topic *[Availability: On Stock / Out of Stock](/forum/4-how-to/76154-availability-on-stock-out-of-stock#188764 "Hikashop 2.0 Business  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 &quot;in stock&quot; or &quot;Out of Stock&quot;  Does Hikashop 2.0 have this function ?")*

Buenas tardes noy nuevo en esto y lo estoy probando hace unos días para ver como funciona. Pero me encuentro con este problema. Cual es el archivo que tengo que modificar? que nombre tiene? Me aparecen mas de mil en la parte de vista.

Saludos,
Fernando

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTU0LWF2YWlsYWJpbGl0eS1vbi1zdG9jay1vdXQtb2Ytc3RvY2s/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 8 months ago [\#188768](#188768) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Availability: On Stock / Out of Stock](/forum/4-how-to/76154-availability-on-stock-out-of-stock#188768 "Hikashop 2.0 Business  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 &quot;in stock&quot; or &quot;Out of Stock&quot;  Does Hikashop 2.0 have this function ?")*

Hi,

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTU0LWF2YWlsYWJpbGl0eS1vbi1zdG9jay1vdXQtb2Ytc3RvY2s/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Lepi](/forum/user/35956-lepi "View Lepi's Profile")**
- [![Lepi's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35956-lepi "View Lepi's Profile")
- [ Offline](/forum/user/35956-lepi)

Less More

- Posts: 2
- Thank you received: 0
-
-

11 years 8 months ago [\#188919](#188919) by [Lepi](/forum/user/35956-lepi "View Lepi's Profile")  Replied by *[Lepi](/forum/user/35956-lepi "View Lepi's Profile")* on topic *[Availability: On Stock / Out of Stock](/forum/4-how-to/76154-availability-on-stock-out-of-stock#188919 "Hikashop 2.0 Business  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 &quot;in stock&quot; or &quot;Out of Stock&quot;  Does Hikashop 2.0 have this function ?")*

Good afternoon I'm new at this and I'm testing a few days ago to see how it works. But I encounter this problem. What is the file you have to modify? what name? I appear in more than one thousand of view.

Regards,
Fernando

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTU0LWF2YWlsYWJpbGl0eS1vbi1zdG9jay1vdXQtb2Ytc3RvY2s/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[korzo](/forum/user/34428-korzo "View korzo's Profile")**
- [![korzo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34428.png)](/forum/user/34428-korzo "View korzo's Profile")
- [ Offline](/forum/user/34428-korzo)

Less More

- Posts: 193
- Thank you received: 76
-
-

11 years 8 months ago [\#188958](#188958) by [korzo](/forum/user/34428-korzo "View korzo's Profile")  Replied by *[korzo](/forum/user/34428-korzo "View korzo's Profile")* on topic *[Availability: On Stock / Out of Stock](/forum/4-how-to/76154-availability-on-stock-out-of-stock#188958 "Hikashop 2.0 Business  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 &quot;in stock&quot; or &quot;Out of Stock&quot;  Does Hikashop 2.0 have this function ?")*

In Hikashop menu display-&gt;Views search for file "quantity" in your template.
Alternatively it's file components\com_hikashop\views\product\tmpl\quantity.php

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTU0LWF2YWlsYWJpbGl0eS1vbi1zdG9jay1vdXQtb2Ytc3RvY2s/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile") Topic Author
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

9 years 8 months ago [\#260610](#260610) by [river](/forum/user/9591-river "View river's Profile")  Replied by *[river](/forum/user/9591-river "View river's Profile")* on topic *[Availability: On Stock / Out of Stock](/forum/4-how-to/76154-availability-on-stock-out-of-stock#260610 "Hikashop 2.0 Business  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 &quot;in stock&quot; or &quot;Out of Stock&quot;  Does Hikashop 2.0 have this function ?")*

Joomla 3.6.5
Hikashop 3.0

I want the same function on my site using hikashop 3.0

But when I look at the file product &#124; 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTU0LWF2YWlsYWJpbGl0eS1vbi1zdG9jay1vdXQtb2Ytc3RvY2s/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

9 years 8 months ago [\#260613](#260613) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Availability: On Stock / Out of Stock](/forum/4-how-to/76154-availability-on-stock-out-of-stock#260613 "Hikashop 2.0 Business  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 &quot;in stock&quot; or &quot;Out of Stock&quot;  Does Hikashop 2.0 have this function ?")*

Hi,

It's now that code which handles that: Code:

if($this-&gt;row-&gt;product_quantity &gt; 0) echo (($this-&gt;row-&gt;product_quantity == 1 &amp;&amp; JText::_('X_ITEM_IN_STOCK') != 'X_ITEM_IN_STOCK') ? JText::sprintf('X_ITEM_IN_STOCK', $this-&gt;row-&gt;product_quantity) : JText::sprintf('X_ITEMS_IN_STOCK', $this-&gt;row-&gt;product_quantity)); elseif(!$in_stock) echo JText::_('NO_STOCK');

That you could change to:
Code:

if($this-&gt;row-&gt;product_quantity &gt; 0) echo 'in stock'; elseif(!$in_stock) echo JText::_('NO_STOCK');

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTU0LWF2YWlsYWJpbGl0eS1vbi1zdG9jay1vdXQtb2Ytc3RvY2s/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.620 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
