Jump to content

How to sell "access codes"


sherwin_flight

Recommended Posts

I want to create a product that people can purchase through WHMCS, but the product is actually an access code for another service. (I'll figure out how I want to generate my access codes later)

 

Basically, this is what I'm trying to do:

 

- User purchases the item(s). They should be able to choose the quantity they way to buy.

- When payment is made codes should be generated to match the quantity entered.

- Codes should be e-mailed to the user, and entered into a DB for later reference.

 

I can do the coding, I'm just not really sure how to make this work in WHMCS.

 

There are no user-configurable options for this, except for the QTY they enter when ordered.

 

A user should be able to purchase this independently, it doesn't have to be an add-on with another item.

Link to comment
Share on other sites

look into custom server modules

you can do there whatever you want

 

modulename_create function() is just for you. You generate there a code and email it to a user. I suggest you to have 1 product = 1 code, so there wont be a collisions. You can save the code itself somewhere in tblhosting table, maybe in new column.

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