Skip to content

Commit 0899cc3

Browse files
committed
Requested change
1 parent 809774a commit 0899cc3

2 files changed

Lines changed: 2 additions & 14 deletions

File tree

includes/classes/PPMFWC/Gateways.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -615,14 +615,6 @@ public static function ppmfwc_addGlobalSettings()
615615
'id' => 'paynl_payment_method_display',
616616
'default' => 1,
617617
);
618-
$addedSettings[] = array(
619-
'name' => esc_html(__('Check for alternate house number field', PPMFWC_WOOCOMMERCE_TEXTDOMAIN)),
620-
'type' => 'select',
621-
'options' => array(0 => esc_html(__('No', PPMFWC_WOOCOMMERCE_TEXTDOMAIN)), 1 => esc_html(__('Yes', PPMFWC_WOOCOMMERCE_TEXTDOMAIN))),
622-
'desc' => esc_html(__('Default set to No. Enable if you use a custom checkout that causes the house number to be incorrect.', PPMFWC_WOOCOMMERCE_TEXTDOMAIN)), // phpcs:ignore
623-
'id' => 'paynl_payment_method_housenumber',
624-
'default' => 0,
625-
);
626618

627619
$addedSettings[] = array(
628620
'css' => 'padding-bottom:40px;display:block;color:#f0f0f1',

includes/classes/PPMFWC/Helper/Config.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ public static function getInvoiceAddress($order)
8282
$aBillingAddress = paynl_split_address($billingAddress);
8383

8484
$_billing_house_number = $order->get_meta('_billing_house_number');
85-
if ((empty($aBillingAddress[1]) && !empty($_billing_house_number))
86-
|| (empty($aBillingAddress['number']) && !empty($_billing_house_number) && get_option('paynl_payment_method_housenumber') == 1)
87-
) {
85+
if (empty($aBillingAddress['number']) && !empty($_billing_house_number)) {
8886
$billingAddress = $order->get_billing_address_1() . ' ' . $_billing_house_number . $order->get_billing_address_2();
8987
$aBillingAddress = paynl_split_address($billingAddress);
9088
}
@@ -108,9 +106,7 @@ public static function getDeliveryAddress($order): \PayNL\Sdk\Model\Address
108106
$aShippingAddress = paynl_split_address($shippingAddress);
109107

110108
$_shipping_house_number = $order->get_meta('_shipping_house_number');
111-
if ((empty($aShippingAddress[1]) && !empty($_shipping_house_number))
112-
|| (empty($aShippingAddress['number']) && !empty($_shipping_house_number) && get_option('paynl_payment_method_housenumber') == 1)
113-
) {
109+
if (empty($aShippingAddress['number']) && !empty($_shipping_house_number)) {
114110
$shippingAddress = $order->get_shipping_address_1() . ' ' . $_shipping_house_number . $order->get_shipping_address_2();
115111
$aShippingAddress = paynl_split_address($shippingAddress);
116112
}

0 commit comments

Comments
 (0)