How can I get the book now button to take me straight to the checkout page?

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Marketplace (WooCommerce Multivendor Marketplace) How can I get the book now button to take me straight to the checkout page?

Viewing 2 reply threads
  • Author
    Posts
    • #127590
      Avatareritechdeveloper
      Participant

      On bookable products, how can I get the Book Now button take me straight to the checkout page?

    • #127909

      Hello,

      Add this code to your child theme’s functions.php

      In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/

      add_filter( 'woocommerce_add_to_cart_redirect', 'bbloomer_redirect_checkout_add_cart' );
       
      function bbloomer_redirect_checkout_add_cart() {
         return wc_get_checkout_url();
      }

      Thanks.

    • #127955
      Avatareritechdeveloper
      Participant

      Thank you it works.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.