Bruna BSPCU Posted April 9, 2013 Share Posted April 9, 2013 (edited) Hey everybody! In Admin > Preferences > Products, i disabled the Permission to buy products when it is sold out, but the buy button is still available and showing.... What can i do? Thanks to al! Edited April 10, 2013 by Bruna BSPCU (see edit history) Link to comment Share on other sites More sharing options...
Herland Posted April 9, 2013 Share Posted April 9, 2013 (edited) 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 April 9, 2013 by Herland (see edit history) 2 Link to comment Share on other sites More sharing options...
Bruna BSPCU Posted April 10, 2013 Author Share Posted April 10, 2013 @Herland Thanks so Much for your master help! It works perfectly! Thanks again! Link to comment Share on other sites More sharing options...
Herland Posted April 10, 2013 Share Posted April 10, 2013 Great! 1 Link to comment Share on other sites More sharing options...
Recommended Posts