Hi,
I am with the same problem, how you can hide the billing address.
The checkbox Require billing address doesn’t work (/wp-admin/admin.php?page=wc-settings&tab=checkout§ion=ppec_paypal), because is ALWAYS asking for a billing address (and the client must complete the form again).
Any solution?
Hi there – This is also a setting in PayPal. You’ll want to reach out to PayPal support if you’d like to either require or not require the billing address be passed to PayPal during checkout.
I also noticed this: when there are only virtual products in the cart and woocomerce checkout fields are disabeled then fields in credit card are also disabeled. How can I simulate this behavior for non virtual products?
Thankyou.
Non virtual checkout page:
https://snipboard.io/FzJChM.jpg
Virtual checkout page:
https://snipboard.io/7vkK5a.jpg
-
This reply was modified 5 years, 8 months ago by
davidfranom.
Hi @davidfranom – If non-virtual products are in the cart, then a shipping address would be required by default.
I’ve tested this with Checkout Field Editor, disabled all required fields (except for first name, last name, and zip code) in the Billing Address section, while leaving the Shipping Address section untouched. This is what my Debit or Credit Card option looked like: https://d.pr/i/0uHXKZ
As far as I can see, that’s the outcome you’re expecting.
If I also remove those required fields from the shipping address section, PayPal returns the following errors:
PayPal error (10727): The street address in your shipping address is not valid. Please double-check your shipping address and try again. PayPal error (10728): The city in your shipping address is not valid. Please double-check your shipping address and try again. PayPal error (10731): The country in your shipping address is not valid. Please double-check your shipping address and try again.
What plugin are you using to disable these checkout fields?
– Joey
Hi, I kind of solved it. I just needed to fill all the woocommerce billing fields, even those that are optional, specifically apartment number. So I changed that field to required, but as not all users have an apartment number I added a checkbox to enable and hide that field, when it is hidden the default value is set as “.” so it is not empty.
And It worked.
(No plugins used, just code)
-
This reply was modified 5 years, 7 months ago by
davidfranom.
@davidfranom ,
Glad to hear it – thanks for letting us know!
I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.