PayPal Check Out Bug
-
Hello there,
I added the PayPal Checkout option on my website, and there seems to be a bug.(?)
When a customer is about to complete an order with PayPal Checkout as the payment option, it will never proceed because it asks for the ‘Company Name’ field to be filled, even though I’ve set this field to be optional. If the customer selects any other payment method than PayPal Checkout, the order goes through without requiring to fill the ‘Company Name’ field.
I’ve tried adding the custom code shown below:
add_filter( 'woocommerce_default_address_fields' , 'make_company_field_optional', 90, 1); function make_company_field_optional( $address_fields ) { $address_fields['company']['required'] = false; return $address_fields; }
But it does absolutely nothing. I also tested to make other fields REQUIRED and it does work, so for some reason it won’t take the company name field as optional.
Note for the code part:
I also tried other filters such as woocommerce_billing_fields, woocommerce_shipping_fields and woocommerce_checkout_fields but it didn’t help.
- The topic ‘PayPal Check Out Bug’ is closed to new replies.