Si Posted February 10, 2014 Share Posted February 10, 2014 (edited) I'm a nominet tag holder and basically, (because of their pricing structure), I want to force all existing domain renewals to renew for a 2 year period rather than 1. (The way it used to be until a couple of years back). So basically I have a lot of UK domains which are set to renew yearly, and I want them to renew 2 yearly - and at the 2 yearly price. Can anyone help provide me with the mysql command that I would need to run in phpmyadmin to achieve this? Thank you. Edited February 10, 2014 by Si 0 Quote Link to comment Share on other sites More sharing options...
Si Posted February 10, 2014 Author Share Posted February 10, 2014 Anyone help with this please? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 10, 2014 Share Posted February 10, 2014 wouldn't the code be similar to that in the post below... http://forum.whmcs.com/showthread.php?76991-Can-t-get-Bulk-Pricing-Updater-to-work&p=355403#post355403 0 Quote Link to comment Share on other sites More sharing options...
Si Posted February 11, 2014 Author Share Posted February 11, 2014 Thanks for the reply. So, would this be correct? Run this first UPDATE tbldomains SET registrationperiod = "2" WHERE domain like "%.uk" AND registrationperiod = "1"; then UPDATE tbldomains SET recurringamount = "12.99" WHERE domain like "%.uk" AND registrationperiod = "2"; (or use the bulk pricing updater for the second command) The part I'm unsure of is WHERE domain like "%.uk" Would that cover .co.uk, .org.uk and .me.uk domains or should I run 3 separate commands with something like WHERE domain like "%.co.uk" WHERE domain like "%.org.uk" WHERE domain like "%.me.uk" ? Thanks for the help. 0 Quote Link to comment Share on other sites More sharing options...
snake Posted February 11, 2014 Share Posted February 11, 2014 % is a wildcard, so it would do anything.uk 0 Quote Link to comment Share on other sites More sharing options...
Si Posted February 11, 2014 Author Share Posted February 11, 2014 thanks. yea, I just ran the queries as I posted above and they did the job for me. thanks for all the help. Si 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 11, 2014 Share Posted February 11, 2014 (or use the bulk pricing updater for the second command) I'm not entirely sure whether the bulk pricing updater has been fixed yet, so it's probably safer to stick with the phpmyadmin method for now! 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.