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

#   Visualisation du stock...

##

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

Less More

- Posts: 35
- Thank you received: 3
-
-

10 years 2 months ago [\#249710](#249710) by [martial106](/forum/user/7172-martial106 "View martial106's Profile")  *[Visualisation du stock...](/forum/5-support-en-francais-french-support-/886393-visualisation-du-stock#249710 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2  bonjour, serait il possible d'ajouter sur la fiche produit une inscription du niveau de stock qui évolue suivant les quantité Au-dessus d’une certaine quantité (par exemple 20) = en stock entre 10 et 20 articles en stock = Low stock en dessous de 10 = limited stock. Ou mettre une barre qui commence en rouge et se termine en vert, avec un curseur qui se ballade d’un coté à l’autre de la barre, comme une jauge à carburant. un petit coup de main? merci")* was created by *[martial106](/forum/user/7172-martial106 "View martial106's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.2

bonjour,
serait il possible d'ajouter sur la fiche produit une inscription du niveau de stock qui évolue suivant les quantité
Au-dessus d’une certaine quantité (par exemple 20) = en stock entre 10 et 20 articles en stock = Low stock en dessous de 10 = limited stock.
Ou mettre une barre qui commence en rouge et se termine en vert, avec un curseur qui se ballade d’un coté à l’autre de la barre, comme une jauge à carburant.
un petit coup de main?
merci

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

10 years 2 months ago [\#249711](#249711) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Visualisation du stock...](/forum/5-support-en-francais-french-support-/886393-visualisation-du-stock#249711 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2  bonjour, serait il possible d'ajouter sur la fiche produit une inscription du niveau de stock qui évolue suivant les quantité Au-dessus d’une certaine quantité (par exemple 20) = en stock entre 10 et 20 articles en stock = Low stock en dessous de 10 = limited stock. Ou mettre une barre qui commence en rouge et se termine en vert, avec un curseur qui se ballade d’un coté à l’autre de la barre, comme une jauge à carburant. un petit coup de main? merci")*

Bonjour,

Il n'y a pas d'option pour effectuer cela. Cependant, la solution serait de directement modifier le code du fichier "Show_default" de la vue "Product" de votre template de front-end via "Hikashop-&gt;Affichage-&gt;Vues" et utiliser ce genre de code :
Code:

&lt;?php if(isset($this-&gt;element-&gt;product_quantity) &amp;&amp; ($this-&gt;element-&gt;product_quantity == -1 &#124;&#124; $this-&gt;element-&gt;product_quantity &gt;= 20)){ echo 'En stock'; } elseif(isset($this-&gt;element-&gt;product_quantity) &amp;&amp; $this-&gt;element-&gt;product_quantity &gt;= 10 &amp;&amp; $this-&gt;element-&gt;product_quantity &lt; 20){ echo 'Low stock'; } elseif(isset($this-&gt;element-&gt;product_quantity) &amp;&amp; $this-&gt;element-&gt;product_quantity &lt; 10){ echo 'Limited'; } ?&gt;

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

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

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

Less More

- Posts: 35
- Thank you received: 3
-
-

10 years 2 months ago [\#249901](#249901) by [martial106](/forum/user/7172-martial106 "View martial106's Profile")  Replied by *[martial106](/forum/user/7172-martial106 "View martial106's Profile")* on topic *[Visualisation du stock...](/forum/5-support-en-francais-french-support-/886393-visualisation-du-stock#249901 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2  bonjour, serait il possible d'ajouter sur la fiche produit une inscription du niveau de stock qui évolue suivant les quantité Au-dessus d’une certaine quantité (par exemple 20) = en stock entre 10 et 20 articles en stock = Low stock en dessous de 10 = limited stock. Ou mettre une barre qui commence en rouge et se termine en vert, avec un curseur qui se ballade d’un coté à l’autre de la barre, comme une jauge à carburant. un petit coup de main? merci")*

Merci beaucoup!

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

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