Wajdan Posted September 26, 2010 Share Posted September 26, 2010 (edited) Hello, Some pakages are set to "OUT OF STOCK" means set to 0. Those still can be ordered via Ajax order form. Other order forms are working fine. I am using 4.3.1 Edited September 26, 2010 by Wajdan 0 Quote Link to comment Share on other sites More sharing options...
MrSaints Posted September 26, 2010 Share Posted September 26, 2010 Hello Wajdan, Nice finding! I managed to fix it for mine, here is the fix: 1. Open "order/templates/products.tpl" 2. Replace with: <br /> <table width="90%" cellspacing="0" cellpadding="0" align="center"> <tr> {foreach from=$products item=product key=num} <td width="50%"><input type="radio" name="pid" value="{$product.pid}" id="pid{$product.pid}"[b]{if $product.qty eq "0"} disabled{/if}[/b] onclick="loadproductconfig('{$product.pid}')"> <label for="pid{$product.pid}">{$product.name}</label></td> {if $num % 2}</tr><tr>{/if} {/foreach} </tr> </table> What I did basically is add a check if the quantity is 0, and if so, it will disable the radio button from being clicked: {if $product.qty eq "0"} disabled{/if} Good luck! Hope they patch this up. 0 Quote Link to comment Share on other sites More sharing options...
Wajdan Posted September 27, 2010 Author Share Posted September 27, 2010 I did the same but this does not fix this. 0 Quote Link to comment Share on other sites More sharing options...
MrSaints Posted October 2, 2010 Share Posted October 2, 2010 I did the same but this does not fix this. Are you sure you modified the correct template file as stated on my previous response? It seems to have worked for my copy of WHMCS. You should also purge your template cache in WHMCS. 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.