texhead Posted March 9, 2017 Share Posted March 9, 2017 (edited) Hi, I have managed to change the default display of Billing Cycle in pure-comparison template to show Annual amount. When I proceed through the cart to the configureproduct.tpl it shows Monthly by default so I looked at configureproduct.tpl to make $pricing.annually the 'selected' entry in the dropdown box, typical HTML practice. Unfortunately when I put 'selected' next to the Annual option nothing changes. Is there something causing this? BTW all options have the word 'selected' beside them in the original code. {if $pricing.type eq "recurring"} <div class="field-container"> <div class="form-group"> <label for="inputBillingcycle">{$LANG.cartchoosecycle}</label> <select name="billingcycle" id="inputBillingcycle" class="form-control select-inline" onchange="{if $configurableoptions}updateConfigurableOptions({$i}, this.value); {else}recalctotals();{/if}"> {if $pricing.monthly} <option value="monthly"{if $billingcycle eq "monthly"} selected{/if}> {$pricing.monthly} </option> {/if} {if $pricing.quarterly} <option value="quarterly"{if $billingcycle eq "quarterly"} selected{/if}> {$pricing.quarterly} </option> {/if} {if $pricing.semiannually} <option value="semiannually"{if $billingcycle eq "semiannually"} selected{/if}> {$pricing.semiannually} </option> {/if} {if $pricing.annually} <option value="annually"{if $billingcycle eq "annually"} selected{/if}> {$pricing.annually} </option> {/if} {if $pricing.biennially} <option value="biennially"{if $billingcycle eq "biennially"} selected{/if}> {$pricing.biennially} </option> {/if} {if $pricing.triennially} <option value="triennially"{if $billingcycle eq "triennially"} selected{/if}> {$pricing.triennially} </option> {/if} </select> </div> </div> {/if} Edited March 9, 2017 by texhead 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 9, 2017 Share Posted March 9, 2017 https://forum.whmcs.com/showthread.php?115951-Defaulting-to-Annual-Billing-Cycle&p=468607#post468607 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.