Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › WordPress eStore Plugin – Adding A Password
- This topic has 6 replies, 4 voices, and was last updated 15 years, 9 months ago by
amin007.
-
AuthorPosts
-
February 13, 2010 at 4:01 pm #790
Leonardi
MemberHi 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.
February 13, 2010 at 4:12 pm #17982sharris203
MemberYou could list the password in their order receipt email.
February 14, 2010 at 2:59 am #17983amin007
ParticipantYes 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?
February 14, 2010 at 11:32 pm #17984Leonardi
MemberThanks for your reply – I’ve got this working now using a similar solution to what you suggest.
February 28, 2010 at 9:39 pm #17985franckm
MemberCan you explain how you doing?
excuse my english.
February 28, 2010 at 9:42 pm #17986franckm
MemberHow do you add something in the message body?
thank you
March 1, 2010 at 3:02 am #17987amin007
ParticipantIn 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.
-
AuthorPosts
- You must be logged in to reply to this topic.