Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Tell a Friend code question


Jack_mcs

Recommended Posts

When I try to use Tell A Friend, only the TO fields are marked as required. If I go ahead and send the email, the subject and body are blank. If I also fill in the FROM fields, the email looks as expected. In the tell_a_friend.php file there is this code:

 if (empty($from_name)) {
     $error = true;

     $messageStack->add('friend', ERROR_FROM_NAME);
   }

Isn't that saying to display an error if the FROM NAME is not entered? If the FROM fields are not required, why is a check performed to see if they are empty? Anyone know how this is supposed to work?

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...