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

Newsletter-Only Subscriptions for v1.3x

Views: 295,983

Results 1,121 to 1,140 of 1,165
4 Jul 2012, 4:08 PM
#1121
hipchickdesigns avatar

hipchickdesigns

New Zenner

Join Date:
Dec 2009
Posts:
11
Plugin Contributions:
0

Newsletter-Only Subscriptions for v1.3x

THIS DOES NOT WORK and in fact, it screwed up my database so I had to reinstall and redo everything.

Please don't post a workaround if have not tested it...

kcahir:

I have just got this package installed in version 1.5, with a few alterations listed below:

First of all copy all files over as usual.

Alteration 1. -

Ignore the directory 'admin/includes/boxes' and also everything within.

Instead create an sql file with the following and run it through Tools->Install SQL Patches (or enter query manually)

INSERT INTO admin_pages (page_key, language_key, main_page, page_params, menu_key, display_on_menu, sort_order) VALUES ('subscrip##################er', 'BOX_CUSTOMERS_SUBSCRIPTION_MANAGER', 'FILENAME_SUBSCRIPTION_MANAGER', '', 'customers', 'Y', 1000);

> 
> Alteration 2. -
> 
> Find following file 'admin/includes/functions/extra_functions/subscription_manager.php'
> 
> Search for 'TYPE=MyISAM' and replace with 'ENGINE=MyISAM'.
> 
> (Not sure if this alt is database version specific though!! - so may only require first alt)
> 
> You should now be good to Install, just go to Customers->Subscription Manager.
> 
> I have tested briefly, though not thoroughly nor on a live store, and all seems fine.
12 Jul 2012, 1:45 PM
#1122
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Newsletter-Only Subscriptions for v1.3x

HipChickDesigns:

