Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Newsletter Checkbox Problem


betty

Recommended Posts

Posted

Hi there!

 

Just wondering if anyone knows how to get my newsletter option on this page:

 

http://www.cukoo.co.uk/Order_Info.php

 

to look like my newsletter option on this page:

 

http://www.cukoo.co.uk/create_account.php

 

 

The first page came from a contribution I used which enables customers to checkout without creating an account. However, I prefer the look of the checkbox on create_account.php. Would it create problems if I just cut and pasted the relevant code from create_account.php into the Order_Info.php?

 

Order_Info.php code looks like this:

 

<tr>
               <td class="accountinfo"  width="130"><?php echo ENTRY_NEWSLETTER; ?></td>
               <td class="basic" width="440">
<?php
 if ($is_read_only) {
   if ($account['customers_newsletter'] == '1') {
     echo ENTRY_NEWSLETTER_YES;
   } else {
     echo ENTRY_NEWSLETTER_NO;
   }
 } elseif ($processed) {
   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;
 }
?></td>
         </tr>

 

 

create_account.php looks like this:

 

<tr>
               <td class="accountinfo" width="120"><?php echo ENTRY_NEWSLETTER; ?></td>
               <td align="left" class="basic"><?php echo tep_draw_checkbox_field('newsletter', '1') .(tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?> </td>
             <td valign="middle" class="basic">Tick this box if you would like to receive our monthly email newsletter, keeping you up to date on new products and special offers.</td>
             </tr>

 

 

Any ideas greatly appreciated!!

 

Betty

Archived

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

×
×
  • Create New...