Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / Newsletter-Only Subscriptions for v1.3x

Newsletter-Only Subscriptions for v1.3x

25 Jan 2008, 9:31 PM
#641
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Post #641 by cjpinder

As an additional to what I said above....

Doodlebuckets:

Everything works great except if you go here http://www.giftsofcharacter.com and look at the sidebox, the radio input is not right. The subscribe button and text-only are in the wrong place.
If you want to stick with your current stylesheet settings then you could try editing includes/templates/YOUR_TEMPLATE/sideboxes/tpl_subscribe.php and change the lines that say...

   if(EMAIL_USE_HTML == 'true') {
    $content .= ' <br /> <label>' . zen_draw_radio_field('email_format', 'HTML', true) . ENTRY_EMAIL_HTML_DISPLAY . '</label>';
    $content .= ' <label style="white-space:nowrap">' . zen_draw_radio_field('email_format', 'TEXT', false) . ENTRY_EMAIL_TEXT_DISPLAY . '</label>';
   }
```...to be...
```php
   if(EMAIL_USE_HTML == 'true') {
    $content .= ' <br /> ' . zen_draw_radio_field('email_format', 'HTML', true, 'id="emailhtmlformat"');
    $content .= ' <label for="emailhtmlformat" class="radioButtonLabel">'. ENTRY_EMAIL_HTML_DISPLAY . '</label>';
    $content .= zen_draw_radio_field('email_format', 'TEXT', false, 'id="emailtextformat"');
    $content .= ' <label for="emailtextformat" class="radioButtonLabel">'. ENTRY_EMAIL_TEXT_DISPLAY . '</label>';
   }
```Hope that helps.

Regards,
Christian.
26 Jan 2008, 12:53 PM
#642
doodlebuckets avatar

doodlebuckets

Totally Zenned

Join Date:
Jul 2005
Posts:
497
Plugin Contributions:
0

Post #642 by doodlebuckets

CJPinder:

As an additional to what I said above....

If you want to stick with your current stylesheet settings then you could try editing includes/templates/YOUR_TEMPLATE/sideboxes/tpl_subscribe.php and change the lines that say...

if(EMAIL_USE_HTML == 'true') {
$content .= ' <br /> <label>' . zen_draw_radio_field('email_format', 'HTML', true) . ENTRY_EMAIL_HTML_DISPLAY . '</label>';
$content .= ' <label style="white-space:nowrap">' . zen_draw_radio_field('email_format', 'TEXT', false) . ENTRY_EMAIL_TEXT_DISPLAY . '</label>';
}

> ```php
   if(EMAIL_USE_HTML == 'true') {
    $content .= ' <br /> ' . zen_draw_radio_field('email_format', 'HTML', true, 'id="emailhtmlformat"');
    $content .= ' <label for="emailhtmlformat" class="radioButtonLabel">'. ENTRY_EMAIL_HTML_DISPLAY . '</label>';
    $content .= zen_draw_radio_field('email_format', 'TEXT', false, 'id="emailtextformat"');
    $content .= ' <label for="emailtextformat" class="radioButtonLabel">'. ENTRY_EMAIL_TEXT_DISPLAY . '</label>';
   }
```Hope that helps.
> 
> Regards,
> Christian.

Thanks!  I think that's what I'll do :o)  I really love my template.  I also just remembered that the defined pages from the newsletter subscription mod are not showing up in the admin Define Pages Editor.  I've uploaded the mod twice, so I don't think I missed anything.  How do I get those to show up there?  Thanks!  Amy

PS For anyone who's using the Apple Zen template, the above line of code should have a second break in it to put the subscribe button down to the next line:

 $content .= ' <br /><br />' . zen_image_submit (BUTTON_IMAGE_SUBSCRIBE,HEADER_SUBSCRIBE_BUTTON, 'value="' . HEADER_SUBSCRIBE_BUTTON . '" ');

Otherwise it just sits next to the text-only line :)
26 Jan 2008, 1:42 PM
#643
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Post #643 by cjpinder

Doodlebuckets:

Thanks! I think that's what I'll do :o) I really love my template.
Your welcome. Your template does look very nice.

I've had a play with the HTML a bit more and I think the following will probably work best...

   if(EMAIL_USE_HTML == 'true') {
    $content .= '<div id="subscribeBoxEmailFormat" style="white-space:nowrap"> ';
    $content .= zen_draw_radio_field('email_format', 'HTML', true, 'id="emailhtmlformat"');
    $content .= '<label for="emailhtmlformat" class="radioButtonLabel">'. ENTRY_EMAIL_HTML_DISPLAY . '</label>';
    $content .= zen_draw_radio_field('email_format', 'TEXT', false, 'id="emailtextformat"');
    $content .= '<label for="emailtextformat" class="radioButtonLabel">'. ENTRY_EMAIL_TEXT_DISPLAY . '</label>';
    $content .= '</div>';
   }
```> **Doodlebuckets:**
>
> I also just remembered that the defined pages from the newsletter subscription mod are not showing up in the admin Define Pages Editor.  I've uploaded the mod twice, so I don't think I missed anything.  How do I get those to show up there?
Now you come to mention it I seem to remember having the same problem when I first started using it. I'll have a look and see what is going on.

