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

#   Ne pas afficher prix si le produit si stock 0

##

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

Less More

- Posts: 180
- Thank you received: 0
-
-

10 years 3 months ago [\#247398](#247398) by [micker](/forum/user/105-micker "View micker's Profile")  *[Ne pas afficher prix si le produit si stock 0](/forum/5-support-en-francais-french-support-/885963-ne-pas-afficher-prix-si-le-produit-si-stock-0#247398 "-- HikaShop version -- : 2.6.3 &#91;1606230841&#93; -- Joomla version -- : 3.6.2  Bonjour je voudrais savoir comment faire pour enlever le prix sir le produit n'est plus en stock dans la vue catégorie et dans la vue produit. Merci")* was created by *[micker](/forum/user/105-micker "View micker's Profile")*

-- HikaShop version -- : 2.6.3 [1606230841]
-- Joomla version -- : 3.6.2

Bonjour je voudrais savoir comment faire pour enlever le prix sir le produit n'est plus en stock
dans la vue catégorie et dans la vue produit.
Merci

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

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

Less More

- Posts: 180
- Thank you received: 0
-
-

10 years 3 months ago [\#247399](#247399) by [micker](/forum/user/105-micker "View micker's Profile")  Replied by *[micker](/forum/user/105-micker "View micker's Profile")* on topic *[Ne pas afficher prix si le produit si stock 0](/forum/5-support-en-francais-french-support-/885963-ne-pas-afficher-prix-si-le-produit-si-stock-0#247399 "-- HikaShop version -- : 2.6.3 &#91;1606230841&#93; -- Joomla version -- : 3.6.2  Bonjour je voudrais savoir comment faire pour enlever le prix sir le produit n'est plus en stock dans la vue catégorie et dans la vue produit. Merci")*

autre question lié ... j'utilise un badge quand le stock est à 0
comment faire pour que cela s'affiche sur la page de catégorie ?
Merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODg1OTYzLW5lLXBhcy1hZmZpY2hlci1wcml4LXNpLWxlLXByb2R1aXQtc2ktc3RvY2stMD90bXBsPW1hcmtkb3du) 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 3 months ago [\#247417](#247417) 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 *[Ne pas afficher prix si le produit si stock 0](/forum/5-support-en-francais-french-support-/885963-ne-pas-afficher-prix-si-le-produit-si-stock-0#247417 "-- HikaShop version -- : 2.6.3 &#91;1606230841&#93; -- Joomla version -- : 3.6.2  Bonjour je voudrais savoir comment faire pour enlever le prix sir le produit n'est plus en stock dans la vue catégorie et dans la vue produit. Merci")*

Bonjour,

1. Il n'y a pour l'instant aucune option pour cela, lorsqu'un produit n'est plus en stock le prix reste affiché et un message "plus de stock" s'affiche.
Une solution serait de modifier directement le code des fichiers de la vue "product" via "Hikashop-&gt;Affichages-&gt;Vues" afin d'éviter l'affichage du prix lorsqu'il n'y a plus de stock.

2. Il vous suffira simplement :
- D'aller sur la page de configuration de votre menu de listing de catégories
- D'aller sur l'onglet "Product Options"
- D'activer l'option "Badge"

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

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

Less More

- Posts: 180
- Thank you received: 0
-
-

10 years 3 months ago [\#247464](#247464) by [micker](/forum/user/105-micker "View micker's Profile")  Replied by *[micker](/forum/user/105-micker "View micker's Profile")* on topic *[Ne pas afficher prix si le produit si stock 0](/forum/5-support-en-francais-french-support-/885963-ne-pas-afficher-prix-si-le-produit-si-stock-0#247464 "-- HikaShop version -- : 2.6.3 &#91;1606230841&#93; -- Joomla version -- : 3.6.2  Bonjour je voudrais savoir comment faire pour enlever le prix sir le produit n'est plus en stock dans la vue catégorie et dans la vue produit. Merci")*

1 pouvez vous me donner un bout de code pour la surcharge ?
2 je vais tester merci

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

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

Less More

- Posts: 180
- Thank you received: 0
-
-

10 years 3 months ago [\#247484](#247484) by [micker](/forum/user/105-micker "View micker's Profile")  Replied by *[micker](/forum/user/105-micker "View micker's Profile")* on topic *[Ne pas afficher prix si le produit si stock 0](/forum/5-support-en-francais-french-support-/885963-ne-pas-afficher-prix-si-le-produit-si-stock-0#247484 "-- HikaShop version -- : 2.6.3 &#91;1606230841&#93; -- Joomla version -- : 3.6.2  Bonjour je voudrais savoir comment faire pour enlever le prix sir le produit n'est plus en stock dans la vue catégorie et dans la vue produit. Merci")*

Hello pour le 2
cela ne fonctionne pas

réglage du lien de menu

[ ![reglage.png](/forum/attachment/32989) ](/forum/attachment/32989 "reglage.png")

affichage catégorie

[ ![vue-cat.png](/forum/attachment/32988) ](/forum/attachment/32988 "vue-cat.png")

affichage produit

[ ![produit.png](/forum/attachment/32987) ](/forum/attachment/32987 "produit.png")

- [ ![produit.png](/forum/attachment/32987) ](/forum/attachment/32987 "produit.png") [ ](/forum/attachment/32987?download=1 "produit.png")
- [ ![vue-cat.png](/forum/attachment/32988) ](/forum/attachment/32988 "vue-cat.png") [ ](/forum/attachment/32988?download=1 "vue-cat.png")
- [ ![reglage.png](/forum/attachment/32989) ](/forum/attachment/32989 "reglage.png") [ ](/forum/attachment/32989?download=1 "reglage.png")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 3 months ago -  10 years 3 months ago [\#247466](#247466) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Ne pas afficher prix si le produit si stock 0](/forum/5-support-en-francais-french-support-/885963-ne-pas-afficher-prix-si-le-produit-si-stock-0#247466 "-- HikaShop version -- : 2.6.3 &#91;1606230841&#93; -- Joomla version -- : 3.6.2  Bonjour je voudrais savoir comment faire pour enlever le prix sir le produit n'est plus en stock dans la vue catégorie et dans la vue produit. Merci")*

1.
[ www.hikashop.com/forum/product-category-...n-category-view.html](https://www.hikashop.com/forum/product-category-display/867012-quantity-removal-in-category-view.html)
[ www.hikashop.com/forum/4-how-to/9692-hid...uct-pages.html#27426](https://www.hikashop.com/forum/4-how-to/9692-hiding-the-stock-count-on-the-product-pages.html#27426)

2.
Alors peut être que le soucis vient de votre template. Essayez voir avec le template par défaut de Joomla. Sinon, merci de fournir un lien vers la page en question.

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 10 years 3 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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

Less More

- Posts: 180
- Thank you received: 0
-
-

10 years 2 months ago [\#248721](#248721) by [micker](/forum/user/105-micker "View micker's Profile")  Replied by *[micker](/forum/user/105-micker "View micker's Profile")* on topic *[Ne pas afficher prix si le produit si stock 0](/forum/5-support-en-francais-french-support-/885963-ne-pas-afficher-prix-si-le-produit-si-stock-0#248721 "-- HikaShop version -- : 2.6.3 &#91;1606230841&#93; -- Joomla version -- : 3.6.2  Bonjour je voudrais savoir comment faire pour enlever le prix sir le produit n'est plus en stock dans la vue catégorie et dans la vue produit. Merci")*

hello pour le prix produit quand il n'y a plus de stock j'ai trouver nikel ... par contre pour le badge en mode listing ....
il n'y a pas de surcharge ... bizarre Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.6.3 * @author hikashop.com * @copyright (C) 2010-2016 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;?php $mainDivName = $this-&gt;params-&gt;get('main_div_name',''); $link = hikashop_contentLink('product&amp;task=show&amp;cid='.$this-&gt;row-&gt;product_id.'&amp;name='.$this-&gt;row-&gt;alias.$this-&gt;itemid.$this-&gt;category_pathway,$this-&gt;row); if(!empty($this-&gt;row-&gt;extraData-&gt;top)) { echo implode("\r\n",$this-&gt;row-&gt;extraData-&gt;top); } ?&gt; &lt;div class="hikashop_listing_img" id="div_&lt;?php echo $mainDivName.'_'.$this-&gt;row-&gt;product_id; ?&gt;"&gt; &lt;!-- PRODUCT IMG --&gt; &lt;div class="hikashop_product_image"&gt; &lt;div class="hikashop_product_image_subdiv"&gt; &lt;?php if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt; &lt;a href="&lt;?php echo $link;?&gt;" title="&lt;?php echo $this-&gt;escape($this-&gt;row-&gt;product_name); ?&gt;"&gt; &lt;?php } $image_options = array('default' =&gt; true,'forcesize'=&gt;$this-&gt;config-&gt;get('image_force_size',true),'scale'=&gt;$this-&gt;config-&gt;get('image_scale_mode','inside')); $img = $this-&gt;image-&gt;getThumbnail(@$this-&gt;row-&gt;file_path, array('width' =&gt; $this-&gt;image-&gt;main_thumbnail_x, 'height' =&gt; $this-&gt;image-&gt;main_thumbnail_y), $image_options); if($img-&gt;success) { echo '&lt;img class="hikashop_product_listing_image" title="'.$this-&gt;escape(@$this-&gt;row-&gt;file_description).'" alt="'.$this-&gt;escape(@$this-&gt;row-&gt;file_name).'" src="'.$img-&gt;url.'"/&gt;'; } $main_thumb_x = $this-&gt;image-&gt;main_thumbnail_x; $main_thumb_y = $this-&gt;image-&gt;main_thumbnail_y; $horizontal = '0'; $vertical = '0'; if($this-&gt;params-&gt;get('display_badges',1)){ $this-&gt;classbadge-&gt;placeBadges($this-&gt;image, $this-&gt;row-&gt;badges, $vertical, $horizontal); } $this-&gt;image-&gt;main_thumbnail_x = $main_thumb_x; $this-&gt;image-&gt;main_thumbnail_y = $main_thumb_y; if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt; &lt;/a&gt; &lt;?php } ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- EO PRODUCT IMG --&gt; &lt;!-- PRODUCT PRICE --&gt; &lt;?php if($this-&gt;params-&gt;get('show_price','-1')=='-1'){ $config =&amp; hikashop_config(); $this-&gt;params-&gt;set('show_price',$config-&gt;get('show_price')); } if($this-&gt;params-&gt;get('show_price')){ $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); } ?&gt; &lt;!-- EO PRODUCT PRICE --&gt; &lt;!-- PRODUCT CUSTOM FIELDS --&gt; &lt;?php if(!empty($this-&gt;productFields)) { foreach ($this-&gt;productFields as $fieldName =&gt; $oneExtraField) { if(!empty($this-&gt;row-&gt;$fieldName) &#124;&#124; (isset($this-&gt;row-&gt;$fieldName) &amp;&amp; $this-&gt;row-&gt;$fieldName === '0')) { ?&gt; &lt;dl class="hikashop_product_custom_&lt;?php echo $oneExtraField-&gt;field_namekey;?&gt;_line"&gt; &lt;dt class="hikashop_product_custom_name"&gt; &lt;?php echo $this-&gt;fieldsClass-&gt;getFieldName($oneExtraField);?&gt; &lt;/dt&gt; &lt;dd class="hikashop_product_custom_value"&gt; &lt;?php echo $this-&gt;fieldsClass-&gt;show($oneExtraField,$this-&gt;row-&gt;$fieldName); ?&gt; &lt;/dd&gt; &lt;/dl&gt; &lt;?php } } } ?&gt; &lt;!-- EO PRODUCT CUSTOM FIELDS --&gt; &lt;!-- PRODUCT VOTE --&gt; &lt;?php if($this-&gt;params-&gt;get('show_vote_product')){ $this-&gt;setLayout('listing_vote'); echo $this-&gt;loadTemplate(); } ?&gt; &lt;!-- EO PRODUCT VOTE --&gt; &lt;!-- ADD TO CART BUTTON AREA --&gt; &lt;?php if($this-&gt;params-&gt;get('add_to_cart') &#124;&#124; $this-&gt;params-&gt;get('add_to_wishlist')){ ?&gt;&lt;form action="&lt;?php echo hikashop_completeLink('product&amp;task=updatecart'); ?&gt;" method="post" name="hikashop_product_form_&lt;?php echo $this-&gt;row-&gt;product_id.'_'.$this-&gt;params-&gt;get('main_div_name'); ?&gt;"&gt;&lt;?php $this-&gt;ajax=''; if(!$this-&gt;config-&gt;get('ajax_add_to_cart',0)){ $this-&gt;ajax = 'return hikashopModifyQuantity(\''.$this-&gt;row-&gt;product_id.'\',field,1,\'hikashop_product_form_'.$this-&gt;row-&gt;product_id.'_'.$this-&gt;params-&gt;get('main_div_name').'\',\'cart\');'; } $this-&gt;setLayout('quantity'); echo $this-&gt;loadTemplate(); if(!empty($this-&gt;ajax) &amp;&amp; $this-&gt;config-&gt;get('redirect_url_after_add_cart','stay_if_cart')=='ask_user'){ ?&gt; &lt;input type="hidden" name="popup" value="1"/&gt; &lt;?php } ?&gt; &lt;input type="hidden" name="product_id" value="&lt;?php echo $this-&gt;row-&gt;product_id; ?&gt;" /&gt; &lt;input type="hidden" name="add" value="1"/&gt; &lt;input type="hidden" name="ctrl" value="product"/&gt; &lt;input type="hidden" name="task" value="updatecart"/&gt; &lt;input type="hidden" name="return_url" value="&lt;?php echo urlencode(base64_encode(urldecode($this-&gt;redirect_url)));?&gt;"/&gt; &lt;/form&gt;&lt;?php } ?&gt; &lt;!-- EO ADD TO CART BUTTON AREA --&gt; &lt;!-- COMPARISON AREA --&gt; &lt;?php if(JRequest::getVar('hikashop_front_end_main',0) &amp;&amp; JRequest::getVar('task')=='listing' &amp;&amp; $this-&gt;params-&gt;get('show_compare')) { ?&gt; &lt;br/&gt;&lt;?php if( $this-&gt;params-&gt;get('show_compare') == 1 ) { $js = 'setToCompareList('.$this-&gt;row-&gt;product_id.',\''.$this-&gt;escape($this-&gt;row-&gt;product_name).'\',this); return false;'; echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_COMPARE_LIST'),'compare',$this-&gt;params,$link,$js,'',0,1,'hikashop_compare_button'); } else { ?&gt; &lt;input type="checkbox" class="hikashop_compare_checkbox" id="hikashop_listing_chk_&lt;?php echo $this-&gt;row-&gt;product_id;?&gt;" onchange="setToCompareList(&lt;?php echo $this-&gt;row-&gt;product_id;?&gt;,'&lt;?php echo $this-&gt;escape($this-&gt;row-&gt;product_name); ?&gt;',this);"&gt;&lt;label for="hikashop_listing_chk_&lt;?php echo $this-&gt;row-&gt;product_id;?&gt;"&gt;&lt;?php echo JText::_('ADD_TO_COMPARE_LIST'); ?&gt;&lt;/label&gt; &lt;?php } } ?&gt; &lt;!-- EO COMPARISON AREA --&gt; &lt;/div&gt; &lt;?php if(!empty($this-&gt;row-&gt;extraData-&gt;bottom)) { echo implode("\r\n",$this-&gt;row-&gt;extraData-&gt;bottom); } if($this-&gt;rows[0]-&gt;product_id == $this-&gt;row-&gt;product_id){ ?&gt; &lt;style&gt; #&lt;?php echo $mainDivName; ?&gt; .hikashop_product_image{ height:&lt;?php echo $this-&gt;image-&gt;main_thumbnail_y;?&gt;px; text-align:center; clear:both; } #&lt;?php echo $mainDivName; ?&gt; .hikashop_product_image_subdiv{ position:relative; text-align:center; clear:both; width:&lt;?php echo $this-&gt;image-&gt;main_thumbnail_x;?&gt;px; margin: auto; } &lt;/style&gt; &lt;?php } ?&gt;

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

10 years 2 months ago [\#248734](#248734) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Ne pas afficher prix si le produit si stock 0](/forum/5-support-en-francais-french-support-/885963-ne-pas-afficher-prix-si-le-produit-si-stock-0#248734 "-- HikaShop version -- : 2.6.3 &#91;1606230841&#93; -- Joomla version -- : 3.6.2  Bonjour je voudrais savoir comment faire pour enlever le prix sir le produit n'est plus en stock dans la vue catégorie et dans la vue produit. Merci")*

Bonjour,

Je pense toujours que le problème vient de l'option d'affichage "badges" de votre listing.
Peut être que vous n'éditez pas le bon élément de menu ?
Changez la ligne:
if($this-&gt;params-&gt;get('display_badges',1)){
en:
if(true){
dans votre vue et cela affichera les badges tout le temps.

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

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

Less More

- Posts: 180
- Thank you received: 0
-
-

10 years 2 months ago [\#248807](#248807) by [micker](/forum/user/105-micker "View micker's Profile")  Replied by *[micker](/forum/user/105-micker "View micker's Profile")* on topic *[Ne pas afficher prix si le produit si stock 0](/forum/5-support-en-francais-french-support-/885963-ne-pas-afficher-prix-si-le-produit-si-stock-0#248807 "-- HikaShop version -- : 2.6.3 &#91;1606230841&#93; -- Joomla version -- : 3.6.2  Bonjour je voudrais savoir comment faire pour enlever le prix sir le produit n'est plus en stock dans la vue catégorie et dans la vue produit. Merci")*

alors maintenant c'est bon il y ales badge mais ils sont tous en haut à droite .... et comme les style sont sur les éléments ...
Les infos ci dessous

Part of the message is hidden for the guests. Please log in or register to see it.

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

10 years 2 months ago -  10 years 2 months ago [\#248824](#248824) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Ne pas afficher prix si le produit si stock 0](/forum/5-support-en-francais-french-support-/885963-ne-pas-afficher-prix-si-le-produit-si-stock-0#248824 "-- HikaShop version -- : 2.6.3 &#91;1606230841&#93; -- Joomla version -- : 3.6.2  Bonjour je voudrais savoir comment faire pour enlever le prix sir le produit n'est plus en stock dans la vue catégorie et dans la vue produit. Merci")*

Bonjour,

C'est bien un problème de **Css**, pour corriger cela éditer votre **frontend Css**, je vois que vous avez d'ailleurs déjà customisé celui-ci.
Peut être est ce une valeure qui à justement était supprimée ?

En tout cas, ajouté cela :
Code:

li.span3.hikashop_product { position: relative; }

**Note :** pour éditer votre frondend Css, consulter [ ce tuto](https://www.hikashop.com/support/documentation/272-hikashop-display-by-color.html#custom) (en anglais)

J'espère que cela vous aidera.

Cordialement

Last edit: 10 years 2 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 180
- Thank you received: 0
-
-

10 years 2 months ago [\#249154](#249154) by [micker](/forum/user/105-micker "View micker's Profile")  Replied by *[micker](/forum/user/105-micker "View micker's Profile")* on topic *[Ne pas afficher prix si le produit si stock 0](/forum/5-support-en-francais-french-support-/885963-ne-pas-afficher-prix-si-le-produit-si-stock-0#249154 "-- HikaShop version -- : 2.6.3 &#91;1606230841&#93; -- Joomla version -- : 3.6.2  Bonjour je voudrais savoir comment faire pour enlever le prix sir le produit n'est plus en stock dans la vue catégorie et dans la vue produit. Merci")*

hello tout ceci est réglé sauf que je tombe sur une coquille avec les variantes ...
pour ne pas afficher le prix si la quantité est vide je fais Code:

if(!empty($this-&gt;row-&gt;product_quantity))

dans la vue listing ...
comment faire pour faire ce test sur la quantité des variantes ?
Merci par avance

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

10 years 2 months ago -  10 years 2 months ago [\#249161](#249161) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Ne pas afficher prix si le produit si stock 0](/forum/5-support-en-francais-french-support-/885963-ne-pas-afficher-prix-si-le-produit-si-stock-0#249161 "-- HikaShop version -- : 2.6.3 &#91;1606230841&#93; -- Joomla version -- : 3.6.2  Bonjour je voudrais savoir comment faire pour enlever le prix sir le produit n'est plus en stock dans la vue catégorie et dans la vue produit. Merci")*

Bonjour,

Votre condition devrai plutôt être de ce type : Code:

// Si le code est tout sauf = à 0 : if($this-&gt;row-&gt;product_quantity != 0) { DISPLAY PRICE } // Si besoin, pour les cas ou la quantity = 0 else { DISPLAY COMING SOON...ETC... }

Pour les variantes, elles ne sont d'une manière générale **pas accessibles** sur les listing produits...

Cordialement.

Last edit: 10 years 2 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 180
- Thank you received: 0
-
-

10 years 2 months ago [\#249232](#249232) by [micker](/forum/user/105-micker "View micker's Profile")  Replied by *[micker](/forum/user/105-micker "View micker's Profile")* on topic *[Ne pas afficher prix si le produit si stock 0](/forum/5-support-en-francais-french-support-/885963-ne-pas-afficher-prix-si-le-produit-si-stock-0#249232 "-- HikaShop version -- : 2.6.3 &#91;1606230841&#93; -- Joomla version -- : 3.6.2  Bonjour je voudrais savoir comment faire pour enlever le prix sir le produit n'est plus en stock dans la vue catégorie et dans la vue produit. Merci")*

crotte aucun moyen ??

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

10 years 2 months ago -  10 years 2 months ago [\#249236](#249236) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Ne pas afficher prix si le produit si stock 0](/forum/5-support-en-francais-french-support-/885963-ne-pas-afficher-prix-si-le-produit-si-stock-0#249236 "-- HikaShop version -- : 2.6.3 &#91;1606230841&#93; -- Joomla version -- : 3.6.2  Bonjour je voudrais savoir comment faire pour enlever le prix sir le produit n'est plus en stock dans la vue catégorie et dans la vue produit. Merci")*

Bonjour,

Si bien sur mais cela demande un custom code beaucoup **plus avancé**, cela reste possible si vous disposez de bonnes connaissance en **php** et de la **structure d'HikaShop**.
Ou bien, vous pouvez contacter parmi [ nos partenaires](https://www.hikashop.com/home/our-partners.html), un developpeur pour voir dans un premier temps combien cela pourrait coûter.

Cordialement.

Last edit: 10 years 2 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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