Grafixster Posted February 23, 2015 Share Posted February 23, 2015 I can link to a product and a specific billing cycle choice just fine /cart.php?a=add&pid=1&billingcycle=annually I can also display the same products total cost /feeds/productsinfo.php?pid=1&get=price&billingcycle=annually How do I show the products monthly cost breakdown instead of the total months? I'm using a drop down list where user can choose the billing cycle but I'd like it to show price per month For example List options: - Monthly $9.99 p/month - 6 Months $8.49 p/month - Yearly $8.99 p/month - 2 Years $7.99 p/month Submt btn As it stands, I'm only able to show the total price and not the p/month price. Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 23, 2015 Share Posted February 23, 2015 take a look at my tutorial in the thread below... http://forum.whmcs.com/showthread.php?85823-Tutorial-How-to-modify-the-Recurring-Billing-Cycle-text 0 Quote Link to comment Share on other sites More sharing options...
Grafixster Posted February 23, 2015 Author Share Posted February 23, 2015 Thanks for the response. I did see your write up when researching and am actually implementing it as I learn the templating system. I should have mentioned that I'm applying what I wrote above to external pages, outside of the WHMCS templating system. Remote landing pages for example. I'm not finished implementing your tutorial into my test install but it leaves me to wonder, would I end up with more variables to use in the jquery call to WHMCS like, your money saved or per month breakdown? Thanks again! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 23, 2015 Share Posted February 23, 2015 oh sorry, I missed your mention of using feeds... if this is for external of whmcs, then that's the way to go. what you would have to do is to do a bit of maths in the feed code.. e.g price / months - should be the same as my code, except that is in smarty, but it should be easier with php. $price = $data[$billingcycle]; so divide $price by number of months to get the monthly price... either by calling the feed for each period, or just once (expanding the sql query) and getting the feed to do the outputting.. let me know if you run into any problems. 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.