Jump to content

Discount only if you have a specific email address


SamS1

Recommended Posts

Hi there,

Is there a way to setup a package in WHMCS that would require a .edu email address for example? Not sure if that's the best way to set it up but basically want to offer students a discount. There was a post that said it could be done via hooks but i looked into it and have no idea how those work.

Whats the best way to set this up? 

Thanks

Link to comment
Share on other sites

12 hours ago, SamS1 said:

Is there a way to setup a package in WHMCS that would require a .edu email address for example?

as a custom field, or as the users signup address? the answer would be yes to both, but then you have to decide if you're just checking that it's a .edu address (simple enough) or whether it's a valid .edu address (a little trickier as you could easily signup with a false address - I don't think siteground are checking for this).

the idea was previously requested 4 years ago, but only got 4 votes... so I doubt WHMCS are going to do this themselves anytime soon.

off the top of my head, I can't think of an addon that would cover this particular situation... so i'd go along with the other replies, that you probably need to get a developer in form something like this.

Link to comment
Share on other sites

On the dev  / custom front, what you could do is use a dailycron hook and check for accounts with .edu addresses that have been verified -- whmcs has a system for email verification.  If it is verified, then change the client group to the edu group.  This of course goes for all clients and not just new ones.  If you want new clients only, a clientadd hook that checks for .edu and sets a edu-verification custom field to "pending" .   Then on the dailycron, just look for clients with a verified email and a edu-verification custom field of pending. (you could also do clientareapage and check. to bad there isn't a verified email hook.)    Once found, change the client group to education group, edu-verification custom field to "verified", and save . 

The first one would be easier to implement but may not suit your needs if you don't want existing clients moved over.

Link to comment
Share on other sites

the problem with that @steven99 is that once a user is registered, they can order straight away - regardless of whether they've verified their email or not... yeah, you could fix it so they couldn't order until their email was verified, but still...

besides, there might be a fatal flaw in @SamS1 question when he realises that people can buy .edu email addresses online for a dollar or two from eBay, and can probably get one for free through various nefarious methods. 🙂

Link to comment
Share on other sites

Hey everyone. While i was testing other sites that have this implemented, i did find flaws exactly like @brian! mentioned. Searching for just .edu emails in Google was enough to show the demand for them to benefit from discounts just like this one. I guess id verification would be the next step. Either have them upload or use 3rd party company to do it. 

Link to comment
Share on other sites

5 hours ago, brian! said:

the problem with that @steven99 is that once a user is registered, they can order straight away - regardless of whether they've verified their email or not... yeah, you could fix it so they couldn't order until their email was verified, but still...

besides, there might be a fatal flaw in @SamS1 question when he realises that people can buy .edu email addresses online for a dollar or two from eBay, and can probably get one for free through various nefarious methods. 🙂

Indeed and edu-verification custom field mentioned could be used for that as you could put value as "verified" or "pending" depending on the status.  The dailycron wouldn't do any client group changes or discounts until that custom field was a "verified" state.   And the hook could apply the discount to the existing order that is left in a "pending edu verification" stage.   Or go with your idea and require user registration and verification first and block access to the cart pages until then via a clientareapage and a custom page saying to wait until verified. 

I think a current student ID is the best option and isn't out of the norm to be asked for to get student discounts.    Though would need some sort of encrypted data storage for that depending on local laws and such.

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