Forums / Templates, Stylesheets, Page Layout / Remove "Newsletters" link when logged into "My Account" (not in Admin?)

Remove "Newsletters" link when logged into "My Account" (not in Admin?)

Locked

Started by hedron on 15 Sep 2009, 6:32 AM · Views: 5,361

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
15 Sep 2009, 6:32 AM
#1
hedron avatar

hedron

Zen Follower

Join Date:
Feb 2009
Posts:
138
Plugin Contributions:
0

Remove "Newsletters" link when logged into "My Account" (not in Admin?)

Although I already turned off the 2 settings in the Admin related to the ZC Newsletter, the "Newsletters" link still shows under the "My Account" links when logged in.

Current settings:
Admin > Configuration > Customer Details > Show Newsletter Checkbox > 0
Admin > Configuration > E-Mail Options > Display "Newsletter Unsubscribe" Link? > false

The link I am referring to points to this page:
index.php?main_page=account_newsletters

Is there an Admin setting I overlooked that also turns that off, or do I have to comment out the link from the template file (which would however still keep the page available)?

The reason I need that removed is because I am implementing an external double opt in newsletter. (It would be nice if double opt in was a ZC standard by the way)

Ideas? Clues?

ZC Version 1.3.8a

17 Sep 2009, 6:31 AM
#2
hedron avatar

hedron

Zen Follower

Join Date:
Feb 2009
Posts:
138
Plugin Contributions:
0

Re: Remove "Newsletters" link when logged into "My Account" (not in Admin?)

Anyone?

17 Sep 2009, 10:58 AM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Remove "Newsletters" link when logged into "My Account" (not in Admin?)

When I use the two admin settings you referenced, that link goes away in My Account in a stock Zencart installation. It may have to do with an installed mod or other customization.

If you have a custom template, try switching to Classic temporarily and see if it still does it.

17 Sep 2009, 8:44 PM
#4
hedron avatar

hedron

Zen Follower

Join Date:
Feb 2009
Posts:
138
Plugin Contributions:
0

Re: Remove "Newsletters" link when logged into "My Account" (not in Admin?)

Ok, I can change the link of the page in my custom template to point to the custom newsletter page I created.

However, when someone is logged in, the old newsletter page is still active, so if someone bookmarked it somehow it will still show up and create confusion.

Can that page be disabled altogether?

Thank you.

17 Sep 2009, 8:50 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Remove "Newsletters" link when logged into "My Account" (not in Admin?)

So, you're saying that you're certain that a lot of your customers have bookmarked the My Account page related to newsletters?
Can you explain why you think they've done that?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 Sep 2009, 9:01 PM
#6
hedron avatar

hedron

Zen Follower

Join Date:
Feb 2009
Posts:
138
Plugin Contributions:
0

Re: Remove "Newsletters" link when logged into "My Account" (not in Admin?)

No. I am sure probably none of them have. :)

I guess it feels odd for a page that should be disabled to still be in working condition. Maybe I could put a redirect in htaccess? Or can that page be completely disabled?

A similar issue is there also for redirect EZ-Pages (those without content) if accessed directly. Should not they automatically redirect?

If I access those EZ-Pages directly they show up with just the page title, obviously, since they have no content.

Maybe I am hairsplitting, but I am just curious about this ZC functionality...

What would you do if anything?

Thank you :smile:

17 Sep 2009, 9:06 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Remove "Newsletters" link when logged into "My Account" (not in Admin?)

You can force it to trigger a page-not-found if you use your FTP program to rename the /includes/modules/pages/account_newsletter folder to account_newsletter_DISABLED

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 Sep 2009, 9:14 PM
#8
hedron avatar

hedron

Zen Follower

Join Date:
Feb 2009
Posts:
138
Plugin Contributions:
0

Re: Remove "Newsletters" link when logged into "My Account" (not in Admin?)

Arigatou Sensei Byte!

That should work. :)

How about the EZ-Pages, is that normal behavior, for the page not to redirect if accessed directly? Maybe that could be a 2.0 fix :)

17 Sep 2009, 9:40 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Remove "Newsletters" link when logged into "My Account" (not in Admin?)

hedron:

How about the EZ-Pages, is that normal behavior, for the page not to redirect if accessed directly? Maybe that could be a 2.0 fix :)

That's already a 2.0 fix.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 Sep 2009, 9:44 PM
#10
hedron avatar

hedron

Zen Follower

Join Date:
Feb 2009
Posts:
138
Plugin Contributions:
0

Re: Remove "Newsletters" link when logged into "My Account" (not in Admin?)

Great! :)