HostinPK Posted September 4, 2011 Share Posted September 4, 2011 Hello Friends! I actually want to disable auto renew for the domain registrations and how can I do in bulk? Also, how can I disable for existing domains? I have no time to disable it for all domains. So, can anyone help me? 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted September 4, 2011 Share Posted September 4, 2011 What auto-renew are you referring to ? 0 Quote Link to comment Share on other sites More sharing options...
HostinPK Posted September 4, 2011 Author Share Posted September 4, 2011 Talking about Domain Auto renew. 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted September 4, 2011 Share Posted September 4, 2011 Talking about Domain Auto renew. there is no "domain auto renew" - what *EXACTLY* are you referring to ? 0 Quote Link to comment Share on other sites More sharing options...
plateaultd Posted September 7, 2011 Share Posted September 7, 2011 Look in General Settings, "Domains" for the "Default Auto Renewal Setting" for the default setting. I had a similar problem so I wrote a small script to make sure all domains were set to not automatically renew. I also modified the template that showed the domain name so the user would not see an option to renew a domain. I put the following in a .php file then call it once a day as a cron job just to make sure that domains are never set to auto renew. $db_host = "localhost"; $db_username = "username"; $db_password = "password"; $db_name = "dbname"; $link = mysql_connect($db_host, $db_username ,$db_password) or die("Unable to connect to database: " . mysql_error()); @mysql_select_db($db_name) or die( "Unable to select database"); $query = "UPDATE tbldomains SET donotrenew = 'on'"; // Perform Query $result = mysql_query($query); // debugging code can go here mysql_free_result($result); mysql_close($link); header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.your-domain-name.com"); Hope this helps. Roger 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.