EZEHOST Posted October 17, 2017 Share Posted October 17, 2017 Evening all. I am toying with ideas at the moment, and wondered if the following is possible. So currently, if "Stock Control" is enabled, and the quantity is "0", a client can click the product and is then shown an "Oops sorry" message. I would like to know, if it is possible to edit the file, to either disable the "order now" button, or change its colour, like the example below. This would be instead of showing "-1 Available", and would hopefully prevent the client clicking the "Order Now" button, and seeing the dreaded "Oops Sorry" message. Thank you in advance. Link to comment Share on other sites More sharing options...
brian! Posted October 18, 2017 Share Posted October 18, 2017 if you want to remove the -x available text too, then just remove the following code (from products.tpl ~ line 50)... {if $product.qty} <span class="qty"> {$product.qty} {$LANG.orderavailable} </span> {/if} Link to comment Share on other sites More sharing options...
EZEHOST Posted October 19, 2017 Author Share Posted October 19, 2017 18 hours ago, brian! said: if you want to remove the -x available text too, then just remove the following code (from products.tpl ~ line 50)... {if $product.qty} <span class="qty"> {$product.qty} {$LANG.orderavailable} </span> {/if} Thank you @brian! Link to comment Share on other sites More sharing options...
Recommended Posts