File Editor

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #13744
    mashaku
    Participant

    Hello, I’ve just installed your plugin WP Travel Field Editor and tried to remove fields from the forms.
    the site travelcostablanca.ru
    But unfortunately I don’t have remove simbol
    http://prntscr.com/ncn5l8
    And also I would like to remove all billing form from with all fields
    Regards,
    Maria

    #13769
    Support Team
    Keymaster

    Hello @mashaku,

    Thank you very much for buying the addon.

    For your information, you will not be able to remove the default fields. You will be only able to edit the label but not the field. But you will be able to add/remove/delete the newly added field.

    For more clear information please refer to the official documentation below:

    https://wptravel.io/documentations/wp-travel-field-editor/

    Also, the plugin has already provided the filter using which you will be able to completely remove the field.

    function test_fields( $fields ) {
        unset( $fields['billing_fields'] );
        return $fields;
    }
    
    add_filter( 'wp_travel_checkout_fields', 'test_fields' );

    Hope this helps.

    Thank you.

    #13914
    mashaku
    Participant

    Hello.
    I try to add it, but there is some error im the code
    Parse error: syntax error, unexpected ‘&’, expecting ‘]’ in /var/www/u0437264/data/www/travelcostablanca.ru/wp-content/themes/travel-log-child/functions.php on line 383

    #13935
    wensolutions
    Keymaster

    Hello,

    The error might have rised because you have made some changes in the code snippet given above. Make sure no any modification are made in the snippet and try again.

    If the issue still persist, kindly let us know along with the screenshot of the error so that we can inspect the issue further,

    Best Regards!!

    #14171
    mashaku
    Participant

    Hi, Team
    It works! Thank you very much
    Regards

    #14173
    mashaku
    Participant

    Maybe it is also possible to disable the field “Date of Birth” in the “Traveler info” form?

    #14176
    wensolutions
    Keymaster

    Hello @mashakhu,

    The default field cannot be deleted but only newly added field. So if not required then you can uncheck the box for required field.

    Screenshot:

    This way it is not compulsory to fill up the DOB form.

    https://prnt.sc/nh459b

    Hope this clears the confusion.

    Thank you.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘WP Travel Custom Filters’ is closed to new topics and replies.