Regards,
Christian.
26 Jan 2008, 1:51 PM
#644
doodlebuckets avatar

doodlebuckets

Totally Zenned

Join Date:
Jul 2005
Posts:
497
Plugin Contributions:
0

Post #644 by doodlebuckets

CJPinder:

Your welcome. Your template does look very nice.

I've had a play with the HTML a bit more and I think the following will probably work best...

if(EMAIL_USE_HTML == 'true') {
$content .= '<div id="subscribeBoxEmailFormat" style="white-space:nowrap"> ';
$content .= zen_draw_radio_field('email_format', 'HTML', true, 'id="emailhtmlformat"');
$content .= '<label for="emailhtmlformat" class="radioButtonLabel">'. ENTRY_EMAIL_HTML_DISPLAY . '</label>';
$content .= zen_draw_radio_field('email_format', 'TEXT', false, 'id="emailtextformat"');
$content .= '<label for="emailtextformat" class="radioButtonLabel">'. ENTRY_EMAIL_TEXT_DISPLAY . '</label>';
$content .= '</div>';
}

> 
> Regards,
> Christian.

The same changes that were made to the sidebox also need to be made to tpl_subscribe_header.php  Thanks for looking into the defines thingy and for the other fixes.  It looks so much better!
26 Jan 2008, 1:59 PM
#645
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Post #645 by cjpinder

Doodlebuckets:

I also just remembered that the defined pages from the newsletter subscription mod are not showing up in the admin Define Pages Editor.
I've had a look and I remember now what I had to do to get this working. It is because of a feature (bug?) in the Define Pages Editor. If you look at the files that came in the mod download you will see define_subscribe.php and define_unsubscribe.php in the includes/languages/english/html_includes/YOUR_TEMPLATE directory. So you rename YOUR_TEMPLATE to the name of your custom template and upload them to your server. Trouble is the files won't appear in the Define Pages Editor unless you also upload the define_subscribe.php and define_unsubscribe.php files to the includes/languages/english/html_includes directory. Once you have done that it should all work fine and the Define Pages Editor will allow you to edit the files in your custom template directory.

Regards,
Christian.

26 Jan 2008, 2:15 PM
#646
doodlebuckets avatar

doodlebuckets

Totally Zenned

Join Date:
Jul 2005
Posts:
497
Plugin Contributions:
0

Post #646 by doodlebuckets

CJPinder:

I've had a look and I remember now what I had to do to get this working. It is because of a feature (bug?) in the Define Pages Editor. If you look at the files that came in the mod download you will see define_subscribe.php and define_unsubscribe.php in the includes/languages/english/html_includes/YOUR_TEMPLATE directory. So you rename YOUR_TEMPLATE to the name of your custom template and upload them to your server. Trouble is the files won't appear in the Define Pages Editor unless you also upload the define_subscribe.php and define_unsubscribe.php files to the includes/languages/english/html_includes directory. Once you have done that it should all work fine and the Define Pages Editor will allow you to edit the files in your custom template directory.

Regards,
Christian.

Thanks! They are now there...Preshiate the help once more!

27 Jan 2008, 3:47 AM
#647
paul3648 avatar

paul3648

Zen Follower

