Assuming that the "Require Confirmed Address" should only apply to not-logged-in customers, this behavior can be achieved by changing the code fragment in /includes/modules/payment/paypalwpp.php (starting at line 1539 for Zen Cart v1.5.2) from
Code:
// Do we require a "confirmed" shipping address ?
if (MODULE_PAYMENT_PAYPALWPP_CONFIRMED_ADDRESS == 'Yes') {
$options['REQCONFIRMSHIPPING'] = 1;
}
to
Code:
// Do we require a "confirmed" shipping address for not-logged-in customers?
if (MODULE_PAYMENT_PAYPALWPP_CONFIRMED_ADDRESS == 'Yes' && !(isset($_SESSION['customer_id']) && ((int)$_SESSION['customer_id']) > 0) ) {
$options['REQCONFIRMSHIPPING'] = 1;
}
Bookmarks