- This topic has 24 replies, 2 voices, and was last updated 2 years, 6 months ago by
wensolutions.
- AuthorPosts
- July 9, 2020 at 12:03 pm #28102
wensolutions
KeymasterHello,
Please add following given code in functions.php file of your child theme to remove country field.
function wp_travel_remove_country( $checkout_fields ){ unset( $checkout_fields['traveller_fields']['country'] ); return $checkout_fields; } add_filter('wp_travel_checkout_fields', 'wp_travel_remove_country' );
Hope this helps.
If you have any queries further, let us know.
Thank you.
July 9, 2020 at 3:22 pm #28110juanmacordo
Participantthanks, in the passenger data it disappears. but it keeps appearing at home
July 10, 2020 at 6:25 am #28123wensolutions
KeymasterHello,
Actually, we are not quite clear with the query regarding appearing at home. So, can you please explain in detail with specific screenshot?
Regards.
July 10, 2020 at 6:48 am #28126juanmacordo
ParticipantJuly 10, 2020 at 6:55 am #28127juanmacordo
Participantgood morning attached screenshot
CapturaJuly 10, 2020 at 7:36 am #28134wensolutions
KeymasterHello,
Please add above given code as we have mentioned earlier so that country field will be removed from traveler info form(the form you have send in screenshot)in checkout page.
Regards.
July 10, 2020 at 7:42 am #28135juanmacordo
Participantgood morning, the code is already set.
The country field disappears at the top in the passenger data. But the passenger’s address still appears at the bottom, as seen in the screenshotJuly 10, 2020 at 9:17 am #28137wensolutions
KeymasterHello,
Please add following given code in functions.php file of your child theme to remove country field under billing address.
function wp_travel_customized_checkout_form_field( $fields ) { unset( $fields['billing_fields']['country'] ); return $fields; } add_filter( 'wp_travel_checkout_fields', 'wp_travel_customized_checkout_form_field' );
Hope this helps.
If you have any queries further, let us know.
Thank you.
July 10, 2020 at 9:54 am #28139juanmacordo
ParticipantGood morning. Solved.
Thank you very much for the speed of the solutionJuly 10, 2020 at 10:04 am #28140wensolutions
KeymasterHello,
Glad that we could help you.
Also, we would really appreciate if you could give us feedback as well as help us by rating our plugin by following the link below:
https://wordpress.org/support/plugin/wp-travel/reviews/
If you have any queries further, let us know.
Thank you.
- AuthorPosts
- The forum ‘WP Travel’ is closed to new topics and replies.