ethical Posted August 20, 2008 Share Posted August 20, 2008 Is it possible to change the order that the billing period is listed as on the ordering page? For example right now it lest the smallest period first (monthlt) but I would like it to default to yearly. is this possible? thanks! john 0 Quote Link to comment Share on other sites More sharing options...
Sophia Posted September 20, 2008 Share Posted September 20, 2008 I would be interested to know as well, thanks 0 Quote Link to comment Share on other sites More sharing options...
barwin Posted November 6, 2008 Share Posted November 6, 2008 I posted a possible workaround here, BUT, it still has issues ... http://forum.whmcs.com/showthread.php?t=15161&highlight=workaround 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 7, 2008 Share Posted November 7, 2008 I take it your refering to the configureproducts.tpl Its not that hard The original code (monthly up) <select name="billingcycle" onchange="submit()"> {if $pricing.monthly}<option value="monthly"{if $billingcycle eq "monthly"} selected="selected"{/if}>{$pricing.monthly}</option>{/if} {if $pricing.quarterly}<option value="quarterly"{if $billingcycle eq "quarterly"} selected="selected"{/if}>{$pricing.quarterly}</option>{/if} {if $pricing.semiannually}<option value="semiannually"{if $billingcycle eq "semiannually"} selected="selected"{/if}>{$pricing.semiannually}</option>{/if} {if $pricing.annually}<option value="annually"{if $billingcycle eq "annually"} selected="selected"{/if}>{$pricing.annually}</option>{/if} {if $pricing.biennially}<option value="biennially"{if $billingcycle eq "biennially"} selected="selected"{/if}>{$pricing.biennially}</option>{/if} </select> Now the opposite (2 yearly down) <select name="billingcycle" onchange="submit()"> {if $pricing.biennially}<option value="biennially"{if $billingcycle eq "biennially"} selected="selected"{/if}>{$pricing.biennially}</option>{/if} {if $pricing.annually}<option value="annually"{if $billingcycle eq "annually"} selected="selected"{/if}>{$pricing.annually}</option>{/if} {if $pricing.semiannually}<option value="semiannually"{if $billingcycle eq "semiannually"} selected="selected"{/if}>{$pricing.semiannually}</option>{/if} {if $pricing.quarterly}<option value="quarterly"{if $billingcycle eq "quarterly"} selected="selected"{/if}>{$pricing.quarterly}</option>{/if} {if $pricing.monthly}<option value="monthly"{if $billingcycle eq "monthly"} selected="selected"{/if}>{$pricing.monthly}</option>{/if} </select> 0 Quote Link to comment Share on other sites More sharing options...
barwin Posted November 8, 2008 Share Posted November 8, 2008 But $billingcycle will still equal "monthly" by default (it's set in the encrypted PHP code as far as I can tell). So even though the order has changed, the same issue arises which is that 'monthly' will be selected by default .. at least that is the behavior I've experienced with version 3.7.2. If you've confirmed this workaround does the trick, let me know.. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 8, 2008 Share Posted November 8, 2008 Try changing the order of the same lines in products.tpl as well 0 Quote Link to comment Share on other sites More sharing options...
wiredgorilla Posted December 19, 2008 Share Posted December 19, 2008 sparky, your suggestions do not work at all for the cart , seems this is hardcoded in the encrypted php files and as such you can not set yearly as default at the moment. 0 Quote Link to comment Share on other sites More sharing options...
wiredgorilla Posted December 19, 2008 Share Posted December 19, 2008 BTW , anybody else got this working ? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted December 19, 2008 Share Posted December 19, 2008 sparky, your suggestions do not work at all for the cart , seems this is hardcoded in the encrypted php files and as such you can not set yearly as default at the moment. The order of the billing period does change in the list, so I guess it does work. If you want a particular one to be default then just change the value of $billingperiod I suppose you want to know how to change it as well. This will default it to annually {assign var=billingcycle value="annually"} 0 Quote Link to comment Share on other sites More sharing options...
barwin Posted December 20, 2008 Share Posted December 20, 2008 The order of the billing period does change in the list, so I guess it does work.If you want a particular one to be default then just change the value of $billingperiod I suppose you want to know how to change it as well. This will default it to annually {assign var=billingcycle value="annually"} If you hard code the billingcycle, then I believe the user's input will be ignored in some cases. If you apply this fix, just be sure to test thoroughly ... 0 Quote Link to comment Share on other sites More sharing options...
Sophia Posted December 26, 2009 Share Posted December 26, 2009 I'm a bit disappointed that in v4.1, this has STILL not been solved... 0 Quote Link to comment Share on other sites More sharing options...
solokron Posted December 30, 2009 Share Posted December 30, 2009 Much needed. 0 Quote Link to comment Share on other sites More sharing options...
ethical Posted December 30, 2009 Author Share Posted December 30, 2009 the suggested solution mentioned above does not work for me after trying it out. It "appeared" to work the first time, but the click took me stright to the next page instead of refreshing the same page to allow the customer to select other options... then next few times regardless of the option i select it reverts back to annually.... Please add this to your next release. John 0 Quote Link to comment Share on other sites More sharing options...
barwin Posted December 31, 2009 Share Posted December 31, 2009 Someone should post this in the 'feature requests' forum topic. WHMCS will most likely not look at this thread directly. 0 Quote Link to comment Share on other sites More sharing options...
handsonwebhosting Posted April 27, 2010 Share Posted April 27, 2010 Was this ever resolved? 0 Quote Link to comment Share on other sites More sharing options...
ethical Posted April 27, 2010 Author Share Posted April 27, 2010 unfortunately not.. 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.