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

9 Dec 2007, 2:46 PM
#581
dml311071 avatar

dml311071

New Zenner

Join Date:
Sep 2006
Location:
Grimsby UK
Posts:
98
Plugin Contributions:
0

Post #581 by dml311071

Hi

I have been using the Newsletter v206 with ZC1.3.7 and it worked perfectly, excellent!

I have now installed ZC 1.3.8 (upgraded using the old database) and now, when I hist the subscribe button, I have the following error:

Sorry, my system does not understand your email address. Please try again.

I have removed and reinstalled (only had my own email address as a tester) but I am still getting this error!

Has anyone come across this issue? I cannot find it in the forums.

Regards

Dave

Proud to donate monthly

9 Dec 2007, 4:44 PM
#582
cjpinder avatar

cjpinder

Totally Zenned

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

Post #582 by cjpinder

dml311071:

I have now installed ZC 1.3.8 (upgraded using the old database) and now, when I hist the subscribe button, I have the following error:

Sorry, my system does not understand your email address. Please try again.

Just to clarify, do you mean you hit the subscribe button without entering an email address or when there is a valid email address in the input box?

Regards,
Christian.

9 Dec 2007, 6:55 PM
#583
dml311071 avatar

dml311071

New Zenner

Join Date:
Sep 2006
Location:
Grimsby UK
Posts:
98
Plugin Contributions:
0

Post #583 by dml311071

OMG!

Is my face red?:oops:

Must remember to engage brain before posting!

It works fine, thanks

Proud to donate monthly

10 Dec 2007, 6:01 PM
#584
jj_boja avatar

jj_boja

New Zenner

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

Post #584 by jj_boja

dml311071:

I have now installed ZC 1.3.8 (upgraded using the old database)...

Can you describe your upgrade path. Is there a Newsletter Subscribe codebase for v1.3.8? I am only seeing one for ZC v1.3.7 in the downloads section, while there are significant updates between ZC 1.3.7 and ZC 1.3.8 specifically when it comes to files that Newseltter has you override...???

P.S. At least from what I saw, a simple merge from NS 2.0.7 for ZC v1.3.7 wouldn't work (merging code for admin pages was easy, but I quickly got stuck when trying to merge files in "includes" as there are too many changes between ZC builds)...

Thanks, JJ

10 Dec 2007, 7:49 PM
#585
dml311071 avatar

dml311071

New Zenner

Join Date:
Sep 2006
Location:
Grimsby UK
Posts:
98
Plugin Contributions:
0

Post #585 by dml311071

I feel that my brain is properly engaged today (coding too many sites at once lately!) but just to clarify JJ_Boja, are you asking me how I got Newsletter Subscribe to work in ZC1.3.8?

I backed up my ZC 1.3.7 site from the host and saved the sql. I always keep a local copy of any mods for ZenCart sites in the same folder as the site files.

I then upgraded to ZC 1.3.8 using the standard upgrade method (way too long to go into here!) and added the sql at the required point. From there it was a simple case of uploading my CUSTOM files and folders into the correct places using my backed up site as a guide to the proper paths.

