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

Newsletter-Only Subscriptions for v1.3x

Views: 295,596

Results 181 to 200 of 1,165
20 Jul 2006, 1:05 PM
#181
notgoddess avatar

notgoddess

Zen Follower

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

Newsletter-Only Subscriptions for v1.3x

I can do that. It's actually a good idea to allow a page (or sidebox) with allows both subscriptions and removal at once (I've been depending on the 'unsubscribe' link supplied with the cart).

If you'll give me a day or so I can get it out for you-I have to rewrite the subscribe/unsubscribe processing to properly using multiple submits.

-Ng_

20 Jul 2006, 4:47 PM
#182
lloyddobbler avatar

lloyddobbler

New Zenner

Join Date:
Apr 2006
Location:
Los Angeles, CA
Posts:
27
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Thanks, NG!

Take your time - I've got PLENTY to work on at this point... :smile:

LD

22 Jul 2006, 6:03 PM
#183
pglatz avatar

pglatz

New Zenner

Join Date:
Aug 2004
Posts:
17
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Thanks for the great contribution! Here's some feedback on what maybe two minor problems:

I subscribed to newsletters only, info was inserted in subscribers table.

I then registered to the site, using the same email, and not clicking the subscribe box. An entry was created in the customers table, but newsletter_subscribe was set to zero. I thought it would have picked up the fact I had subscribed (the "automerge" the docs mention), but since I said not to subscribe, this seems logical too. I went to the account/newsletter subscriptions page, and the checkbox is unchecked. I checked it, hit update, and got a duplicate entry warned message from SQL. If I refresh the page, there is no ewrror,and both tables indicate I am subscribed. If I click the subscribe box when I register, there are no problems.

I'd like to make the following two suggestions:

  1. If a person is subscibed to newsletters only and then register, the subscribe button should be checked on the registration form.
  2. A check should be made to see if the person is currentlysubscribed, to prevent the duplicate entry SQL entry.
23 Jul 2006, 5:51 AM
#184
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Newsletter-Only Subscriptions for v1.3x

pglatz:

  1. If a person is subscibed to newsletters only and then register, the subscribe button should be checked on the registration form.
    How would the program know whether they're subscribed or not, since they haven't entered their email address yet when the registration page is prepared... ?
23 Jul 2006, 3:55 PM
#185
pglatz avatar

pglatz

New Zenner

Join Date:
Aug 2004
Posts:
17
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

DrByte:

How would the program know whether they're subscribed or not, since they haven't entered their email address yet when the registration page is prepared... ?

The person first subscribed to newsletters-only, then registers as a member. When the registration form is displayed, a database query could be made to see if they were in the subscribers table, and if so, the subscribe checkbox would be checked.

We know if they are subscribed or not at the time the form is being created.

23 Jul 2006, 11:59 PM
#186
woodlandsprite avatar

woodlandsprite

Zen Follower

Join Date:
May 2006
Posts:
307
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Hello again, NG :)
Noticed a peculiarity I think is related to the Newsletter Only Subscribe mod.
Customers that also happen to have a newsletter subscription apear to have a bogus subscribe date created of 11/30/2036.

Not sure how this affects things. Still have to test.

-Stephanie

26 Jul 2006, 5:36 PM
#187
etoile03 avatar

etoile03

Zen Follower

Join Date:
Jun 2006
Posts:
123
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

This is a great module! I had some other questions from doing some testing...

Does the current module allow for sending out an automatic welcome newsletter/message that welcomes or confrims that the subscriber has sucessfully opted in?

Also, I noticed that when the message stack error appears for these conditions:

  1. This email address has already placed a Newsletter-Only subscription. If you did not receive the confirmation request, please email xxx from your email address to request the subscription.

  2. There is already a Customer Account using that email address. To subscribe to the newsletter, please LOGIN and select the My Account link at the top right. Click here if you have forgotten your password.

that the newsletter subscribe field still appears, which it shouldn't since they have already subscribed or tried to subscribe. Can this be easily fixed?

Also, are there message errors for people that have already subscribed and have already confirmed and opted in, as well, to say that they are a current newsletter subscriber for both newsletter-only and current account holders?

26 Jul 2006, 8:31 PM
#188
notgoddess avatar

notgoddess

Zen Follower

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

Re: Newsletter-Only Subscriptions for v1.3x

etoile03:

Does the current module allow for sending out an automatic welcome newsletter/message that welcomes or confrims that the subscriber has sucessfully opted in?
Well, once they click on the confirmation link they get a 'thanks for confirming' message on the screen but that's it. You could put that on the wishlist at my site if you wish.

etoile03:

Also, I noticed that when the message stack error appears for these conditions:

  1. This email address has already placed a Newsletter-Only subscription.
  2. There is already a Customer Account using that email address.
    that the newsletter subscribe field still appears, which it shouldn't since they have already subscribed or tried to subscribe. Can this be easily fixed?
    This is intentional-the field/button reappears because the email was invalid in some way (in those cases already existing). Having the field there allows the person to change their email if needed. So it's not a 'bug' to be fixed, but rather a feature. Flags could be added to the code to not show it in those cases-another wishlist item.

