Hey Everybody,
I honestly seriously doubt anybody has seen or tried to use Prestashop. Our game studio runs it, and we need a product key system for when the user has paid for a product. Any ideas how this can be accomplished in PHP? Thanks
Offline
You mean, like, they download the product, they go to your website, they purchase the product, it gives a key, and they enter the key in the product to activate it? Elaborate?
Offline
Basically, I need to add a system to prestashop that generates a key unique to each product when someone buys it.
Offline
maybe something like this? (I don't know how you'd integrate it with prestashop and/or the product, but it's php code to generate a UUID
https://gist.github.com/508447
Offline
SJRCS_011 wrote:
maybe something like this? (I don't know how you'd integrate it with prestashop and/or the product, but it's php code to generate a UUID
https://gist.github.com/508447
Thank you
I am pretty sure we can add this into the system.
Our main problem at the moment is making it unique to the product and adding it to Prestashop. If anybody can help, it would help!
Offline
Zeusking19 wrote:
SJRCS_011 wrote:
maybe something like this? (I don't know how you'd integrate it with prestashop and/or the product, but it's php code to generate a UUID
https://gist.github.com/508447Thank you
![]()
I am pretty sure we can add this into the system.
Our main problem at the moment is making it unique to the product and adding it to Prestashop. If anybody can help, it would help!
Well, you can't really make the uuid's unique to a certain product, but you could make sure that any uuids used with one product aren't used by another through databases
Offline
SJRCS_011 wrote:
Zeusking19 wrote:
SJRCS_011 wrote:
maybe something like this? (I don't know how you'd integrate it with prestashop and/or the product, but it's php code to generate a UUID
https://gist.github.com/508447Thank you
![]()
I am pretty sure we can add this into the system.
Our main problem at the moment is making it unique to the product and adding it to Prestashop. If anybody can help, it would help!Well, you can't really make the uuid's unique to a certain product, but you could make sure that any uuids used with one product aren't used by another through databases
So you think we should associate each key with a product in the database, so we can code a system that restricts it based on that? Very good idea. Thank you!
If anybody knows how this can be implemented to Prestashop, PLEASE post and help me out. We desperately need this system.
Offline
May take a little customization, and I suppose you'd need to generate a list of unique keys first as opposed to having prestashop generate them automatically, but perhaps this is a good starting point? --> http://www.presto-changeo.com/en/prestashop-modules/48-serial-number-upload.html
Offline
absnews wrote:
May take a little customization, and I suppose you'd need to generate a list of unique keys first as opposed to having prestashop generate them automatically, but perhaps this is a good starting point? --> http://www.presto-changeo.com/en/prestashop-modules/48-serial-number-upload.html
or you could customize that serial number thingy by having it generate keys and store them in a database first, but great find
Offline