Jump to content

default billing cycle


oempire

Recommended Posts

  • 1 month later...

The problem is that the file configureproduct.tpl is always using "monthly" as the initial value for the param $billingcycle. Explicitly setting the value in this file has some unwelcome side effects.

 

What I did was change the incoming links to this page to append "&billingcycle=annually" to the url. Works fine on stand alone links like this:

https://yourdomain/whmcs/cart.php?a=add&pid=1&billingcycle=annually

 

I also changed products.tpl to substitute a link like the one above for the input button. It looks something like this now (around line 47):

<td width="15%" align="center" valign="middle"><a href="https://yourdomain/whmcs/cart.php?a=add&pid={$product.pid}&billingcycle=annually">{$LANG.ordernowbutton}</a></td>

Link to comment
Share on other sites

  • 5 months later...
  • 2 weeks 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