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

#   Pas de stock=vendu

##

- **[recupart](/forum/user/22376-recupart "View recupart's Profile")**
- [![recupart's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar22376.jpg)](/forum/user/22376-recupart "View recupart's Profile") Topic Author
- [ Offline](/forum/user/22376-recupart)

Less More

- Posts: 20
- Thank you received: 0
-
-
-
- [](http://galerie-vintage.com/)
-

13 years 4 months ago [\#110705](#110705) by [recupart](/forum/user/22376-recupart "View recupart's Profile")  *[Pas de stock=vendu](/forum/5-support-en-francais-french-support-/84123-pas-de-stock-vendu#110705 "Bonjour, Je ne vends que des objets uniques. Si la quantité est &quot;0&quot; je veux avoir à la place du prix &quot;Vendu&quot;. J'ai mis déjà cette mention à la place de &quot;pas de stock&quot; dans le fichier langue. J'aimerais -soit à la place du prix ne plus rien avoir, -soit (c'est que je préférerai)à la place du prix avoir &quot;vendu&quot;, je mettrai alors dans le fichier langue un blanc. Merci. Pierre.")* was created by *[recupart](/forum/user/22376-recupart "View recupart's Profile")*

Bonjour,
Je ne vends que des objets uniques.
Si la quantité est "0" je veux avoir à la place du prix "Vendu".
J'ai mis déjà cette mention à la place de "pas de stock" dans le fichier langue.
J'aimerais
-soit à la place du prix ne plus rien avoir,
-soit (c'est que je préférerai)à la place du prix avoir "vendu", je mettrai alors dans le fichier langue un blanc.
Merci.
Pierre.

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

13 years 4 months ago [\#110714](#110714) 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 *[Pas de stock=vendu](/forum/5-support-en-francais-french-support-/84123-pas-de-stock-vendu#110714 "Bonjour, Je ne vends que des objets uniques. Si la quantité est &quot;0&quot; je veux avoir à la place du prix &quot;Vendu&quot;. J'ai mis déjà cette mention à la place de &quot;pas de stock&quot; dans le fichier langue. J'aimerais -soit à la place du prix ne plus rien avoir, -soit (c'est que je préférerai)à la place du prix avoir &quot;vendu&quot;, je mettrai alors dans le fichier langue un blanc. Merci. Pierre.")*

Bonjour,

Je pense qu'il vous suffira simplement d'éditer le code de votre ficher "show_default" de vitre vue "product" et de votre template de front-end à partir d'"*Hikashop-&gt;Affichage-&gt;Vues*" et enfin de modifier le code : Code:

&lt;span id="hikashop_product_price_main" class="hikashop_product_price_main"&gt; &lt;?php //LAYOUT listing_price if ($this-&gt;params-&gt;get('show_price')) { $this-&gt;row = &amp; $this-&gt;element; $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); } ?&gt; &lt;/span&gt;

par : Code:

&lt;span id="hikashop_product_price_main" class="hikashop_product_price_main"&gt; &lt;?php //LAYOUT listing_price if($this-&gt;element-&gt;product_quantity == 0){ echo 'Vendu&lt;br/&gt;'; }else{ if ($this-&gt;params-&gt;get('show_price')) { $this-&gt;row = &amp; $this-&gt;element; $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); } } ?&gt; &lt;/span&gt;

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

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

- **[recupart](/forum/user/22376-recupart "View recupart's Profile")**
- [![recupart's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar22376.jpg)](/forum/user/22376-recupart "View recupart's Profile") Topic Author
- [ Offline](/forum/user/22376-recupart)

Less More

- Posts: 20
- Thank you received: 0
-
-
-
- [](http://galerie-vintage.com/)
-

13 years 4 months ago [\#110717](#110717) by [recupart](/forum/user/22376-recupart "View recupart's Profile")  Replied by *[recupart](/forum/user/22376-recupart "View recupart's Profile")* on topic *[Pas de stock=vendu](/forum/5-support-en-francais-french-support-/84123-pas-de-stock-vendu#110717 "Bonjour, Je ne vends que des objets uniques. Si la quantité est &quot;0&quot; je veux avoir à la place du prix &quot;Vendu&quot;. J'ai mis déjà cette mention à la place de &quot;pas de stock&quot; dans le fichier langue. J'aimerais -soit à la place du prix ne plus rien avoir, -soit (c'est que je préférerai)à la place du prix avoir &quot;vendu&quot;, je mettrai alors dans le fichier langue un blanc. Merci. Pierre.")*

Parfait.
Mise en page à revoir mais super.
Merci... Qu'elle rapidité et précision.
Parfait...

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

- **[recupart](/forum/user/22376-recupart "View recupart's Profile")**
- [![recupart's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar22376.jpg)](/forum/user/22376-recupart "View recupart's Profile") Topic Author
- [ Offline](/forum/user/22376-recupart)

Less More

- Posts: 20
- Thank you received: 0
-
-
-
- [](http://galerie-vintage.com/)
-

13 years 4 months ago [\#110721](#110721) by [recupart](/forum/user/22376-recupart "View recupart's Profile")  Replied by *[recupart](/forum/user/22376-recupart "View recupart's Profile")* on topic *[Pas de stock=vendu](/forum/5-support-en-francais-french-support-/84123-pas-de-stock-vendu#110721 "Bonjour, Je ne vends que des objets uniques. Si la quantité est &quot;0&quot; je veux avoir à la place du prix &quot;Vendu&quot;. J'ai mis déjà cette mention à la place de &quot;pas de stock&quot; dans le fichier langue. J'aimerais -soit à la place du prix ne plus rien avoir, -soit (c'est que je préférerai)à la place du prix avoir &quot;vendu&quot;, je mettrai alors dans le fichier langue un blanc. Merci. Pierre.")*

Fonctionne parfaitement pour
hikashop-menu-for-products-listing/product/
(vue du produit)
mais pas pour
hikashop-menu-for-products-listing
(listing de mes produits)

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 4 months ago [\#110735](#110735) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Pas de stock=vendu](/forum/5-support-en-francais-french-support-/84123-pas-de-stock-vendu#110735 "Bonjour, Je ne vends que des objets uniques. Si la quantité est &quot;0&quot; je veux avoir à la place du prix &quot;Vendu&quot;. J'ai mis déjà cette mention à la place de &quot;pas de stock&quot; dans le fichier langue. J'aimerais -soit à la place du prix ne plus rien avoir, -soit (c'est que je préférerai)à la place du prix avoir &quot;vendu&quot;, je mettrai alors dans le fichier langue un blanc. Merci. Pierre.")*

Bonjour,

Il faut que vous éditiez la vue que vous utilisez pour afficher les produit (par exemple listing_img_title) et que vous remplaciez ceci:
Code:

if($this-&gt;params-&gt;get('show_price')){ $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); }

par ceci:
Code:

if($this-&gt;params-&gt;get('show_price')){ if($this-&gt;row-&gt;product_quantity==0){ echo 'Vendu&lt;br/&gt;'; }else{ $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); } }

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

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

- **[recupart](/forum/user/22376-recupart "View recupart's Profile")**
- [![recupart's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar22376.jpg)](/forum/user/22376-recupart "View recupart's Profile") Topic Author
- [ Offline](/forum/user/22376-recupart)

Less More

- Posts: 20
- Thank you received: 0
-
-
-
- [](http://galerie-vintage.com/)
-

13 years 4 months ago [\#110741](#110741) by [recupart](/forum/user/22376-recupart "View recupart's Profile")  Replied by *[recupart](/forum/user/22376-recupart "View recupart's Profile")* on topic *[Pas de stock=vendu](/forum/5-support-en-francais-french-support-/84123-pas-de-stock-vendu#110741 "Bonjour, Je ne vends que des objets uniques. Si la quantité est &quot;0&quot; je veux avoir à la place du prix &quot;Vendu&quot;. J'ai mis déjà cette mention à la place de &quot;pas de stock&quot; dans le fichier langue. J'aimerais -soit à la place du prix ne plus rien avoir, -soit (c'est que je préférerai)à la place du prix avoir &quot;vendu&quot;, je mettrai alors dans le fichier langue un blanc. Merci. Pierre.")*

Parfait
Merci...

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

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

[](#top)
