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

#   don't show number of product in stock

##

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

Less More

- Posts: 846
- Thank you received: 92
-
-

12 years 3 months ago -  12 years 3 months ago [\#169138](#169138) by [lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")  *[don't show number of product in stock](/forum/32-content-creation/870657-dont-show-number-of-product-in-stock#169138 "hi i have a very basic question  I use for menu Product / div Can we disable in the joomla Backend GUI the &quot; 1 item in stock&quot; show in FrontEnd. I know this information is manage by quantity.php at line 120 by this code ? echo ''.$text.'';  thank's")* was created by *[lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")*

hi
i have a very basic question

I use for menu Product / div
Can we disable in the joomla Backend GUI the " 1 item in stock" show in FrontEnd.
I know this information is manage by quantity.php at line 120 by this code ?
echo '&lt;span class="hikashop_product_stock_count"&gt;'.$text.'&lt;br/&gt;&lt;/span&gt;';

thank's

Last edit: 12 years 3 months ago by [lionel75](/forum/user/11856-lionel75 "View lionel75's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODcwNjU3LWRvbnQtc2hvdy1udW1iZXItb2YtcHJvZHVjdC1pbi1zdG9jaz90bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

12 years 2 months ago [\#169142](#169142) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[don't show number of product in stock](/forum/32-content-creation/870657-dont-show-number-of-product-in-stock#169142 "hi i have a very basic question  I use for menu Product / div Can we disable in the joomla Backend GUI the &quot; 1 item in stock&quot; show in FrontEnd. I know this information is manage by quantity.php at line 120 by this code ? echo ''.$text.'';  thank's")*

Hi,

There is no option to do it, but yes, you can modify the quantity view file to remove it. Another possibility, that we usually recommend, is to change the translation of that text with a translation override in order to remove the text without having to do a view override (upgrade will be less risky that way if you minimize the number of view overrides)

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

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

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

Less More

- Posts: 228
- Thank you received: 8
-
-

11 years 8 months ago -  11 years 8 months ago [\#195341](#195341) by [theguy](/forum/user/32584-theguy "View theguy's Profile")  Replied by *[theguy](/forum/user/32584-theguy "View theguy's Profile")* on topic *[don't show number of product in stock](/forum/32-content-creation/870657-dont-show-number-of-product-in-stock#195341 "hi i have a very basic question  I use for menu Product / div Can we disable in the joomla Backend GUI the &quot; 1 item in stock&quot; show in FrontEnd. I know this information is manage by quantity.php at line 120 by this code ? echo ''.$text.'';  thank's")*

Hi,

[strike]I' have a different issue with "1 item in stock". I have a multilingual site and for some reason the "1 item in stock" is showing on the non English site as well. All other values works fine and I get the translation o.k. but 1 will always show in English ![:(](/media/kunena/emoticons/22.png ":(")
Tried to play with the code and add a special JText for 1 item but that didn't work either: Code:

if($this-&gt;row-&gt;product_quantity==1){ if(JText::_('X_ITEM_IN_STOCK')=='X_ITEM_IN_STOCK'){ $text = JText::_('1_ITEMS_IN_STOCK'); }else{ $text = JText::sprintf('X_ITEM_IN_STOCK'); } }else{ $text = JText::sprintf('X_ITEMS_IN_STOCK',$this-&gt;row-&gt;product_quantity); } echo '&lt;span class="hikashop_product_stock_count"&gt;'.$text.'&lt;br/&gt;&lt;/span&gt;'; if($config-&gt;get('button_style','normal')=='css'){ echo '&lt;br /&gt;'; }

Checked maybe I have a template override but no.

Can you please help?[/strike]

**UPDATE**
Just after posting this I've noticed the little S that was added to the language constant and found out that this X_ITEM_IN_STOCK was missing from my language files. Problem solved thank you very much ![:)](/media/kunena/emoticons/3.png ":)")

Last edit: 11 years 8 months ago by [theguy](/forum/user/32584-theguy "View theguy's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODcwNjU3LWRvbnQtc2hvdy1udW1iZXItb2YtcHJvZHVjdC1pbi1zdG9jaz90bXBsPW1hcmtkb3du) 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.045 seconds

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