Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Red asterisks in Tell a Friend


madsg

Recommended Posts

How to add red asterisks at all required fields in Tell a Friend.

 

Hi,

 

I had a problem that my 'Tell a friend' page would not work unless the sender specified name and email. But those fields did not have the red asterisks that showed them to be required fields.

I got around it with the following fairly easy hack:

 

 

In catalog/tell_a_friend.php (around line 227 and 231), find:

 

<td class="main"><?php echo tep_draw_input_field('from_name'); ?></td>

 

and

<td class="main"><?php echo tep_draw_input_field('from_email_address'); ?></td>

 

 

Then change them to:

 

<td class="main"><?php echo tep_draw_input_field('from_name') . ' <span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>'; ?></td>

 

and

 

<td class="main"><?php echo tep_draw_input_field('from_email_address') . ' <span class="inputRequirement">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>'; ?></td>

 

respectively.

 

Your installation might not require the sender to specify name and email, in that case you can ignore this.

I just thought someone might need it.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...