- This topic has 9 replies, 2 voices, and was last updated 4 years, 3 months ago by
Support Team.
- AuthorPosts
- February 5, 2019 at 9:57 pm #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 *”.
February 6, 2019 at 5:18 am #10457Support Team
KeymasterHello @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!!
February 6, 2019 at 7:24 am #10459privatejeep
ParticipantGot 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
February 6, 2019 at 9:47 am #10468Support Team
KeymasterHello @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!!
February 6, 2019 at 4:11 pm #10490privatejeep
ParticipantNope 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 132February 7, 2019 at 5:58 am #10517Support Team
KeymasterHello @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/mhqbz2So make sure you have pasted the correct code.
Thank you.
Regards!!
February 7, 2019 at 6:20 am #10521privatejeep
ParticipantYep it worked. 🙂 Anyway to change the term in the Trip Enquiry popup window to the same?
February 7, 2019 at 6:43 am #10523Support Team
KeymasterHello @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!!
February 7, 2019 at 7:04 am #10526privatejeep
ParticipantPERFECT! 🙂
February 7, 2019 at 8:00 am #10527Support Team
Keymaster - AuthorPosts
- The forum ‘WP Travel’ is closed to new topics and replies.