Eliminate Booking Only Option, Google Maps, DOB

Homepage Forums WP Travel Pro Eliminate Booking Only Option, Google Maps, DOB

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #27179
    levelcreative
    Participant

    Hi,

    Is there an option to eliminate the “Booking Only” option? My client doesn’t want that to be available to the customer as a deposit MUST be paid.

    Also, I’ve updated my Google Map API Key and zoom level as well as the location and country. Try as I might I can’t get the map to zoom in to the location of the trip. It just shows up as a big generic zoomed out map. And when I tried to delete the map, there was an error. How do I either get the correct map location to show up or get rid of it?

    Lastly, is there any way to change the format of the traveler’s DOB on the checkout form? It’s a little time consuming to have to scroll through and look for the date every single time.

    Thanks.

    #27201
    wensolutions
    Keymaster

    Hello @levelcreative,

    First of all, thank you very much for using the WP Travel plugin.

    Please find answer to your queries below:

    Is there an option to eliminate the “Booking Only” option? My client doesn’t want that to be available to the customer as a deposit MUST be paid.

    Response: There is no option to manage this from the backend, however, it can be done through the custom code. For this you need to activate the child theme and to know how you can create and activate the child theme, please refer to below-given link:

    https://wptravel.io/how-to-create-a-child-theme/

    After activating the child theme in your child theme functions.php file add below given code:

    function wp_travel_customize_booking_option($fields){
    
    	$fields['payment_fields']['booking_option']['options'] = array('booking_with_payment' => 'Booking with payment'	);
    		
    		return $fields;
    	}
    	add_filter( 'wp_travel_checkout_fields', 'wp_travel_customize_booking_option' );

    Google map API Keys.

    Response: Zoom Level is working fine on our side. The exact location is displayed more precisely. So please in your side test the by zooming out the location from the front end.

    Also, now the issue regarding turning off the map is fixed which will be available in the next update of the plugin.

    Lastly, is there any way to change the format of the traveler’s DOB on the checkout form? It’s a little time consuming to have to scroll through and look for the date every single time.

    Response: No as for now it is not possible and to make it work as you want will require higher code customization. However, we will note it as the requested feature.

    Hope this clears the confusion.

    If you have any queries/confusion further then kindly let us know.

    Thank you.

    #27454
    levelcreative
    Participant

    I created the Child Theme but when I input the code, I get this error: “Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.” What should I do next?

    #27464
    wensolutions
    Keymaster

    Hello @levelcreative,

    The issue might be related to permission. You may not be able to change directly from the backend so make the changes locally in the child theme and upload via FTP.

    Let us know if that works or not?

    Thank you.

    #28151
    levelcreative
    Participant

    I tried and still getting an error. Is there anything else I can try?

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.