Jump to content

Customise Cart - standard-cart


texhead

Recommended Posts

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 by texhead
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated