Jump to content

3rd party Newlsetter signup on authentication.php


Recommended Posts

Hi,

My mailing list is with MailChimp, and I intend to use their API (click here to see their API page or see attached example of simple PHP API implementation) rather than the block newletter module. All fine so far.

However, I don't want people being added to the Prestashop mailing list when they opt in the the newsletter on authentication.php. How can I change this so that they are signed up to my MailChimp list instead using the API?

Link to comment
Share on other sites

Hmm - can anyone at least tell me what bit of code deals with the newsletter checkbox on authentication.php? Is it just this bit:

    $customer = new Customer();
       if (Tools::isSubmit('newsletter'))
       {
           $customer->ip_registration_newsletter = pSQL($_SERVER['REMOTE_ADDR']);
           $customer->newsletter_date_add = pSQL(date('Y-m-d H:i:s'));
       }

Link to comment
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...