Privacy Policy Edits

Homepage Forums WP Travel Privacy Policy Edits

This topic contains 9 replies, has 2 voices, and was last updated by  Support Team 5 months, 1 week ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #10452

    privatejeep
    Participant

    #1 How can I change the term “Privacy Policy *” to say: “Policy Agreement *”?

    #2 from the Trip Enquiry pop window I need to remove the Privacy Policy field and check box. How Can I do this. This is 100% useless here in this popup window. If there is no way to code to remove this again I need the check box field to say “”Policy Agreement *”.

    My site: https://www.privatejeep.com/checkout/

    #10457

    Support Team
    Keymaster

    Hello @privatejeep,

    To remove as you require please add below given code in your child theme functions.php file.

    function wp_travel_customize_booking_form($field){
    
    	$field['payment_fields']['wp_travel_checkout_gdpr']['label'] = __('Policy Agreement', 'wp_travel');
    	return $field;
    
    }
    add_filter('wp_travel_checkout_fields','wp_travel_customize_booking_form' );

    As for removing the policy, currently it is not possible but with the coming update, we will add the filter so that it can be removed via the child theme.

    Hope this helps.

    Best Regards!!

    #10459

    privatejeep
    Participant

    Got this error because I already have some related code:

    Fatal error: Cannot redeclare wp_travel_customize_booking_form() (previously declared in /homepages/xx/xxxxxx/htdocs/privatejeep/wp-content/themes/travel-log-child/functions.php:37) in /homepages/xx/xxxxxx/htdocs/privatejeep/wp-content/themes/travel-log-child/functions.php on line 137

    #10468

    Support Team
    Keymaster

    Hello @privatejeep,

    Replace the above code with the code given below:

    function wp_travel_customize_label($field){
    
    	$field['payment_fields']['wp_travel_checkout_gdpr']['label'] = __('Policy Agreement', 'wp-travel');
    	return $field;
    
    }
    add_filter('wp_travel_checkout_fields','wp_travel_customize_label' );

    Hope this helps.

    Regards!!

    #10490

    privatejeep
    Participant

    Nope got another error:
    Parse error: syntax error, unexpected ‘function’ (T_FUNCTION), expecting identifier (T_STRING) in /homepages/xx/xxxxxx/htdocs/privatejeep/wp-content/themes/travel-log-child/functions.php on line 132

    #10517

    Support Team
    Keymaster

    Hello @privatejeep

    The block of code is working absolutely fine in our side as you can see in the screenshots below:

    https://prnt.sc/mhqbz2
    https://prnt.sc/mhqbz2

    So make sure you have pasted the correct code.

    Thank you.

    Regards!!

    #10521

    privatejeep
    Participant

    Yep it worked. 🙂 Anyway to change the term in the Trip Enquiry popup window to the same?

    #10523

    Support Team
    Keymaster

    Hello @privatejeep,

    Glad it worked 🙂 .

    As for the enquiry form, currently, it is not possible as there is no filter added to modify the string.

    We will add the filter in the coming update of the plugin using which you will be able to edit the string.

    Thank you.

    Best Regards!!

    #10526

    privatejeep
    Participant

    PERFECT! 🙂

    #10527

    Support Team
    Keymaster

    Hello @privatejeep,

    Thank you.

    Regards!!

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.