Zen Cart Logo
Forums / All Other Contributions/Addons / Newsletter-Only Subscriptions for v1.3x

Newsletter-Only Subscriptions for v1.3x

Views: 295,923

Results 1 to 20 of 1,165
31 May 2006, 9:54 PM
#1
notgoddess avatar

notgoddess

Zen Follower

Join Date:
Jan 2005
Location:
Waukee, Iowa
Posts:
206
Plugin Contributions:
0

Newsletter-Only Subscriptions for v1.3x

I've upgraded the original 1.2.7 Subscribe! contribution, merged in the 1.2.7 newsletter_unsubscribe contribution, and added quite a number of new features of my own.

The end result is Newsletter Subscribe V2.0

Please let me know what you think and report any problems you may have.

-Ng_

1 Jun 2006, 5:47 AM
#2
notgoddess avatar

notgoddess

Zen Follower

Join Date:
Jan 2005
Location:
Waukee, Iowa
Posts:
206
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

The contribution is now in the downloads section, under 'Other Modules'. Updates will be placed there, so please download from that section.

Thank you for the quick approval!

-Ng_

1 Jun 2006, 5:06 PM
#3
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Hello All,

This mod sounds brilliant, so I had to try it. So far, I am at the install stage on the Subscription Manager. This is what comes back when I press the button:

1146 Table 'thegemtr_zc2.query_builder' doesn't exist
in:
[DELETE FROM query_builder WHERE query_description = 'Returns name and email address of all Customer Account subscribers and all Newsletter-Only subscribers.']
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

I am not sure what to do, I am guessing it could be a SQL setup thing. Any help would be gratefully received.

Regards,

Russ

1 Jun 2006, 5:39 PM
#4
notgoddess avatar

notgoddess

Zen Follower

Join Date:
Jan 2005
Location:
Waukee, Iowa
Posts:
206
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

It would have been a pleasant first to discover all the testing actually uncovered everything. sigh I forgot to hold update the database installation so it calls for the table name (prefix + query_builder). Give me 10 min and I'll post an upgrade.

1 Jun 2006, 6:38 PM
#5
duckydoodles_com avatar

duckydoodles_com

New Zenner

Join Date:
May 2006
Location:
Windsor, Ontario
Posts:
64
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

I was about to install this add-on. I guess it is a good idea I checked the support forum first :) Thank-you Notgoddess for this add-on, it looks like a good module. When you say you're going to upload an update, is that going to be on the downloads page or this thread? Is there going to be a second file on the download page? Thanks again.

1 Jun 2006, 6:56 PM
#6
notgoddess avatar

notgoddess

Zen Follower

Join Date:
Jan 2005
Location:
Waukee, Iowa
Posts:
206
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

I've uploaded the updated contribution but updates have to be reviewed by the staff.
You can wait until you see version 2.0.1 or grab it from my website:
http://www.notgoddess.com/scripts/newsletter-subscribe

1 Jun 2006, 8:01 PM
#7
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Hiya,

Thanks for getting back to me. Just to say it is working A.O.K and is chuffing brilliant!!

Regards,

Russ

1 Jun 2006, 9:19 PM
#8
alanpace avatar

alanpace

New Zenner

Join Date:
Sep 2004
Location:
Frisco, Texas
Posts:
21
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

I found one typo in this excellent contribution. A SQL error appeared when I deleted a customer account.

admin/customers.php

On line 343, change

where customer_id = '" . (int)$customers_id . "'");

to

where customers_id = '" . (int)$customers_id . "'");

(changed customer_id to customers_id)

1 Jun 2006, 10:04 PM
#9
notgoddess avatar

notgoddess

Zen Follower

Join Date:
Jan 2005
Location:
Waukee, Iowa
Posts:
206
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

alanpace:

I found one typo in this excellent contribution.
Thank you for finding that!

I've added the correction and upgraded the version to 2.0.2

-Ng_

2 Jun 2006, 5:35 AM
#10
mocha avatar

mocha

New Zenner

Join Date:
Mar 2006
Posts:
7
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Thanks for the contribution NG. I am looking to do a mass import of newsletter only subscribers. Is there an easy way to do this?

Thanks

2 Jun 2006, 5:47 AM
#11
notgoddess avatar

notgoddess

Zen Follower

Join Date:
Jan 2005
Location:
Waukee, Iowa
Posts:
206
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

mocha:

Thanks for the contribution NG. I am looking to do a mass import of newsletter only subscribers. Is there an easy way to do this?
It would depend upon format of your list (sql, txt, xsl, csv, etc). if you email me a copy of the list (or part of it) I can build something for you.

