Web Host Pro Posted September 7, 2018 Share Posted September 7, 2018 Most addons have a capital letter under the billing date line but the super speed addon is not capitalized. How can I change this so they are all capitalized or all lower case. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 8, 2018 Share Posted September 8, 2018 12 hours ago, Web Host Pro said: Most addons have a capital letter under the billing date line but the super speed addon is not capitalized. have you checked, in the Product Addons setup (in the admin area), that both words of this addon's name are capitalized in there ? 0 Quote Link to comment Share on other sites More sharing options...
Web Host Pro Posted September 12, 2018 Author Share Posted September 12, 2018 Yeah there is no option to change the spelling of the monthly or time frame. It has to be something inside WHMCS's core files. The language file is a capital: $_LANG['orderpaymenttermmonthly'] = "Monthly"; I noticed in the language file there is not a line to change "Monthly" for addons just products. Maybe you can send what that line would be and I can try to add it? Something like: $_LANG['addon'] = "Monthly"; 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 13, 2018 Share Posted September 13, 2018 14 hours ago, Web Host Pro said: Yeah there is no option to change the spelling of the monthly or time frame. oh sorry - I thought your issue was to do with both words of "Super speed" not being capitalised - I never saw the lower case monthly. 👓 14 hours ago, Web Host Pro said: It has to be something inside WHMCS's core files. it is - you've found a bug... it's adding 'monthly' to the tblhostingaddons table instead of 'Monthly' and the arrays are created using what's stored in the tables. 14 hours ago, Web Host Pro said: I noticed in the language file there is not a line to change "Monthly" for addons just products. Maybe you can send what that line would be and I can try to add it? it's not a language file issue... 'monthly' must be coded in one of the encrypted files somewhere.. I suspect if you have more than 10 products/addons/domains, you can't solve it with a template edit, nor I assume a hook - I haven't tried writing the hook, but did try tweaking the template - e.g using capitalize or ucfirst which might work if there are less than ten services in the array, but doesn't if there are more. I think the better temporary solution is to go direct to the source and update the tblhostingaddons table - this is from my v7.6.1 dev... if you run the SQL update query below (e.g via phpmyadmin etc), that will capitalise the 'monthly' values (although if there are only a few, you could do it manually too)... UPDATE tblhostingaddons SET billingcycle = REPLACE(billingcycle, 'monthly', 'Monthly') until WHMCS fix this, you may have to manually edit, or run the above query, after each monthly product addon purchase. I didn't have any monthly addons in my v7.5 dev, so I don't know if this is a v7.6 issue or earlier. you might want to report it as a bug to WHMCS, perhaps give them the link to this thread, and then they may release a hotfix for this (I doubt it needs to wait months for the next maintenance release, i'd imagine it's not many files that would need changing to fix this). 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.