Jump to content

{$addon.billingcycle} always shows monthly


Si

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 month later...

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>

Link to comment
Share on other sites

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