Zen Follower
- Join Date:
- Jan 2007
- Posts:
- 136
- Plugin Contributions:
- 0
Help with Email Address Exporter
I will post an update of what has been done when I put it on the live site and tested but after the F1.
Views: 9,060
Zen Follower
I will post an update of what has been done when I put it on the live site and tested but after the F1.
Zen Follower
How can I change this SQL query to call all customer not just ones opt in for newsletter.
insert into query_builder (query_category, query_name, query_description, query_string, query_keys_list) VALUES ('newsletters','My Address Export Query','Special Query for Customer Data Export','select c.customers_telephone, c.customers_email_address, \nc.customers_lastname, c.customers_firstname, o.entry_company as company, o.entry_street_address as customers_street_address, o.entry_suburb as customers_suburb,o.entry_city as customers_city, o.entry_state as customers_state, o.entry_postcode as customers_postcode from TABLE_ADDRESS_BOOK o, TABLE_CUSTOMERS c where c.customers_newsletter = 1 AND c.customers_id = \no.customers_id GROUP \nBY c.customers_email_address order by c.customers_lastname, \nc.customers_firstname ASC','');
Sensei
just remove this part:```
c.customers_newsletter = 1 AND
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Zen Follower
Thank you, it worked.
New Zenner
Was wondering when a new updated version of the email_export.php file would be done that exports all of the customer's information? I really need it!! I can not get the current file to function properly.
To me that is a VERY useful tool and should be setup as a Customer Export tool in the Admin downloads. Great job with this by the way!!
Mark
Zen Follower
fshn2day:
Was wondering when a new updated version of the email_export.php file would be done that exports all of the customer's information? I really need it!! I can not get the current file to function properly.
To me that is a VERY useful tool and should be setup as a Customer Export tool in the Admin downloads. Great job with this by the way!!
Mark
Hi Mark
(Back up everything)
Ok new file is attach and you need to use this SQLquery.
OK I CAN'T ATTACH THIS FILE, CAN'T USE PHP OR RAR ext I WILL PM YOU THE FILE.
insert into query_builder (query_category, query_name, query_description, query_string, query_keys_list) VALUES ('newsletters','My Address Export Query','Special Query for Customer Data Export','select c.customers_telephone, c.customers_email_address, \nc.customers_lastname, c.customers_firstname, o.entry_company as company, o.entry_street_address as customers_street_address, o.entry_suburb as customers_suburb,o.entry_city as customers_city, o.entry_state as customers_state, o.entry_postcode as customers_postcode from TABLE_ADDRESS_BOOK o, TABLE_CUSTOMERS c where c.customers_id = \no.customers_id GROUP \nBY c.customers_email_address order by c.customers_lastname, \nc.customers_firstname ASC','');
I hope all goes well.
Zen Follower
Woody619:
Hi Mark
(Back up everything)
Ok new file is attach and you need to use this SQLquery.
OK I CAN'T ATTACH THIS FILE, CAN'T USE PHP OR RAR ext I WILL PM YOU THE FILE.
insert into query_builder (query_category, query_name, query_description, query_string, query_keys_list) VALUES ('newsletters','My Address Export Query','Special Query for Customer Data Export','select c.customers_telephone, c.customers_email_address, \nc.customers_lastname, c.customers_firstname, o.entry_company as company, o.entry_street_address as customers_street_address, o.entry_suburb as customers_suburb,o.entry_city as customers_city, o.entry_state as customers_state, o.entry_postcode as customers_postcode from TABLE_ADDRESS_BOOK o, TABLE_CUSTOMERS c where c.customers_id = \no.customers_id GROUP \nBY c.customers_email_address order by c.customers_lastname, \nc.customers_firstname ASC','');
>
> I hope all goes well.
Zencart Websites I've Designed:
deejaycentipede(DOT)com
djellery216(DOT)com
Zen Follower
ljdream00:
:cool:I'm trying to make this work too.
What extra file do I need that is not attached to this post?
Please share!!!!:blush:
hi, after a little look about I found the file you need and will pm you.
Please run at own risk and backup first.
Not tested on v1.3.8a but dont see why it wont work.
Use the SQLquery above.
Woody
Zen Follower
:clap:Hi Woody,
Thanks for the file,
It worked perfectly, nice html tables and everything. pretty cool.
the only thing now is trying to find out how to get the state to show up.
I tried, but I must be missing something.
Woody619:
hi, after a little look about I found the file you need and will pm you.
Please run at own risk and backup first.Not tested on v1.3.8a but dont see why it wont work.
Use the SQLquery above.
Woody
Zencart Websites I've Designed:
deejaycentipede(DOT)com
djellery216(DOT)com
New Zenner
Woody could you please share that file with all of us who have been following this thread? I think 2 other users are also requesting it.
Thanks!
MV
I donated to Zen Cart!! Thank you for helping me!
Zen Follower
What I will do is test it myself on the new store im just doing and get it as a download.
ljdream00 did you get the state to show up?
New Zenner
I'm using ZC 1.3.8a on a dedicated box, and have just installed this mod.
I run it from the tolls menu, and it appears to process 1290 of 4690 customers and hangs with a server 500 error.
I'm assuming (perhaps wrongly) that the customer DB is too big for this in some way.
Is there a workaround?
Appreciate your help.
New Zenner
OK, a workaround for those who need it.
I dialled up PhpMyAdmin, and exported the customer table as a .csv file.
Imported it into Excel, cut and pasted a few columns and voila! Fixed!
It was then a simple matter of importing the file into my mass mailer, and the newsletter was on it's way to almost 5000 customers within half an hour.
Totally Zenned
Woody619:
hi, after a little look about I found the file you need and will pm you.
Please run at own risk and backup first.Not tested on v1.3.8a but dont see why it wont work.
Use the SQLquery above.
Woody
Could you make this file available to everyone? Could definitely use this
Many thanks :smile:
Zen Follower
Sorry about the delay.
I have put the file on my server to download.
You need to replace the file and add the SQLquery after installing the Email Address Exporter.
I have not tested this on the up to date zencart.
http://www.anythingframed.co.uk/email_export_added_address.zip
Woody
New Zenner
Hi guys,
Is there an update to this contrib which would allow me to export all email addresses of customers who have registered but never ordered?
Thanks
Matt
Zen Follower
anubis:
Hi guys,
Is there an update to this contrib which would allow me to export all email addresses of customers who have registered but never ordered?
Thanks
Matt
There is no update but I'm sure what you want can be done, its just beyond my knowledge sorry. I'm sure someone will come help you.
Woody
New Zenner
I can not get this mod to install... it is on my server but it is not showing up in tools on Admin page. where do I put the files and get it to load?
New Zenner
silentshadow:
I can not get this mod to install... it is on my server but it is not showing up in tools on Admin page. where do I put the files and get it to load?
never mind... i re-read the readme and figured it out. LOL... i wasnt paying attention... working now.
Sensei
anubis:
Hi guys,
Is there an update to this contrib which would allow me to export all email addresses of customers who have registered but never ordered?
Thanks
MattIf you're using v1.3.8, you'll see that option in the pulldown list
Somewhat related thread for manually extracting the data instead: http://www.zen-cart.com/forum/showthread.php?t=44417
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Tell staff why this post should be reviewed.