Answer the question
In order to leave comments, you need to log in
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
Why woocommerce is generally there
From scratch it's easier to write -_-
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 questionAsk a Question
731 491 924 answers to any question