Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Downloadable products with licence keys


lewis1111

Recommended Posts

Posted

Does anyone know of a contribution that will help me send unique licence keys for downloadable products.

 

I want to update the keys directly in SQL. Each time someone makes a downloadable order it would then send them an email with the relevant number of licences. It would then mark those keys so they do not get reused.

 

It sounds simple when I write it but i'm not sure how to get checkout_process.php to work which products are downloadable, what their product ids are, and how many licences to include in the confirmation email.

 

If anyone could help i'd be really grateful.

Posted

not aware of a contribution but you could do few things to create this functionality.

- Create a new column for the products_attributes_download table to be used for the serials.

- Use a seed to generate the serial numbers so the no initial serial numbers are necessary.

- For each download store the created number in the dbase so next time you can check the newly created number against the stored ones. If you combine your seed with the current time the odds of hitting the same number are minimum.

- Finally append the serial to the email information send to the customer when the order is approved via the admin.

Posted

thanks for your suggestion...

 

the only thing i didn't mention was that the product keys are provided by the software provider so i cannot make up my own as they won't work with the software.

Posted

I see, I thought you were the vendor. Well then you get rid of the seed and insert the numbers into the dbase. And you add one extra column for the products_attributes_download table (plus the serial number one) to mark/check each serial that is published. So your sql query will check the serial number status and if nothing comes back from the dbase you could even put the item out of stock automatically.

  • 1 month later...
  • 1 year later...
Posted

lewis1111 - I am building a site where I will sell software with unique license keys. Sounds like what you have is similar if not exactly what I need. Did you load your contribution in the contrib section? Is not can you post the code I need to enable such functionality?

 

Thanks

 

 

In the end I wrote my own contribution, which I added to checkout_process.php - thanks for your help.
  • 8 months later...
Posted
In the end I wrote my own contribution, which I added to checkout_process.php - thanks for your help.

 

Is it possible to get this contribution?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...