Jump to content

Shopping cart template modification


Recommended Posts

Hi,

 

I'm trying to change the billing cycle dropdown to radio buttons in the shopping cart template file, however, to get it to update the order summary I have to click the radio buttons twice, the first click doesn't appear to update the billing cycle however it does flash the refresh icon in the top right of the order summary container, the second then does change the billing cycle. Is there something I'm doing wrong?

 

Heres the PHP code im using:

<div class="billingCycleUpdater">
   <label class="radio-inline selected" onclick="billingCycleUpdaterFunc()"><input type="radio" value="monthly" id="inputBillingcycle" name="billingcycle" checked> 1 Month</label>
   <label class="radio-inline" onclick="billingCycleUpdaterFunc()"><input type="radio" value="quarterly" id="inputBillingcycle" name="billingcycle"  >3 Months</label>
   <label class="radio-inline" onclick="billingCycleUpdaterFunc()"><input type="radio" value="semiannually" id="inputBillingcycle" name="billingcycle" >6 Months</label>
   <label class="radio-inline" onclick="billingCycleUpdaterFunc()"><input type="radio" value="annually" id="inputBillingcycle" name="billingcycle" >12 Months</label>
</div>

 

and the javascript:

								
function billingCycleUpdaterFunc() {
 {if $configurableoptions}
    updateConfigurableOptions({$i}, this.value);
 {else}
    recalctotals();
 {/if}								
}

 

Thanks for any help.

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