roger Posted February 18, 2003 Share Posted February 18, 2003 Hi, I have searched the forum but didn't find an answer as to how you disable the newsletter subscription function in the user accounts. can anyone point me in the right direction thanks Roger Bunyan Sustainability will be achieved by a cultural change, not by technology. Link to comment Share on other sites More sharing options...
JonPKibble Posted April 16, 2003 Share Posted April 16, 2003 I too would like to know how to remove the newsletter checkbox. Link to comment Share on other sites More sharing options...
prosto Posted April 16, 2003 Share Posted April 16, 2003 in account_detais.php Find this <?php echo ENTRY_NEWSLETTER; ?> and comment it out then right below find this if ($is_read_only == true) { if ($account['customers_newsletter'] == '1') { echo ENTRY_NEWSLETTER_YES; } else { echo ENTRY_NEWSLETTER_NO; } } elseif ($processed == true) { if ($newsletter == '1') { echo ENTRY_NEWSLETTER_YES; } else { echo ENTRY_NEWSLETTER_NO; } echo tep_draw_hidden_field('newsletter'); } else { echo tep_draw_pull_down_menu('newsletter', $newsletter_array, $account['customers_newsletter']) . ' ' . ENTRY_NEWSLETTER_TEXT; } and comment the whole thing out. Worked for me Link to comment Share on other sites More sharing options...
JonPKibble Posted April 16, 2003 Share Posted April 16, 2003 Thank you Link to comment Share on other sites More sharing options...
mishagos Posted April 4, 2007 Share Posted April 4, 2007 Hi,I have searched the forum but didn't find an answer as to how you disable the newsletter subscription function in the user accounts. can anyone point me in the right direction thanks In my version of OSC (2.2 - MS2), the code recommended to change in account_details.php is actually in the admin/customers.php file To remove other instances of it (i.e., in the My Account screens and such) you will need also to edit catalog/account.php by commenting out (//--) the lines below as I have done around line 481 <td class="main"><?php //-- echo ENTRY_NEWSLETTER; ?></td> <td class="main"><?php //-- echo tep_draw_checkbox_field('newsletter', '1') . ' ' . (tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?></td> and catalog/account.php around line 212 <?php //-- echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_NEWSLETTERS . '</a>'; ?> Link to comment Share on other sites More sharing options...
mcksly Posted September 27, 2007 Share Posted September 27, 2007 I found the appropriate code to comment out.. but perhaps I am commenting it out incorrectly? This is what I did: //<?php echo ENTRY_NEWSLETTER; ?> and... //if ($is_read_only == true) { if ($account['customers_newsletter'] == '1') { echo ENTRY_NEWSLETTER_YES; } else { echo ENTRY_NEWSLETTER_NO; } } elseif ($processed == true) { if ($newsletter == '1') { echo ENTRY_NEWSLETTER_YES; } else { echo ENTRY_NEWSLETTER_NO; } echo tep_draw_hidden_field('newsletter'); } else { echo tep_draw_pull_down_menu('newsletter', $newsletter_array, $account['customers_newsletter']) . ' ' . ENTRY_NEWSLETTER_TEXT; } Should I have commented out anything else? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.