Support » Plugin: CleverReach Extension » Global Fields not in Cleverreach

  • Resolved ckrah

    (@ckrah)


    Hello.

    I have implemented this Plugin in my WordPress-Website. At first i have configured the form in Cleverreach with the Global Fields “Anrede” (Dropdown with two Options), “Vorname” (Text), “Nachname” (Text) and also “Email” (Systemfield).

    If i visit this Form here-> http://mailing.privatschule-carpediem.de/f/137788-138822/ it works fine and all the Fields will transport in my Recipients-List.

    But if i use the Plugin an render the Form on my WordPress Website only the Field Email will transport to CleverReach and the other Fields (Anrede, Vorname, Nachname) are empty.

    See here -> http://www.privatschule-carpediem.de/kontakt/newsletter/

    I hope you will find a solution.

    Regards

    Christopher

Viewing 4 replies - 1 through 4 (of 4 total)
  • Additional Informations:

    PHP-Version: 5.6 Stable
    Wordpress-Version: 4.7

    I have resolved the Problem quick&dirty in /plugins/cleverreach-extension/public/class-cre-public.php:

    // Populate"$post_attr" (array) according to CleverReach API defaults.
    			foreach ( $post as $key => $value ) {
    				
    				if($key==1061360){
    					$key="Anrede";
    				}
    				if($key==1061358){
    					$key="Vorname";
    				}
    				if($key==1061359){
    					$key="Nachname";
    				}
    
    				if ( "email" != $key ) { // Skip "email" as this is not needed as separate attribute.
    					array_push(
    						$post_attr,
    						array(
    							"key"   => sanitize_html_class( $key ),
    							// Attribute "$key" may only contain lowercase a-z and 0-9. Everything else will be converted to "_".
    					        "value" => sanitize_text_field( $value )
    						)
    					);
    				}
    
    			}

    I dont know why, but i think the cleverreach Api has changed the method to send values.

    If i changed the field-names like “1061358” to “Vorname” as a POST-Name it works.

    Maybe @hofmannsven can fix this 🙂

    • This reply was modified 2 years, 7 months ago by  ckrah.
    • This reply was modified 2 years, 7 months ago by  ckrah.
    Plugin Author Sven

    (@hofmannsven)

    Thank you very much for your feedback.
    Did you register the additional form fields within your CleverReach account?
    You can find an example on how to setup the fields in the documentation.
    Let me know if this works for you 🙂
    Regards, Sven

    Hi Sven,
    yes i have registered the additional form fields before i find this Plugin but it doesn’t work.

    But i wil try the my_custom_cleverreach_form() – function. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Global Fields not in Cleverreach’ is closed to new replies.