Announcement

Collapse
No announcement yet.

How do I suppress the 're-enter password' page for my logged in customers?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How do I suppress the 're-enter password' page for my logged in customers?

    This will remove the 'Confirm Password' page that appears at the end of the checkout for any customers who have logged in with a username and password.

    Locate the OrderScript.pl file and open it in a text editor such as Notepad or Dreamweaver.

    Search for 'sub DisplayPage'

    Underneath this, look for the following lines:

    while ($nKeyCount == 0 &&
    $nPageNumber >= 0)
    {
    my $sTempCookie;

    Just after these lines, insert the following code into the file:

    my $ePaymentMethod= ActinicOrder::PaymentStringToEnum($::g_PaymentInfo{'METHOD'});
    if ($ACTINIC::B2B->Get('UserDigest') && # if a user is logged in and
    ($ePaymentMethod == $::PAYMENT_ON_ACCOUNT || # the payment method is pay on account or
    $ePaymentMethod == $::PAYMENT_INVOICE) && ($nPageNumber == 3)) {
    $nPageNumber += $nInc;
    }

    Just to be sure it is on the right place, the lines after the inserted lines must look like the following:

    ($status, $sMessage, $pVarTable, $pDeleteDelimiters, $pKeepDelimiters, $pSelectTable, $sTempCookie) =
    ProcessPage($nPageNumber);
    # process the current page


    Save and close the file and upload your site.

    SellerDeck is not able to provide any detailed support for script changes made. If you find that there is a problem, an original copy of the script can be found within the 'Original' folder in your installation. Copy this into your site folder.
Working...
X