WP Rentals Help WP Rentals Help

  • 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

2658 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 change the background color and logo for admin login page
  • Tehnical: Redirect to Page Not found/ White screen on listing submission or edit
  • Technical – Invoices from My Bookings
  • Technical: My Bookings

HELP CATEGORIES

  • 61. General
  • 102. Installation & Basic Setup
  • 93. Installation FAQ
  • 404. How Booking Works
  • 145. User dashboard pages
  • 20Advanced Search Options
  • 3Blog Post
  • 9Custom Page Templates
  • 18Elementor Compatibility
  • 13Email Notifications
  • 19FAQ
  • 10Menu Options
  • 26Multi-Languages - 3rd party
  • 9Owner
  • 25Property / Listing
  • 21Shortcodes
  • 11Submit Form
  • 4Supported Maps
  • 93Technical how to
  • 5Third Party plugins
  • 3Translation
  • 13Widgets
  • 2WooCommerce Payments
  • 13WP Rentals Payment
  • 77WP Rentals Theme Options

Join Us On

Powered by WP Estate - All Rights Reserved
  • Client Support
  • Video Tutorials
  • WpRentals
  • WpEstate
  • API