Zen Cart Logo
Forums / General Questions / modify account changes email preferences

modify account changes email preferences

Locked

Views: 1,180

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
9 Dec 2009, 9:17 AM
#1
rayspike avatar

rayspike

New Zenner

Join Date:
Apr 2009
Posts:
25
Plugin Contributions:
0

modify account changes email preferences

Hi,

I made some modifications. I made all emails as default on html.

Customers can't chose if they want their emails in html or text. They all get emails in html That works great (I know of course the disadvantages).

So to achieve this I must disable that in account_edit (tpl_account_edit_default.php).

I removed the code ```

<fieldset> <legend><?php echo ENTRY_EMAIL_PREFERENCE; ?></legend> <?php echo zen_draw_radio_field('email_format', 'HTML', $email_pref_html,'id="email-format-html"') . '<label class="radioButtonLabel" for="email-format-html">' . ENTRY_EMAIL_HTML_DISPLAY . '</label>' . zen_draw_radio_field('email_format', 'TEXT', $email_pref_text, 'id="email-format-text"') . '<label class="radioButtonLabel" for="email-format-text">' . ENTRY_EMAIL_TEXT_DISPLAY . '</label>'; ?> <br class="clearBoth" /> </fieldset> ```

When I do that the problem starts when users changes their account. When the change a setting, name or other field. The email preference change automatically to text.

I have a solution for this, but not very clean

<fieldset style="display:none">

What makes to remove the code, that the emailpreferences changes to text when make a modification?

21 Dec 2009, 2:45 AM
#2
kdays avatar

kdays

Zen Follower

Join Date:
May 2008
Posts:
239
Plugin Contributions:
0

Re: modify account changes email preferences

Did you want to FORCE the selection to always be HTML or do you want to set the DEFAULT selection to HTML?

6 Mar 2010, 2:32 AM
#3
theguest avatar

theguest

Zen Follower

Join Date:
Jul 2009
Posts:
117
Plugin Contributions:
0

Re: modify account changes email preferences

Has anyone figured out how to do it clean?

Thanks,
TheGuest

kdays:

Did you want to FORCE the selection to always be HTML or do you want to set the DEFAULT selection to HTML?