Si Posted May 25, 2017 Share Posted May 25, 2017 In all cart templates /addon.tpl When I enter an annual amount for an add-on, it always displays the price followed by monthly, even though it is definitely an annual price. Is {$addon.billingcycle} in the tpl file wrong or am I missing something? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 25, 2017 Share Posted May 25, 2017 doesn't it, like a lot of WHMCS cart pages, default to showing the minimum billing cycle... so if it's priced monthly/annually, it will always show monthly (with no option to change to annually! ) 0 Quote Link to comment Share on other sites More sharing options...
Si Posted May 25, 2017 Author Share Posted May 25, 2017 Thanks brian! I'll just remove that from the tpl files then, and make sure it states the frequency in the description of the add-on. Very strange to have it when it only ever shows one thing. 0 Quote Link to comment Share on other sites More sharing options...
edigest Posted June 28, 2017 Share Posted June 28, 2017 This isn't the most elegant solution, but it is a quick fix. In templates/orderforms/standard_cart/addons.tpl you can set the billing cycle for each addon if you know the addon ID: <div class="product-pricing"> {if $addon.free} {$LANG.orderfree} {elseif $addon.id == 1} <span class="price">{$addon.recurringamount} Annually</span> {if $addon.setupfee}<br />+ {$addon.setupfee} {$LANG.ordersetupfee}{/if} {elseif $addon.id == 2} <span class="price">{$addon.recurringamount} Monthly</span> {if $addon.setupfee}<br />+ {$addon.setupfee} {$LANG.ordersetupfee}{/if} {else} <span class="price">{$addon.recurringamount} {$addon.billingcycle}</span> {if $addon.setupfee}<br />+ {$addon.setupfee} {$LANG.ordersetupfee}{/if} {/if} </div> 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.