• Resolved ashokmythri

    (@ashokmythri)


    I am using mailchimp for WordPress.

    I have add this point here before going to my actual query. i.e,
    My site is having domain restriction and hence a person can log-in only via domain address.
    Ex. abc@domainName.com , xyz@domainName.com

    I have given two fields, which are,
    1. Email address
    2. Subscribe button.

    User logs in via his domain id into my site.
    He can subscribe to the newsletter. (Mentioning here that, he can not change the email address as he should subscribe the newsletter only with the email address via which he logged in)
    Once he subscribes,the message appears as “Thank you, your sign-up request was successful! Please check your email inbox to confirm.” and he will get confirmation email to his email address and on confirmation, his subscription will be confirmed.

    When again he comes back to the site, or refresh the page, he should get the UNSUBSCRIBE button instead of SUBSCRIBE.

    How can I achieve this?

    Any help regarding this would be appreciated.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hey Ashok,

    Thanks for reaching out to us.

    I’m presuming based on your query, that you have a form on your website with the subscribe button? If this is correct, then please note that the form created with our plugin does not have any mechanism to check if a user has subscribed when they visit your website.

    Please check the code at https://github.com/ibericode/mc4wp-snippets/blob/master/forms/hide-specific-form-for-people-that-subscribed.php. Using this code you can set a cookie in the user’s browser after they subscribe using our form. You can then hide the form when they return to your website. And using the same method, you could then display another form to unsubscribe.

    Please note that to create another form, you will need to use our premium add-on as the free version only allows creating a single form.

Viewing 1 replies (of 1 total)

The topic ‘mailchimp for wordpress’ is closed to new replies.