F
F
First Name2016-12-15 14:56:22
PHP
First Name, 2016-12-15 14:56:22

Electronic goods. Or how to sell keys?

Good day to all. There is a page, to get to it you need to enter a password, you can buy this password (There will be a "VIP" product), that's when a person buys this product. This password is sent to him by mail, in which direction to dig?
I installed woocommerce, installed a virtual product, but I can’t figure out what to do next
. Thank you in advance for your answers.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rurik Rostislavich, 2016-12-15
@snipeer777

Why woocommerce is generally there
From scratch it's easier to write -_-

L
LINKeR UA, 2016-12-15
@LINKeRxUA

Pff .. What a question - such an answer:
Each user has his own ID in the database, just like the product
, the access password can be generated from a certain set of variables + salt for everyone ... Example:

const ACCESS_SALT = 'UBGYKUASO^B^NDbfsud67tydgiwe67';
$access_key = md5( md5( $userID . $itemID . ACCESS_SALT ) . $userID);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question