WPRentals Theme Documentation WPRentals Theme Documentation

  • Client Support
  • Video Tutorials
  • WPRentals
  • WPEstate
  • API
Home / Technical how to / How to redirect Instant Booking Button to WooComemrce Checkout Page

How to redirect Instant Booking Button to WooComemrce Checkout Page

4023 views

To change the redirect from the Cart Page to the Checkout Page for the instant booking button in WpRentals, you can modify the code in the from the screenshot below.

Here’s how you can update it:

  1. Locate this line in your wprentals/libs/ajax_functions_edit.php file:
    php
    print ( wc_get_cart_url() );
  2. Replace it with:
    php
    print ( wc_get_checkout_url() );

This will ensure that the user is redirected to the WooCommerce Checkout page instead of the Cart page when they click the instant booking button.

Technical how to

Related Articles

  • How to Make the Check-Out Field Read Only in the Search and Booking Forms
  • How to Make a Contact Button Open WhatsApp
  • How to add a new currency in Theme Options for payments.
  • How to Disable WordPress Image Compression and Preserve Original Quality

HELP CATEGORIES

  • 71. General
  • 72. Installation & Basic Setup
  • 383. How Booking Works
  • 18Advanced Search
  • 17Elementor WPRentals Studio
  • 14Email Notifications
  • 29FAQ
  • 14Installation FAQ
  • 10Menu Options
  • 33Owner & Renter
  • 8Page Templates
  • 25Property / Listing
  • 22Shortcodes
  • 4Supported Maps
  • 100Technical how to
  • 5Third Party plugins
  • 4Translation & Multi Languages
  • 3WordPress Blog Post
  • 13WordPress Widgets
  • 12WP Rentals Payments
  • 83WP Rentals Theme Options
  • 26WPML & Weglot

Join Us On

Powered by WP Estate - All Rights Reserved
  • Client Support
  • Video Tutorials
  • WPRentals
  • WPEstate
  • API