How to disable the order confirmation page
When you're using the WooCommerce Fast Cart plugin and a customer completes a purchase in the popup checkout, by default they will be redirected to the usual WooCommerce order confirmation page.
The following code snippets allow you to keep the user on the same page or redirect them to another page after the order is placed. If you feel comfortable using them, our article on how to use code snippets can serve as a helpful guide. If you don't know how to use them, then you can use our plugin customization service.
Code snippet: Redirect user to the same page
add_filter( 'wfc_script_params', function( $script_data ) { global $wp; $current_url = home_url( add_query_arg( array(), $_SERVER['REQUEST_URI'] ) ); $script_data['options']['redirectReceipt'] = esc_url( $current_url ); return $script_data; } );
Code snippet: Redirect to a specific page:
add_filter( 'wfc_script_params', function( $script_data ) { $script_data['options']['redirectReceipt'] = esc_url( 'https://site.com/my-page' ); return $script_data; } );
If searching the knowledge base hasn't answered your question, please contact support.