Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

review , no email


spacegremlin

Recommended Posts

i have the review, in the oscommerce 2.3.4.1

al works, and need to be aproved by me, before it can be seen on in the shop.

but is it true that if someone does a review, i do not receive an email?

i would assume that i would receive an email when a review is than, that has te be aproved.

all my other email all works

Link to comment
Share on other sites

You can insert a sendmail command line in the file products_review_write.php as follows:

Quote

      $messageStack->add_session('product_reviews', TEXT_REVIEW_RECEIVED, 'success');
      tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, 'A Review Has Been Submitted' , 'A review has been submitted by ' . $customer_first_name . ' on ' . $product_info['products_name'], STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
      tep_redirect(tep_href_link('product_reviews.php', tep_get_all_get_params(array('action'))));

With this mod, you will be notified of any successful review submission by email.

Link to comment
Share on other sites

2 hours ago, spacegremlin said:

it is also possible to get it there, that they also receive this mail

SEND_EXTRA_ORDER_EMAILS_TO,

Just add another mail line: 

      tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, 'A Review Has Been Submitted' , 'A review has been submitted by ' . $customer_first_name . ' on ' . $product_info['products_name'], STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
      if ('' != SEND_EXTRA_ORDER_EMAILS_TO) {
        tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, 'A Review Has Been Submitted' , 'A review has been submitted by ' . $customer_first_name . ' on ' . $product_info['products_name'], STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
      }

Look at checkout_process.php for an example. 

Always back up before making changes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...