- This topic has 6 replies, 4 voices, and was last updated 14 years, 8 months ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › WordPress eStore Plugin – Adding A Password
Hi there,
I’ve just purchased your eStore and Affiliate plugins – they both look great and ideal for what I need, but I have a couple of quick questions.
I need to create a password for users when they make a new purchase so that they can then log into an area of my site where the product(s) they purchased are available to download.
How would I go about doing this? I assume that I need to add a “password” field to the “wp_wp_eStore_customer_tbl” table – but where do I need to edit the code to write a password (i.e. a string) to this field? Is it somewhere in the paypal.php file?
Any help/suggestions would be really appreciated.
You could list the password in their order receipt email.
Yes you can add in another column in that table then insert a password in the post payment processing script (paypal.php).
I am guessing you have a membership program that takes care of the user login, page protection and all that kind of stuff. If my guess is correct then all you really need to do is send them a randomly generated password? You could write a little function in the “paypal.php” file that generates this password and add it in the email body that goes out to the buyer maybe?
Thanks for your reply – I’ve got this working now using a similar solution to what you suggest.
Can you explain how you doing?
excuse my english.
How do you add something in the message body?
thank you
In the “paypal.php” file you will find a line similar to the following (around line 380):
$tags = array(“{first_name}”,”{last_name}”,”{payer_email}”,”{product_name}”……..
$vals = array($this->ipn_data,$this->ipn_data,$this->ipn_data………
And then it does a string replace (it replaces the tags with the values).
You can add in new tags e.g. ({passwd}) then generate a password using your preferred algorithm and replace the tage {passwd} with the generated value.