• Resolved mirabela1982

    (@mirabela1982)


    Hi,

    I have a multilanguage site and I want to display the Newsletter subscription message in both languages and subscribe people to different Mailchimp lists. I want to have the checkbox just under the “Privacy Policy” checkbox.

    If I use just this code [yikes_mailchimp_checkbox] everything is fine, but I can only show the message in one language.

    When I use the shortcode in Contact Form 7, I just can see the shortcode on the live website.

    Does anybody know the solution?

    Thanks,
    Mireia

    • This topic was modified 5 years, 9 months ago by mirabela1982.

    The page I need help with: [log in to see the link]

Viewing 14 replies - 16 through 29 (of 29 total)
  • Thread Starter mirabela1982

    (@mirabela1982)

    Links to the two lists:

    [ENG] https://eepurl.com/gg6KHT
    [ESP] https://eepurl.com/ggLXMz

    As you can see, both are the same.

    What does “Invalid Resource” exactly means?

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    List IDs are the same… Invalid Resource is a generic error message meaning the call didn’t work. Do you have a staging site we could add some more advanced debugging to? Or would you be bothered if the CF7 form submission didn’t work temporarily?

    Thread Starter mirabela1982

    (@mirabela1982)

    Yes, we can do it, no problem. What I have to do?

    ENG ID: 9ef0149646
    ESP ID: 7197497ae1

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Go to plugins/yikes-inc-easy-mailchimp-extender/public/classes/checkbox-integrations.php. This is the file responsible for sending the Mailchimp call for our checkbox integrations.

    Please go to line 226 and add the following line:

    var_dump( $response );.

    So the whole section (lines 225-234) should look like this:

    $response = yikes_get_mc_api_manager()->get_list_handler()->member_subscribe( $list_id, $id, $data );
    			var_dump( $response );
    			if ( is_wp_error( $response ) ) {
    				$error_logging = new Yikes_Inc_Easy_Mailchimp_Error_Logging();
    				$error_logging->maybe_write_to_log(
    					$response->get_error_code(),
    					__( 'Checkbox Integration Subscribe User', 'yikes-inc-easy-mailchimp-extender' ),
    					'Checkbox Integrations'
    				);
    			}

    Then let me know and I will inspect the result of the call.

    Also – sorry this is such a hassle!

    Thread Starter mirabela1982

    (@mirabela1982)

    done

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    The error is pasted below. The name isn’t coming through.

    This may be on us – I still need to look into it. But for now can you login to Mailchimp.com and make First Name not required for this list?

      ["error_data"]=>
      array(1) {
        ["Invalid Resource"]=>
        array(2) {
          ["status"]=>
          int(400)
          ["data"]=>
          array(1) {
            [0]=>
            array(2) {
              ["field"]=>
              string(5) "FNAME"
              ["message"]=>
              string(20) "Please enter a value"
            }
          }
        }
      }
    Thread Starter mirabela1982

    (@mirabela1982)

    It worked! Perfect, Kevin. But, when you click the “Send” button appears de “do-loop” symbol.

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Amazing!! Remove the debug code we added earlier and the form should submit and return properly ??

    Thread Starter mirabela1982

    (@mirabela1982)

    Thank you very much for all the time you have invested in solving this issue. It has been extremely useful!!!

    Last thing and less important. In a previous answer, you suggested putting a <p> label in the contact form to add a space between the checkbox and the text – I tried it but it didn’t work. Do you have another idea?

    Thanks,
    Mireia

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Of course. I see the <p> tag but it isn’t wrapped around the policy checkbox. You can try wrapping it around the whole policy checkbox area or just use this CSS.

    #yikes-easy-mailchimp-contact_form_7-checkbox {
        margin-top: 10px;
    }
    Thread Starter mirabela1982

    (@mirabela1982)

    Thank you, Kevin. I tried, but it’s not what I’m asking for. I don’t need a 10px between the first checkbox+text and the next one. I need 10px between the second checkbox and the text “Subscribe to the newsletter”

    I know is just a “space”, is not too much important. If you have another idea, it will be really helpful.

    Thanks,
    Mireia

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi Mireia,

    Ah, I understand. Try this CSS:

    #yikes-easy-mailchimp-contact_form_7-checkbox input {
        margin-right: 5px;
    }

    Cheers,
    Kevin.

    Thread Starter mirabela1982

    (@mirabela1982)

    You are the best! Thank you very much!!! It worked!

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Awesome ??

    Thanks for your patience and willingness to work these issues out!

Viewing 14 replies - 16 through 29 (of 29 total)
  • The topic ‘I see [yikes-mailchimp form=”1″] on the screen instead of the checkbox’ is closed to new replies.