THIS DOES NOT WORK and in fact, it screwed up my database so I had to reinstall and redo everything.Neither of theses changes would "screw up" anyone's database.. The first change would simply add the admin menu and the second is meant to apply to newer databases than when this mod was written so if your data base doesn't support the command it simply will error out.. The admin menu code posted does need a minor change as it looks like the forum parsed out some of the code particularly "subscrip##################er". (Edited to add: the forum has been configured to filters out certain words.. looks it didn't like the words s-u-b-s-c-r-i-p-t-i-o-n or ** n-e-w-s-l-e-t-t-e-r**) So if you used this code AS IS, you would have gotten errors for sure..

HipChickDesigns:

**Please don't post a workaround if have not tested it...**As for directing someone not to post a workaround??? This is a support forum for an open source application... written by volunteers and supported by the community volunteers.. People post code snippets ALL THE TIME that are tested, slightly tested, or even un-tested.. It is up to you to determine whether or not you should use them.. In the case of this code snippet, the community member clearly post that he had slightly tested the code..
I have tested briefly, though not thoroughly nor on a live store, and all seems fine.

The real issue with this mod is probably related to how it's constructed to begin with, and the fact that it's a Zen Cart v1.3.x compatible mod that modifies many files and many of these same files changed with Zen Cart v1.5.. Dr Bytes advice is the real reason to NOT use this mod..

DrByte:

You're probably far better off integrating something like the Mailchimp sidebox and having your customers signup for your newsletter that way. Then periodically export your newsletter subscribers from your store using the Email Address Exporter, and load them into your Mailchimp account.

I make that recommendation because the Mailchimp addon involves only a small handful of files. But this archaic old "Newsletter Subscribe" addon alters a zillion core files and makes upgrading a NIGHTMARE, plus results in tons of confusing support requests when someone decides to uninstall it because uninstalling isn't clean or easy.

3 Apr 2013, 4:37 PM
#1123
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

This module was working perfectly, till I messed it up.

Pulling my hair and don't know where to start?

I am now getting the Radio button choices for HTML or TEXT-Only appearing after the e-mail input box! And it wasn't there before. I need to get rid of it. :bangin:

3 Apr 2013, 10:10 PM
#1124
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

I figure out what went wrong, and wanted to share it.

I had changed the admin>Configuration>E-MailOptions>Use MIME HTML When Sending Emails to **true **from false.

That triggered the if statement in includes/templates/YourTemplate/templates/tpl_subscribe_header.php to place the radio button options of HTML or TEXT-ONLY to appear.

Since I did want to send out my e-mail notifications as HTML and did not want the choice to appear, I changed the following:

if(EMAIL_USE_HTML == 'true') {
    $content .= '<label>' . zen_draw_radio_field('email_format', 'HTML', true) . ENTRY_EMAIL_HTML_DISPLAY . '</label>';
    $content .= '<label>' . zen_draw_radio_field('email_format', 'TEXT', false) . ENTRY_EMAIL_TEXT_DISPLAY . '</label>';
  }
  $content .= zen_image_submit (BUTTON_IMAGE_SUBSCRIBE,HEADER_SUBSCRIBE_BUTTON, 'value="' . HEADER_SUBSCRIBE_BUTTON . '" ');
  $content .= '</form>';
?>

to:

  
if(EMAIL_USE_HTML == 'CHANGED FROM true TO THIS. READ ABOVE MEMO') {
    $content .= '<label>' . zen_draw_radio_field('email_format', 'HTML', true) . ENTRY_EMAIL_HTML_DISPLAY . '</label>';
    $content .= '<label>' . zen_draw_radio_field('email_format', 'TEXT', false) . ENTRY_EMAIL_TEXT_DISPLAY . '</label>';
  }
  $content .= zen_image_submit (BUTTON_IMAGE_SUBSCRIBE,HEADER_SUBSCRIBE_BUTTON, 'value="' . HEADER_SUBSCRIBE_BUTTON . '" ');
  $content .= '</form>';
?>

Make sure to add a comment of why you did this .

Or you can simply comment out that the if statement.

6 Apr 2013, 4:47 PM
#1125
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

using 1.3.9h store for this person

she used to have this installed then something happened and it seemed to have partially vanished. I reinstalled all the files and it is working once more BUT in admin when you go to the Customers/Subscription Manager to view the ones that have subscribed....the date of subscription is not quite right.

I tested it with adding my own subsription to my account -- both using the little header subscribe and the sidebox subscribe forms and both times this is what the date claims to be: 11/30/2036 not quite right I would say...lol

how can I get it to register the correct date of subscribing?

12 Feb 2014, 10:02 AM
#1126
heathenmagic avatar

heathenmagic

Totally Zenned

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

Re: Newsletter-Only Subscriptions for v1.3x

I know this is an old thread, but was wondering if the 1.5 version just released has a fix for the following:-

Parse error: syntax error, unexpected T_CASE in /*****/customers.php on line 341

I double checked and everything is there and uploaded properly. Thanks for any help with this.

23 Feb 2014, 5:12 PM
#1127
marta_van_eck avatar

marta_van_eck

New Zenner

Join Date:
Jan 2014
Location:
Essen
Posts:
25
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

i got the same problem. Was hoping someone can help me. I try to change the line 341 in customers php. Find the line customer and change it to customers as it was advice on 2 or 3 page of this thread. Still the same The only what help me was to replace the new file with the old back up version of customers.php and the problem seems to disappear.

14 Apr 2014, 9:50 PM
#1128
beyerg avatar

beyerg

New Zenner

Join Date:
Oct 2008
Posts:
61
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Can anyone direct me to a site where I can see how this add-on looks from the customer's perspective?

Thanks!

4 May 2014, 7:12 AM
#1129
jenniferxo avatar

jenniferxo

New Zenner

Join Date:
Apr 2014
Location:
Los Angeles
Posts:
41
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Hello,

I have just installed a fresh version. When I click on Customers > Subscription Manager I get:

Parse error: syntax error, unexpected T_CASE in /home/content/96/11406796/html/2014/myadmin/customers.php on line 341

Andy idea?

Thanks!

4 May 2014, 7:19 AM
#1130
jenniferxo avatar

jenniferxo

New Zenner

Join Date:
Apr 2014
Location:
Los Angeles
Posts:
41
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

It's actually when I click Customers > Customers. I don't see a Subscription Manager option in the Customers drop down menu.

4 May 2014, 7:46 AM
#1131
jenniferxo avatar

jenniferxo

New Zenner

Join Date:
Apr 2014
Location:
Los Angeles
Posts:
41
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Okay, I see I had to register the link in Admin Page and have installed it okay but I still get the parse error when I click Customers > Customers

Parse error: syntax error, unexpected T_CASE in /home/content/96/11406796/html/2014/myadmin/customers.php on line 341

7 May 2014, 2:57 PM
#1132
jenniferxo avatar

jenniferxo

New Zenner

Join Date:
Apr 2014
Location:
Los Angeles
Posts:
41
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Any suggestions?

7 May 2014, 3:06 PM
#1133
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Newsletter-Only Subscriptions for v1.3x

Just thought this post bore re-posting..

DrByte:

You're probably far better off integrating something like the Mailchimp sidebox and having your customers signup for your newsletter that way. Then periodically export your newsletter subscribers from your store using the Email Address Exporter, and load them into your Mailchimp account.

I make that recommendation because the Mailchimp addon involves only a small handful of files. But this archaic old "Newsletter Subscribe" addon alters a zillion core files and makes upgrading a NIGHTMARE, plus results in tons of confusing support requests when someone decides to uninstall it because uninstalling isn't clean or easy.

7 May 2014, 4:09 PM
#1134
jenniferxo avatar

jenniferxo

New Zenner

Join Date:
Apr 2014
Location:
Los Angeles
Posts:
41
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Thanks, I'll look into that but for now I have it installed already and don't want to create a bigger mess trying to remove it.

26 May 2014, 5:29 PM
#1135
sambenet avatar

sambenet

New Zenner

Join Date:
Jul 2011
Posts:
6
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

I'm having the same issue. Also, when i go to the customers -> customers tab, all I get is a blank page. Everything else seems to be working. I've gone as far as using Filemerge to find the file edits, but nothing stands out code wise.

23 Jun 2014, 5:59 PM
#1136
celik avatar

celik

New Zenner

Join Date:
Jun 2014
Posts:
1
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

I had the same problem. Now it is working fine for me. What I did is to only copy code sections those related to the Addon from new customer.php to the existing customer.php. Also check the folders name before copying files. Do not forget to change YOUR_TEMPLATE to your template name, and also for module name. One last thing, for those who do not see Subscription Manager under Customer menu, do not forget to register the page at Admin Access Management>Admin Page Registration with the information given Admin page registration.txt file.

sambenet:

I'm having the same issue. Also, when i go to the customers -> customers tab, all I get is a blank page. Everything else seems to be working. I've gone as far as using Filemerge to find the file edits, but nothing stands out code wise.

20 Jul 2014, 4:03 PM
#1137
sambenet avatar

sambenet

New Zenner

Join Date:
Jul 2011
Posts:
6
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Okay, new problem! I am having weird issues with data base interactions, specifically adding new subscriptions to the database. When I add new subscriptions manually through the Admin (which I do frequently), The first address works fine, but any subsequent additions get and error. The problem is that any new address is getting added with an index of 0 (subscriber number) and not at the end of the table as it should be. If I go into PHPmyAdmin and manually change the Subscriber Number to the next appropriate one, everything works fine. For exactly one entry. The other problem, which seems related, is whenever someone tries to sign up from the normal website, there is an error. I can't seems to track down exactly 'what' error, but is seems to be the same kind of issue. If the email address is already in the database, then it is properly found and the "email address is already subscribed" message properly is displayed. So, somewhere, and I can't find where, the plugin is not correctly finding the right index for the next subscription and not advancing it the way it should. If there is anyone still supporting this plugin who can help, it would be greatly appreciated.

9 Oct 2014, 10:58 AM
#1138
lina0962 avatar

lina0962

Zen Follower

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

Re: Newsletter-Only Subscriptions for v1.3x

I installed the newest newsletter add-on onto my 1.5.3 zencart store. When I upload the file in newsletter admin/customer.php. The customer/customer page went blank. When I upload the original zencart customer.php back to my store, the customer/customer page went back. All other newsletter files stayed.

I noticed somebody else reported the same issue. Did anybody figure it out?

10 Nov 2014, 5:53 PM
#1139
vincenzo79 avatar

vincenzo79

New Zenner

Join Date:
Nov 2014
Posts:
1
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

lina0962:

I installed the newest newsletter add-on onto my 1.5.3 zencart store. When I upload the file in newsletter admin/customer.php. The customer/customer page went blank. When I upload the original zencart customer.php back to my store, the customer/customer page went back. All other newsletter files stayed.

I noticed somebody else reported the same issue. Did anybody figure it out?

In the page customers.php there is an error at line 251...
This line:
if ($check_email->RecordCount() > 0) {

is double, delete one and the file is ok.... ;-)

1 Jun 2015, 3:54 PM
#1140
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Newsletter-Only Subscriptions for v1.3x

I installed this on 1.5.4 but don't see any links to firstly upgrade the database and secondly no link Subscription Manager under the customers menu. Is this ready for 1.5.4?