Quantcast
Channel: WHMCS Community Forums
Viewing all articles
Browse latest Browse all 13458

Setting default payment term in Modern ordering theme

$
0
0
I'd like to set default payment term for packages instead of monthly into annually. Where can that be changed from?

I have found this link http://forum.whmcs.com/showthread.ph...ent-term/page2
Apparently doesnt work with modern cart.

Also I tried editing link with value of &billingcycle=annually
But links aren't changeable.

Quote:

After choosing package client has gone on page eg. /cart.php?a=add&pid=1
Now client chooses domain which is needed for webhosting.

Next step is what Im aiming to do. By default it has been chosen 1 month (or right now 3 months because I have not allowed to order less then 3 months). I would want to have default choice 1 year instead of 3 months.
Right now it seems I should modify /templates/orderforms/modern/products.tpl file somehow.

Code:

<script type="text/javascript" src="templates/orderforms/{$carttpl}/js/main.js"></script>
<link rel="stylesheet" type="text/css" href="templates/orderforms/{$carttpl}/style.css" />

<div id="order-modern">

<h1>{$groupname}</h1>
<div align="center"><a href="#" onclick="showcats();return false;">({$LANG.cartchooseanothercategory})</a></div>

<div id="categories">
{foreach key=num item=productgroup from=$productgroups}
{if $productgroup.gid neq $gid}<a href="cart.php?gid={$productgroup.gid}">{$productgroup.name}</a>{/if}
{/foreach}
{if $loggedin}
{if $gid neq "addons"}<a href="cart.php?gid=addons">{$LANG.cartproductaddons}</a>{/if}
{if $renewalsenabled && $gid neq "renewals"}<a href="cart.php?gid=renewals">{$LANG.domainrenewals}</a>{/if}
{/if}
{if $registerdomainenabled && $domain neq "register"}<a href="cart.php?a=add&domain=register">{$LANG.registerdomain}</a>{/if}
{if $transferdomainenabled && $domain neq "transfer"}<a href="cart.php?a=add&domain=transfer">{$LANG.transferdomain}</a>{/if}
<a href="cart.php?a=view">{$LANG.viewcart}</a>
</div>
<div class="clear"></div>

{if !$loggedin && $currencies}
<div id="currencychooser">
{foreach from=$currencies item=curr}
<a href="cart.php?gid={$gid}&currency={$curr.id}"><img src="images/flags/{if $curr.code eq "AUD"}au{elseif $curr.code eq "CAD"}ca{elseif $curr.code eq "EUR"}eu{elseif $curr.code eq "GBP"}gb{elseif $curr.code eq "INR"}in{elseif $curr.code eq "JPY"}jp{elseif $curr.code eq "USD"}us{elseif $curr.code eq "ZAR"}za{else}na{/if}.png" border="0" alt="" /> {$curr.code}</a>
{/foreach}
</div>
<div class="clear"></div>
{else}
<br />
{/if}

{foreach from=$products key=num item=product}
<div class="products">
<div class="product" id="product{$num}" onclick="window.location='cart.php?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}'">

<div class="pricing">
    {if $product.bid}
    {$LANG.bundledeal}<br />
    {if $product.displayprice}<span class="pricing">{$product.displayprice}</span>{/if}
    {else}
    {if $product.pricing.hasconfigoptions}{$LANG.startingfrom}<br />{/if}
    <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}
    {/if}
</div>

<div class="name">
    {$product.name}{if $product.qty!=""} <span class="qty">({$product.qty} {$LANG.orderavailable})</span>{/if}
</div>

{foreach from=$product.features key=feature item=value}
<span class="prodfeature"><span class="feature">{$feature}</span><br />{$value}</span>
{/foreach}

<div class="clear"></div>

<div class="description">{$product.featuresdesc}</div>

<form method="post" action="cart.php?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}">
<div class="ordernowbox"><input type="submit" value="{$LANG.ordernowbutton} &raquo;" class="ordernow" /></div>
</form>

</div>
</div>
{if $num % 2}<div class="clear"></div>
{/if}
{/foreach}

<div class="clear"></div>

{if !$loggedin && $currencies}
<div id="currencychooser">
{foreach from=$currencies item=curr}
<a href="cart.php?gid={$gid}&currency={$curr.id}"><img src="images/flags/{if $curr.code eq "AUD"}au{elseif $curr.code eq "CAD"}ca{elseif $curr.code eq "EUR"}eu{elseif $curr.code eq "GBP"}gb{elseif $curr.code eq "INR"}in{elseif $curr.code eq "JPY"}jp{elseif $curr.code eq "USD"}us{elseif $curr.code eq "ZAR"}za{else}na{/if}.png" border="0" alt="" /> {$curr.code}</a>
{/foreach}
</div>
<div class="clear"></div>
{/if}

<br />
<br />

</div>


Viewing all articles
Browse latest Browse all 13458

Trending Articles