Announcement

Collapse
No announcement yet.

I'm limiting a payment method to customer accounts but I don't want it to be the...

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

    I'm limiting a payment method to customer accounts but I don't want it to be the...

    I'm limiting a payment method to customer accounts but I don't want it to be the default method displayed to those customers.

    You can stop the payment method that is limited to defined customers from being the default one for those customers by making the following script change:

    * browse to your site folder and locate 'ActinicOrder.pm' in a text editor such as notepad

    * search for:

    # If it is a customer then get its default

    * you should see:

    #
    # If it is a customer then get its default
    #

    my $sDigest = $ACTINIC::B2B->Get('UserDigest');
    if ( $sDigest )
    {
    my @Response = ActinicOrder::GetAccountDefaultPaymentMethod($sDigest);
    if ($Response[0] == $::SUCCESS)
    {
    return($Response[2]);
    }
    }

    * change:

    return($Response[2]);

    to:

    # return($Response[2]);

    * save and close the file

    * update the 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