etoile03:

Also, are there message errors for people that have already subscribed and have already confirmed and opted in, as well, to say that they are a current newsletter subscriber for both newsletter-only and current account holders?
I'm a bit confused on what you are asking here. It sounds like you are asking for completely separate messages for these conditions:

  1. newsletter - not confirmed
  2. newsletter - confirmed
  3. account holder, but not subscribed to newsletter
  4. account holder, already subscribed

The checks don't go into that much detail-they just check if the email exists either for a subscription or as a customer, and if so, says that.

That being said you can add it as a wishlist item as well, but you might want to read the next post.

-Ng_

26 Jul 2006, 9:02 PM
#189
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 will be honest with you-I plan on doing one more release to fix the errors and add what additional features I can that have been requested prior to today, then this contribution will be put on the 'incentive' plan. I will of course still do support where I can and provide bug fixes, but I consider this a pretty mature/stable contribution at this point.

I've put well over a hundred hours into this contrib and gotten 'great contrib! can you add...' but nothing financially from the 800+ who have downloaded this (I figured probably 300 are actively using).

I'm not trying to sound mercenary-I love doing OSS, and intentionally do not ransom my work, but I'll be very short on my bills next week and just have no clue how I'm going to catch them up, and have to spend my time trying to avoid having my utilities shutoff by competing against folks who bid $10 on 5hr programming projects.

I'll try to still work on new stuff when I can but it can't be a priority for me anymore when I have kids to feed.

Apologies in advance if anyone takes offense-I thought it better to be upfront than just appear to have abandoned you.

-Ng_

27 Jul 2006, 9:32 AM
#190
florence avatar

florence

New Zenner

Join Date:
Jul 2006
Posts:
14
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Hello!

I have installed the newsletter-only subscriptions and it seems to work very well for me! :thumbsup: I wanted to thank you and to ask a little question..

Is it possible to put the newsletter form on other pages that aren't part of the shop?
I have a blog and I would like to put the newsletter join form on the sidebar..is there a code that I could cut and paste on it?!
I tried to search for it but I don't want to mees it up.. Let me know if someone know how to do it!

thank you!!! and sorry for my english :happy:

27 Jul 2006, 12:44 PM
#191
notgoddess avatar

notgoddess

Zen Follower

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

Re: Newsletter-Only Subscriptions for v1.3x

florence:

Is it possible to put the newsletter form on other pages that aren't part of the shop?
I have a blog and I would like to put the newsletter join form on the sidebar..is there a code that I could cut and paste on it?!

You can use the module 'show sidebox on external page' (http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=79) to do this. This would keep all the names/etc inside zencart, and they would be directed to the subscription pages there.

If you wish something completely separate from your cart you would want to look into a separate newsletter program like phpMailer or GroupMail.

-Ng_

28 Jul 2006, 12:59 PM
#192
picou avatar

picou

Zen Follower

Join Date:
Sep 2005
Location:
Montpellier - FRANCE
Posts:
124
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Hello,
After installing Everything seems to work just right until I try to send an email.
This is the error on the >tools>send e-mail page. (admin/mail.php)


1267 Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (latin1_german1_ci,IMPLICIT) for operation 'locate'
in:
[SELECT c.customers_email_address as customers_email_address FROM zen_customers as c LEFT JOIN zen_configuration as q on LOCATE( c.customers_email_address, q.configuration_value) >= 1 WHERE configuration_key = 'NEWSONLY_SUBSCRIPTION_TEST_GROUP' ]
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 using
Database: MySQL 4.1.9-max
PHP Version: 4.3.10 (Zend: 1.3.0)
HTTP Server: Apache/1.3.33 (Win32) PHP/4.3.10
Zen Cart 1.3.0.2

Could someone help?

28 Jul 2006, 3:18 PM
#193
notgoddess avatar

notgoddess

Zen Follower

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

Re: Newsletter-Only Subscriptions for v1.3x

picou:

1267 Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (latin1_german1_ci,IMPLICIT) for operation 'locate'

If you google 'illegal mix of collations' you'll get a lot of entries about this-basically it's saying the two tables (or fields) have the same language but different accents so can't compare. That or that the input is treated as a different collation (and same result).

In base, it's a MySQL problem. Usually they tell you to upgrade, but you can try checking the collations on those two fields to see if they compare, manually change, or run through the various search results you get on google (try searching first with your MySQL version in the query string to see if there are specific fixes for that version.

I'll try to see what I can do. Unfort I have to work within the confines of the query builder & audience.php for this or else hack them more than is done but there might be an alternative.

-Ng_

28 Jul 2006, 8:22 PM
#194
picou avatar

picou

Zen Follower

Join Date:
Sep 2005
Location:
Montpellier - FRANCE
Posts:
124
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

