Forum Replies Created

Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter arjanwit

    (@arjanwit)

    I think I need some support with screenshare
    No tickets coming in at the moment

    Thread Starter arjanwit

    (@arjanwit)

    Great it works, but I noticed there is no confimation page. After sending it remains on the submission page.So is this the proper way then or should I put the other function right below in place to your text Do stuff for my contactform?

    // Addition voor CF7 Ticker formulier
    //
    add_filter( 'wpcf7_posted_data', 'filter_wpcf7_posted_data', 10, 1 ); //filter to get posted data from the form );
    
    function filter_wpcf7_posted_data( $contact_form ) {
    
        // Not my desired form? bail
        if ( $contact_form->id !== 459 )
            return;
        //$myform_id is the ID of your desired form.
        // Do stuff for my contact form
    }
    
    add_filter( 'wpcf7_posted_data', 'filter_wpcf7_posted_data', 10, 1 ); //filter to get posted data from the form
    function filter_wpcf7_posted_data( $posted_data ) { 
     $url="http://testtuin.dewitonline.nl/wp-admin/admin-ajax.php"; //Full URL of the admin-ajax file.
     $response = wp_remote_post($url,array(
     'method'=>'POST',
    'body' => array(
          'action'=>'wsdesk_api_create_ticket',
          'api_key' => '4adbf7954695625ea25a5deee3b4abd8',
          'request_email' => $posted_data['helpdesk-email'],
          'request_title' => $posted_data['helpdesk-subject'],
          'request_description'=>$posted_data['helpdesk-message'] )
     ));
    
    $response=json_decode($response['body'],true);
     if($response['status']=='success')
     {} //code if success
     else
     {} //code if fails
    };
    Thread Starter arjanwit

    (@arjanwit)

    To be sure, do I replace the text myform_id by the ID?
    So $459 instead of $myform_id, or just replace $myform_id with the id 459

    Thread Starter arjanwit

    (@arjanwit)

    Okay cool.
    So can I also setup multiple CF7 forms?
    One that uses the snippet for tickets and onw to sign up for newsletters?

    Thread Starter arjanwit

    (@arjanwit)

    Thank you,
    I added the snippet to the functions.php.
    Do I need to make special setup in my CF7 form?
    Meaning the email address of the wdesk account or a specific new CF7 form?
    This is not quite clear to me.

    arjanwit

    (@arjanwit)

    I am on Woocommerce 3.1.1 but also the sc Return Products does not show the selected products in the email.
    So as shopowner I do not know which products will be returned.

    Please fix asap amd make module compatible with Wordpres 4.8 and up and Woocommerce 3.1.1 and up.

    Hope for a quick fiz and update!

Viewing 6 replies - 16 through 21 (of 21 total)