close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Known issue (and solution) with Order Verification Emails - PowerStore Version 2

Thread began 11/06/2009 12:47 pm by Anna Robinson | Last modified 11/30/2009 12:11 am by toms016390756 | 2926 views | 5 replies |

Anna Robinson

Known issue (and solution) with Order Verification Emails - PowerStore Version 2

In PowerStore Version 2, it was discovered that when a new customer makes a purchase using PayPal Express Checkout and has not previously registered on your site, the verification email is not being sent to the customer. In addition, the password included in the customer's email receipt will be incorrect.

We are now offering a simple fix in the Download Center of our website. Log in and visit downloadcenter.php. Click on PowerStore; then click on the Known Issues section. Download the zip file and follow the instructions in the readme file.

Sign in to reply to this post


On the pp_confirm page I have made a lot of changes to the original. It took me ages to get it right and I would prefer not to have to do it again.

Can you please let me know what the new code is so that I can fix my existing page?

Sign in to reply to this post

Eric Mittman

There are three pages where the code will need to be updated. The first page is going to the be the pp_confirm page.

update line 400 to look like this:

$_SESSION["UserRandomPassword"] = "".(WA_RandomPassword(20, true, true, true, ""))  ."";

update what was originally on lines 539, 540, 541 to be like this:

$WA_fieldNamesStr = "UserEmail|UserPassword|UserFirstName|UserLastName|UserCity|UserState|UserZip|UserVerificationCode|UserIP|UserPhone|UserCountry|UserAddress|UserAddress2";
  $WA_fieldValuesStr = "".((isset($_POST["email"]))?$_POST["email"]:$row_WAATKusers['UserEmail'])  ."" . "|" . "".((isset($_POST["email"]))?$_POST["UserPassword"]:$row_WAATKusers['UserPassword'])  ."" . "|" . "".((isset($_POST["email"]))?$_POST["firstname"]:$row_WAATKusers['UserFirstName'])  ."" . "|" . "".((isset($_POST["email"]))?$_POST["lastname"]:$row_WAATKusers['UserLastName'])  ."" . "|" . "".((isset($_POST["email"]))?$_POST["shipping_city"]:$row_WAATKusers['UserCity'])  ."" . "|" . "".((isset($_POST["email"]))?$_POST["shipping_state_province"]:$row_WAATKusers['UserState'])  ."" . "|" . "".((isset($_POST["email"]))?$_POST["shipping_postcode"]:$row_WAATKusers['UserZip'])  ."" . "|" . "".((isset($_SESSION["UserRandomPassword"]))?$_SESSION["UserRandomPassword"]:"")  ."" . "|" . "".((isset($_SERVER["REMOTE_ADDR"]))?$_SERVER["REMOTE_ADDR"]:"")  ."" . "|" . "".((isset($_POST["email"]))?$_POST["phone"]:$row_WAATKusers['UserPhone'])  ."" . "|" . "".((isset($_POST["email"]))?$_POST["country"]:$row_WAATKusers['UserCountry'])  ."" . "|" . "".((isset($_POST["email"]))?$_POST["shipping_street1"]:$row_WAATKusers['UserAddress'])  ."" . "|" . "".((isset($_POST["email"]))?$_POST["shipping_street2"]:$row_WAATKusers['UserAddress2'])  ."";
  $WA_columnTypesStr = "',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''";

Next add in this code just after line 402:

if (!session_id()) session_start();
"" == "")     {
$_SESSION["UserPassword"] = "".(isset($_POST["UserPassword"]))?$_POST["UserPassword"]:""  ."";

Next in the WA_Universal_Email > Email_Templates > pp_receipt.php

change line 31 to be like this:

<h1 style="color:#3476a3; /* Accent_10 */ margin-bottom:7px; font-size:small;"> &nbsp;Email Address: <?php echo((isset($_POST["email"]))?$_POST["email"]:""?>&nbsp;<br>&nbsp;Password: <?php echo $_SESSION['UserPassword']; ?></h1>

Finally in the WA_Universal_Email > Templates > pp_receipt.php

change line 28 to be like this:

<h1 style="color:#3476a3; /* Accent_10 */ margin-bottom:7px; font-size:small;"> &nbsp;Email Address: <?php echo((isset($_POST["email"]))?$_POST["email"]:""?>&nbsp;<br>&nbsp;Password: <?php echo $_SESSION['UserPassword']; ?></h1>

Making these changes will set the user verification code correctly and allow a user to login with the password referenced.

Sign in to reply to this post


Is this issue only relating to Paypal?

Is this issue only relating to Paypal Express Checkout? The reason I ask is because I'm not getting the email confirmation when the order is complete (I'm using

I do get emails from the contact form so I know email is working.

I also unchecked the email customer in the panel, but I still get that email also. I have something jack'd up


Sign in to reply to this post

Eric Mittman

This fix is just for PayPal Express Checkout and should have no barring on the Authorize.NET implementation. If you can please post a new thread detailing the issue and the things that you have tried.

Sign in to reply to this post


Thanks for the fix

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...