Jump to content

[SOLVED] Back in stock notify showing always


Szymon88

Recommended Posts

Hello,

I got strange problem. After upgrade to 1.6.1.20 button "alert me when the product is available" appears on all product pages. When quantity is 0 and when quantity is > 0.

I looked at product.tpl in my theme folder and everything looks fine:

 


<!-- Out of stock hook -->
			
<p id="oosHook"{if $product->quantity > 0} style="display: none;"{/if}>
				

{$HOOK_PRODUCT_OOS}
			

</p>

 

How can I fix it?

Szymon

Edited by Szymon88 (see edit history)
Link to comment
Share on other sites

Solved! I had to change code from:

<!-- Out of stock hook -->
			
<p id="oosHook"{if $product->quantity > 0} style="display: none;"{/if}>
				

{$HOOK_PRODUCT_OOS}
			

</p>

to:

<!-- Out of stock hook -->
			
<div id="oosHook"{if $product->quantity > 0} style="display: none;"{/if}>
				

{$HOOK_PRODUCT_OOS}
			

</div>

 

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...