Jump to content

[Solved] Product not available, but the buy button is still showing


Recommended Posts

I'm sorry none of the other guys have replied...

 

Did you edit the product.tpl file?

 

The add to cart button code looks something like this:

 

 <p {if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR
(isset($restricted_country_mode) AND $restricted_country_mode)
OR $PS_CATALOG_MODE} style="display: none;"{/if} id="add_to_cart" class="buttons_bottom_block">
<span></span><input id="btnCotiza" type="button" name="btnCotiza" value="{l s='Add to cart'}"
class="exclusive" /></p>

 

The code basicly says, in the first 'if' that, if there are not products available, the style will be: display:none; which means that the button won't appear.

 

Let me know

Edited by Herland (see edit history)
  • Like 2
Link to comment
Share on other sites

×
×
  • Create New...