I'm not confortable in MySQL stuff.
I did a search in My SQl and this is the return:


requête SQL:
SELECT *
FROM new.zen_query_builder
WHERE query_id LIKE '%customers_email_address%'
OR query_category LIKE CONVERT( _utf8 '%customers_email_address%'
USING latin1 )
COLLATE latin1_swedish_ci
OR query_name LIKE CONVERT( _utf8 '%customers_email_address%'
USING latin1 )
COLLATE latin1_swedish_ci
OR query_description LIKE CONVERT( _utf8 '%customers_email_address%'
USING latin1 )
COLLATE latin1_swedish_ci
OR query_string LIKE CONVERT( _utf8 '%customers_email_address%'
USING latin1 )
COLLATE latin1_swedish_ci
OR query_keys_list LIKE CONVERT( _utf8 '%customers_email_address%'
USING latin1 )
COLLATE latin1_swedish_ci

Is this any indication? What should I do?
Thanks for your help

30 Jul 2006, 6:48 PM
#195
notgoddess avatar

notgoddess

Zen Follower

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

Re: Newsletter-Only Subscriptions for v1.3x

Picou,

I've been looking for a quick fix and can't find, other than those I already recommended.

For now, as long as you aren't using the test group, I suggest you just remove that statement from the query_builder table.

You can use phpMyAdmin to find it or run this in your sql patch page of the tools menu:

DELETE from zen_query_builder
WHERE query_name LIKE '%Email Test Group%';

I'll keep seeing if I can find another solution that will allow you to use the test group.

-Ng_

31 Jul 2006, 8:18 AM
#196
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Newsletter-Only Subscriptions for v1.3x

NotGoddess,

I haven't studied your code or docs which likely explain the purpose of this query:```
SELECT c.customers_email_address as customers_email_address FROM zen_customers as c LEFT JOIN zen_configuration as q on LOCATE( c.customers_email_address, q.configuration_value) >= 1 WHERE configuration_key = 'NEWSONLY_SUBSCRIPTION_TEST_GROUP'


Am I correct that you are attempting to find email addresses from the customers table which are listed in the NEWSONLY_SUBSCRIPTION_TEST_GROUP constant?

If so, then there may be a couple workarounds:

Option A: ensure that the group entries are delimited using % and , and ' -- like this: '%[email protected]%', '%[email protected]%', '%etc%', '%etc%'

Then change your query to:```
SELECT c.customers_email_address as customers_email_address 
FROM customers as c 
LEFT JOIN configuration as q 
  on c.customers_email_address 
  LIKE  q.configuration_value 
WHERE configuration_key = 'EMAIL_FROM' ;

Option B: ensure that the entries are delimited with ' and , --- like this: '[email protected]', '[email protected]', 'etc', 'etc', 'etc'

Then use a query like this:```
SELECT c.customers_email_address as customers_email_address
FROM customers as c
LEFT JOIN configuration as q
on c.customers_email_address
IN (q.configuration_value)
WHERE configuration_key = 'EMAIL_FROM' ;


I haven't tested exhaustively, but this may provide a workaround or perhaps help steer you in another direction.
31 Jul 2006, 12:51 PM
#197
notgoddess avatar

notgoddess

Zen Follower

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

Re: Newsletter-Only Subscriptions for v1.3x

Thank you, DrByte. I'll most definately check those out. I tried joins originally but never quite got my syntax correct.

-Ng_

1 Aug 2006, 10:02 PM
#198
bci7 avatar

bci7

New Zenner

Join Date:
Jul 2006
Posts:
16
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

I am trying to send a newsletter through the tools newsletter feature. I created a newsletter using the drop down box. I save the newsletter. The status of the newsletters shows an X that says false? How or where do I send the newsletter? I know I can send email through the send email feature. Whats the point of having both the email and newsletter feature?

Thanks
Blain

1 Aug 2006, 10:32 PM
#199
notgoddess avatar

notgoddess

Zen Follower

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

Re: Newsletter-Only Subscriptions for v1.3x

bci7:

I save the newsletter. The status of the newsletters shows an X that says false? How or where do I send the newsletter?

Hi Blain. This thread is for the contribution, not general questions, but I answer anyway. Did you 'lock' the newsletter? After you 'save' you should have 2 options: preview or lock. You preview the letter to ensure it looks okay, then once it's all set to go, you lock it. Once a newsletter is locked you then get additional options to send it.

-Ng_

3 Aug 2006, 1:49 PM
#200
picou avatar

picou

Zen Follower

Join Date:
Sep 2005
Location:
Montpellier - FRANCE
Posts:
124
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Ok, the fix worked on the send e-mail portion.
Thanks.

I get another error when trying to access customers>customers:
Parse error: syntax error, unexpected '}' in /home/www/c292f5d8b8cfe582a86b725956f88de3/web/boutique_vin/admin/customers.php on line 1215

I've opened /admin/customers.php to see what is the problem, but there are only 1192 Lines.

What do you suggest?
Thanks