xyzulu Posted January 15, 2016 Share Posted January 15, 2016 I've looked at a few templates, but specifically referring to the "boxes" one now.. any tips on defaulting the billing cycle to annual instead of the default monthly that is auto selected? Thanks in advance. 0 Quote Link to comment Share on other sites More sharing options...
xyzulu Posted January 15, 2016 Author Share Posted January 15, 2016 FYI something like this does not work properly. It requires the customer to press continue twice before the package is added to their cart. <select name="billingcycle" onchange="submit()" class="form-control select-inline">{if $pricing.annually}<option value="annually"{if $billingcycle eq "annually"} selected="selected"{/if}>{$pricing.annually}</option>{/if} {if $pricing.semiannually}<option value="semiannually">{$pricing.semiannually}</option>{/if} {if $pricing.quarterly}<option value="quarterly">{$pricing.quarterly}</option>{/if} {if $pricing.monthly}<option value="monthly">{$pricing.monthly}</option>{/if} {if $pricing.biennially}<option value="biennially">{$pricing.biennially}</option>{/if} {if $pricing.triennially}<option value="triennially">{$pricing.triennially}</option>{/if} </select> - - - Updated - - - To configureproductdomain.tpl I added... &billingcycle=annually to.. <form method="post" action="{$smarty.server.PHP_SELF}?a=add&pid={$pid}&billingcycle=annually"> That appears to be working as expected now. Frustrating thing. 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.