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

#   Mode catalogue

##

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

Less More

- Posts: 17
- Thank you received: 0
-
-

10 years 8 months ago [\#231365](#231365) by [theomart](/forum/user/29211-theomart "View theomart's Profile")  *[Mode catalogue](/forum/5-support-en-francais-french-support-/882631-mode-catalogue#231365 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.22 -- Browser(s) name and version -- : Firefox 44.0.2  Bonjour,  Une simple question à laquelle je n'ai pas trouvé de réponse :  Est-il possible de faire afficher la phrase &quot;Ce produit n'est pas disponible&quot; lorsque l'on utilise le mode catalogue ?  Quelqu'un sait-il quel code ajouté à quel fichier ?  D'avance merci,")* was created by *[theomart](/forum/user/29211-theomart "View theomart's Profile")*

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.5.22
-- Browser(s) name and version -- : Firefox 44.0.2

Bonjour,

Une simple question à laquelle je n'ai pas trouvé de réponse :

Est-il possible de faire afficher la phrase "Ce produit n'est pas disponible" lorsque l'on utilise le mode catalogue ?

Quelqu'un sait-il quel code ajouté à quel fichier ?

D'avance merci,

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

10 years 8 months ago [\#231368](#231368) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Mode catalogue](/forum/5-support-en-francais-french-support-/882631-mode-catalogue#231368 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.22 -- Browser(s) name and version -- : Firefox 44.0.2  Bonjour,  Une simple question à laquelle je n'ai pas trouvé de réponse :  Est-il possible de faire afficher la phrase &quot;Ce produit n'est pas disponible&quot; lorsque l'on utilise le mode catalogue ?  Quelqu'un sait-il quel code ajouté à quel fichier ?  D'avance merci,")*

Bonjour,

Editez le fichier "show_default" via le menu Affichage&gt;Vues et ajouter ce code:
&lt;?php if($this-&gt;element-&gt;product_quantity&lt;=0) echo "Ce produit n'est pas disponible"; ?&gt;

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

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

Less More

- Posts: 17
- Thank you received: 0
-
-

10 years 8 months ago [\#231437](#231437) by [theomart](/forum/user/29211-theomart "View theomart's Profile")  Replied by *[theomart](/forum/user/29211-theomart "View theomart's Profile")* on topic *[Mode catalogue](/forum/5-support-en-francais-french-support-/882631-mode-catalogue#231437 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.22 -- Browser(s) name and version -- : Firefox 44.0.2  Bonjour,  Une simple question à laquelle je n'ai pas trouvé de réponse :  Est-il possible de faire afficher la phrase &quot;Ce produit n'est pas disponible&quot; lorsque l'on utilise le mode catalogue ?  Quelqu'un sait-il quel code ajouté à quel fichier ?  D'avance merci,")*

> nicolas wrote: Bonjour,
>
> Editez le fichier "show\_default" via le menu Affichage&gt;Vues et ajouter ce code:
> &lt;?php if($this-&gt;element-&gt;product\_quantity&lt;=0) echo "Ce produit n'est pas disponible"; ?&gt;

Je vous remercie de votre réponse.

Cela fonctionne très bien pour les produits simples mais cela ne fonctionne pas quand il y a une ou plusieurs variantes. J'imagine donc qu'il faut rajouter ce code sur le fichier qui gère l'affichage des variantes, mais j'avoue ne pas avoir trouvé celui-ci.

Quel est le fichier a modifié dans "Vues" pour que les variantes à quantité zéro affiche le message ?

Je vous remercie par avance de votre réponse.

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

10 years 8 months ago [\#231448](#231448) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Mode catalogue](/forum/5-support-en-francais-french-support-/882631-mode-catalogue#231448 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.22 -- Browser(s) name and version -- : Firefox 44.0.2  Bonjour,  Une simple question à laquelle je n'ai pas trouvé de réponse :  Est-il possible de faire afficher la phrase &quot;Ce produit n'est pas disponible&quot; lorsque l'on utilise le mode catalogue ?  Quelqu'un sait-il quel code ajouté à quel fichier ?  D'avance merci,")*

Bonjour,

Pour les variantes, c'est le fichier "show" de la vue "product" où vous voulez rajouter votre code.

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

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

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

Less More

- Posts: 17
- Thank you received: 0
-
-

10 years 7 months ago [\#231576](#231576) by [theomart](/forum/user/29211-theomart "View theomart's Profile")  Replied by *[theomart](/forum/user/29211-theomart "View theomart's Profile")* on topic *[Mode catalogue](/forum/5-support-en-francais-french-support-/882631-mode-catalogue#231576 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.22 -- Browser(s) name and version -- : Firefox 44.0.2  Bonjour,  Une simple question à laquelle je n'ai pas trouvé de réponse :  Est-il possible de faire afficher la phrase &quot;Ce produit n'est pas disponible&quot; lorsque l'on utilise le mode catalogue ?  Quelqu'un sait-il quel code ajouté à quel fichier ?  D'avance merci,")*

Bonjour,

Merci à vous, cela fonctionne !

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

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

[](#top)
