Answer the question
In order to leave comments, you need to log in
How to change fields depending on order type?
there is an article
https://wpruse.ru/woocommerce/hiding-fields-on-cho...
there is a case, but I can’t figure out how to add the 2nd and 3rd field
in the first condition (self-delivery) to display the first name, last name, number, mail, country
in the second condition (delivery by courier)
display the first name, last name, number, mail, country and address
in the third type of delivery (there will be an advance payment)
display the first name, last name, number, mail, country and address, and region / city
Finished pieces codes are welcome (the kettle is in the code, + it will be easier for others)
Answer the question
In order to leave comments, you need to log in
woocommerce_checkout_shipping
hook https://github.com/woocommerce/woocommerce/blob/6b...
or woocommerce_checkout_fields
https://github.com/woocommerce/woocommerce/blob/60...
shipping form customization https://docs.woocommerce .com/document/tutorial-cus...
hang here woocommerce_shipping_method_chosen
https://github.com/woocommerce/woocommerce/blob/52...
Sample code https://stackoverflow.com/a/37073395
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question