Zen Cart Logo
Forums / All Other Contributions/Addons / newsletter subscription module default to html

newsletter subscription module default to html

Locked

Views: 5,829

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
5 Jul 2007, 6:40 PM
#1
tbrides avatar

tbrides

Zen Follower

Join Date:
Oct 2006
Posts:
198
Plugin Contributions:
0

newsletter subscription module default to html

Hi,

I have the newsletter subscription module installed. great mod.

anyway, when I turn on Use MIME HTML When Sending Emails from Confirguration - > Email Otpions , two radio buttons appear. one for html option another for plain text.

I don't want to give the subscriber the option. I want them to automatically sign up to the html - you can see the style problem im having with this because I dont have enough room for those check boxes.

30 Jun 2008, 9:11 PM
#2
jordana avatar

jordana

New Zenner

Join Date:
Apr 2007
Posts:
72
Plugin Contributions:
0

Re: newsletter subscription module default to html

Did you figure out how to do this? I'd like to do the same.

30 Jun 2008, 9:16 PM
#3
jordana avatar

jordana

New Zenner

Join Date:
Apr 2007
Posts:
72
Plugin Contributions:
0

Re: newsletter subscription module default to html

I tried setting it to html default here: Admin->Configuration->Customer Details->Customer Default Email Preference

On tpl_subscribe.php I commented out

 //  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>';
  // }

The radio bullet options no longer show on the sidebox like I want, but the user is subscribed as text instead of html.

19 Jul 2008, 2:54 AM
#4
ionebusiness avatar

ionebusiness

New Zenner

Join Date:
Jun 2008
Location:
Coolum Beach, QLD, Australia
Posts:
10
Plugin Contributions:
0

Re: newsletter subscription module default to html

If you want to force the client to use HTML then the easiest way to do it is to modify includes/modules/pages/subscribe/header_php.php. Simply comment out the $email_format = line and put a new one afterwards:

$email_format = 'HTML';

That will default everybody who signs up using the sidebox to HTML.

10 Aug 2008, 12:41 PM
#5
crooked_halo avatar

crooked_halo

Zen Follower

Join Date:
Feb 2008
Location:
Western Australia
Posts:
192
Plugin Contributions:
0

Re: newsletter subscription module default to html

I have commented out the line you suggested, but it has not worked. Have I missed something?

11 Sep 2008, 3:13 PM
#6
redcinamn avatar

redcinamn

Zen Follower

Join Date:
Oct 2006
Posts:
175
Plugin Contributions:
0

Re: newsletter subscription module default to html

Dont' know if you got an answer to this, found it in another post :)

Force default for html emails on customer registration **Admiin - Configuration - Customer Details - Customer Default Email Preference

~Renee
**

11 Sep 2008, 3:21 PM
#7
crooked_halo avatar

crooked_halo

Zen Follower

Join Date:
Feb 2008
Location:
Western Australia
Posts:
192
Plugin Contributions:
0

Re: newsletter subscription module default to html

Thanks for that Red. Its not quite what I was after, but it solved another problem I hadn't researched yet :smile:

11 Sep 2008, 3:36 PM
#8
daneh avatar

daneh

Zen Follower

Join Date:
Dec 2007
Location:
Southern Maine
Posts:
268
Plugin Contributions:
0

Re: newsletter subscription module default to html

As far as the room....why don't you simply add a break (<br />) to put them on their own line?

Some customers do not want html, and that is why there is a choice. I wonder how many people won't sign up for just that reason.:smile:

11 Sep 2008, 4:59 PM
#9
redcinamn avatar

redcinamn

Zen Follower

Join Date:
Oct 2006
Posts:
175
Plugin Contributions:
0

Re: newsletter subscription module default to html

If you set these two options you are not removing the "text" field but you are having the box automatically checked html instead of text. :)

Config->Customer Detail-> Show newsletter checkbox-> set to 2

then

Config->Customer Detail-> Customer Default Email Preference-> set to 1

This way like said above you wont loose sign ups due to someone wanting Text.

~Red

14 Nov 2008, 1:16 PM
#10
msmith29063 avatar

msmith29063

New Zenner

Join Date:
Jan 2008
Posts:
71
Plugin Contributions:
0

Re: newsletter subscription module default to html

If you're referring to the newsletter subscription add-on, then open:
includes/modules/pages/subscribe/header_php.php and change this line:

$email_format = empty($_POST['email_format']) ? 'TEXT' : $_POST['email_format'];

to this:

$email_format = empty($_POST['email_format']) ? 'HTML' : $_POST['email_format'];

Worked for me...

13 Dec 2008, 1:26 AM
#11
askjv avatar

askjv

New Zenner

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

Re: newsletter subscription module default to html

Yay! Thank you so much for this information.
I understand the argument about text being safer to an unknown audience but for small luxury boutiques, NOT sending html when appearance is an important factor is an equal danger these days. Also, most devices are getting smart enough to deal with html content. Between this and the post about setting gift certificate emails to html I am making progress with being able to do whatever I need with Zen Cart.