close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
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 3:47 pm by Anna Robinson | Last modified 11/30/2009 3:11 am by Anna Robinson | 2149 views | 5 replies

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.

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...