Jump to content
Sign in to follow this  
cori

Complete Reviews System Email Question

Recommended Posts

I installed the complete reviews system and at is great! It does exactly what I want... except I just noticed that the email that gets sent to the administratior notifying them to approve or reject a review is coming through with the variables in the body and email fields rather than the values for the variables.

For example.. here is the body of the email:

 

ADMIN_EMAIL_MESSAGE

 

Has anyone run into this before?

Cori

Share this post


Link to post
Share on other sites
I installed the complete reviews system and at is great! It does exactly what I want... except I just noticed that the email that gets sent to the administratior notifying them to approve or reject a review is coming through with the variables in the body and email fields rather than the values for the variables.

For example.. here is the body of the email:

 

ADMIN_EMAIL_MESSAGE

 

Has anyone run into this before?

Cori

 

make sure you have uploaded all the files in the package including this file

 

catalog/includes/languages/english/product_reviews_write.php

 

These fill in the defines that you are talking about

Edited by crash3903

Regards

 

Mark A Reynolds

Share this post


Link to post
Share on other sites

did you ever figure out the problem? I have checked and I do have all the files installed.

Share this post


Link to post
Share on other sites

I had corrected this, but hav'nt got round to updating the contrib

 

in product_reviews_write.php

 

find:

 

	  tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, ADMIN_EMAIL_SUBJECT, ADMIN_EMAIL_MESSAGE, ADMIN_EMAIL_FROM_NAME, STORE_OWNER_EMAIL_ADDRESS);
  tep_redirect(tep_href_link(FILENAME_REVIEW_NOTICE, tep_get_all_get_params(array('action'))));

 

replace with:

$name = tep_db_input($customer['customers_firstname']) . ' ' . tep_db_input($customer['customers_lastname']);
  tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, 'New Review Submitted', 'A new review has been submitted for approval, please log in and check.', $name, $email);
  tep_redirect(tep_href_link(FILENAME_REVIEW_NOTICE, tep_get_all_get_params(array('action'))));


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

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
Sign in to follow this  

×