Jump to content

price setting and display


keneso

Recommended Posts

Hi

 

How can I set a recurring annual price (hosting), and display the monthly breakdown price in the order form?

 

I know by setting the monthly price and annual price it will display the monthly, but then in the order process it displays the dropdown option to choose monthly, or annual with the monthly selected as defaul, I want to set annual pricing, and annual payment, but display monthly breakdown.

 

Using a slightly modified premium comparison template.

 

Thank you

Link to comment
Share on other sites

have you tried enabling Monthly Pricing Breakdown ?

 

http://docs.whmcs.com/Ordering_Tab#Monthly_Pricing_Breakdown

 

Enabling this divides your quarterly, semi-annual, annual, and biennial prices into the equivalent monthly price. For example, a product with an annual price of $120 would be divided by 12 months and the price displayed as $10/month.
Link to comment
Share on other sites

Sorry for the belated reply.

 

Thank you, yes it is selected (checked), I tested it with the original premium comparison, and it does breakdown, but instead of price/mo displays price/yr

Just to be clear if price is set 120 annual on order form displays 10/yr

 

I don't think it is this, but just to give extra info:

I have language override (suggested by you BTW) that uses

<script src=\"feeds/productsinfo_fz.php?pid=2&get=price&billingcycle=annually\"></script><span>/month</span>

 

I tried removing it, but it still displays 10/yr

Link to comment
Share on other sites

aah congratulations, you've found a WHMCS bug! it seems that regardless of whether monthly pricing breakdown is selected or not, it shows "yr" and not "mo". :roll:

 

I can think of a number of temporary solutions for this that you can use...

 

if you're using your data feed, you could modify one line of it and change...

 

$price = formatCurrency($price);

to...

 

$price = formatCurrency($price/12);

btw - i'm assuming all your products are billed annually; but if they're not, then it would simple enough to change the divisor using a variable based on the billing cycle...

 

if you were using the template as is and not a feed, and again assuming monthly pricing breakdown is enabled, you could use a language override and change...

 

$_LANG['shoppingCartProductPerYear'] = "<span>:price</span>/:countyr";

to...

$_LANG['shoppingCartProductPerYear'] = "<span>:price</span>/mo";

 

http://docs.whmcs.com/Language_Overrides

 

there would be other options, but the above two would be the easiest until WHMCS fix the template in a future update.

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