• Hi,

    I installed WooCommerce yesterday to handle taking payments from customers via my website which works great but now non of my CF7 forms will submit ? .. The forms load fine with conditional elements etc but when I press the submit button the spinner just stops and nothing gets submitted.

    Any ideas ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website in question?

    Thread Starter mtgagents2021

    (@mtgagents2021)

    FlyMickey.co.uk/quote

    I have found this temp code solution that will at least let the forms be submitted but the spinner still stops and looks like form isnt working for a moment or two which could result in people pressing submit multiple times.

    Could do with a permanent fix. Both CF7 & WooCommerce are on the latest versions.

    function ca_filter_is_api_request_to_allow_cf7_requests_through_api( $is_rest_api_request ) {
    
    	if ( $is_rest_api_request ) {
    		$rest_prefix         = trailingslashit( rest_get_url_prefix() ) . 'contact-form-7';
    		$is_rest_api_request = ! ( false !== strpos( $_SERVER['REQUEST_URI'], $rest_prefix ) );
    	}
    
    	return $is_rest_api_request;
    }
    add_filter( 'woocommerce_is_rest_api_request', 'ca_filter_is_api_request_to_allow_cf7_requests_through_api' );
    
    Plugin Author Takayuki Miyoshi

    (@takayukister)

    What other plugins and theme do you use on the site?

    Thread Starter mtgagents2021

    (@mtgagents2021)

    It’s the wordpress travelisious theme.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘CF7 & WooCommerce Conflict’ is closed to new replies.