Jump to content

Automatic updates of domain details


silentkiller

Recommended Posts

I believethat the domain registration date was imported correctly if this is so then you just have to run the following queries on the database to update them all.

 

1. UPDATE tbldomains SET expirydate=registrationdate

 

2. UPDATE tbldomains SET nextduedate=registrationdate

 

backup your database before you do anything !!!!

 

hope this helps

Link to comment
Share on other sites

  • WHMCS CEO
UPDATE tbldomains SET expirydate=registrationdate

I wouldn't recommend running this query. This would set the expiry date to the registration date which would be in the past and cause all domains to appear in WHMCS as being due for renewal.

 

Matt

Link to comment
Share on other sites

I believethat the domain registration date was imported correctly if this is so then you just have to run the following queries on the database to update them all.

 

1. UPDATE tbldomains SET expirydate=registrationdate

 

2. UPDATE tbldomains SET nextduedate=registrationdate

 

backup your database before you do anything !!!!

 

hope this helps

 

 

What I meant was..

 

User click 'Sync' in WHMCS -> Retrieve Registration & Expiry Date -> DirectI API -> Update database values in WHMCS and maybe having the Due Date before each domain's expiry.

 

That would be nice.. billing for the actual domain expiry instead of tagging the domain along with the hosting account's expiry.

 

I know the due date can be customized - but some customers just don't want to pay for a renewal when their domain is registered till 2009 (Example)

 

:D

Link to comment
Share on other sites

UPDATE tbldomains SET expirydate=registrationdate

I wouldn't recommend running this query. This would set the expiry date to the registration date which would be in the past and cause all domains to appear in WHMCS as being due for renewal.

 

Matt

you absolutely right , i forgot about the year , this is only good to update

the expirydate and nextduedate if one of them available like i had in my case .

 

how stupid of me

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated