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

#   How to display a stock in "unlimited quantity"

##

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

Less More

- Posts: 130
- Thank you received: 1
-
-

14 years 8 months ago [\#38673](#38673) by [karolko](/forum/user/3819-karolko "View karolko's Profile")  *[How to display a stock in "unlimited quantity"](/forum/2-general-talk-about-hikashop/38673-how-to-display-a-stock-in-unlimited-quantity#38673 "Hi,  Is there a way to display stock with unlimited quantity on product listing as &quot;in stock&quot;.  I used language override to display X number in stock as &quot;in stock&quot; for items which I have physically in stock. Is there something similar that can be done for &quot;unlimited quantity&quot; stock?  Thanks,  Karol")* was created by *[karolko](/forum/user/3819-karolko "View karolko's Profile")*

Hi,

Is there a way to display stock with unlimited quantity on product listing as "in stock".

I used language override to display X number in stock as "in stock" for items which I have physically in stock. Is there something similar that can be done for "unlimited quantity" stock?

Thanks,

Karol

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzM4NjczLWhvdy10by1kaXNwbGF5LWEtc3RvY2staW4tdW5saW1pdGVkLXF1YW50aXR5P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 32
- Thank you received: 4
-
-

14 years 8 months ago [\#38716](#38716) by [beiker](/forum/user/5912-beiker "View beiker's Profile")  Replied by *[beiker](/forum/user/5912-beiker "View beiker's Profile")* on topic *[Re: How to display a stock in "unlimited quantity"](/forum/2-general-talk-about-hikashop/38673-how-to-display-a-stock-in-unlimited-quantity#38716 "Hi,  Is there a way to display stock with unlimited quantity on product listing as &quot;in stock&quot;.  I used language override to display X number in stock as &quot;in stock&quot; for items which I have physically in stock. Is there something similar that can be done for &quot;unlimited quantity&quot; stock?  Thanks,  Karol")*

Hi Karol. Can you paste a screenshot on this?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzM4NjczLWhvdy10by1kaXNwbGF5LWEtc3RvY2staW4tdW5saW1pdGVkLXF1YW50aXR5P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 130
- Thank you received: 1
-
-

14 years 8 months ago [\#38739](#38739) by [karolko](/forum/user/3819-karolko "View karolko's Profile")  Replied by *[karolko](/forum/user/3819-karolko "View karolko's Profile")* on topic *[Re: How to display a stock in "unlimited quantity"](/forum/2-general-talk-about-hikashop/38673-how-to-display-a-stock-in-unlimited-quantity#38739 "Hi,  Is there a way to display stock with unlimited quantity on product listing as &quot;in stock&quot;.  I used language override to display X number in stock as &quot;in stock&quot; for items which I have physically in stock. Is there something similar that can be done for &quot;unlimited quantity&quot; stock?  Thanks,  Karol")*

Nicolas,

First picture shows a case on product listing page where:

quantity of a product &gt; 0 and I customized Czech translation of X_ITEMS_IN_STOCK="skladem" (meaning in-stock, without showing number of items in stock)

Second picture shows a case on product listing page where:

quanity of a product = unlimited, nothing is displayed on product listing page about quantity in this case

What I am looking for in second case is to have an option to display some text on product listing page (something like pre-order or available on demand) if the quantity of the product is unlimited.

Thanks,

Karol

- [ ![instock.jpg](/forum/attachment/2685) ](/forum/attachment/2685 "instock.jpg") [ ](/forum/attachment/2685?download=1 "instock.jpg")
- [ ![unlimited.jpg](/forum/attachment/2686) ](/forum/attachment/2686 "unlimited.jpg") [ ](/forum/attachment/2686?download=1 "unlimited.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzM4NjczLWhvdy10by1kaXNwbGF5LWEtc3RvY2staW4tdW5saW1pdGVkLXF1YW50aXR5P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86321
- Thank you received: 14279
-
-

14 years 8 months ago [\#38918](#38918) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to display a stock in "unlimited quantity"](/forum/2-general-talk-about-hikashop/38673-how-to-display-a-stock-in-unlimited-quantity#38918 "Hi,  Is there a way to display stock with unlimited quantity on product listing as &quot;in stock&quot;.  I used language override to display X number in stock as &quot;in stock&quot; for items which I have physically in stock. Is there something similar that can be done for &quot;unlimited quantity&quot; stock?  Thanks,  Karol")*

You will have to edit the file 'quantity' of the view "product" via the menu Display-&gt;Views and add the code: Code:

echo JText::_('X_ITEMS_IN_STOCK');

just before the code: Code:

echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_CART'),'add',$this-&gt;params,$url,$this-&gt;ajax,'',$this-&gt;row-&gt;product_max_per_order,$this-&gt;row-&gt;product_min_per_order); }elseif($this-&gt;row-&gt;product_quantity&gt;0){

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzM4NjczLWhvdy10by1kaXNwbGF5LWEtc3RvY2staW4tdW5saW1pdGVkLXF1YW50aXR5P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 130
- Thank you received: 1
-
-

14 years 8 months ago [\#38927](#38927) by [karolko](/forum/user/3819-karolko "View karolko's Profile")  Replied by *[karolko](/forum/user/3819-karolko "View karolko's Profile")* on topic *[Re: How to display a stock in "unlimited quantity"](/forum/2-general-talk-about-hikashop/38673-how-to-display-a-stock-in-unlimited-quantity#38927 "Hi,  Is there a way to display stock with unlimited quantity on product listing as &quot;in stock&quot;.  I used language override to display X number in stock as &quot;in stock&quot; for items which I have physically in stock. Is there something similar that can be done for &quot;unlimited quantity&quot; stock?  Thanks,  Karol")*

How would the code look like if I wanted to display different text for quantity = unlimited. If I use your code I will get "in-stock" displayed for products of unlimited quantity which is not what I want.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzM4NjczLWhvdy10by1kaXNwbGF5LWEtc3RvY2staW4tdW5saW1pdGVkLXF1YW50aXR5P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86321
- Thank you received: 14279
-
-

14 years 8 months ago [\#39064](#39064) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to display a stock in "unlimited quantity"](/forum/2-general-talk-about-hikashop/38673-how-to-display-a-stock-in-unlimited-quantity#39064 "Hi,  Is there a way to display stock with unlimited quantity on product listing as &quot;in stock&quot;.  I used language override to display X number in stock as &quot;in stock&quot; for items which I have physically in stock. Is there something similar that can be done for &quot;unlimited quantity&quot; stock?  Thanks,  Karol")*

Instead of :
echo JText::_('X_ITEMS_IN_STOCK');

you could have:
echo 'Unlimited';

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzM4NjczLWhvdy10by1kaXNwbGF5LWEtc3RvY2staW4tdW5saW1pdGVkLXF1YW50aXR5P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 130
- Thank you received: 1
-
-

14 years 8 months ago [\#39187](#39187) by [karolko](/forum/user/3819-karolko "View karolko's Profile")  Replied by *[karolko](/forum/user/3819-karolko "View karolko's Profile")* on topic *[Re: How to display a stock in "unlimited quantity"](/forum/2-general-talk-about-hikashop/38673-how-to-display-a-stock-in-unlimited-quantity#39187 "Hi,  Is there a way to display stock with unlimited quantity on product listing as &quot;in stock&quot;.  I used language override to display X number in stock as &quot;in stock&quot; for items which I have physically in stock. Is there something similar that can be done for &quot;unlimited quantity&quot; stock?  Thanks,  Karol")*

Thanks Nicolas, working like a charm. ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzM4NjczLWhvdy10by1kaXNwbGF5LWEtc3RvY2staW4tdW5saW1pdGVkLXF1YW50aXR5P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 14
- Thank you received: 0
-
-

8 years 11 months ago [\#283104](#283104) by [natanjarorije](/forum/user/13087-natanjarorije "View natanjarorije's Profile")  Replied by *[natanjarorije](/forum/user/13087-natanjarorije "View natanjarorije's Profile")* on topic *[Re: How to display a stock in "unlimited quantity"](/forum/2-general-talk-about-hikashop/38673-how-to-display-a-stock-in-unlimited-quantity#283104 "Hi,  Is there a way to display stock with unlimited quantity on product listing as &quot;in stock&quot;.  I used language override to display X number in stock as &quot;in stock&quot; for items which I have physically in stock. Is there something similar that can be done for &quot;unlimited quantity&quot; stock?  Thanks,  Karol")*

is this also possible in hikashop 3.2.1? The code of the file 'quantity' of the view "product" is different and I tried different things ![:-(](/media/kunena/emoticons/22.png ":-(")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzM4NjczLWhvdy10by1kaXNwbGF5LWEtc3RvY2staW4tdW5saW1pdGVkLXF1YW50aXR5P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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)
-

8 years 11 months ago [\#283113](#283113) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: How to display a stock in "unlimited quantity"](/forum/2-general-talk-about-hikashop/38673-how-to-display-a-stock-in-unlimited-quantity#283113 "Hi,  Is there a way to display stock with unlimited quantity on product listing as &quot;in stock&quot;.  I used language override to display X number in stock as &quot;in stock&quot; for items which I have physically in stock. Is there something similar that can be done for &quot;unlimited quantity&quot; stock?  Thanks,  Karol")*

Hello,

The idea is still the same (replacing the display of the translation by a raw text) but the code of HikaShop changed a lot during the past 5 years (and 9 months).

If you want to know which view you need to customize, I recommend you to activate temporally the setting "display view files" :
[ www.hikashop.com/support/documentation/5...g.html#advanced\_main](https://www.hikashop.com/support/documentation/54-hikashop-config.html#advanced_main)
It will add some "debug" display very useful when you wan to perform view overrides and know what you need to edit.
[ www.hikashop.com/support/documentation/1...ize-the-display.html](https://www.hikashop.com/support/documentation/153-customize-the-display.html)

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzM4NjczLWhvdy10by1kaXNwbGF5LWEtc3RvY2staW4tdW5saW1pdGVkLXF1YW50aXR5P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 14
- Thank you received: 0
-
-

8 years 11 months ago [\#283143](#283143) by [natanjarorije](/forum/user/13087-natanjarorije "View natanjarorije's Profile")  Replied by *[natanjarorije](/forum/user/13087-natanjarorije "View natanjarorije's Profile")* on topic *[Re: How to display a stock in "unlimited quantity"](/forum/2-general-talk-about-hikashop/38673-how-to-display-a-stock-in-unlimited-quantity#283143 "Hi,  Is there a way to display stock with unlimited quantity on product listing as &quot;in stock&quot;.  I used language override to display X number in stock as &quot;in stock&quot; for items which I have physically in stock. Is there something similar that can be done for &quot;unlimited quantity&quot; stock?  Thanks,  Karol")*

thank you, great function!! the quantity legacy was used instead of quantity ![;-)](/media/kunena/emoticons/24.png ";-)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzM4NjczLWhvdy10by1kaXNwbGF5LWEtc3RvY2staW4tdW5saW1pdGVkLXF1YW50aXR5P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.141 seconds

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

[](#top)
