Fix newsletter sidebox link?

Views: 1,000

Results 1 to 4 of 4
12 Jan 2011, 8:07 PM
#1
damiancds avatar

damiancds

New Zenner

Join Date:
Aug 2009
Posts:
14
Plugin Contributions:
0

Fix newsletter sidebox link?

Is it possible to fix the Newsletter link in the information box, so that when they're subscribed, it says unsubscribe and vice versa?

Better yet, is there a way to have the link say "Newsletter" and when you click it, it will as to unsubscribe only if you're already subscribed, and ask if you want to subscribe if you're not already subscribed?

13 Jan 2011, 11:30 AM
#2
stevesh avatar

stevesh

Black Belt

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

Re: Fix newsletter sidebox link?

This is one of those 'yes, but you'll have to code it that way yourself' questions. Zencart won't do that by default.

My guess is that it wouldn't be that difficult, so someone may be along to describe how.

21 Jan 2011, 10:57 PM
#3
damiancds avatar

damiancds

New Zenner

Join Date:
Aug 2009
Posts:
14
Plugin Contributions:
0

Re: Fix newsletter sidebox link?

Is there a way to remove the link from the sidebox, but leave it in the my account page, because when i turned it off, it removed the my account link too. I think that might be the simplest solution

22 Jan 2011, 12:02 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Fix newsletter sidebox link?

You can use your templates and overrides and comment out the code for:

  if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK == 'true') {
    $information[] = '<a href="' . zen_href_link(FILENAME_UNSUBSCRIBE) . '">' . BOX_INFORMATION_UNSUBSCRIBE . '</a>';
  }

and change it to:

  if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK == 'true') {
//    $information[] = '<a href="' . zen_href_link(FILENAME_UNSUBSCRIBE) . '">' . BOX_INFORMATION_UNSUBSCRIBE . '</a>';
  }

NOTE: I would go for the better idea of taking them to a subscribe/unsubscribe ... the more the merrier ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!