keneso Posted January 9, 2016 Share Posted January 9, 2016 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 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 9, 2016 Share Posted January 9, 2016 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. 0 Quote Link to comment Share on other sites More sharing options...
keneso Posted January 12, 2016 Author Share Posted January 12, 2016 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 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 12, 2016 Share Posted January 12, 2016 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". 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. 0 Quote Link to comment Share on other sites More sharing options...
keneso Posted January 13, 2016 Author Share Posted January 13, 2016 Yeeaahhh ... I AM a beta tester ;D Seriously, thank you. Well, I have no idea about data feed usage, and I am using a slighly modified (by myself) template, so I guess I'll try the language override. Will post back for the outcome. 0 Quote Link to comment Share on other sites More sharing options...
keneso Posted January 15, 2016 Author Share Posted January 15, 2016 Had no doubt, the language override works fine. Thank you 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.