Jack-PNH Posted January 4, 2009 Share Posted January 4, 2009 We currently have monthly, annually, and biannual pricing configured. We would like to know how to make the annual pricing be the default term, unless a customer changes it during checkout. Thank you, jack Link to comment Share on other sites More sharing options...
mcraedesigns Posted March 25, 2009 Share Posted March 25, 2009 I also want this, I have ran into many occasions where people sign up for monthly because they are not "web savvy." Is there a place to set it, or can it be a future feature? Link to comment Share on other sites More sharing options...
jozeph Posted March 27, 2009 Share Posted March 27, 2009 Very simple and nice feature and I would like to see it in WHMCS too. Link to comment Share on other sites More sharing options...
othellotech Posted March 28, 2009 Share Posted March 28, 2009 I also want this its just a change in your .tpl ... Link to comment Share on other sites More sharing options...
solokron Posted March 3, 2010 Share Posted March 3, 2010 Is there anything new on this front? Link to comment Share on other sites More sharing options...
optize Posted March 10, 2010 Share Posted March 10, 2010 Any update? Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted March 10, 2010 WHMCS CEO Share Posted March 10, 2010 You can do it in a direct product link from your site, for example: /cart.php?a=add&pid=X&billingcycle=annually Or you can add the &billingcycle=annually suffix to your active order template products.tpl default product links. Where annual is passed and not available, it will just continue as it is now selecting the lowest available cycle so won't cause any problems. Matt Link to comment Share on other sites More sharing options...
spectrumhosting Posted May 3, 2010 Share Posted May 3, 2010 Can I have some more depth info on setting annual as default? Brett. Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted May 4, 2010 WHMCS Support Manager Share Posted May 4, 2010 The shortest billing cycle will be the default , but you can define which cycle you use using the technique Matt mentioned - there's nothing more to it. Link to comment Share on other sites More sharing options...
spectrumhosting Posted May 29, 2010 Share Posted May 29, 2010 adding "&billingcycle=annually" doesn't seem to work for me .. still shows as monthly .. Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted May 31, 2010 WHMCS Support Manager Share Posted May 31, 2010 Paste the full URL you're using so we can take a look. Link to comment Share on other sites More sharing options...
SilverNodashi Posted March 31, 2011 Share Posted March 31, 2011 Matt, John, Did you guys know what using the "billingcycle=annually" option on a direct shopping cart link doesn't actually work? It still defaults back to monthly. Neither does the "sld" & "tld" options work. Here's the link: https://billing.softdux.com/order/?pid=35&skip=1&billingcycle=annually&sld=anewdomain&tld=.com Look @ the attached screenshot Link to comment Share on other sites More sharing options...
jacksoggetto Posted April 17, 2011 Share Posted April 17, 2011 Matt, John, Did you guys know what using the "billingcycle=annually" option on a direct shopping cart link doesn't actually work? It still defaults back to monthly. Neither does the "sld" & "tld" options work. Here's the link: https://billing.softdux.com/order/?pid=35&skip=1&billingcycle=annually&sld=anewdomain&tld=.com Look @ the attached screenshot I have the same problem with ajax cart. How can I make a default payment term? I want the default be the annual, not the monthly Link to comment Share on other sites More sharing options...
bradh Posted May 2, 2011 Share Posted May 2, 2011 I have the same problem with currency and billingcycle. Link to comment Share on other sites More sharing options...
aris8194 Posted May 29, 2011 Share Posted May 29, 2011 adding &billingcycle=annually in the URL will not work. Even though the variable might be set during the first request in the index file it doesn't carry through to the subsequent AJAX requests. The easiest way to "fix" this problem is to open the index.php file (whmcs_folder/order/index.php), find the line: $billingcycle = $_REQUEST['billingcycle']; and change it to $billingcycle = 'annually'; This way all requests made to the index page will have the $billingcycle variable set to annually. Link to comment Share on other sites More sharing options...
01jack Posted June 29, 2011 Share Posted June 29, 2011 FYI: In products.tpl find: <select name="billingcycle"> {if $product.pricing.monthly}<option value="monthly">{$product.pricing.monthly}</option>{/if} {if $product.pricing.quarterly}<option value="quarterly">{$product.pricing.quarterly}</option>{/if} {if $product.pricing.semiannually}<option value="semiannually">{$product.pricing.semiannually}</option>{/if} {if $product.pricing.annually}<option value="annually">{$product.pricing.annually}</option>{/if} {if $product.pricing.biennially}<option value="biennially">{$product.pricing.biennially}</option>{/if} {if $product.pricing.triennially}<option value="triennially">{$product.pricing.triennially}</option>{/if} </select> and edit it to: <select name="billingcycle"> {if $product.pricing.monthly}<option value="monthly">{$product.pricing.monthly}</option>{/if} {if $product.pricing.quarterly}<option value="quarterly">{$product.pricing.quarterly}</option>{/if} {if $product.pricing.semiannually}<option value="semiannually">{$product.pricing.semiannually}</option>{/if} {if $product.pricing.annually}<option selected="selected" value="annually">{$product.pricing.annually}</option>{/if} {if $product.pricing.biennially}<option value="biennially">{$product.pricing.biennially}</option>{/if} {if $product.pricing.triennially}<option value="triennially">{$product.pricing.triennially}</option>{/if} </select> In other words just add selected="selected" in the option you want selected by default. Peace Link to comment Share on other sites More sharing options...
ethical Posted November 3, 2011 Share Posted November 3, 2011 anyone have an idea how to do the same thing with the new modern theme since the coding seems a bit different? <span class="pricing">{$product.pricing.minprice.price}</span><br /> {if $product.pricing.minprice.cycle eq "monthly"} {$LANG.orderpaymenttermmonthly} {elseif $product.pricing.minprice.cycle eq "quarterly"} {$LANG.orderpaymenttermquarterly} {elseif $product.pricing.minprice.cycle eq "semiannually"} {$LANG.orderpaymenttermsemiannually} {elseif $product.pricing.minprice.cycle eq "annually"} {$LANG.orderpaymenttermannually} {elseif $product.pricing.minprice.cycle eq "biennially"} {$LANG.orderpaymenttermbiennially} {elseif $product.pricing.minprice.cycle eq "triennially"} {$LANG.orderpaymenttermtriennially} {/if} Link to comment Share on other sites More sharing options...
hostb Posted January 23, 2012 Share Posted January 23, 2012 Thanks 01Jack. Worked Perfect. ethical your in the wrong foler. /templates/orderforms/verticalsteps (change with to your selected Default Order Form Template) Link to comment Share on other sites More sharing options...
ethical Posted July 17, 2013 Share Posted July 17, 2013 Thanks 01Jack. Worked Perfect.ethical your in the wrong foler. /templates/orderforms/verticalsteps (change with to your selected Default Order Form Template) well i got a little busy lol! I was not using verticalsteps am using the modern template and that is how the products.tpl looks like anyone know how to do this with the modern theme? thanks Link to comment Share on other sites More sharing options...
Web Host Pro Posted January 24, 2018 Share Posted January 24, 2018 Not sure if it's too old to post here but I'm trying to do this as well and the option posted above is not there. I found this in my order.tpl <h4>Choose Payment Term</h4> <select name="billingcycle" class="form-control"> {foreach $product->pricing()->allAvailableCycles() as $pricing} <option value="{$pricing->cycle()}"{if $requestedCycle == $pricing->cycle()} selected{/if}> {if $pricing->isYearly()} {$pricing->cycleInYears()} - {$pricing->yearlyPrice()} {else} {$pricing->cycleInMonths()} - {$pricing->monthlyPrice()} {/if} </option> {/foreach} </select> I changed {$pricing->cycleInMonths()} - {$pricing->monthlyPrice()} to {$pricing->cycleInYears()} - {$pricing->yearlyPrice()} but no go. Also the &billingcycle=annually works on hosting and reseller plans but not on VPS or Dedicated. Basically if you don't choose a domain it doesn't work. Link to comment Share on other sites More sharing options...
Web Host Pro Posted January 24, 2018 Share Posted January 24, 2018 I would love to delete this post lol. The issue was the code &billingcycle=annually was &billingcycle=Annually I copied it from the price page in the admin. ;\ Link to comment Share on other sites More sharing options...
Recommended Posts