ashour
Forum Replies Created
-
Forum: Plugins
In reply to: [Payment Plugins for PayPal WooCommerce] Billing Details Fields ErrorAnyway, Thank you for your patience and support.
I will contact you through your page.
Regards!Forum: Plugins
In reply to: [Payment Plugins for PayPal WooCommerce] Billing Details Fields ErrorOh, I get it. You rely on the customer data stored in session which comes from update order review.
You’re right, they don’t check if the field exists or not first before getting val(), which results in undefined.
lol, It seems that it doesn’t break anything regarding the customer data, order, email, but in this case, the problem now showed up.
That’s interesting, no one noticed that issue before?! ??Forum: Plugins
In reply to: [Payment Plugins for PayPal WooCommerce] Billing Details Fields ErrorJust a note. When I tested. There wasn’t any ‘undefined’ submitted fields in the $_POST data, removed fields don’t exist in the submitted $_POST array.
The problem happens inadd_filter( 'woocommerce_checkout_posted_data', [ $this, 'add_checkout_data' ] );
It’s not related toupdate order review
I hope this helps
Regards!Forum: Plugins
In reply to: [Payment Plugins for PayPal WooCommerce] Billing Details Fields ErrorI use
woocommerce_checkout_fields
filter in order to remove checkout billing fields that I don’t need.
So, for example If you removed the “postal code” field using this filter. Your plugin will force setting it in the function mentioned above using this line:$data["{$prefix}postcode"] = $address->getPostalCode();
which returns undefined in this case because the field doesn’t exist in the submitted fields.Forum: Plugins
In reply to: [Payment Plugins for PayPal WooCommerce] Billing Details Fields ErrorOk, It seems I had to check it myself in order to believe me :D.
here is the problem:
pymntpl-paypal-woocommerce/src/AjaxFrontendHandler.php : 50 ( private function get_update_data() )
You guys filter the checkout posted data. the problem is you hardcode these fields instead of using get_checkout_fields() function. specifically inside the condition ( if ( Utils::is_valid_address( $address ) ) { ) : line 72
It will work with “a lot of merchants” because they use the default fields as it is, but If someone like me don’t need some of these fields, It will fail like in “screenshots attached” with “undefined” value which is set by your plugin.
Kind Regards!Forum: Plugins
In reply to: [Payment Plugins for PayPal WooCommerce] Billing Details Fields ErrorHi,
hmm… It doesn’t happen with the “Paypal Standard” gateway but happens with yours!
Can you please double check?
Regards!Forum: Plugins
In reply to: [WooCommerce Special Offers] can not add productsYou can type the product name in search input in “special offer” tab in edit product page
Forum: Plugins
In reply to: [WooCommerce Square] Remove “Card Postal Code *”Hi,
If I managed to remove that field will that affect the payment process?