I only came unstuck when I hit the subscribe button without entering my email first (D'oh!) hence my embarrassment in the previous post. It now works perfectly. It's a straightforward install as long as you get your CUSTOM folder names right in the NS folders.

Trust me, I am just about getting to grips with Smarty tags and php coding! I made no core alterations as your post seems to suggest.

Oh, I tested it on XAMPP first, always a good idea!

Sorry if any of that sounded like egg sucking class, I always try to be comprehensive.

Regards

Dave

Proud to donate monthly

10 Dec 2007, 8:38 PM
#586
cjpinder avatar

cjpinder

Totally Zenned

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

Post #586 by cjpinder

JJ_Boja:

Can you describe your upgrade path. Is there a Newsletter Subscribe codebase for v1.3.8? I am only seeing one for ZC v1.3.7 in the downloads section, while there are significant updates between ZC 1.3.7 and ZC 1.3.8 specifically when it comes to files that Newseltter has you override...???
The v2.0.7 mod in the downloads section has pre-modified versions of the v1.3.7 core files. Two of these files have been altered in v1.3.8. These are...
admin/customers.php
includes/functions/function_email.php
To get the mod to work properly with v1.3.8 you will need to lift the sections marked with...
// BEGIN newsletter_subscribe mod
and
// END newsletter_subscribe mod
...out of the pre-modified v1.3.7 files and paste them into the v1.3.8 files.

NB: Do not upload the pre-modified v1.3.7 versions of those two files onto a v1.3.8 installation, it will break things in subtle ways.

Regards,
Christian.

10 Dec 2007, 9:17 PM
#587
jj_boja avatar

jj_boja

New Zenner

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

Post #587 by jj_boja

Thanks for your reply.

I got past merge changes in admin no prob. The specific file I got stuck on is the functions_email.php in includes/functions. This file around line 135 through line 154 has a boat load of differences from ZC v1.3.7. It becomes even more convoluted when you compare this file to one from NS v2.0.7 as Newsletter codebase is completely intertwined within the updates. That's the file I am struggling with - even using Araxis Merge (very robust tool that never let me down), things look too complicated to integrate.... (just take a look at the attached screenshot with ZC v1.3.8 final code on the left and NS v2.0.7 ZC 1.3.7 code on the right)...

Thanks in advance for your help, JJ

10 Dec 2007, 9:30 PM
#588
cjpinder avatar

cjpinder

Totally Zenned

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

Post #588 by cjpinder

JJ_Boja:

I got past merge changes in admin no prob. The specific file I got stuck on is the functions_email.php in includes/functions. This file around line 135 through line 154 has a boat load of differences from ZC v1.3.7.
Well....I've just finished uploading a v2.0.8 bug fix release to the contributions section and hopefully that will be available soon. v2.0.8 still uses the Zen Cart v1.3.7 core files and I wanted to get that out first for all the people still using v1.3.7.

If you can bear with me for a couple of days I should be able to sort out a proper update for v1.3.8 (unless of course someone else has already merged and tested the files :smile:).

Regards,
Christian.

10 Dec 2007, 9:45 PM
#589
jj_boja avatar

jj_boja

New Zenner

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

Post #589 by jj_boja

Thanks, I can definitely bear couple of days and if someone coud help it would be awesome. Really, really need to get NS going on a new ZC release (unfortunately I am new to PHP and have no idea whether what I merged - even in admin - actually works are not...)

Thanks a lot!

11 Dec 2007, 5:54 PM
#590
cjpinder avatar

cjpinder

Totally Zenned

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

Post #590 by cjpinder

Hi All,

V2.0.8 is now available in the downloads section. The following bugs have been fixed in this release...

admin/customers.php
  -Fixed subscription date to be set to current date instead of 2036.
  -Fixed database access in case of apostrophe in email address.
admin/subscription_manager.php
  -Fixed edit and delete not working if results sorted or filtered.
  -Fixed sorting and filtering being lost in numerous places.
includes/functions/functions_email.php
  -Fixed database access in case of apostrophe in email address.
includes/modules/pages/account_edit/header_php.php
  -Fixed database access in case of apostrophe in email address.
  -Fixed edit email address causing address'address being stored.
includes/modules/pages/subscribe/header_php.php
  -Redirect customer to My Account page if they are logged in.
  -Fixed database access in case of apostrophe in email address.
includes/templates/YOUR_TEMPLATE/sideboxes/tpl_subscribe.php
  -Removed superfluous <label> tags that messed up formatting.
  -Changed max length of email address from 30 to 90.
includes/templates/YOUR_TEMPLATE/templates/tpl_subscribe_header.php
  -Fixed email format selection not being saved.
  -Changed max length of email address from 30 to 90.

To upgrade from v2.0.7 you just need to upload the changed files detailed above.

Regards,
Christian.

11 Dec 2007, 6:38 PM
#591
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

Post #591 by dharma

Hello and thanks everyone for the recent upgrades!

I am currently running NLS V2.0.6 on Zen Cart 1.3.7

everything works fine.

I am now facing my first upgrade of ZC from 1.3.7 to the current 1.3.8

My question is, what should I do first?:

upgrade NLS (to V2.0.8 on my 1.3.7 shop) then upgrade ZC?

or

upgrade ZC 1.3.7 to 1.3.8 then upgrade NLS?

as I remember there are many ZC core files that were replaced by NLS

Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

11 Dec 2007, 7:48 PM
#592
cjpinder avatar

cjpinder

Totally Zenned

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

Post #592 by cjpinder

dharma:

I am now facing my first upgrade of ZC from 1.3.7 to the current 1.3.8
My question is, what should I do first?:
upgrade NLS (to V2.0.8 on my 1.3.7 shop) then upgrade ZC?
or
upgrade ZC 1.3.7 to 1.3.8 then upgrade NLS?
as I remember there are many ZC core files that were replaced by NLS
In theory you would upgrade to ZC 1.3.8 and then install the latest NLS. However, this mod has not yet been tested with ZC 1.3.8 and the latest downloads are for v1.3.7. Two of the core files that NLS overwrites have been modified in ZC v1.3.8, these are...
admin/customers.php
includes/functions/function_email.php
To get the mod to work properly with v1.3.8 you will need to lift the sections marked with...
// BEGIN newsletter_subscribe mod
and
// END newsletter_subscribe mod
...out of the pre-modified v1.3.7 files and paste them into the v1.3.8 files. Working out which bits go where can be a bit tricky though.

NB: Do not just upload the pre-modified v1.3.7 versions of those two files onto a v1.3.8 installation, it will break things in subtle ways.

I'm intending on putting out a ZC v1.3.8 version of the mod soon but I'm also busy doing some cart upgrades and battling with half a dozen other mods that don't work with ZC v1.3.8 yet :wacko:

Regards,
Christian.

12 Dec 2007, 11:22 AM
#593
dml311071 avatar

dml311071

New Zenner

Join Date:
Sep 2006
Location:
Grimsby UK
Posts:
98
Plugin Contributions:
0

Post #593 by dml311071

Thank you for the update CJ, I was only running a showroom with this mod so I may not have noticed some of the problems the older NS module may have caused in a live store.

I will certainly be more careful to compare upgrades in the future.

Regards

Dave

Proud to donate monthly

13 Dec 2007, 8:10 PM
#594
jj_boja avatar

jj_boja

New Zenner

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

Post #594 by jj_boja

Hi CJ, other users of NS,

Just wanted to check again if anyone found any spare cycles to figure out how to bring up NS codebase to latest ZC. Would be so nice to get it working again on v1.3.8...

JJ

14 Dec 2007, 11:45 PM
#595
robbyn7 avatar

robbyn7

Zen Follower

Join Date:
Dec 2006
Posts:
187
Plugin Contributions:
0

Post #595 by robbyn7

Hello CJPinder,

I upgraded to the latest version and now when a customer creates an account and chooses Newsletter Subscription, it doesn't appear in my Admin Subscription Manager any longer. They only show up on the Customer screen. Even if I create an account from Admin, they still don't show up on the Subscription Manager screen. What file should I edit to make this happen?

Any help is appreciated.

Thanks,

The Diva

15 Dec 2007, 12:01 AM
#596
cjpinder avatar

cjpinder

Totally Zenned

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

Post #596 by cjpinder

JJ_Boja:

Just wanted to check again if anyone found any spare cycles to figure out how to bring up NS codebase to latest ZC. Would be so nice to get it working again on v1.3.8...

Sorry, not yet. Still working on it.

Regards,
Christian.

15 Dec 2007, 12:08 AM
#597
cjpinder avatar

cjpinder

Totally Zenned

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

Post #597 by cjpinder

Robbyn7:

I upgraded to the latest version and now when a customer creates an account and chooses Newsletter Subscription, it doesn't appear in my Admin Subscription Manager any longer.
Do you mean your using the v2.0.9 I just uploaded to fix the date problem when people create an account?

The file you need to check is includes/modules/YOUR_TEMPLATE/create_account.php , where YOUR_TEMPLATE is the name of your custom template. It should be the one from the v2.0.9 zip file.

Robbyn7:

They only show up on the Customer screen. Even if I create an account from Admin, they still don't show up on the Subscription Manager screen.
I'm not quite sure what you mean by 'create an account from admin'. Can you describe what you are doing?

Regards,
Christian.

15 Dec 2007, 8:35 AM
#598
robbyn7 avatar

robbyn7

Zen Follower

Join Date:
Dec 2006
Posts:
187
Plugin Contributions:
0

Post #598 by robbyn7

CJPinder:

Do you mean your using the v2.0.9 I just uploaded to fix the date problem when people create an account?

The file you need to check is includes/modules/YOUR_TEMPLATE/create_account.php , where YOUR_TEMPLATE is the name of your custom template. It should be the one from the v2.0.9 zip file.

I'm not quite sure what you mean by 'create an account from admin'. Can you describe what you are doing?

Regards,
Christian.

Sorry for the confusion. Here's an example: I fill out the info to create a user account from the Registration screen of my store. I then click the box to choose Newsletter Subscription. Now from the Admin-Subscription Manager option, I should see the customers information and that this a Newsletter Subscriber. This doesn't happen. I only see the new account info in Admin, Customers, Customers. Not Newsletter Subscribe.

Also, if I create an account from Admin, Customers, Add Customer. I also check that I want to subscribe to the Newsletter, unfortunately again It's not showing on the Newsletter Subscribe page in Admin.

I didn't make any changes to the Create Account file because I have the referrals mod installed. I did compare the old and new file but it needs some merging.

Hope this is clearer.

15 Dec 2007, 9:57 AM
#599
cjpinder avatar

cjpinder

Totally Zenned

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

Post #599 by cjpinder

Robbyn7:

Also, if I create an account from Admin, Customers, Add Customer. I also check that I want to subscribe to the Newsletter, unfortunately again It's not showing on the Newsletter Subscribe page in Admin.
There is no Add Customer under Admin, Customers on a standard Zen Cart. I'm guessing that you have installed a mod to do this and you will have to merge the mods together.

Robbyn7:

I didn't make any changes to the Create Account file because I have the referrals mod installed. I did compare the old and new file but it needs some merging.
Without the changes to the Create Account file this mod will not work properly. You'll have to merge the changes needed with the ones that the referrals mod needs.

Regards,
Christian.

15 Dec 2007, 8:05 PM
#600
robbyn7 avatar

robbyn7

Zen Follower

Join Date:
Dec 2006
Posts:
187
Plugin Contributions:
0

Post #600 by robbyn7

CJPinder:

Without the changes to the Create Account file this mod will not work properly. You'll have to merge the changes needed with the ones that the referrals mod needs.

Regards,
Christian.

Hi Christian,

I finally merged my Create Account files and now I receive the following when I create an account:
1062 Duplicate entry '[email protected]' for key 2
in:
[INSERT INTO zen_subscribers (customers_id, email_address, email_format, confirmed) VALUES ('65', '[email protected]', 'HTML', '1')]

Thanks for your help.