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

#   No stock display

##

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

Less More

- Posts: 441
- Thank you received: 24
-
- [](http://www.visual5.es)
-

12 years 5 months ago [\#154307](#154307) by [condorazul](/forum/user/4911-condorazul "View condorazul's Profile")  *[No stock display](/forum/26-product-category-display/867853-no-stock-display#154307 "I would like in the product listings that in case that a product has no stock, the view should display a buttom to go to the product, like view product and it takes you to the product, once inside the...")* was created by *[condorazul](/forum/user/4911-condorazul "View condorazul's Profile")*

I would like in the product listings that in case that a product has no stock, the view should display a buttom to go to the product, like view product and it takes you to the product, once inside the buttom add to cart is not displayed as its out of stock and the message out of stock is displayed also.

Resuming, change the text out of stock for a buttom see the product in product listing view

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 5 months ago [\#154308](#154308) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[No stock display](/forum/26-product-category-display/867853-no-stock-display#154308 "I would like in the product listings that in case that a product has no stock, the view should display a buttom to go to the product, like view product and it takes you to the product, once inside the...")*

Hi,

You just have to do some views override.
[ www.hikashop.com/support/support/documen...ize-the-display.html](http://www.hikashop.com/support/support/documentation/153-customize-the-display.html)

Edit "product / quantity" and check replace Code:

echo JText::_('NO_STOCK');

By: Code:

echo '&lt;a href="'.hikashop_completeLink('product&amp;task=show&amp;product_id='.$this-&gt;row-&gt;product_id.'&amp;name='.$this-&gt;row-&gt;alias.$url_itemid.$this-&gt;category_pathway).'" class="button btn"&gt;'.JText::_('SEE_THE_PRODUCT').'&lt;/a&gt;';

And add a translation override like:

> SEE\_THE\_PRODUCT="See product"

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

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

Less More

- Posts: 441
- Thank you received: 24
-
- [](http://www.visual5.es)
-

12 years 5 months ago [\#154452](#154452) by [condorazul](/forum/user/4911-condorazul "View condorazul's Profile")  Replied by *[condorazul](/forum/user/4911-condorazul "View condorazul's Profile")* on topic *[No stock display](/forum/26-product-category-display/867853-no-stock-display#154452 "I would like in the product listings that in case that a product has no stock, the view should display a buttom to go to the product, like view product and it takes you to the product, once inside the...")*

This is quite close but not exact, i would like insede the product to be displayed no stock, the buttom should be in the product listing.
Inside the product just no stock.

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

12 years 5 months ago [\#154495](#154495) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[No stock display](/forum/26-product-category-display/867853-no-stock-display#154495 "I would like in the product listings that in case that a product has no stock, the view should display a buttom to go to the product, like view product and it takes you to the product, once inside the...")*

Hi,

Replace the code of the product/quantity.php with this and it should do what you want: Code:

&lt;?php global $Itemid; $url_itemid = ''; if(!empty($Itemid)) $url_itemid = '&amp;Itemid='.$Itemid; if($this-&gt;config-&gt;get('show_quantity_field')==-2){ $this-&gt;params-&gt;set('show_quantity_field',$this-&gt;row-&gt;product_display_quantity_field); } $config =&amp; hikashop_config(); $wishlistEnabled = $config-&gt;get('enable_wishlist', 1); $hideForGuest = 1; if(($config-&gt;get('hide_wishlist_guest', 1) &amp;&amp; hikashop_loadUser() != null) &#124;&#124; !$config-&gt;get('hide_wishlist_guest', 1)){ $hideForGuest = 0; } if(!isset($this-&gt;cart)) $this-&gt;cart = hikashop_get('helper.cart'); $this-&gt;cart = hikashop_get('helper.cart'); $url = ''; $module_id = $this-&gt;params-&gt;get('from_module',0); if(empty($this-&gt;ajax)){ $this-&gt;ajax = 'return hikashopModifyQuantity(\''.$this-&gt;row-&gt;product_id.'\',field,1,0,\'cart\','.$module_id.')'; } if(@$this-&gt;row-&gt;product_sale_start &#124;&#124; empty($this-&gt;element-&gt;main)){ $start_date = @$this-&gt;row-&gt;product_sale_start; }else{ $start_date = $this-&gt;element-&gt;main-&gt;product_sale_start; } if(@$this-&gt;row-&gt;product_sale_end &#124;&#124; empty($this-&gt;element-&gt;main)){ $end_date = @$this-&gt;row-&gt;product_sale_end; }else{ $end_date = $this-&gt;element-&gt;main-&gt;product_sale_end; } $formName = ',0'; if (!$this-&gt;config-&gt;get('ajax_add_to_cart', 0) &#124;&#124; ($this-&gt;config-&gt;get('show_quantity_field')&gt;=2 &amp;&amp; !@$this-&gt;element-&gt;product_id)) { if(empty($this-&gt;formName)) { if(@$this-&gt;row-&gt;product_id) $formName = ',\'hikashop_product_form_'.$this-&gt;row-&gt;product_id.'_'.$this-&gt;params-&gt;get('main_div_name').'\''; else $formName = ',\'hikashop_product_form_'.$this-&gt;params-&gt;get('main_div_name').'\''; } else { $formName = $this-&gt;formName; } } if($end_date &amp;&amp; $end_date&lt;time()){ ?&gt; &lt;span class="hikashop_product_sale_end"&gt; &lt;?php echo JText::_('ITEM_NOT_SOLD_ANYMORE'); ?&gt; &lt;/span&gt; &lt;?php }elseif($start_date &amp;&amp; $start_date&gt;time()){ ?&gt; &lt;span class="hikashop_product_sale_start"&gt; &lt;?php echo JText::sprintf('ITEM_SOLD_ON_DATE',hikashop_getDate($start_date,$this-&gt;params-&gt;get('date_format','%d %B %Y'))); //TODO echo $this-&gt;cart-&gt;displayButton(JText::_('Pre-order and add to cart'),'add',$this-&gt;params,$url,$ajax); ?&gt; &lt;/span&gt; &lt;?php }elseif(!$this-&gt;params-&gt;get('catalogue') &amp;&amp; ($this-&gt;config-&gt;get('display_add_to_cart_for_free_products') &#124;&#124; !empty($this-&gt;row-&gt;prices))){ if(@$this-&gt;row-&gt;product_min_per_order &#124;&#124; empty($this-&gt;element-&gt;main)){ $min = @$this-&gt;row-&gt;product_min_per_order; }else{ $min = @$this-&gt;element-&gt;main-&gt;product_min_per_order; } if(@$this-&gt;row-&gt;product_max_per_order &#124;&#124; empty($this-&gt;element-&gt;main)){ $max = @$this-&gt;row-&gt;product_max_per_order; }else{ $max = @$this-&gt;element-&gt;main-&gt;product_max_per_order; } if($min&lt;=0){ $min=1; } $wishlistAjax = 'if(hikashopCheckChangeForm(\'item\''.$formName.')){ return hikashopModifyQuantity(\'' . (int)@$this-&gt;row-&gt;product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }'; if($this-&gt;row-&gt;product_quantity == -1 &amp;&amp; !empty($this-&gt;element-&gt;main) &amp;&amp; $this-&gt;element-&gt;main-&gt;product_quantity != -1){ $this-&gt;row-&gt;product_quantity = $this-&gt;element-&gt;main-&gt;product_quantity; } $btnType = 'add'; if($this-&gt;row-&gt;product_quantity==-1){ ?&gt; &lt;div class="hikashop_product_stock"&gt; &lt;?php if(!empty($this-&gt;row-&gt;has_options)){ if($this-&gt;params-&gt;get('add_to_cart',1)) echo $this-&gt;cart-&gt;displayButton(JText::_('CHOOSE_OPTIONS'),'choose_options',$this-&gt;params,hikashop_completeLink('product&amp;task=show&amp;product_id='.$this-&gt;row-&gt;product_id.'&amp;name='.$this-&gt;row-&gt;alias.$url_itemid.$this-&gt;category_pathway),'window.location = \''.str_replace("'","\'",hikashop_completeLink('product&amp;task=show&amp;product_id='.$this-&gt;row-&gt;product_id.'&amp;name='.$this-&gt;row-&gt;alias.$url_itemid.$this-&gt;category_pathway)).'\';return false;',''); }else{ if($this-&gt;params-&gt;get('add_to_cart',1)){ echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_CART'),'add',$this-&gt;params,$url,$this-&gt;ajax,'',$max,$min); $btnType = 'wish'; } if(hikashop_level(1) &amp;&amp; $this-&gt;params-&gt;get('add_to_wishlist') &amp;&amp; $wishlistEnabled &amp;&amp; !$hideForGuest &amp;&amp; $this-&gt;config-&gt;get('display_add_to_wishlist_for_free_products','1')){ echo '&lt;div id="hikashop_add_wishlist"&gt;'; echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_WISHLIST'),$btnType,$this-&gt;params,$url,$wishlistAjax,'',$max,$min,'',false); echo '&lt;/div&gt;'; } } }elseif($this-&gt;row-&gt;product_quantity&gt;0){ ?&gt; &lt;div class="hikashop_product_stock"&gt; &lt;?php echo '&lt;span class="hikashop_product_stock_count"&gt;'.JText::sprintf('X_ITEMS_IN_STOCK',$this-&gt;row-&gt;product_quantity).'&lt;br/&gt;&lt;/span&gt;'; if($config-&gt;get('button_style','normal')=='css'){ echo '&lt;br /&gt;'; } if($max&lt;=0 &#124;&#124; $max&gt;$this-&gt;row-&gt;product_quantity) $max = $this-&gt;row-&gt;product_quantity; if(!empty($this-&gt;row-&gt;has_options)){ if($this-&gt;params-&gt;get('add_to_cart',1)) echo $this-&gt;cart-&gt;displayButton(JText::_('CHOOSE_OPTIONS'),'choose_options',$this-&gt;params,hikashop_completeLink('product&amp;task=show&amp;product_id='.$this-&gt;row-&gt;product_id.'&amp;name='.$this-&gt;row-&gt;alias.$url_itemid.$this-&gt;category_pathway),'window.location = \''.str_replace("'","\'",hikashop_completeLink('product&amp;task=show&amp;product_id='.$this-&gt;row-&gt;product_id.'&amp;name='.$this-&gt;row-&gt;alias.$url_itemid.$this-&gt;category_pathway)).'\';return false;',''); }else{ if($this-&gt;params-&gt;get('add_to_cart',1)){ echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_CART'),'add',$this-&gt;params,$url,$this-&gt;ajax,'',$max,$min); $btnType = 'wish'; } if(hikashop_level(1) &amp;&amp; $this-&gt;params-&gt;get('add_to_wishlist') &amp;&amp; $wishlistEnabled &amp;&amp; !$hideForGuest &amp;&amp; $this-&gt;config-&gt;get('display_add_to_wishlist_for_free_products','1')){ echo '&lt;div id="hikashop_add_wishlist"&gt;'; echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_WISHLIST'),$btnType,$this-&gt;params,$url,$wishlistAjax,'',$max,$min,'',false); echo '&lt;/div&gt;'; } } }else{ ?&gt; &lt;div class="hikashop_product_no_stock"&gt; &lt;?php echo JText::_('NO_STOCK').'&lt;br/&gt;'; $waitlist = $this-&gt;config-&gt;get('product_waitlist',0); if(hikashop_level(1) &amp;&amp; ($waitlist==2 &#124;&#124; ($waitlist==1 &amp;&amp; (!empty($this-&gt;element-&gt;main-&gt;product_waitlist) &#124;&#124; !empty($this-&gt;element-&gt;product_waitlist))))){ ?&gt; &lt;/div&gt;&lt;div id="hikashop_product_waitlist_main" class="hikashop_product_waitlist_main"&gt; &lt;?php $empty=''; jimport('joomla.html.parameter'); $params = new HikaParameter($empty); echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_ME_WAITLIST'),'add_waitlist',$params,hikashop_completeLink('product&amp;task=waitlist&amp;cid='.$this-&gt;row-&gt;product_id.$url_itemid),'window.location=\''.str_replace("'","\'",hikashop_completeLink('product&amp;task=waitlist&amp;cid='.$this-&gt;row-&gt;product_id.$url_itemid)).'\';return false;'); } if(hikashop_level(1) &amp;&amp; $this-&gt;params-&gt;get('add_to_wishlist') &amp;&amp; $wishlistEnabled &amp;&amp; !$hideForGuest &amp;&amp; $this-&gt;config-&gt;get('display_add_to_wishlist_for_free_products','1')){ if(!empty($this-&gt;row-&gt;has_options)){ if($this-&gt;params-&gt;get('add_to_cart',1)) echo $this-&gt;cart-&gt;displayButton(JText::_('CHOOSE_OPTIONS'),'choose_options',$this-&gt;params,hikashop_completeLink('product&amp;task=show&amp;product_id='.$this-&gt;row-&gt;product_id.'&amp;name='.$this-&gt;row-&gt;alias.$url_itemid.$this-&gt;category_pathway),'window.location = \''.str_replace("'","\'",hikashop_completeLink('product&amp;task=show&amp;product_id='.$this-&gt;row-&gt;product_id.'&amp;name='.$this-&gt;row-&gt;alias.$url_itemid.$this-&gt;category_pathway)).'\';return false;',''); }else{ echo '&lt;div id="hikashop_add_wishlist"&gt;'; echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_WISHLIST'),'add',$this-&gt;params,$url,$wishlistAjax,'',@$this-&gt;row-&gt;product_max_per_order,1,'',false); echo '&lt;/div&gt;'; } } }?&gt; &lt;/div&gt; &lt;?php }elseif(hikashop_level(1) &amp;&amp; $wishlistEnabled &amp;&amp; $this-&gt;params-&gt;get('add_to_wishlist','1') &amp;&amp; $this-&gt;config-&gt;get('display_add_to_wishlist_for_free_products','1') &amp;&amp; !$hideForGuest &amp;&amp; !$this-&gt;config-&gt;get('display_add_to_cart_for_free_products')){ if(!empty($this-&gt;row-&gt;has_options)){ if($this-&gt;params-&gt;get('add_to_cart',1)) echo $this-&gt;cart-&gt;displayButton(JText::_('CHOOSE_OPTIONS'),'choose_options',$this-&gt;params,hikashop_completeLink('product&amp;task=show&amp;product_id='.$this-&gt;row-&gt;product_id.'&amp;name='.$this-&gt;row-&gt;alias.$url_itemid.$this-&gt;category_pathway),'window.location = \''.str_replace("'","\'",hikashop_completeLink('product&amp;task=show&amp;product_id='.$this-&gt;row-&gt;product_id.'&amp;name='.$this-&gt;row-&gt;alias.$url_itemid.$this-&gt;category_pathway)).'\';return false;',''); }else{ $wishlistAjax = 'if(hikashopCheckChangeForm(\'item\''.$formName.')){ return hikashopModifyQuantity(\'' . (int)@$this-&gt;row-&gt;product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }'; echo '&lt;div id="hikashop_add_wishlist"&gt;'; echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_WISHLIST'),'add',$this-&gt;params,$url,$wishlistAjax,'',@$this-&gt;row-&gt;product_max_per_order,1,'',false); echo '&lt;/div&gt;'; } }

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

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

Less More

- Posts: 441
- Thank you received: 24
-
- [](http://www.visual5.es)
-

12 years 5 months ago [\#154543](#154543) by [condorazul](/forum/user/4911-condorazul "View condorazul's Profile")  Replied by *[condorazul](/forum/user/4911-condorazul "View condorazul's Profile")* on topic *[No stock display](/forum/26-product-category-display/867853-no-stock-display#154543 "I would like in the product listings that in case that a product has no stock, the view should display a buttom to go to the product, like view product and it takes you to the product, once inside the...")*

copy/paste in the file but did not work, it continues displaying no stock in the product listing

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

12 years 5 months ago [\#154554](#154554) 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 *[No stock display](/forum/26-product-category-display/867853-no-stock-display#154554 "I would like in the product listings that in case that a product has no stock, the view should display a buttom to go to the product, like view product and it takes you to the product, once inside the...")*

Hello,
1.Can you check that you replaced the code of the "quantity" file of the "product" view of the GOOD template through "Hikashop-&gt;Display-&gt;Views" ?
2. Can you show me through some screenshots what do yo exactly want to do ?

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

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

Less More

- Posts: 441
- Thank you received: 24
-
- [](http://www.visual5.es)
-

12 years 5 months ago [\#154710](#154710) by [condorazul](/forum/user/4911-condorazul "View condorazul's Profile")  Replied by *[condorazul](/forum/user/4911-condorazul "View condorazul's Profile")* on topic *[No stock display](/forum/26-product-category-display/867853-no-stock-display#154710 "I would like in the product listings that in case that a product has no stock, the view should display a buttom to go to the product, like view product and it takes you to the product, once inside the...")*

[ ![h409cb02.jpg](/forum/attachment/17068) ](/forum/attachment/17068 "h409cb02.jpg")

[ ![hc37e462.jpg](/forum/attachment/17069) ](/forum/attachment/17069 "hc37e462.jpg")

[ ![h94faee9.jpg](/forum/attachment/17070) ](/forum/attachment/17070 "h94faee9.jpg")

As you can see nothing changed

- [ ![h409cb02.jpg](/forum/attachment/17068) ](/forum/attachment/17068 "h409cb02.jpg") [ ](/forum/attachment/17068?download=1 "h409cb02.jpg")
- [ ![hc37e462.jpg](/forum/attachment/17069) ](/forum/attachment/17069 "hc37e462.jpg") [ ](/forum/attachment/17069?download=1 "hc37e462.jpg")
- [ ![h94faee9.jpg](/forum/attachment/17070) ](/forum/attachment/17070 "h94faee9.jpg") [ ](/forum/attachment/17070?download=1 "h94faee9.jpg")

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

12 years 5 months ago [\#154729](#154729) 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 *[No stock display](/forum/26-product-category-display/867853-no-stock-display#154729 "I would like in the product listings that in case that a product has no stock, the view should display a buttom to go to the product, like view product and it takes you to the product, once inside the...")*

And did you check that you edited the file of the GOOD front-end template that you are currently using ?

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

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

Less More

- Posts: 441
- Thank you received: 24
-
- [](http://www.visual5.es)
-

12 years 5 months ago [\#154826](#154826) by [condorazul](/forum/user/4911-condorazul "View condorazul's Profile")  Replied by *[condorazul](/forum/user/4911-condorazul "View condorazul's Profile")* on topic *[No stock display](/forum/26-product-category-display/867853-no-stock-display#154826 "I would like in the product listings that in case that a product has no stock, the view should display a buttom to go to the product, like view product and it takes you to the product, once inside the...")*

YES

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 5 months ago [\#154838](#154838) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[No stock display](/forum/26-product-category-display/867853-no-stock-display#154838 "I would like in the product listings that in case that a product has no stock, the view should display a buttom to go to the product, like view product and it takes you to the product, once inside the...")*

Hi,

Thanks to try to replace: Code:

echo JText::_('NO_STOCK');

By: Code:

$l = JRequest::getVar('layout','??'); if($l == 'listing'){ echo '&lt;a href="'.hikashop_completeLink('product&amp;task=show&amp;product_id='.$this-&gt;row-&gt;product_id.'&amp;name='.$this-&gt;row-&gt;alias.$url_itemid.$this-&gt;category_pathway).'" class="button btn"&gt;'.JText::_('SEE_THE_PRODUCT').'&lt;/a&gt;'; }else{ echo JText::_('NO_STOCK').'&lt;br/&gt;'; }

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

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

Less More

- Posts: 441
- Thank you received: 24
-
- [](http://www.visual5.es)
-

12 years 5 months ago [\#154916](#154916) by [condorazul](/forum/user/4911-condorazul "View condorazul's Profile")  Replied by *[condorazul](/forum/user/4911-condorazul "View condorazul's Profile")* on topic *[No stock display](/forum/26-product-category-display/867853-no-stock-display#154916 "I would like in the product listings that in case that a product has no stock, the view should display a buttom to go to the product, like view product and it takes you to the product, once inside the...")*

Great Xavier works like charm. Thanks

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

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

Less More

- Posts: 36
- Thank you received: 0
-
-

11 years 7 months ago [\#193688](#193688) by [BloodyBakala](/forum/user/36326-bloodybakala "View BloodyBakala's Profile")  Replied by *[BloodyBakala](/forum/user/36326-bloodybakala "View BloodyBakala's Profile")* on topic *[No stock display](/forum/26-product-category-display/867853-no-stock-display#193688 "I would like in the product listings that in case that a product has no stock, the view should display a buttom to go to the product, like view product and it takes you to the product, once inside the...")*

Hello Xavier and Hikashop team,

I am trying to follow this post in order to get rid of the no stock display, or to include something similar in order to get rid of it.

The code above does not work. Maybe any changement from 10 months ago till date?
I even tried to delete the entire line

echo JText::_('NO_STOCK');

and the text does not even delete on page products.

Honored

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

11 years 7 months ago [\#193698](#193698) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[No stock display](/forum/26-product-category-display/867853-no-stock-display#193698 "I would like in the product listings that in case that a product has no stock, the view should display a buttom to go to the product, like view product and it takes you to the product, once inside the...")*

Hi,

If you delete that line from the view file and you don't see any change it can come from two things:
- You're editing the file from the wrong template. Make sure that you're doing it for your frontend template.
- You have some caching on your website preventing you from seeing the change.

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

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

Less More

- Posts: 36
- Thank you received: 0
-
-

11 years 7 months ago [\#193969](#193969) by [BloodyBakala](/forum/user/36326-bloodybakala "View BloodyBakala's Profile")  Replied by *[BloodyBakala](/forum/user/36326-bloodybakala "View BloodyBakala's Profile")* on topic *[No stock display](/forum/26-product-category-display/867853-no-stock-display#193969 "I would like in the product listings that in case that a product has no stock, the view should display a buttom to go to the product, like view product and it takes you to the product, once inside the...")*

Dear Nicolas,
This is strange, because when editing products, I try to put quantity, on the quantitity field,.
I tried to change it from Unlimited to 8 for example and still says no stock display.

No cache activated and all cache and browser cache cleaned.

So I went to HikaShop &gt; Display &gt; Views:

I go to my template and select front end. Then going to product quantity to edit it.
I try to delete the line :
echo JText::_('NO_STOCK');
and still the display No stock appears.

So I want to delete that display, by even delete the piece or code or by including some item quantity, but nothing happens and no item quantity even displayed.

Honored dear Nicolas

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

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

Less More

- Posts: 36
- Thank you received: 0
-
-

11 years 7 months ago [\#193993](#193993) by [BloodyBakala](/forum/user/36326-bloodybakala "View BloodyBakala's Profile")  Replied by *[BloodyBakala](/forum/user/36326-bloodybakala "View BloodyBakala's Profile")* on topic *[No stock display](/forum/26-product-category-display/867853-no-stock-display#193993 "I would like in the product listings that in case that a product has no stock, the view should display a buttom to go to the product, like view product and it takes you to the product, once inside the...")*

waiting for reply

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

11 years 7 months ago [\#193973](#193973) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[No stock display](/forum/26-product-category-display/867853-no-stock-display#193973 "I would like in the product listings that in case that a product has no stock, the view should display a buttom to go to the product, like view product and it takes you to the product, once inside the...")*

Hi,

I don't see how that's possible.
Can you give a link to the page ?

The following user(s) said Thank You: [BloodyBakala](/forum/user/36326-bloodybakala "View BloodyBakala's Profile")

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

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

Less More

- Posts: 36
- Thank you received: 0
-
-

11 years 7 months ago -  11 years 7 months ago [\#194230](#194230) by [BloodyBakala](/forum/user/36326-bloodybakala "View BloodyBakala's Profile")  Replied by *[BloodyBakala](/forum/user/36326-bloodybakala "View BloodyBakala's Profile")* on topic *[No stock display](/forum/26-product-category-display/867853-no-stock-display#194230 "I would like in the product listings that in case that a product has no stock, the view should display a buttom to go to the product, like view product and it takes you to the product, once inside the...")*

Hello back dear,

unfortunately I am finishing it on localhost. if needed i will upload for you.

By the way, this is the complete product / quantity.php .

I just deleted the end:

line echo JText::_('NO_STOCK');

after

&lt;div class="hikashop_product_no_stock"&gt;

*************************************** Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.3.0 * @author hikashop.com * @copyright (C) 2010-2014 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 if($this-&gt;config-&gt;get('show_quantity_field')==-2){ $this-&gt;params-&gt;set('show_quantity_field',$this-&gt;row-&gt;product_display_quantity_field); } $config =&amp; hikashop_config(); $wishlistEnabled = $config-&gt;get('enable_wishlist', 1); $hideForGuest = 1; if(($config-&gt;get('hide_wishlist_guest', 1) &amp;&amp; hikashop_loadUser() != null) &#124;&#124; !$config-&gt;get('hide_wishlist_guest', 1)){ $hideForGuest = 0; } if(!isset($this-&gt;cart)) $this-&gt;cart = hikashop_get('helper.cart'); if(!empty($this-&gt;row-&gt;has_options)){ if($this-&gt;params-&gt;get('add_to_cart',1)) echo $this-&gt;cart-&gt;displayButton(JText::_('CHOOSE_OPTIONS'),'choose_options',$this-&gt;params,hikashop_completeLink('product&amp;task=show&amp;product_id='.$this-&gt;row-&gt;product_id.'&amp;name='.$this-&gt;row-&gt;alias.$this-&gt;itemid.$this-&gt;category_pathway),'window.location = \''.str_replace("'","\'",hikashop_completeLink('product&amp;task=show&amp;product_id='.$this-&gt;row-&gt;product_id.'&amp;name='.$this-&gt;row-&gt;alias.$this-&gt;itemid.$this-&gt;category_pathway)).'\';return false;',''); }else{ $this-&gt;cart = hikashop_get('helper.cart'); $url = ''; $module_id = $this-&gt;params-&gt;get('from_module',0); if(empty($this-&gt;ajax)){ $this-&gt;ajax = 'return hikashopModifyQuantity(\''.$this-&gt;row-&gt;product_id.'\',field,1,0,\'cart\','.$module_id.')'; } if(@$this-&gt;row-&gt;product_sale_start &#124;&#124; empty($this-&gt;element-&gt;main)){ $start_date = @$this-&gt;row-&gt;product_sale_start; }else{ $start_date = $this-&gt;element-&gt;main-&gt;product_sale_start; } if(@$this-&gt;row-&gt;product_sale_end &#124;&#124; empty($this-&gt;element-&gt;main)){ $end_date = @$this-&gt;row-&gt;product_sale_end; }else{ $end_date = $this-&gt;element-&gt;main-&gt;product_sale_end; } $formName = ',0'; if (!$this-&gt;config-&gt;get('ajax_add_to_cart', 0) &#124;&#124; ($this-&gt;config-&gt;get('show_quantity_field')&gt;=2 &amp;&amp; !@$this-&gt;element-&gt;product_id)) { if(empty($this-&gt;formName)) { if(@$this-&gt;row-&gt;product_id) $formName = ',\'hikashop_product_form_'.$this-&gt;row-&gt;product_id.'_'.$this-&gt;params-&gt;get('main_div_name').'\''; else $formName = ',\'hikashop_product_form_'.$this-&gt;params-&gt;get('main_div_name').'\''; } else { $formName = $this-&gt;formName; } } if($end_date &amp;&amp; $end_date&lt;time()){ ?&gt; &lt;span class="hikashop_product_sale_end"&gt; &lt;?php echo JText::_('ITEM_NOT_SOLD_ANYMORE'); ?&gt; &lt;/span&gt; &lt;?php }elseif($start_date &amp;&amp; $start_date&gt;time()){ ?&gt; &lt;span class="hikashop_product_sale_start"&gt; &lt;?php echo JText::sprintf('ITEM_SOLD_ON_DATE',hikashop_getDate($start_date,$this-&gt;params-&gt;get('date_format','%d %B %Y'))); ?&gt; &lt;/span&gt; &lt;?php }elseif(!$this-&gt;params-&gt;get('catalogue') &amp;&amp; ($this-&gt;config-&gt;get('display_add_to_cart_for_free_products') &#124;&#124; !empty($this-&gt;row-&gt;prices))){ if(@$this-&gt;row-&gt;product_min_per_order &#124;&#124; empty($this-&gt;element-&gt;main)){ $min = @$this-&gt;row-&gt;product_min_per_order; }else{ $min = @$this-&gt;element-&gt;main-&gt;product_min_per_order; } if(@$this-&gt;row-&gt;product_max_per_order &#124;&#124; empty($this-&gt;element-&gt;main)){ $max = @$this-&gt;row-&gt;product_max_per_order; }else{ $max = @$this-&gt;element-&gt;main-&gt;product_max_per_order; } if($min&lt;=0){ $min=1; } $wishlistAjax = 'if(hikashopCheckChangeForm(\'item\''.$formName.')){ return hikashopModifyQuantity(\'' . (int)@$this-&gt;row-&gt;product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }'; if($this-&gt;row-&gt;product_quantity == -1 &amp;&amp; !empty($this-&gt;element-&gt;main) &amp;&amp; $this-&gt;element-&gt;main-&gt;product_quantity != -1){ $this-&gt;row-&gt;product_quantity = $this-&gt;element-&gt;main-&gt;product_quantity; } $btnType = 'add'; if($this-&gt;row-&gt;product_quantity==-1){ ?&gt; &lt;div class="hikashop_product_stock"&gt; &lt;?php if($this-&gt;params-&gt;get('add_to_cart',1)){ echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_CART'),'add',$this-&gt;params,$url,$this-&gt;ajax,'',$max,$min); $btnType = 'wish'; } if(hikashop_level(1) &amp;&amp; $this-&gt;params-&gt;get('add_to_wishlist') &amp;&amp; $wishlistEnabled &amp;&amp; !$hideForGuest &amp;&amp; $this-&gt;config-&gt;get('display_add_to_wishlist_for_free_products','1')){ echo '&lt;div id="hikashop_add_wishlist"&gt;'; echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_WISHLIST'),$btnType,$this-&gt;params,$url,$wishlistAjax,'',$max,$min,'',false); echo '&lt;/div&gt;'; } }elseif($this-&gt;row-&gt;product_quantity&gt;0){ ?&gt; &lt;div class="hikashop_product_stock"&gt; &lt;?php if($config-&gt;get('button_style','normal')=='css'){ echo '&lt;br /&gt;'; } if($max&lt;=0 &#124;&#124; $max&gt;$this-&gt;row-&gt;product_quantity) $max = $this-&gt;row-&gt;product_quantity; if($this-&gt;params-&gt;get('add_to_cart',1)){ echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_CART'),'add',$this-&gt;params,$url,$this-&gt;ajax,'',$max,$min); $btnType = 'wish'; } if(hikashop_level(1) &amp;&amp; $this-&gt;params-&gt;get('add_to_wishlist') &amp;&amp; $wishlistEnabled &amp;&amp; !$hideForGuest &amp;&amp; $this-&gt;config-&gt;get('display_add_to_wishlist_for_free_products','1')){ echo '&lt;div id="hikashop_add_wishlist"&gt;'; echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_WISHLIST'),$btnType,$this-&gt;params,$url,$wishlistAjax,'',$max,$min,'',false); echo '&lt;/div&gt;'; } }else{ ?&gt; &lt;div class="hikashop_product_no_stock"&gt; &lt;?php $waitlist = $this-&gt;config-&gt;get('product_waitlist',0); if(hikashop_level(1) &amp;&amp; ($waitlist==2 &#124;&#124; ($waitlist==1 &amp;&amp; (!empty($this-&gt;element-&gt;main-&gt;product_waitlist) &#124;&#124; !empty($this-&gt;element-&gt;product_waitlist))))){ ?&gt; &lt;/div&gt;&lt;div id="hikashop_product_waitlist_main" class="hikashop_product_waitlist_main"&gt; &lt;?php $empty=''; jimport('joomla.html.parameter'); $params = new HikaParameter($empty); echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_ME_WAITLIST'),'add_waitlist',$params,hikashop_completeLink('product&amp;task=waitlist&amp;cid='.$this-&gt;row-&gt;product_id),'window.location=\''.str_replace("'","\'",hikashop_completeLink('product&amp;task=waitlist&amp;cid='.$this-&gt;row-&gt;product_id)).'\';return false;'); } if(hikashop_level(1) &amp;&amp; $this-&gt;params-&gt;get('add_to_wishlist') &amp;&amp; $wishlistEnabled &amp;&amp; !$hideForGuest &amp;&amp; $this-&gt;config-&gt;get('display_add_to_wishlist_for_free_products','1')){ echo '&lt;div id="hikashop_add_wishlist"&gt;'; echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_WISHLIST'),'add',$this-&gt;params,$url,$wishlistAjax,'',@$this-&gt;row-&gt;product_max_per_order,1,'',false); echo '&lt;/div&gt;'; } }?&gt; &lt;/div&gt; &lt;?php }elseif(hikashop_level(1) &amp;&amp; $wishlistEnabled &amp;&amp; $this-&gt;params-&gt;get('add_to_wishlist','1') &amp;&amp; $this-&gt;config-&gt;get('display_add_to_wishlist_for_free_products','1') &amp;&amp; !$hideForGuest &amp;&amp; !$this-&gt;config-&gt;get('display_add_to_cart_for_free_products')){ $wishlistAjax = 'if(hikashopCheckChangeForm(\'item\''.$formName.')){ return hikashopModifyQuantity(\'' . (int)@$this-&gt;row-&gt;product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }'; echo '&lt;div id="hikashop_add_wishlist"&gt;'; echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_WISHLIST'),'add',$this-&gt;params,$url,$wishlistAjax,'',@$this-&gt;row-&gt;product_max_per_order,1,'',false); echo '&lt;/div&gt;'; } }

Last edit: 11 years 7 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile"). Reason: Use of [code]...[/code] tags

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

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

Less More

- Posts: 36
- Thank you received: 0
-
-

11 years 7 months ago [\#194232](#194232) by [BloodyBakala](/forum/user/36326-bloodybakala "View BloodyBakala's Profile")  Replied by *[BloodyBakala](/forum/user/36326-bloodybakala "View BloodyBakala's Profile")* on topic *[No stock display](/forum/26-product-category-display/867853-no-stock-display#194232 "I would like in the product listings that in case that a product has no stock, the view should display a buttom to go to the product, like view product and it takes you to the product, once inside the...")*

Here is a screen

- [ ![screen.jpg](/forum/attachment/22989) ](/forum/attachment/22989 "screen.jpg") [ ](/forum/attachment/22989?download=1 "screen.jpg")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 7 months ago [\#194257](#194257) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[No stock display](/forum/26-product-category-display/867853-no-stock-display#194257 "I would like in the product listings that in case that a product has no stock, the view should display a buttom to go to the product, like view product and it takes you to the product, once inside the...")*

Hi,

The text don't seem to be coming from the view "product / quantity" but from another one.
We don't have that by default in HikaShop, so it is potentially a view override made by your template.

Please check in the view "product / show_default" if there is no code related on that.

The following user(s) said Thank You: [BloodyBakala](/forum/user/36326-bloodybakala "View BloodyBakala's Profile")

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

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

Less More

- Posts: 36
- Thank you received: 0
-
-

11 years 7 months ago [\#194432](#194432) by [BloodyBakala](/forum/user/36326-bloodybakala "View BloodyBakala's Profile")  Replied by *[BloodyBakala](/forum/user/36326-bloodybakala "View BloodyBakala's Profile")* on topic *[No stock display](/forum/26-product-category-display/867853-no-stock-display#194432 "I would like in the product listings that in case that a product has no stock, the view should display a buttom to go to the product, like view product and it takes you to the product, once inside the...")*

Thank you very much xavier and nicolas. Closed it.

This small code was at my template view "product / show_default" , I just deleted :
else{ echo '&lt;span class="hikashop_product_stock_count"&gt;'.JText::_('NO_STOCK').'&lt;/span&gt;';}

See all piece of code. Closed for me. i hope it to be useful to somebody else. Your are the best guys!

/////////////////

&lt;?php
if( $this-&gt;row-&gt;main-&gt;product_quantity &gt; 0){
echo '&lt;span class="hikashop_product_stock_count"&gt;'.JText::sprintf('X_ITEMS_IN_STOCK',$this-&gt;row-&gt;main-&gt;product_quantity).'&lt;/span&gt;';
}else{ echo '&lt;span class="hikashop_product_stock_count"&gt;'.JText::_('NO_STOCK').'&lt;/span&gt;';} ?&gt;

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

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

[](#top)
