Hey there đź‘‹
Thanks for reaching out!
It looks like you want to make certain fields on the checkout page optional however, you are unable to find a plugin or custom code that can help you achieve your exact requirements, correct?
Certain payment gateways require specific information, which can also contribute to the fields not working as expected when making them “optional”.
Can you please clarify which fields you are wanting to have as “Optional” so that we can try point you in the right direction? Also, can you share the payment gateway(s)/methods you are currently using on checkout?
Cheers!
Thread Starter
s
(@sdnazdi)
Hi @beautyofcode, thanks for your quick reply.
I am testing on localhost, set payments on “Direct bank transfer”, “Check payments”, and “Cash on delivery”. The fields are for instance, Address, City, Postal code.
I tried plugins
By Acowebs,  ThemeHigh ,  WPFactory , WP Desk ,  CartFlows Inc,  QuadLayers, ShopEngine, Shoplentor
and some code snippet in the internet, even from https://developer.woo.com/docs/customizing-checkout-fields-using-actions-and-filters/
and no success!
-
This reply was modified 9 hours, 53 minutes ago by
s.
Thread Starter
s
(@sdnazdi)
@beautyofcode, By the way, the products I like to change the checkout fields are Virtual.
-
This reply was modified 8 hours, 36 minutes ago by
s.
Hey, @sdnazdi!
Thanks for the information.
Just to confirm, the fields you want to edit are from the Billing address, correct?
Because when you mark a product as virtual it should automatically hide shipping address. If this is not happening, please let us know.
Regarding the Billing address, are you using the checkout blocks or short code?
Some plugins do not work with the blocks, only if you use short code. If you are using blocks, can you try switching to short code and see if you are able to edit the fields?
Looking forward to your reply.
Have a wonderful day!
Thread Starter
s
(@sdnazdi)
Hi @carolm29, thanks for your reply.
I changed the checkout page with shortcode: [woocommerce_checkout]
Then using the code snippet here I could manage the fields to be optional
answered by LoicTheAztec