amolbrkr Posted July 22, 2020 Share Posted July 22, 2020 Hi, I'm using the hostinza html template. The pricing tables in this template have an option of switching between montly and yearly pricing. I want the users to go directly to cart with annual pricing selected. But there is no option of getting cart links with annual billing cycle selected? How do I do this? Thanks. 0 Quote Link to comment Share on other sites More sharing options...
Moster Posted July 24, 2020 Share Posted July 24, 2020 On 7/22/2020 at 7:20 AM, amolbrkr said: But there is no option of getting cart links with annual billing cycle selected? http://demo.whmcs.com/cart.php?a=add&pid=1&billingcycle=annually https://docs.whmcs.com/Linking_to_WHMCS#Order_Links 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 24, 2020 Share Posted July 24, 2020 On 22/07/2020 at 05:20, amolbrkr said: The pricing tables in this template have an option of switching between monthly and yearly pricing. I want the users to go directly to cart with annual pricing selected. But there is no option of getting cart links with annual billing cycle selected? my first thought would be that you should contact Hostinza's developers as they will likely have been asked about doing this previously. On 22/07/2020 at 05:20, amolbrkr said: How do I do this? I suspect the JS is going to have to be tweaked to automatically change the Buy Now URL depending on the value of the monthly/yearly slider - if it was reloading the page, then that's a simple tweak, based on Moster's above example of just passing the billingcycle in the URL, but it's not reloading and therefore, it's going to be JavaScript. also, being a WordPress theme and these elements being outside of WHMCS, it's possibly more a WordPress question. 0 Quote Link to comment Share on other sites More sharing options...
amolbrkr Posted August 3, 2020 Author Share Posted August 3, 2020 On 7/24/2020 at 8:30 PM, brian! said: my first thought would be that you should contact Hostinza's developers as they will likely have been asked about doing this previously. I suspect the JS is going to have to be tweaked to automatically change the Buy Now URL depending on the value of the monthly/yearly slider - if it was reloading the page, then that's a simple tweak, based on Moster's above example of just passing the billingcycle in the URL, but it's not reloading and therefore, it's going to be JavaScript. also, being a WordPress theme and these elements being outside of WHMCS, it's possibly more a WordPress question. Yeah I got it, thanks man! 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.