confirmation email

Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • #28102
    wensolutions
    Keymaster

    Hello,

    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.

    #28110
    juanmacordo
    Participant

    thanks, in the passenger data it disappears. but it keeps appearing at home

    #28123
    wensolutions
    Keymaster

    Hello,

    Actually, we are not quite clear with the query regarding appearing at home. So, can you please explain in detail with specific screenshot?

    Regards.

    #28126
    juanmacordo
    Participant

    captura

    #28127
    juanmacordo
    Participant

    good morning attached screenshot
    Captura

    #28134
    wensolutions
    Keymaster

    Hello,

    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.

    #28135
    juanmacordo
    Participant

    good 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 screenshot

    #28137
    wensolutions
    Keymaster

    Hello,

    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.

    #28139
    juanmacordo
    Participant

    Good morning. Solved.
    Thank you very much for the speed of the solution

    #28140
    wensolutions
    Keymaster

    Hello,

    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.

Viewing 10 posts - 16 through 25 (of 25 total)
  • The forum ‘WP Travel’ is closed to new topics and replies.