Jump to content

Extra grey box (which where out of stock goes) is blank with stock - how can I get rid?!


Recommended Posts

Next to an item there are two boxes. The first has the reference in which is fine and there is another box to the right side of it which is blank. 

 

Upon playing around with things I have found when an item is out of stock, this is written in this box. Everything is virtual stock so there will never be anything out of stock. 

 

How can I get rid of this box as it looks silly just a blank empty box sat there!

 

post-650102-0-70705100-1382107054_thumb.png

Link to comment
Share on other sites

you've got there code:
 

<li>
<p id="availability_statut"{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) OR ($product->quantity > 0 && !$product->available_now) OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}>
				
<span id="availability_label">{l s='Availability:'}</span>
				
<span id="availability_value"{if $product->quantity <= 0} class="warning_inline"{/if}>
				
{if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if}
				
</span>
			
</p>


</li>

change it to:

{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) OR ($product->quantity > 0 && !$product->available_now) OR !$product->available_for_order OR $PS_CATALOG_MODE}
<li>
<p id="availability_statut"{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) OR ($product->quantity > 0 && !$product->available_now) OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}>
<span id="availability_label">{l s='Availability:'}</span>
<span id="availability_value"{if $product->quantity <= 0} class="warning_inline"{/if}>
{if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if}
</span>
</p>
</li>			
{/if}
Link to comment
Share on other sites

advanced paramters > performance

 

turn force compile ON

turn cache off

 

open your product page and refresh it.

 

then back to adv. paramters > performance

turn force compile oFF

turn cache on

Hi 

 

Cache was already off, so turned compile on. Opened product page, refreshed it and the box was still there. Turned compile off and cache on, refreshed product page and the box is still there? 

 

I have two warnings on the performance page. Does this have anything to do with it?

here are 2 warnings. Hide warning

Link to comment
Share on other sites

<li {if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) OR ($product->quantity > 0 && !$product->available_now) OR !$product->available_for_order OR $PS_CATALOG_MODE}style="display: none;"{/if}>
<p id="availability_statut"{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) OR ($product->quantity > 0 && !$product->available_now) OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}>
<span id="availability_label">{l s='Availability:'}</span>
<span id="availability_value"{if $product->quantity <= 0} class="warning_inline"{/if}>
{if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if}
</span>
</p>
</li>			

can you try also with code above?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...