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

#   OUT OF STOCK DISPLAY

##

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

Less More

- Posts: 77
- Thank you received: 1
-
-

11 years 9 months ago [\#187868](#187868) by [samuel](/forum/user/13099-samuel "View samuel's Profile")  *[OUT OF STOCK DISPLAY](/forum/26-product-category-display/874462-out-of-stock-display#187868 "-- url of the page with the problem -- :   www.lockharttactical.com/brand/category/486-boston-leather  -- HikaShop version -- : Latest -- Joomla version -- : latest    www.lockharttactical.com/brand/category/486-boston-leather  As seen here, the &quot;No stock&quot; and the &quot;PRICE&quot; are over lapping.  Can you help me correct this?  Thanks!")* was created by *[samuel](/forum/user/13099-samuel "View samuel's Profile")*

-- url of the page with the problem -- : [ www.lockharttactical.com/brand/category/486-boston-leather](http://www.lockharttactical.com/brand/category/486-boston-leather)
-- HikaShop version -- : Latest
-- Joomla version -- : latest

[ www.lockharttactical.com/brand/category/486-boston-leather](http://www.lockharttactical.com/brand/category/486-boston-leather)

As seen here, the "No stock" and the "PRICE" are over lapping.

Can you help me correct this?

Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzQ0NjItb3V0LW9mLXN0b2NrLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) 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: 26394
- Thank you received: 4077
-
- [](http://obsi.dev)
-

11 years 9 months ago [\#187887](#187887) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[OUT OF STOCK DISPLAY](/forum/26-product-category-display/874462-out-of-stock-display#187887 "-- url of the page with the problem -- :   www.lockharttactical.com/brand/category/486-boston-leather  -- HikaShop version -- : Latest -- Joomla version -- : latest    www.lockharttactical.com/brand/category/486-boston-leather  As seen here, the &quot;No stock&quot; and the &quot;PRICE&quot; are over lapping.  Can you help me correct this?  Thanks!")*

Hi,

You can fix it using some CSS.
[ www.hikashop.com/support/support/documen...ize-the-display.html](http://www.hikashop.com/support/support/documentation/153-customize-the-display.html)

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzQ0NjItb3V0LW9mLXN0b2NrLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) 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 6 months ago -  11 years 6 months ago [\#199259](#199259) by [BloodyBakala](/forum/user/36326-bloodybakala "View BloodyBakala's Profile")  Replied by *[BloodyBakala](/forum/user/36326-bloodybakala "View BloodyBakala's Profile")* on topic *[OUT OF STOCK DISPLAY](/forum/26-product-category-display/874462-out-of-stock-display#199259 "-- url of the page with the problem -- :   www.lockharttactical.com/brand/category/486-boston-leather  -- HikaShop version -- : Latest -- Joomla version -- : latest    www.lockharttactical.com/brand/category/486-boston-leather  As seen here, the &quot;No stock&quot; and the &quot;PRICE&quot; are over lapping.  Can you help me correct this?  Thanks!")*

Hello brothers Xavier, Nicolas and Jerome,

When product if out of out, does not display for me.

Last answer from dear Xavier Was:

1. By default the string "No stock" should be displayed, so I think that you have edited the view "product / quantity" or added a translation override on the key "NO_STOCK".

**
Of Course I have changed the quantity.php in order to add the custom buttom. i only added the input type button, so i do not not was is wrong with out of stock. Here is the attached code. Thanks.
**** 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)){ ?&gt; &lt;input type="button" class="button btn" onClick="window.location='&lt;?php echo $this-&gt;row-&gt;product_url; ?&gt;'; return false;" value="comprar"/&gt; &lt;?php //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 6 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile"). Reason: Use of [code]...[/code] tags

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzQ0NjItb3V0LW9mLXN0b2NrLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) 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 6 months ago [\#199264](#199264) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[OUT OF STOCK DISPLAY](/forum/26-product-category-display/874462-out-of-stock-display#199264 "-- url of the page with the problem -- :   www.lockharttactical.com/brand/category/486-boston-leather  -- HikaShop version -- : Latest -- Joomla version -- : latest    www.lockharttactical.com/brand/category/486-boston-leather  As seen here, the &quot;No stock&quot; and the &quot;PRICE&quot; are over lapping.  Can you help me correct this?  Thanks!")*

Hi,

You have to add the code: Code:

echo JText::_('NO_STOCK').'&lt;br/&gt;';

right after: Code:

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

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

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