Join Date:
Mar 2007
Location:
Taiwan
Posts:
239
Plugin Contributions:
0

Post #647 by paul3648

I've installed the lastest version of this 2.10 on my 1.38a ZC. All my newsletter emails are being sent in duplicate.

I had an earlier version of this mod installed on 1.37 which worked fine. For this version I've overwritten all the files - just copied the new files over to my installation - done the dB upgrade.

Also - clicking on the unsubscribe link in the newsletter doesn't remove the address from the dB.

Any help is appreciated.

27 Jan 2008, 10:15 AM
#648
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Post #648 by cjpinder

paul3648:

I've installed the lastest version of this 2.10 on my 1.38a ZC. All my newsletter emails are being sent in duplicate.

I had an earlier version of this mod installed on 1.37 which worked fine. For this version I've overwritten all the files - just copied the new files over to my installation - done the dB upgrade.
Which version of the mod were you using with ZC 1.3.7?
Which audience are you sending the newsletter to?

paul3648:

Also - clicking on the unsubscribe link in the newsletter doesn't remove the address from the dB.
Does the unsubscribe work if you go to the store front, click the Newsletter Unsubscribe link and enter the email address?

Regards,
Christian.

27 Jan 2008, 2:33 PM
#649
paul3648 avatar

paul3648

Zen Follower

Join Date:
Mar 2007
Location:
Taiwan
Posts:
239
Plugin Contributions:
0

Post #649 by paul3648

CJPinder:

Which version of the mod were you using with ZC 1.3.7?
Which audience are you sending the newsletter to?

I don't remember the version number. I installed it about 10 months ago. Probably the best solution here is to uninstall and do a fresh install, but at this point I don't know how to remove the original installation.

Which audience are you sending the newsletter to?

I sent the newsletter in two batches, after first testing it with the test group. I didn't notice the test group duplications before I sent out the two big batches. The two batches were 1. Customer account subscribers 2. newsletter only subscribers.

I have to split them up like this because my server has an hourly limit.

When I look in the email log, every subscriber received two newsletters.

Does the unsubscribe work if you go to the store front, click the Newsletter Unsubscribe link and enter the email address?

I tested the unsubscribe function again this morning and it's working now.

27 Jan 2008, 3:22 PM
#650
paul3648 avatar

paul3648

Zen Follower

Join Date:
Mar 2007
Location:
Taiwan
Posts:
239
Plugin Contributions:
0

Post #650 by paul3648

I've been testing this more, and found that when I send the newsletter to the administrator only, there is just one newsletter sent out.

When I send the newsletter to my test group each newsletter is sent out twice.

My email logs show two newsletters being sent out to each address, with a delay of about 5 seconds.

I've also tested the mail function sending a message to my test group. No duplicates there, so the problem is with the newsletter mod.

28 Jan 2008, 9:53 AM
#651
minas avatar

minas

New Zenner

Join Date:
Dec 2007
Posts:
8
Plugin Contributions:
0

Post #651 by minas

Hi,

I am currently using the Newsletter-Only Subscriptions mod version 2.09a. Installation went very smooth and ussage is very good so far. I have found one problem tough. When someone tries to change his e-mail adress in his account into an newsletter only e-mail adress. He will get this error:

1062 Duplicate entry '[email protected]' for key 2
in:
[UPDATE subscribers SET email_address = '[email protected]', email_format = 'TEXT' WHERE customers_id = 100007]

I dont know if this is a mistake on my end or something else.

If someone could help me, it would be appriciated:yes:.

greetings,

Minas

28 Jan 2008, 8:38 PM
#652
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Post #652 by cjpinder

paul3648:

My email logs show two newsletters being sent out to each address, with a delay of about 5 seconds.

I've also tested the mail function sending a message to my test group. No duplicates there, so the problem is with the newsletter mod.

I've been looking through the code but can't see what would be causing your duplicate email issue. Hard to tell if it is a bug in the mod, a bug in ZC 1.3.8 or something that happened during your upgrade process. I'm going to have to give this one some more thought and do some more testing.

Anyone else out there using ZC 1.3.8 and v2.1.0 of the mod experiencing similar issues?

Regards,
Christian.

28 Jan 2008, 9:05 PM
#653
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Post #653 by cjpinder

Minas:

