You mentioned that you have turned off the newsletter-selection box for customers. However, since the email-format-preference is determined in that section of the page, since you have supressed the ability for the customer to make such selection, it is being set to the database-default of TEXT.
To override that, do the following:
edit /includes/modules/create_account.php
around line 25, you see:
Code:
$zone_id = 0;
$error = false;
/**
* Process form contents
*/
insert two new lines in the middle of that, as shown:
Code:
$zone_id = 0;
$error = false;
$email_format = (ACCOUNT_EMAIL_PREFERENCE == '1' ? 'HTML' : 'TEXT');
$newsletter = (ACCOUNT_NEWSLETTER_STATUS == '1' ? false : true);
/**
* Process form contents
*/
You can then remove these lines from 429-430, as they will now be redundant:
Code:
if (!isset($email_format)) $email_format = (ACCOUNT_EMAIL_PREFERENCE == '1' ? 'HTML' : 'TEXT');
if (!isset($newsletter)) $newsletter = (ACCOUNT_NEWSLETTER_STATUS == '1' ? false : true);
Now all new customers will get the preference selected by the administrator, rather than their own choice.
Bookmarks