Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Red asterisks in Tell a Friend


Recommended Posts

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




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>



<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>




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




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


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

  • Create New...