WordPress.org

Ready to get started?Download WordPress

Forums

How to check if email address entered in an input field exists in mailchimp list (4 posts)

  1. adamboustead
    Member
    Posted 3 months ago #

    Wondering if anyone can help me. I am designing a wordpress website for a client and I need some help. I have installed Woocommerce 2.1.6 and was wondering how I would write a php script which, when the user goes onto a single-product page, instead of giving the default 'Add to cart' button, it shows a input field and a submit button. I would then like the php script to check if the email entered is in a mailchimp 'members list' that I have made.

    If it exists within the list, the add to cart button appears and can continue their purchase. If not, they are shown a message that they are not registered for a membership etc.

    Thanks everyone.

  2. catacaustic
    Member
    Posted 3 months ago #

    You will need to check out Mailchimps API and use that to build a system that can check. It's pretty easy to do as they already have a pre-built PHP class that will do most of the hard work for you.

  3. adamboustead
    Member
    Posted 3 months ago #

    anyway you could walk me through it please?

  4. catacaustic
    Member
    Posted 3 months ago #

    Sorry, but that's way beyond the sort of help that can be offered here. What you're asking can be done, but there's a whole heap of work that would need to go into it, and it's not trivial. If you can't do it yourself, I'd suggest trying http://jobs.wordpress.net/ to find someone to help.

Reply

You must log in to post.

About this Topic