I'll end with this caveat -not because I think you are intending it, but others might.
admin-added subscriptions are auto-confirmed, but please please do not use this as a way to send people unsolicited spam (like using a list you bought somewhere).

-Ng_

2 Jun 2006, 6:58 AM
#12
mocha avatar

mocha

New Zenner

Join Date:
Mar 2006
Posts:
7
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Thanks for the offer NG. The list format is flexible, at the moment it is an excel file with just the username and the email address. Also with the sidebox, I cannot find where to change it so the sidebox title is just "Newsletter" and is not a link.

2 Jun 2006, 8:55 AM
#13
notgoddess avatar

notgoddess

Zen Follower

Join Date:
Jan 2005
Location:
Waukee, Iowa
Posts:
206
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Okay, well the easiest way (other than having me code an interface :) would be to turn the excel into a sql file:

Copy the email address column and save as a txt file (separate with commas).

Open that file in your favorite text editor.

Add to the beginning of the file (replace tbl_name with your subscribers table name, including prefix):
INSERT INTO tbl_name (email_address) VALUES(

Use the find/replace command:
find: , [that's a comma]
replace with: '), ('

If the editor supports adding newlines you might use:
replace with: '),\n ('

At the end of the file you should have: lastemail@address
Add to end: '); so it is: lastemail@address');

You are trying to end up with:
INSERT INTO tbl_name (email_address)
VALUES([email protected]), ([email protected]),
([email protected]), ([email protected]);

Save the resulting file (as .sql or .txt) and use the sql patches feature in the Tools menu to upload/run it. If you have hundreds of names you may need to break into a few files.

-Ng_

2 Jun 2006, 8:57 AM
#14
notgoddess avatar

notgoddess

Zen Follower

Join Date:
Jan 2005
Location:
Waukee, Iowa
Posts:
206
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

mocha:

Also with the sidebox, I cannot find where to change it so the sidebox title is just "Newsletter" and is not a link.
? The 'Subscribe' sidebox title is not a link by default. Are your other sideboxes
linked? It might be a feature you have enabled somewhere.

[edit: found it]
edit /includes/modules/sideboxes/YOUR_TEMPLATE/subscribe.php
and add this somewhere:

  $title_link = false;

Let me know if that works and I'll include it in the next update.

-Ng_

2 Jun 2006, 11:01 PM
#15
kadesign avatar

kadesign

Totally Zenned

Join Date:
Feb 2005
Location:
New Jersey
Posts:
593
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Does this work on the latest version of Zen Cart?
I want to make sure I din't miss anything here.

Thanks,
Kelly

2 Jun 2006, 11:13 PM
#16
notgoddess avatar

notgoddess

Zen Follower

Join Date:
Jan 2005
Location:
Waukee, Iowa
Posts:
206
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

sleepless:

Does this work on the latest version of Zen Cart?
I want to make sure I din't miss anything here.

Thanks,
Kelly

Yes, this runs with zencart 1.3.x (1.3.0 and 1.3.0.1).

Make sure you download the updated version from the contributions section, and you .might. need to apply the patch in the post above yours (I'm still seeing if it's needed before I update again).

Please let me know how you like it, if there's anything you'd like changed/added (even if it's a 'well it would be nice if...' because you can bet others are thinking the same thing).

-Ng_

2 Jun 2006, 11:26 PM
#17
kadesign avatar

kadesign

Totally Zenned

Join Date:
Feb 2005
Location:
New Jersey
Posts:
593
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Thanks for the quick reply.

I had the original and removed it a while back. One feature that I did like was adding a query to send emails to test account only before sending them to actual customers. Will this enable me to do that as well?
If not, that would be a nice addition.

Thank you in advance! :)

Kelly

2 Jun 2006, 11:41 PM
#18
notgoddess avatar

notgoddess

Zen Follower

Join Date:
Jan 2005
Location:
Waukee, Iowa
Posts:
206
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

sleepless:

One feature that I did like was adding a query to send emails to test account only before sending them to actual customers. Will this enable me to do that as well?

I'm not .quite. sure if I understand you. You can of course create a subscription using an email address...you can email them directly, but there is no query set so you have the option to send the newsletter to one address first-I didn't see anything like that in the original, either, although perhaps I worked from a different version than you had.

Is this what you are wishing? I believe it should be easy enough to add-we'd just add a query to pull the admin email address and add that as an option in the 'send to' list.

Let me know if that's what you had in mind.

-Ng_

3 Jun 2006, 12:00 AM
#19
kadesign avatar

kadesign

Totally Zenned

Join Date:
Feb 2005
Location:
New Jersey
Posts:
593
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

I have the sql for it somewhere. If I find it I will email or post it so you can see if it will work. It wasn't included in the original. It was something someone posted as an add on.

Thanks,
Kelly