Jump to content

How to limit a free hosting account to one per customer?


staher

Recommended Posts

Hi, I am planning to offer free hosting accounts - These will be simple shared hosting plan. But I want this be limited to one free hosting account per customer.

I looked everywhere, but could not find a way to do it. Also, this should be available as a product not a promotion where customers have to enter a promo code. The only difference than the normal product is, they can have only one of this product.

 

Any pointers will be greatly appreciated.

 

Thank you all

Link to comment
Share on other sites

  • 2 weeks later...

We just use a hook in the actiohhooks.php - pretty simple really.

 

add_hook("PreShoppingCartCheckout",1,"checkaccount_prehostingsetup","");

 

and we check to see if client already has this package in tblhosting - if they have they are directed to an error page - saying they already have used their free package and directing them to the paid one.

Link to comment
Share on other sites

  • 2 years later...

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