The โAdd to Cartโ feature in WP Travel allows users to add travel trips or packages to their cart before proceeding to checkout. This important feature enables users to select multiple trips or packages and review them before making a purchase.
WP Travel plugin v9.3.0 and WP Travel Pro v8.3.0 include a new hook that allows customization of the delay time for adjusting the duration of the “Trip added to cart” popup.

This improvement enhances user experience by providing control over how long the notice remains visible after a trip is added to the cart.
To change the delay time for hiding the โTrip added to cartโ notice, add the following code toย theย functions.phpย file of yourย child theme:
add_filter( 'wp_travel_add_to_cart_notice_delay_time', function(){
return 2000; // This will set the delay time for the "Add to Cart" notice to 2000 milliseconds (2 seconds).
} );
You could simply add it throughย code snippets as well.
For detailed information regarding how to create a child theme, please refer to our Knowledgebase.
To hide the popup message, please add the following code toย theย functions.phpย file of yourย child themeย or simply you can add it throughย code snippets.
add_filter( 'wp_travel_add_to_cart_notice_delay_time', function(){
return false; //This will disable the "Add to Cart" popup message.
} );
By following these steps, you can control and adjust the visibility duration of the โTrip added to cartโ popup. This will enhance the user experience on your travel booking site.

WP Travel Editorial is a team of WordPress and travel industry experts dedicated to delivering technical resources, travel business guides, and general travel insights. With over 10 years of experience, the team provides in-depth release notes, feature updates, and informative articles to help tour operators and travel enthusiasts succeed in the evolving travel landscape.
From plugin updates and industry trends to practical travel resources, WP Travel Editorial shares valuable content that supports both the travel industry and avid travelers.






