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

#   \[résolu\] Gestion de l'affiche du stock

##

- **[SCHOTT0200](/forum/user/2605-schott0200 "View SCHOTT0200's Profile")**
- [![SCHOTT0200's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2605.png)](/forum/user/2605-schott0200 "View SCHOTT0200's Profile") Topic Author
- [ Offline](/forum/user/2605-schott0200)

Less More

- Posts: 83
- Thank you received: 1
-
-

15 years 4 months ago -  15 years 4 months ago [\#17968](#17968) by [SCHOTT0200](/forum/user/2605-schott0200 "View SCHOTT0200's Profile")  *[\[résolu\] Gestion de l'affiche du stock](/forum/5-support-en-francais-french-support-/17968-resolu-gestion-de-laffiche-du-stock#17968 "Bonjour je souhaiterais ne pas afficher le nombre exact de produit en stock mais pluto une variante -&gt; en stock, pas en stock, sur commande, en commande . C'est possible ? Merci")* was created by *[SCHOTT0200](/forum/user/2605-schott0200 "View SCHOTT0200's Profile")*

Bonjour je souhaiterais ne pas afficher le nombre exact de produit en stock mais pluto une variante -&gt; en stock, pas en stock, sur commande, en commande . C'est possible ?
Merci

Last edit: 15 years 4 months ago by [SCHOTT0200](/forum/user/2605-schott0200 "View SCHOTT0200's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vMTc5NjgtcmVzb2x1LWdlc3Rpb24tZGUtbC1hZmZpY2hlLWR1LXN0b2NrP3RtcGw9bWFya2Rvd24=) 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: 86289
- Thank you received: 14266
-
-

15 years 4 months ago [\#17969](#17969) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Gestion de l'affiche du stock](/forum/5-support-en-francais-french-support-/17968-resolu-gestion-de-laffiche-du-stock#17969 "Bonjour je souhaiterais ne pas afficher le nombre exact de produit en stock mais pluto une variante -&gt; en stock, pas en stock, sur commande, en commande . C'est possible ? Merci")*

Dans la configuration, dans l'onglet langues, vous pouvez override n'importe quel texte d'hikashop, y compris celui pour le stock:
X_ITEMS_IN_STOCK="%s produits en stock"
q'il suffit d'override par:
X_ITEMS_IN_STOCK="en stock"
pour ne pas afficher le stock.

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

- **[SCHOTT0200](/forum/user/2605-schott0200 "View SCHOTT0200's Profile")**
- [![SCHOTT0200's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2605.png)](/forum/user/2605-schott0200 "View SCHOTT0200's Profile") Topic Author
- [ Offline](/forum/user/2605-schott0200)

Less More

- Posts: 83
- Thank you received: 1
-
-

15 years 4 months ago [\#17970](#17970) by [SCHOTT0200](/forum/user/2605-schott0200 "View SCHOTT0200's Profile")  Replied by *[SCHOTT0200](/forum/user/2605-schott0200 "View SCHOTT0200's Profile")* on topic *[Re: Gestion de l'affiche du stock](/forum/5-support-en-francais-french-support-/17968-resolu-gestion-de-laffiche-du-stock#17970 "Bonjour je souhaiterais ne pas afficher le nombre exact de produit en stock mais pluto une variante -&gt; en stock, pas en stock, sur commande, en commande . C'est possible ? Merci")*

Bonjour et merci nicolas, mais je suis toujours incapable de mettre du texte dans l'onglet quantité. Ce champ doit être forcé pour être des chiffres non ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vMTc5NjgtcmVzb2x1LWdlc3Rpb24tZGUtbC1hZmZpY2hlLWR1LXN0b2NrP3RtcGw9bWFya2Rvd24=) 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: 86289
- Thank you received: 14266
-
-

15 years 4 months ago [\#17971](#17971) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Gestion de l'affiche du stock](/forum/5-support-en-francais-french-support-/17968-resolu-gestion-de-laffiche-du-stock#17971 "Bonjour je souhaiterais ne pas afficher le nombre exact de produit en stock mais pluto une variante -&gt; en stock, pas en stock, sur commande, en commande . C'est possible ? Merci")*

Il n'est pas possible de mettre du texte dans la quantité d'un produit. Seuls les nombres sont acceptés.
La solution précédente permet de ne pas afficher de quantité quand vous voulez gérer un stock sans afficher à l'utilisateur le stock.

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

- **[SCHOTT0200](/forum/user/2605-schott0200 "View SCHOTT0200's Profile")**
- [![SCHOTT0200's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2605.png)](/forum/user/2605-schott0200 "View SCHOTT0200's Profile") Topic Author
- [ Offline](/forum/user/2605-schott0200)

Less More

- Posts: 83
- Thank you received: 1
-
-

15 years 4 months ago [\#17972](#17972) by [SCHOTT0200](/forum/user/2605-schott0200 "View SCHOTT0200's Profile")  Replied by *[SCHOTT0200](/forum/user/2605-schott0200 "View SCHOTT0200's Profile")* on topic *[Re: Gestion de l'affiche du stock](/forum/5-support-en-francais-french-support-/17968-resolu-gestion-de-laffiche-du-stock#17972 "Bonjour je souhaiterais ne pas afficher le nombre exact de produit en stock mais pluto une variante -&gt; en stock, pas en stock, sur commande, en commande . C'est possible ? Merci")*

C'est justement mon problème justement c'est que je veux afficher dans la fiche produit en frontend si le produit est en stock, ou pas.

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/stock.png) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/stock.png "&#91;img")

- [ ![stock.png](/forum/attachment/1218) ](/forum/attachment/1218 "stock.png") [ ](/forum/attachment/1218?download=1 "stock.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vMTc5NjgtcmVzb2x1LWdlc3Rpb24tZGUtbC1hZmZpY2hlLWR1LXN0b2NrP3RtcGw9bWFya2Rvd24=) 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: 86289
- Thank you received: 14266
-
-

15 years 4 months ago [\#17974](#17974) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Gestion de l'affiche du stock](/forum/5-support-en-francais-french-support-/17968-resolu-gestion-de-laffiche-du-stock#17974 "Bonjour je souhaiterais ne pas afficher le nombre exact de produit en stock mais pluto une variante -&gt; en stock, pas en stock, sur commande, en commande . C'est possible ? Merci")*

Et bien si le stock est à 0, il sera affiché "pas de stock". Sinon, il sera affiché la traduction X_ITEMS_IN_STOCK dont je vous ai parlé...

Si vous souhaitez afficher plus de possibilités, il faut procéder différement. Il faudrait créer un champs personnalisé de la table "product" avec vos possibilités et vous utiliseriez ce champ pour changer le statut d'un produit manuellement.
Le statut sera affiché sur la fiche produit.
Sinon, la meilleur solution serait de modifier le code d'hikashop pour gérer plus de possibilités pour la quantité, mais pour ça, il faut que vous connaissiez PHP.

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

- **[SCHOTT0200](/forum/user/2605-schott0200 "View SCHOTT0200's Profile")**
- [![SCHOTT0200's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2605.png)](/forum/user/2605-schott0200 "View SCHOTT0200's Profile") Topic Author
- [ Offline](/forum/user/2605-schott0200)

Less More

- Posts: 83
- Thank you received: 1
-
-

15 years 4 months ago [\#17990](#17990) by [SCHOTT0200](/forum/user/2605-schott0200 "View SCHOTT0200's Profile")  Replied by *[SCHOTT0200](/forum/user/2605-schott0200 "View SCHOTT0200's Profile")* on topic *[Re: Gestion de l'affiche du stock](/forum/5-support-en-francais-french-support-/17968-resolu-gestion-de-laffiche-du-stock#17990 "Bonjour je souhaiterais ne pas afficher le nombre exact de produit en stock mais pluto une variante -&gt; en stock, pas en stock, sur commande, en commande . C'est possible ? Merci")*

Génial je viens de comprendre le fonction "override" ! effectivement c'est plus simple. et quand je met "0" sur la quantité effectivement j'ai bien le message pas de stock. Puis-je lui aussi par exemple lui faire dire "pas de stock, mais sur commende" ? Et de plus l'afficher en rouge ?

Hikashop commence vraiment à me plaire ENORMEMENT !! J'attends avec impatient le mariage avec Seblod 2.0 !!

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

- **[SCHOTT0200](/forum/user/2605-schott0200 "View SCHOTT0200's Profile")**
- [![SCHOTT0200's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2605.png)](/forum/user/2605-schott0200 "View SCHOTT0200's Profile") Topic Author
- [ Offline](/forum/user/2605-schott0200)

Less More

- Posts: 83
- Thank you received: 1
-
-

15 years 4 months ago [\#17999](#17999) by [SCHOTT0200](/forum/user/2605-schott0200 "View SCHOTT0200's Profile")  Replied by *[SCHOTT0200](/forum/user/2605-schott0200 "View SCHOTT0200's Profile")* on topic *[Re: Gestion de l'affiche du stock](/forum/5-support-en-francais-french-support-/17968-resolu-gestion-de-laffiche-du-stock#17999 "Bonjour je souhaiterais ne pas afficher le nombre exact de produit en stock mais pluto une variante -&gt; en stock, pas en stock, sur commande, en commande . C'est possible ? Merci")*

J'ai réussi comme un grand !! génial merci pour votre aide.

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/stock2.png) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/stock2.png "&#91;img")

- [ ![stock2.png](/forum/attachment/1221) ](/forum/attachment/1221 "stock2.png") [ ](/forum/attachment/1221?download=1 "stock2.png")

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

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

Less More

- Posts: 42
- Thank you received: 0
-
-

15 years 1 day ago [\#28076](#28076) by [uncreole](/forum/user/1576-uncreole "View uncreole's Profile")  Replied by *[uncreole](/forum/user/1576-uncreole "View uncreole's Profile")* on topic *[Re: Gestion de l'affiche du stock](/forum/5-support-en-francais-french-support-/17968-resolu-gestion-de-laffiche-du-stock#28076 "Bonjour je souhaiterais ne pas afficher le nombre exact de produit en stock mais pluto une variante -&gt; en stock, pas en stock, sur commande, en commande . C'est possible ? Merci")*

bonjour

idem pour moi aussi mais comment on fait "pas de stock seul sur com et en rouge ?

merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vMTc5NjgtcmVzb2x1LWdlc3Rpb24tZGUtbC1hZmZpY2hlLWR1LXN0b2NrP3RtcGw9bWFya2Rvd24=) 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: 86289
- Thank you received: 14266
-
-

15 years 1 day ago [\#28102](#28102) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Gestion de l'affiche du stock](/forum/5-support-en-francais-french-support-/17968-resolu-gestion-de-laffiche-du-stock#28102 "Bonjour je souhaiterais ne pas afficher le nombre exact de produit en stock mais pluto une variante -&gt; en stock, pas en stock, sur commande, en commande . C'est possible ? Merci")*

Dans la configuration, dans l'onglet langues, vous pouvez override n'importe quel texte d'hikashop, y compris celui pour le stock:
NO_STOCK="Pas de stock"
q'il suffit d'override par:
NO_STOCK="&lt;p style='color:red;'&gt;Pas de stock, seulement sur commande&lt;/p&gt;"

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

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

[](#top)
