This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-12-27 10:59:39

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

PHP Product Key System - Prestashop

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  smile


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#2 2012-12-28 09:28:42

Gravitation
New Scratcher
Registered: 2012-09-26
Posts: 500+

Re: PHP Product Key System - Prestashop

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?  hmm  Elaborate?  tongue

Offline

 

#3 2012-12-28 09:34:08

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: PHP Product Key System - Prestashop

How about using a database that stores the keys, and the game checks if it is valid.


http://i.imgur.com/YBeXc.png

Offline

 

#4 2012-12-28 10:09:06

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: PHP Product Key System - Prestashop

Basically, I need to add a system to prestashop that generates a key unique to each product  when someone buys it.


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#5 2012-12-28 12:14:02

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: PHP Product Key System - Prestashop

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


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#6 2012-12-28 12:37:22

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: PHP Product Key System - Prestashop

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  smile
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!


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#7 2012-12-28 14:01:36

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: PHP Product Key System - Prestashop

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/508447

Thank you  smile
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


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#8 2012-12-28 14:32:14

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: PHP Product Key System - Prestashop

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/508447

Thank you  smile
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.


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#9 2012-12-29 12:19:02

absnews
New Scratcher
Registered: 2012-12-29
Posts: 1

Re: PHP Product Key System - Prestashop

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

 

#10 2012-12-29 13:59:44

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: PHP Product Key System - Prestashop

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  big_smile


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

Board footer