sherwin_flight Posted October 28, 2012 Share Posted October 28, 2012 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. 0 Quote Link to comment Share on other sites More sharing options...
sdemidko Posted November 1, 2012 Share Posted November 1, 2012 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. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.