Gathering a list of Newsletter subscribers?

Open to all! Ask other shopowners for help.
Post Reply
lecarlb
Contributor
Posts: 316
Joined: Mon Oct 26, 2020 5:26 pm
Phoenix Version:
Has thanked: 48 times
Been thanked: 9 times

Gathering a list of Newsletter subscribers?

Post by lecarlb »

Hello everyone,

After getting a new newsletter addon coded I noticed that at this moment Phoenix doesn't have the ability to filter or any way of separating the customers that have opted in to receive newsletters. That's the beauty of open source so the community can solve things like this ;)

I need an sql query that will select the customers that have opted in to receive newsletters. Also, I think @raiwa's guest checkout allows customers to opt-in to newsletters.

The purpose is to start capitalizing on past customers via internal marketing.

Thanks for your help. Happy New Year.

EDIT: Does Phoenix's current Newsletter infrastructure has a way to unsubscribe or subscribe in case past customers change their mind?

The reason I asked is because you may be able to entice past customers to subscribe or become a repeat buyer by offering an incentive.
Last edited by lecarlb on Sun Jan 28, 2024 2:34 pm, edited 2 times in total.


Join The Code Co-op to get access to your library in the Code Co-op Forum
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Gathering a list of Newsletter subscribers?

Post by heatherbell »

lecarlb wrote: Sun Jan 28, 2024 1:06 pmsql query that will select the customers that have opted in to receive newsletters.
Depends on what information you want from the table.
For example:

Code: Select all

SELECT customers_firstname, customers_lastname, customers_email
FROM customers
WHERE customers_newsletter = 1;
lecarlb
Contributor
Posts: 316
Joined: Mon Oct 26, 2020 5:26 pm
Phoenix Version:
Has thanked: 48 times
Been thanked: 9 times

Re: Gathering a list of Newsletter subscribers?

Post by lecarlb »

Thank you @heatherbell. The query you suggested helped me to get the info I needed.

Here's what worked:

Code: Select all

SELECT customers_firstname, customers_lastname, customers_email_address FROM customers WHERE customers_newsletter = 1;
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Gathering a list of Newsletter subscribers?

Post by raiwa »

Guest checkout allows to write reviews. Newsletter subscription is not supported. Remember guest accounts are auto deleted. So no customer account mail is available and the sense of guest checkout is to store only the strict necessary information for the order.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
Dan Cole
Senior Contributor
Posts: 499
Joined: Fri Oct 25, 2019 2:14 pm
Phoenix Version: 1.0.8.21
Has thanked: 67 times
Been thanked: 61 times

Re: Gathering a list of Newsletter subscribers?

Post by Dan Cole »

You can set up an account content module so customers can subscribe and unsubscribe. I've done that on my site and have created sub groups for different types of mailings....ie new products, specials, general hobby information mailings etc. Customers can choice those they are interested in and leave the rest. At the moment it is in use on an old 1.0.5.0 site but I'm in the process of updating it. If you want to have a look just send me a PM and I'll give you a link to my site.

Dan


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply