Nathum Posted May 1, 2017 Share Posted May 1, 2017 I think this should be a permanent change to the template. Description: Add's Sold Out to products so customers don't have to see the out of stock page. Before After Edit /public_html/whmcs/templates/orderforms/modern/products.tpl Remove (Line 65-69) {if $product.qty} <span class="qty"> ({$product.qty} {$LANG.orderavailable}) </span> {/if} Replace <div class="text-right"> <a href="cart.php?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}" class="btn btn-success btn-lg"><i class="fa fa-shopping-cart"></i> {$LANG.ordernowbutton}</a> </div> </div> </div> With <div class="text-right"> <div class="name"> <span class="qty"><br> ({$product.qty} {$LANG.orderavailable}) </span> </div> <a href="cart.php?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}" class="btn btn-success btn-lg {if $product.qty lt '1'} btn-danger disabled{/if}"><i class="fa fa-shopping-cart"></i> {if $product.qty lt '1'} Sold Out{else}{$LANG.ordernowbutton} {/if}</a> </div> </div> </div> 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 1, 2017 Share Posted May 1, 2017 I can still recall the original thread on this and it's recent update! https://forum.whmcs.com/showthread.php?107179-Sold-Out-Button&p=500966#post500966 btw - not sure you need to both 0 Available and sold out - one's pretty obvious from the other. 0 Quote Link to comment Share on other sites More sharing options...
tomwhe Posted May 16, 2017 Share Posted May 16, 2017 Nice, I like it. Its a good little tweak if you sell game servers or similar. might have to check it out myself 0 Quote Link to comment Share on other sites More sharing options...
Nathum Posted May 19, 2017 Author Share Posted May 19, 2017 Thanks Brian 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.