Jump to content
spacegremlin

review , no email

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

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×