Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing Options: Newsletter


ChrisJChrisJ

Recommended Posts

Posted

It's near the bottom. You'll see it if you look carefully. Don't forget to remove it from the account file, too, since it will show up as an option.

Posted
It's near the bottom. You'll see it if you look carefully. Don't forget to remove it from the account file, too, since it will show up as an option.

 

Thanks for your advice. I commented-out the "Options" and "Newsletter", but how and exactly which lines do I commented out to remove the box they were in?

 

Also, you said "Don't forget to remove it from the account file".

 

Could you be more specific? What Account file? And where in that file, please?

 

Thanks again.

Posted

Well, I removed mine a while ago to use phplist instead of the stock newsletter so I can tell you exactly where they are. I just wanted to point out that it will appear in a customer's account when they log in. If you delete the option at create_account, it will just show that they haven't signed up yet, and would they like to...

So, if you're doing it to use a different newsletter elsewhere on your site it would confuse them.

The box you mention will actually be a table with a border of 1px, I think. Look for that and change the border to 0 or try dropping the table. Just be careful. You can muck up the table structure easliy and throw off the whole layout of your site. One tr here another td there and you're cooked. Good luck! :thumbsup:

Posted

This is the code to remove to completely delete the Newsletter box:

 

<tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
       <td class="main"><b><?php echo CATEGORY_OPTIONS; ?></b></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" cellspacing="2" cellpadding="2">
             <tr>
               <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>
             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>

 

Vger

Posted
This is the code to remove to completely delete the Newsletter box:

 

<tr>
? ? ? ?<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
? ? ?</tr>
? ? ?<tr>
? ? ? ?<td class="main"><b><?php echo CATEGORY_OPTIONS; ?></b></td>
? ? ?</tr>
? ? ?<tr>
? ? ? ?<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
? ? ? ? ?<tr class="infoBoxContents">
? ? ? ? ? ?<td><table border="0" cellspacing="2" cellpadding="2">
? ? ? ? ? ? ?<tr>
? ? ? ? ? ? ? ?<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>
? ? ? ? ? ? ?</tr>


? ? ? ? ? ?</table></td>
? ? ? ? ?</tr>
? ? ? ?</table></td>
? ? ?</tr>

 

Vger

 

 

Thanks for your reply and assistance.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...