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

#   Change "low-stock" threshold

##

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

Less More

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

1 month 2 weeks ago [\#100000031](#100000031) by [Alimoso](/forum/user/83923-alimoso "View Alimoso's Profile")  *[Change "low-stock" threshold](/forum/26-product-category-display/100000008-change-low-stock-threshold#100000031 "-- HikaShop version -- : HikaShop Business: 6.6.0 -- Joomla version -- : 5.4.8 -- Browser(s) name and version -- : Firefox 140.0  Hiya everyone, I have a question, I'd like to know how to change the low-stock threshold. (I've looked all over and can't find it) It's currently shows at 5 products and I would like to reduce it to 3. Could anyone point me in the right direction to where this is changed please? Thanks in advance 8-) ")* was created by *[Alimoso](/forum/user/83923-alimoso "View Alimoso's Profile")*

-- HikaShop version -- : HikaShop Business: 6.6.0
-- Joomla version -- : 5.4.8
-- Browser(s) name and version -- : Firefox 140.0

Hiya everyone,
I have a question, I'd like to know how to change the low-stock threshold. (I've looked all over and can't find it)
It's currently shows at 5 products and I would like to reduce it to 3.
Could anyone point me in the right direction to where this is changed please?
Thanks in advance ![8-)](/media/kunena/emoticons/9.png "8-)") 

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS8xMDAwMDAwMDgtY2hhbmdlLWxvdy1zdG9jay10aHJlc2hvbGQ/dG1wbD1tYXJrZG93bg==) 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: 86541
- Thank you received: 14304
-
-

1 month 2 weeks ago [\#100000039](#100000039) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Change "low-stock" threshold](/forum/26-product-category-display/100000008-change-low-stock-threshold#100000039 "-- HikaShop version -- : HikaShop Business: 6.6.0 -- Joomla version -- : 5.4.8 -- Browser(s) name and version -- : Firefox 140.0  Hiya everyone, I have a question, I'd like to know how to change the low-stock threshold. (I've looked all over and can't find it) It's currently shows at 5 products and I would like to reduce it to 3. Could anyone point me in the right direction to where this is changed please? Thanks in advance 8-) ")*

Hi,

There is no low-stock threshold setting in HikaShop: the "Plus que 5 en stock" message on your product page does not come from HikaShop itself but from a customization added to the product page view of your site. In the page source it is surrounded by the comment "I added this line for minimum quantity left" and "End of modifications", placed just after the price.

To change the threshold, go to Components &gt; HikaShop &gt; Display &gt; Views, filter on your frontend template and the "product" view, and open the file show_default (it should be shown as customized). Search for "minimum quantity left": just below you will find a condition comparing the product quantity with 5, something like:
Code:

if($this-&gt;element-&gt;product_quantity &lt;= 5)

Replace the 5 with 3 and save. If the edit was made directly in a file instead, it is in templates/YOUR_TEMPLATE/html/com_hikashop/product/show_default.php.

If the condition looks different or you are unsure, copy here the few lines between "I added this line for minimum quantity left" and "End of modifications" and we will tell you what to change.

The following user(s) said Thank You: [Alimoso](/forum/user/83923-alimoso "View Alimoso's Profile")

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

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

Less More

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

1 month 1 week ago [\#100000050](#100000050) by [Alimoso](/forum/user/83923-alimoso "View Alimoso's Profile")  Replied by *[Alimoso](/forum/user/83923-alimoso "View Alimoso's Profile")* on topic *[Change "low-stock" threshold](/forum/26-product-category-display/100000008-change-low-stock-threshold#100000050 "-- HikaShop version -- : HikaShop Business: 6.6.0 -- Joomla version -- : 5.4.8 -- Browser(s) name and version -- : Firefox 140.0  Hiya everyone, I have a question, I'd like to know how to change the low-stock threshold. (I've looked all over and can't find it) It's currently shows at 5 products and I would like to reduce it to 3. Could anyone point me in the right direction to where this is changed please? Thanks in advance 8-) ")*

Thank you very much for your rapid reply.
I commpleatly forgot about adding that.
I did see it in the page code, but thought it was just a CSS modification.

Thanks again!

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

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