I am currently using the Newsletter-Only Subscriptions mod version 2.09a. Installation went very smooth and ussage is very good so far. I have found one problem tough. When someone tries to change his e-mail adress in his account into an newsletter only e-mail adress. He will get this error:
Looks like it is a bug in the mod. Well caught. It is supposed to make a check for that situation but for some reason the check isn't working. I'll do some work on it.

Regards,
Christian.

29 Jan 2008, 5:38 AM
#654
paul3648 avatar

paul3648

Zen Follower

Join Date:
Mar 2007
Location:
Taiwan
Posts:
239
Plugin Contributions:
0

Post #654 by paul3648

CJPinder:

I've been looking through the code but can't see what would be causing your duplicate email issue. Hard to tell if it is a bug in the mod, a bug in ZC 1.3.8 or something that happened during your upgrade process.

I'd tend to think it has something to do with the upgrade process, since I've seen other posts here that say ZC 1.3.8 and NLO is working fine for them.

I'd like to start fresh, but since I don't know exactly which version I started with I don't really know how to do an uninstall.

29 Jan 2008, 7:46 AM
#655
minas avatar

minas

New Zenner

Join Date:
Dec 2007
Posts:
8
Plugin Contributions:
0

Post #655 by minas

CJPinder:

Looks like it is a bug in the mod. Well caught. It is supposed to make a check for that situation but for some reason the check isn't working. I'll do some work on it.

Regards,
Christian.

Thanks in advance:bigups:

10 Feb 2008, 1:10 PM
#656
dealbyethan_com avatar

dealbyethan_com

Totally Zenned

Join Date:
Dec 2005
Location:
Perth, Western Australia, Australia
Posts:
782
Plugin Contributions:
0

Post #656 by dealbyethan_com

Hi, I have 2 questions regarding this module:

  1. How do I bypass confirmation request?
  2. How do I make the default email preference of header newsletter to HTML instead of TEXT?

Please advise. Thanks in advance.

**The Team Behind DealByEthan.com | **Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. *Connect with us: *https://linktr.ee/dealbyethan

11 Feb 2008, 1:45 AM
#657
julieoolie avatar

julieoolie

Zen Follower

Join Date:
Jul 2006
Location:
Southern California
Posts:
109
Plugin Contributions:
0

Post #657 by julieoolie

I feel like an idiot for asking this but I can't figure it out. What's the url to the page where people go to subscribe? Or is there one? Was this designed just for the sidebox or header?

17 Feb 2008, 4:00 PM
#658
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Post #658 by tracib

I am getting an error message when someone tires to subscribe for newsletter only. I'm using zen cart 1.3.8, and version 2.10 of Newsletter Subscribe.

When someone enters in their e-mail address and clicks subscribe, this is the message:


Newsletter Subscription

Thank you for taking a moment to subscribe to our Newsletter.

You'll receive notices of newly available products, special offers, and news of upcoming showings.
Error This email address has not been registered.

Newsletter:HTMLTEXT-Only


When I check in my newsletters subscriptions, it doesn't show up. I checked to be sure all of the modules files were uploaded, and they are.

Here's my site:
http://www.tracibunkers.com/zen/

17 Feb 2008, 5:37 PM
#659
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Post #659 by tracib

tracib:

I am getting an error message when someone tires to subscribe for newsletter only. I'm using zen cart 1.3.8, and version 2.10 of Newsletter Subscribe.

I got it fixed. It seems the pages files were the culprit and it worked after reinstalling them.

But now I have another question. In the e-mail the customer gets, asking them to click on the link to confirm their subscription, it shows the html code instead of just having a clickable link. Where do I fix that?

Thanks!

20 Feb 2008, 4:34 PM
#660
snowkrash avatar

snowkrash

New Zenner

Join Date:
Aug 2007
Posts:
65
Plugin Contributions:
0

Post #660 by snowkrash

I just installed a fresh version for 1.3.7 dated as updated Jan 11 2008.

Everything is great except that one bug you said you were working on about the error that people get when they try to update their account, and I also have an import problem: when I tried to import an excel file with one column and in that one column only email addresses exist, I get an error:
Upload failed: The uploaded file exceeds the upload_max_filesize
but the file is about 100k with ten email addresses. What can I do?