aubrey114 Posted August 2, 2015 Share Posted August 2, 2015 (edited) Hi All, Newbie here. I'm setting up pricing and having a problem in the shopping cart In the shopping cart, the list of "Choose Billing Cycle" there are five choices with correct prices. When you pick Monthly the "Order summary" is correct but when you pick 6 months it does not update the "Order Summary". When you choose Annual the "Order Summary" does update correctly. Then you choose either 2 years or 3 years the "Order Summary" does not update. What did I miss? Aubrey Edited August 2, 2015 by aubrey114 I was not very clear with my question and researched the issue and asked a better question 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 2, 2015 Share Posted August 2, 2015 difficult to say without seeing the site - but are you sure you entered pricing correctly for those cycles? what are the prices for 1, 2 and 3 years ? 0 Quote Link to comment Share on other sites More sharing options...
aubrey114 Posted August 2, 2015 Author Share Posted August 2, 2015 Hi Brian, I have three packages. One of them has $95.52 for 1 year, 171.84 2yr, 228.96 3 yr. This is the most expensive package. Less costly 66, 114, 142. These are just test numbers 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 2, 2015 Share Posted August 2, 2015 aah... you've asked a clearer question... now I can see what you mean! it would have been useful to know which version and order-form template you were using too, but i'm assuming it's v6 and "Modern". if so, there looks to be a bug in the /modern/configureproduct.tpl template - monthly, quarterly and annually look fine, the rest are messed up... probably just a bad copy & paste job by one of the developers - the template was fine in v5.3.14 current code looks like this... {if $pricing.type eq "recurring"} <h3>{$LANG.cartchoosecycle}</h3> <div class="billingcycle"> <table width="100%" cellspacing="0" cellpadding="0" class="configtable"> {if $pricing.monthly}<tr><td class="radiofield"><input type="radio" name="billingcycle" id="cycle1" value="monthly"{if $billingcycle eq "monthly"} checked{/if} onclick="{if $configurableoptions}updateConfigurableOptions({$i}, this.value){else}recalctotals(){/if}" /></td><td class="fieldarea"><label for="cycle1" class="radio-inline">{$pricing.monthly}</label></td></tr>{/if} {if $pricing.quarterly}<tr><td class="radiofield"><input type="radio" name="billingcycle" id="cycle2" value="quarterly"{if $billingcycle eq "quarterly"} checked{/if} onclick="{if $configurableoptions}updateConfigurableOptions({$i}, this.value){else}recalctotals(){/if}" /></td><td class="fieldarea"><label for="cycle2" class="radio-inline">{$pricing.quarterly}</label></td></tr>{/if} {if $pricing.semiannually}<tr><td class="radiofield"><input type="radio" name="billingcycle" id="cycle3" value="semiannually"{if $billingcycle eq "semiannually"} checked{/if}{if $configurableoptions} onclick="updateConfigurableOptions({$i}, this.value)"{/if} /></td><td class="fieldarea"><label for="cycle3" class="radio-inline">{$pricing.semiannually}</label></td></tr>{/if} {if $pricing.annually}<tr><td class="radiofield"><input type="radio" name="billingcycle" id="cycle4" value="annually"{if $billingcycle eq "annually"} checked{/if} onclick="{if $configurableoptions}updateConfigurableOptions({$i}, this.value){else}recalctotals(){/if}" /></td><td class="fieldarea"><label for="cycle4" class="radio-inline">{$pricing.annually}</label></td></tr>{/if} {if $pricing.biennially}<tr><td class="radiofield"><input type="radio" name="billingcycle" id="cycle5" value="biennially"{if $billingcycle eq "biennially"} checked{/if}{if $configurableoptions} onclick="updateConfigurableOptions({$i}, this.value)"{/if} /></td><td class="fieldarea"><label for="cycle5" class="radio-inline">{$pricing.biennially}</label></td></tr>{/if} {if $pricing.triennially}<tr><td class="radiofield"><input type="radio" name="billingcycle" id="cycle6" value="triennially"{if $billingcycle eq "triennially"} checked{/if}{if $configurableoptions} onclick="updateConfigurableOptions({$i}, this.value)"{/if} /></td><td class="fieldarea"><label for="cycle6" class="radio-inline">{$pricing.triennially}</label></td></tr>{/if} </table> </div> {/if} if you edit the template and replace the above with the following, it should work for all billing cycles... {if $pricing.type eq "recurring"} <h3>{$LANG.cartchoosecycle}</h3> <div class="billingcycle"> <table width="100%" cellspacing="0" cellpadding="0" class="configtable"> {if $pricing.monthly}<tr><td class="radiofield"><input type="radio" name="billingcycle" id="cycle1" value="monthly"{if $billingcycle eq "monthly"} checked{/if} onclick="{if $configurableoptions}updateConfigurableOptions({$i}, this.value){else}recalctotals(){/if}" /></td><td class="fieldarea"><label for="cycle1" class="radio-inline">{$pricing.monthly}</label></td></tr>{/if} {if $pricing.quarterly}<tr><td class="radiofield"><input type="radio" name="billingcycle" id="cycle2" value="quarterly"{if $billingcycle eq "quarterly"} checked{/if} onclick="{if $configurableoptions}updateConfigurableOptions({$i}, this.value){else}recalctotals(){/if}" /></td><td class="fieldarea"><label for="cycle2" class="radio-inline">{$pricing.quarterly}</label></td></tr>{/if} {if $pricing.semiannually}<tr><td class="radiofield"><input type="radio" name="billingcycle" id="cycle3" value="semiannually"{if $billingcycle eq "semiannually"} checked{/if} onclick="{if $configurableoptions}updateConfigurableOptions({$i}, this.value){else}recalctotals(){/if}" /></td><td class="fieldarea"><label for="cycle3" class="radio-inline">{$pricing.semiannually}</label></td></tr>{/if} {if $pricing.annually}<tr><td class="radiofield"><input type="radio" name="billingcycle" id="cycle4" value="annually"{if $billingcycle eq "annually"} checked{/if} onclick="{if $configurableoptions}updateConfigurableOptions({$i}, this.value){else}recalctotals(){/if}" /></td><td class="fieldarea"><label for="cycle4" class="radio-inline">{$pricing.annually}</label></td></tr>{/if} {if $pricing.biennially}<tr><td class="radiofield"><input type="radio" name="billingcycle" id="cycle5" value="biennially"{if $billingcycle eq "biennially"} checked{/if} onclick="{if $configurableoptions}updateConfigurableOptions({$i}, this.value){else}recalctotals(){/if}" /></td><td class="fieldarea"><label for="cycle5" class="radio-inline">{$pricing.biennially}</label></td></tr>{/if} {if $pricing.triennially}<tr><td class="radiofield"><input type="radio" name="billingcycle" id="cycle6" value="triennially"{if $billingcycle eq "triennially"} checked{/if} onclick="{if $configurableoptions}updateConfigurableOptions({$i}, this.value){else}recalctotals(){/if}" /></td><td class="fieldarea"><label for="cycle6" class="radio-inline">{$pricing.triennially}</label></td></tr>{/if} </table> </div> {/if} i've tested this locally, and all cycles seem to work fine following these changes. I don't think it's been reported as a bug, so i'll let WHMCS Nate know about it for him to investigate further. 0 Quote Link to comment Share on other sites More sharing options...
aubrey114 Posted August 2, 2015 Author Share Posted August 2, 2015 (edited) Brian, Thank you. Wow, something not my fault! Wow. Thanks for the code. I'll try it out and see if tht fixes it. I switched from modern to Comparison and it works fine. I really appreciate your help. Aubrey Edited August 2, 2015 by aubrey114 0 Quote Link to comment Share on other sites More sharing options...
aubrey114 Posted August 2, 2015 Author Share Posted August 2, 2015 Brian, Copied and pasted your code in, switched back to modern and everything works perfectly. Great Job!! Thanks again Aubrey 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.