Diesel Posted September 5, 2017 Share Posted September 5, 2017 Hi all, I would like to give my customers the option of paying quarterly, semi-annually or annually. I can set these prices per product in the Admin area, but when I look at the products in the store front end, it only shows the most frequent billing cycle (ie quarterly). Where and when does the customer see the billing cycle option? Surely this should be displayed on the store front, or am I missing a setting somewhere? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 5, 2017 Share Posted September 5, 2017 HI, as you have found, the cart usually only shows the shortest billing cycle that is priced (e.g monthly, quarterly etc)... the user will get to choose the billing cycle during the order process - usually at the product configuration stage. however, it is possible to show multiple pricing at the front end, the variables are usually all present, but how you do it would depend on your orderform template used... e.g if you were using Standard_Cart, you could use code similar to the thread below to show all available pricing options... https://forum.whmcs.com/showthread.php?126891-Billing-Cycle-Prices&p=508146#post508146 ... or with a comparison template, you could use a dropdown to trigger the cycle choice... https://forum.whmcs.com/showthread.php?129443-Looking-to-hire-someone-for-those-2-changes&p=517554#post517554 so basically it can be done - it's just a case of using the most appropriate method for your template. 0 Quote Link to comment Share on other sites More sharing options...
Diesel Posted September 5, 2017 Author Share Posted September 5, 2017 Perfect! Thank you! Now I just have to figure out how to make it use 6-monthly instead of "Semi-annually". 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 5, 2017 Share Posted September 5, 2017 Now I just have to figure out how to make it use 6-monthly instead of "Semi-annually". perhaps by using a Language Override and creating a replacement string... $_LANG['orderpaymenttermsemiannually'] = "6-monthly"; 0 Quote Link to comment Share on other sites More sharing options...
Diesel Posted September 5, 2017 Author Share Posted September 5, 2017 (edited) perhaps by using a Language Override and creating a replacement string... $_LANG['orderpaymenttermsemiannually'] = "6-monthly"; Thanks, I did try that earlier, but it causes something to break across the entire site. I get an Oops! error. So, I'm assuming my overrides english.php file will only have this code in it(?): <?php $_LANG['orderpaymenttermsemiannually'] = “6 Monthly“; I'm not great with php, so if I am making a rookie error please be gentle... This is what the error says: Oops!Something went wrong and we couldn't process your request. Please go back to the previous page and try again. Edited September 5, 2017 by Diesel 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 5, 2017 Share Posted September 5, 2017 Thanks, I did try that earlier, but it causes something to break across the entire site. I get an Oops! error. So, I'm assuming my overrides english.php file will only have this code in it(?): <?php $_LANG['orderpaymenttermsemiannually'] = “6 Monthly“; I'm not great with php, so if I am making a rookie error please be gentle... that should be all you need - though when I posted your code above into my overrides file, it didn't like your double quotes and throws up the error.. exception 'Whoops\Exception\ErrorException' with message 'syntax error, unexpected 'Monthly“' if you can fix the quotes issue (perhaps type them in again), then it will work... <?php $_LANG['orderpaymenttermsemiannually'] = "6 Monthly"; 0 Quote Link to comment Share on other sites More sharing options...
Diesel Posted September 5, 2017 Author Share Posted September 5, 2017 Sorted! Thank you so much! My last question is where might I find the stylesheet for the Modern order templates? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 5, 2017 Share Posted September 5, 2017 My last question is where might I find the stylesheet for the Modern order templates? /templates/orderforms/modern/style.css thought don't edit the above file, make your changes to /templates/six (or custom)/css/custom.css https://developers.whmcs.com/themes/css-styling/ 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.