Jump to content

How to display annual pricing with break down on standard cart?


adg273

Recommended Posts

Hi,

 

I'm new to WHMCS. I've searched everywhere and can't find the answer, so i'm having to ask and hope someone can help.

 

I have set up products with monthly and annual prices. The annual prices if broken down would give a cheaper monthly equivalent.

 

I am using the standard cart. My coding knowledge is limited at the moment. But I have found the following...

 

 

<span class="price">{$product.pricing.minprice.price}</span>

 

and replaced it with...

 

<span class="price">{$currency.prefix}{$product.pricing.rawpricing.annually}{$currency.suffix}</span>

 

 

My question is, how do I have it display the breakdown price? What the monthly price of the annual option would be?

 

Many thanks for your help.

Adrian

Link to comment
Share on other sites

one way would be to use...

 

<span class="price">{$currency.prefix}{($product.pricing.rawpricing.annually/12)|number_format:2}{$currency.suffix}</span>

 

Thank you Brian!

 

You're a superstar. Like i said my coding is limited. I tried the number format but I put it into my code wrong.

Thanks for your help.

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