ServWise.com
Retired Forum Member-
Posts
353 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Events
Hotfixes
Everything posted by ServWise.com
-
Change language without ?language=English in URL
ServWise.com replied to criat's topic in Developer Corner
Seriously I posted this 11 years ago and all WHMCS has done in that time is force customers into a per user monthly subscription (Even though this has no relation to their costs since it is a self-hosted system, same with cpanel) they are literally destroying the business sector they serve for their own profit, no win/win for these guys. AND still they don't have proper built-in multi-language capability, in fact they have made it even harder for people like me to bodge by moving a bunch of stuff to Laravel which won't support the same rewriting. Kinda sad when you think about it. -
Security update just announced
ServWise.com replied to bear's topic in Installation, Upgrade, and Import Support
Just to add one thing to this as I have been running WHMCS for at least 15 years. Yes new features are nice but when your developers are spending time making the "Admin" SEO friendly, yes that's right, a place which search engine spiders can't even access has been given SEO friendly URLs and yet the front end isn't even properly SEO friendly without a huge amount of custom hackery (try getting google to properly index anything other than your default language in a vanilla WHMCS) and it has actually gotten worse, not better with newer versions. That says it all in my book. -
Security update just announced
ServWise.com replied to bear's topic in Installation, Upgrade, and Import Support
I attempted to perform the update, it forced me to purchase a support subscription, even your support staff said I had to, I assume I can get a refund on that then? -
Security update just announced
ServWise.com replied to bear's topic in Installation, Upgrade, and Import Support
Same here, no warning in the email, no restriction for downloading the patch, first time I knew about it was when I was locked out of my admin after performing the security update. 😞 -
There is a problem with TLD sync. I use TLD sync with ENOM and when it imports or updates domains if ENOM does not support transfer of a domain (but supports registration and renewal) then it lists a 0.00 transfer value, this when imported into WHMCS sets transfers of those domains as FREE allowing anyone to add them as transfers for nothing (even though ENOM will error when the domain transfer is attempted), it should be saving the domain with a value of -1 to disable it.
-
Yeah it is not hard to fix but annoying when you find it, I actually built something a little more user friendly to replace it, no need to disable the fields but because I use a couple of domain reseller account as well as my own DNS the customer sometime just wants DNS only option and they need to set specific name servers for the DNS only option so I pre-populate them for them. Just add this to the top of the template clientareadomaindetails.tpl <script type="text/javascript"> function disableFields(tclass,value){ if (value=='usesw'){ document.getElementsByClassName(tclass)[0].value = 'ns1.servwise.com'; document.getElementsByClassName(tclass)[1].value = 'ns2.servwise.com'; document.getElementsByClassName(tclass)[2].value = 'ns3.servwise.com'; document.getElementsByClassName(tclass)[3].value = 'ns4.servwise.com'; document.getElementsByClassName(tclass)[4].value = ''; } else if (value=='enom'){ document.getElementsByClassName(tclass)[0].value = 'dns1.name-services.com'; document.getElementsByClassName(tclass)[1].value = 'dns2.name-services.com'; document.getElementsByClassName(tclass)[2].value = 'dns3.name-services.com'; document.getElementsByClassName(tclass)[3].value = ''; document.getElementsByClassName(tclass)[4].value = ''; } else if (value=='opensrs'){ document.getElementsByClassName(tclass)[0].value = 'ns1.systemdns.com'; document.getElementsByClassName(tclass)[1].value = 'ns2.systemdns.com'; document.getElementsByClassName(tclass)[2].value = 'ns3.systemdns.com'; document.getElementsByClassName(tclass)[3].value = ''; document.getElementsByClassName(tclass)[4].value = ''; } else { document.getElementsByClassName(tclass)[0].value = ''; document.getElementsByClassName(tclass)[1].value = ''; document.getElementsByClassName(tclass)[2].value = ''; document.getElementsByClassName(tclass)[3].value = ''; document.getElementsByClassName(tclass)[4].value = ''; } } </script> Then i have this code so the user can choose between using it with our hosting, DNS only via our website or their own name servers. <div class="radio"> <label> <input type="radio" name="nschoice" value="default" onclick="disableFields('domnsinputs','usesw')"{if $defaultns} checked{/if} /> {$LANG.sw_dns_servwise} </label> </div> <div class="radio"> <label> <input type="radio" name="nschoice" value="custom" onclick="disableFields('domnsinputs','{$registrar}')"{if !$defaultns && $nameservers[1].value eq "dns1.name-services.com" || $nameservers[1].value eq "ns1.systemdns.com"} checked{/if} /> {$LANG.sw_dns_DNSmanagement} </label> </div> <div class="radio"> <label> <input type="radio" name="nschoice" value="custom" onclick="disableFields('domnsinputs','')"{if !$defaultns && $nameservers[1].value neq "dns1.name-services.com" && $nameservers[1].value neq "ns1.systemdns.com"} checked{/if} /> {$LANG.nschoicecustom} </label> </div>
-
5 year old bug now
-
Can anyone confirm if they are able to rewrite the URL of any of the store pages, e.g. the weebly store under /store/website-builder. I have my site installed in a /home/ folder, so I am trying to do a URL rewrite for /home/weebly-website-builder to /home/store/website-builder but all I get is a 404 page for everything I try on those store pages. Does not matter what option I choose under friendly URLS in the config. Any ideas?
-
Hi, my feature request has just been published at https://requests.whmcs.com/topic/force-language-based-on-subfolder and I need everyone to vote for it? It would have a huge positive impact on SEO for multi-language websites.
-
VAT number not available to Invoice v7.9.1
ServWise.com replied to ServWise.com's topic in Troubleshooting Issues
Hi, thanks for the response, i actually didn't know about this (would have saved me some migration time) as I actually I already migrated them myself via my own SQL script, problem is that it is the "saved" invoice data which needs to be updated which is some form of ; delimited field data that stores a record of the clients details for each invoice so it won't change if the client changes their billing details. I guess I could go through and replace the text custom1 with tax_id in that data and it might work also. Regards Sam -
VAT number not available to Invoice v7.9.1
ServWise.com replied to ServWise.com's topic in Troubleshooting Issues
Just to finish of this post as I think it could be of use to others who like me were using a custom field prior to the latest version. To fix this I added the following code which uses the new taxid field if available otherwise swaps to the older customfield1 for older invoices invoicepdf.php from line 94 if (array_key_exists('tax_id', $clientsdetails) && $clientsdetails['tax_id']) { $pdf->Cell(0, 4, $taxIdLabel . ': ' . $clientsdetails['tax_id'], 0, 1, 'L'); } elseif ($clientsdetails['customfields1']!=""){ $pdf->Cell(0, 4, $taxIdLabel . ': ' . $clientsdetails['customfields1'], 0, 1, 'L'); } viewinvoice.php from line 100 {if $clientsdetails.tax_id} <br />{$taxIdLabel}: {$clientsdetails.tax_id} {elseif $clientsdetails.customfields1} <br />{$taxIdLabel}: {$clientsdetails.customfields1} {/if} -
VAT number not available to Invoice v7.9.1
ServWise.com replied to ServWise.com's topic in Troubleshooting Issues
Okay I think I understand what is going on. In v7.9 you are now storing a extended field called tax_id, prior to this I was using a custom field for the VAT number which was stored as customfield1 so for older invoices they dont have a tax_id and so are missing this data from the invoices. I will add some code to check both and display one or the other if they exist. -
VAT number not available to Invoice v7.9.1
ServWise.com replied to ServWise.com's topic in Troubleshooting Issues
Further investigation seems to suggest that it is something to do with the "Store Client Data Snapshot" functionality. I have this enabled but it seems to have stopped recording this data as if I change my test client data it also changes on a recently generated test invoice which it should not. So with a client with an older invoice (generated Pre- upgrade) this invoice has data recorded within the mod_invoicedata table and because of this their VAT number is for some reason not being output at all to the invoice template, but in new invoices since the upgrade no data has been recorded for them in the mod_invoicedata table and the invoice template is pulling their vat numbers direct from their live profile. -
Hi, It would seem that the VAT number for the customer is not available to display within the invoice, in debug mode $taxCode is blank even though the client has a valid VAT code entered in the admin area. EDIT: I just did a test with a new client registered since upgrade to v7.9.1 and there VAT number is showing on the invoice so it seem to be only clients pre v7.9.1 even if the vat number has been updated (resaved) on there profile.
-
Since upgrading from 7.8.3 to 7.9.1 all admin support ticket emails stopped being sent. I checked all my settings but could not see a problem. Eventually I looked at the new notifications config page which I had seen in 7.8.3 but left disabled to check out at a later date. Adding some notifications here I can get alerts to new tickets and responses. Is this meant to be how this works now, i saw nothing in the update notes to indicate you would be disabling the normal notifications? i preferred the old notifications as you had the ticket contents included and the IP etc OR is this a bug? Regards Sam
-
Hi, did you work this out I am trying to do something a little similar, I have the SQL i need to get the price from value for a group of products in a particular currency but I cant seem to output the data. I am putting this in the php of a custom page $pdo = Capsule::connection()->getPdo(); try { $statement = $pdo->prepare( 'SELECT MIN(tp.monthly) AS minprice FROM tblproducts p, tblpricing tp WHERE p.hidden=0 AND p.id = tp.relid AND p.gid = 29 AND tp.currency=1;' ); $statement->execute(); $result = $statement->fetch(); } catch (\Exception $e) { echo "Ooooooooops {$e->getMessage()}"; } print_r($result); But my result does not match the result if I run the same SQL directly in mysql Array ( [minprice] => [0] => ) Any ideas? What am I doing wriong
-
Some time ago (11 years) I created a system to make WHMCS fully Search engine friendly using URL rewriting. That was using version 4/5 of WHMCS, it allows you to have nice looking URLS and most importantly it allows search engines to properly index all multi language content on the site. Well I put of upgrading for about 5 years, in fact I attempted to upgrade a number of times (And paid for the upgrade subscription each time) but never managed due to the substantial changes in the newer versions. I am now forcing myself to complete the upgrade and one of the final issues I am seeing is again to do with rewriting. Unfortunately in v7.8 WHMCS's index.php no longer seems to allow you to rewrite to it, for example I would like to rewrite /en/, /it/ and /es/ to my /home/ folder where WHMCS is actually installed, I then force ?language= to the end of the source urls so that WHMCS is forced to show a specific language for a specific URL. This works for all pages except for the root index.php, likely because of the new "Friendly URL" system WHMCS has implemented. So what I am asking is if anyone here has any insight into how we can rewrite the index.php file without getting a 404 error page? I have opened feature request as the language issue is something that should have been fixed internally a long time ago in WHMCS.
-
I just seen the more than double price hike, that is an outrageous.... I am still on version 5.3.9, I haven't been able to upgrade as the template system has changed so much i'm going to have to practically rewrite my whole site. Not happy....
-
I want to put the language within the url of all the links, I have this fine in v4 but in the six template all the menus are dynamically created. My thoughts were to loop through the menu arrays via hooks replacing /whmcs/ (which is the folder I have whmcs actually installed into) with e.g. /en/ or /it/ depending on the language the client us currently using on the site but I am not sure of the code I need to do this. Help much appreciated. thanks Sam
-
I've got about 1500 expired domains accumulated from many years of service which I don't want to manually delete. No way to bulk delete them so I am thinking to write my own SQL script to do it. This is what I have so far, anyone want to sanity check it for me. Yes I know it is a select not a delete statement, I will change to a delete statement once I have it fullproof It should delete all domain records that have status expired and have been expired for more than 3 months. SELECT * FROM tbldomains td LEFT JOIN tbldomainsadditionalfields tdaf ON td.id=tdaf.domainid WHERE td.status="expired" AND DATE(expirydate) < DATE_ADD(CURDATE(), INTERVAL -3 MONTH); Should convert to this as a delete statement DELETE tbldomains td, tbldomainsadditionalfields tdaf FROM td LEFT JOIN tbldomainsadditionalfields tdaf ON td.id=tdaf.domainid WHERE td.status="expired" AND DATE(expirydate) < DATE_ADD(CURDATE(), INTERVAL -3 MONTH); I just want to know that I am not missing something obvious, is there other linked data? is my SQL going to delete everything I need to delete an no more?
-
When I client chooses a related service when opening a ticket, it shows in admin but is not shown to the client in the client side, so a client accidentally choosing the wrong service when submitting has no idea and today this turned into a server being reinstalled which was not the correct server . ((( Is there any way to show the service related to the ticket to the client?
-
Set product to use global product price for billing
ServWise.com replied to ServWise.com's topic in Feedback
Thanks I will have a look at that, however from the screen shot it seems to have a limited configuration, seems to be either on or off for all domains or all products. -
I am sure this has been asked before but I can't find it. One of my all time worst things about WHMCS is that once an item is purchase it uses a separate price (The price at the time it was purchased) for all future billing. I know you have a script to update customer pricing but it is a major pain in the arse to use especially when you sell in multiple currencies and multiple years for domains. Can you add a feature (This can't be hard) where the billing price is taken from the current product price and not the customers original purchase price, it could be set per product. for example, domains I would always want to follow the current renew pricing, not the renewal price set at the time they originally purchased the domain. For me same goes for SSLs or shared hosting which i want to follow the current pricing. Dedicated servers for me are always custom so I wouldn't want them to work that way so being able to set it per product would be great. Please please please think about this.. thanks Sam
-
Free Stripe Payment Gateway with Stripe.js support
ServWise.com replied to jclarke's topic in Third Party Add-ons
Just found something of a bug... When you enter your CC into the creditcard.php page (haven't checked checkout page) if you happen to enter any space after the card number it does not trim it before sending and stripe returns an invalid credit card number. regards Sam M
