Jump to content

Set variables based on client sign up date


tbsweet52

Recommended Posts

Hey guys,

 

I was wondering how to show a certain message (or products) to clients based on their signup date.

 

Basically, we are making changes to our order form in which the client must accept new terms and fill in some custom fields ONLY if they have signed up before a certain date.

 

Is this possible, if so how?

 

Thanks!

 

Tom

Link to comment
Share on other sites

I don't know if you are familiar with action hooks. For now i suppose that you can make the hook. This is the query.

SELECT DATEDIFF(DATE(datecreated),'2013-01-01') AS difference FROM tblclients WHERE DATEDIFF(DATE(datecreated),'2013-01-01') >= '0' ORDER BY difference ASC

With this i get all clients who have registered starting from january 1 2013. I've also made an element (difference) you can use to get the difference (in days) between the two dates.

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