Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tell a friend


midpen

Recommended Posts

In "tell a friend" page,

 

Your Details

 

Your Name:

Your E-Mail Address:

 

are Required information as well.

 

How to add the * mark beside?

 

Thanks.

I disabled Tell A Friend so I don't know if there's a validator that checks for required fields. Not sure if it'd work, but there's at least two ways I think you could go about this. Manually add it to catalog/tell_a_friend.php or modify catalog/includes/languages/english/tell_a_friend.php. The latter is probably the better way.

Link to comment
Share on other sites

Thanks Kevin.

 

I still can not find where to add the *

 

In "tell a friend" page:

 

Your Details * Required information

 

Your Name:

Your E-Mail Address:

 

 

 

Your Friends Details

Your Friends Name: *

Your Friends E-Mail Address: *

 

Only the last two fields have *

In fact the first two are required infomatin too, should have * beside.

 

Where to add it?

Link to comment
Share on other sites

Where to add it?

At catalog/tell_a_friend.php:

  <tr>
  <td class="main"><?php echo FORM_FIELD_CUSTOMER_NAME; ?> <!-- Here //--> </td>
  <td class="main"><?php echo tep_draw_input_field('from_name'); ?></td>
 </tr>
 <tr>
  <td class="main"><?php echo FORM_FIELD_CUSTOMER_EMAIL; ?> <!-- And Here //--> </td>
  <td class="main"><?php echo tep_draw_input_field('from_email_address'); ?></td>
 </tr>

 

Or at catalog/includes/languages/english/tell_a_friend.php:

define('FORM_FIELD_CUSTOMER_NAME', 'Your Name:');
define('FORM_FIELD_CUSTOMER_EMAIL', 'Your E-Mail Address:');

 

You could also probably mimic the coding for Your Friends Name and Your Friends E-Mail Address to:

 

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

Link to comment
Share on other sites

 

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

 

Thanks Kevin. I found it and added the *

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...