Using Mailchimp API with Shopify - php

I am attempting to use the Mailchimp API to allow site visitors to subscribe to my newsletter. Currently, any signups with the default form action that Mailchimp provides sends an Opt-In email and opens a new email to say thanks for subscribing, which I want to avoid. Instead, if I use the API, I can set those options to false. The problem is that it doesn't look like Shopify allows PHP or Ruby in their shop code. I've been looking for weeks for a solution, but I'm at a loss.

Here is a turnaround for this:
1.- Create a Wufoo form with one only field: email address.
2.- Paste this Wufoo form at your Shopify store. We'd recommed pasting the JavaScript version.
It can look like this
3.- On your notifications tab at your Wufoo form, choose to Send notifications to Another Aplication. On the dropdown, choose MailChimp click on Add integration and follow steps. You will be sending all email addresses to your desired MailChimp list.
Tiny problem is that placeholders on Wufoo forms, don't disappear on click, so the user needs to go inside the field and delete all the placeholder. (This might be a good point because robots can't do this, and you make sure the user is really involved in the process of typig his/her email address.)

Related

Add OTP verification in WordPress(WooCommerce) in Registration Form

So I was working with this woocommerce theme (Sober) and wanted to add custom OTP verification after the user registers to my website.
All I want is that when user fill up the registration form and submit, an OTP is send to his/her phone(Don't wana use third party plugin). Once the user verifies the OTP than only the account be created.
I have added few custom field to my woocommerce form, but don't know how to redirect to otp verification without the form being saved unless otp is verified.
I am pretty new to WordPress and WooCommerce.
Personally I think when you are using any framework try to integrate certain third party tools by yourself instead of using plugins. There are pros and cons to this.
Its a pretty old question but thought this may be help for others. You can use a free service from Facebook called AccountKit for integration of OTP in multiple platforms.
https://developers.facebook.com/docs/accountkit
There are other paid and good options as well, but FBs AccountKit is really easy to integrate at-least till the time FB lifts support from AccountKit.
Hope this helps.

Wordpress Opt-In Form with Social Login to receive Leads from Users

Dear Stackoverflow Community,
I am an Online Marketer and I am facing a problem: People are not converting when visiting my page through a smartphone. My interpretation is: they are lazy, as I am too.
I am not too terrible deep into programming Wordpress, but I thought about something and seeking advise:
I want to to build a Opt-In Form, which uses Facebooks "Social Login"
to process the Lead.
I need to find a way to get the "E-Mail-Adress" through the Facebook open graph API.
I generated a lead with one simple click.
I guess Online Marketers are graving for a feature like this!
So my question is:
Do you think it is possible to build a Wordpress Opt-In Form which uses Social Login (Facebook, Google) to receive E-Mail-Adresses from my users?
Maybe someone has some experience with this.
Best wishes
Dennis
I don't think there is a way to capture user's email address from facebook without permission of that user. However, there are a number of plugins that show popups and widgets to get users to subscribe to your newsletter etc.
https://wordpress.org/plugins/optin-forms/screenshots/
Also, if your content is good and if you create a catchy Call to Action, then it's possible to get more people to subscribe to your blog.
Isn't the process of opting into a subscription more involved than simply entering a name and email? Personally, I will ignore an optin form that requires me to do a social login.
Using a regular WordPress opt-in form plugin would suffice.
By the way, do you have any data that shows conversion is low because social login isn't present?

How to write a code that automatically get the respodent's mail id using forms..(like google forms but not using it) ...?

In Google forms, we have an option collecting the user_name (i.e mail id) of the respondents.
What is the code for having the same feature but using other form developed using HTML, etc..
You'll have to ask them for it. There is no universal, automatic way to get a user's email address — it's only possible on Google Forms because the user is logged into Google with their account (which has an email address associated with it).

How can I set up email functionality like Craigslist?

I want a button that when pressed brings up a list of possible email providers (similar to the one that can be found on Craigslist). Then a user can choose the email provider that suits their needs and the "To" and "Subject" get automatically populated. I understand that I can set up a link that automatically populates using Outlook, but that isn't what I am looking for. If anyone could point me in the right direction I would really appreciate it.
Here is a Craigslist ad where the functionality can be viewed. Thanks.
First of all you'd need to program a popup dialog box. I'd recommend using jQuery UI's addon dialog for that. Then you'll need to look at the API docs for each email provider and figure out exactly what parameters you need to pass them in a $_GET string to display what you want on their page. All the custom From, To, Subject, etc is handled by the API, unique to each email provider.
Start here for the Google Dev API: https://developers.google.com/google-apps/email-migration/v1/auth

mailchimp php integration

I am trying to find a simple bare bones example/demo that shows me how I can build a trivial/proof of concept website that will collect user email (and maybe first name), and add this name to a list created on mailchimp.
To clarify, I am not merely asking how to create a PHP/mySQl website - I already know how to do that, and I already know how to place a form on a page etc.
Assuming I already have the following:
- A php/MySQL site with a registration form
- A newly created list on mailchimp
More specifically, I want a user to be able to register on a page on my site, and then I want the following sequence of events to happen:
When a user clicks the 'submit' button on my page, their details gets sent to mailchimp and added to a specific list created on mailchimp
They are sent a confirmation email by mailchimp
Once they confirm subscription, they are directed back to a page on my site, with a token from mailchimp
I store their details (provided by mailchimp) into my MySQL database
I send the confirmed subscriber an email with an attachment
When the user unsubscribes from the list, I get notified by mailchimp and I can flag the user as unsubscribed in my database.
I have not been able to find a simple demo (or tutorial) that shows how to implement the required functionality listed above. Can anyone recommend a link (or links) to get me started with implementing these specific "bare bone" functionality?
The documentation is rather good I thought?
Just checkout the API-docs: http://apidocs.mailchimp.com/api/how-to/basic-subscribe.php
And if for some reason you do not want to read docs but just want to see code (please, don't do this, but hey, what do I know): click on the exmples listed here: http://apidocs.mailchimp.com/api/downloads/#examples
Start with the example code and if it doesn't do exactly everything, you can find it at the docs easily enough.

Categories