Jump to content

Change billing period drop down order


ethical

Recommended Posts

Is it possible to change the order that the billing period is listed as on the ordering page?

 

For example right now it lest the smallest period first (monthlt) but I would like it to default to yearly.

 

is this possible?

 

thanks!

 

john

Link to comment
Share on other sites

  • 5 weeks later...
  • 1 month later...

I take it your refering to the configureproducts.tpl

Its not that hard

 

The original code (monthly up)

<select name="billingcycle" onchange="submit()">
{if $pricing.monthly}<option value="monthly"{if $billingcycle eq "monthly"} selected="selected"{/if}>{$pricing.monthly}</option>{/if}
{if $pricing.quarterly}<option value="quarterly"{if $billingcycle eq "quarterly"} selected="selected"{/if}>{$pricing.quarterly}</option>{/if}
{if $pricing.semiannually}<option value="semiannually"{if $billingcycle eq "semiannually"} selected="selected"{/if}>{$pricing.semiannually}</option>{/if}
{if $pricing.annually}<option value="annually"{if $billingcycle eq "annually"} selected="selected"{/if}>{$pricing.annually}</option>{/if}
{if $pricing.biennially}<option value="biennially"{if $billingcycle eq "biennially"} selected="selected"{/if}>{$pricing.biennially}</option>{/if}
</select>

Now the opposite (2 yearly down)

<select name="billingcycle" onchange="submit()">
{if $pricing.biennially}<option value="biennially"{if $billingcycle eq "biennially"} selected="selected"{/if}>{$pricing.biennially}</option>{/if}
{if $pricing.annually}<option value="annually"{if $billingcycle eq "annually"} selected="selected"{/if}>{$pricing.annually}</option>{/if}
{if $pricing.semiannually}<option value="semiannually"{if $billingcycle eq "semiannually"} selected="selected"{/if}>{$pricing.semiannually}</option>{/if}
{if $pricing.quarterly}<option value="quarterly"{if $billingcycle eq "quarterly"} selected="selected"{/if}>{$pricing.quarterly}</option>{/if}
{if $pricing.monthly}<option value="monthly"{if $billingcycle eq "monthly"} selected="selected"{/if}>{$pricing.monthly}</option>{/if}
</select>

Link to comment
Share on other sites

But $billingcycle will still equal "monthly" by default (it's set in the encrypted PHP code as far as I can tell). So even though the order has changed, the same issue arises which is that 'monthly' will be selected by default .. at least that is the behavior I've experienced with version 3.7.2. If you've confirmed this workaround does the trick, let me know..

Link to comment
Share on other sites

  • 1 month later...
sparky, your suggestions do not work at all for the cart ,

seems this is hardcoded in the encrypted php files and as such you can not set yearly as default at the moment.

The order of the billing period does change in the list, so I guess it does work.

If you want a particular one to be default then just change the value of $billingperiod

I suppose you want to know how to change it as well.

This will default it to annually

{assign var=billingcycle value="annually"}

Link to comment
Share on other sites

The order of the billing period does change in the list, so I guess it does work.

If you want a particular one to be default then just change the value of $billingperiod

I suppose you want to know how to change it as well.

This will default it to annually

{assign var=billingcycle value="annually"}

 

If you hard code the billingcycle, then I believe the user's input will be ignored in some cases. If you apply this fix, just be sure to test thoroughly ...

Link to comment
Share on other sites

  • 1 year later...

the suggested solution mentioned above does not work for me after trying it out. It "appeared" to work the first time, but the click took me stright to the next page instead of refreshing the same page to allow the customer to select other options... then next few times regardless of the option i select it reverts back to annually....

 

Please add this to your next release.

 

John

Link to comment
Share on other sites

  • 3 months later...

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