Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Complete Reviews System Email Question


cori

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

Link to comment
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

Link to comment
Share on other sites

  • 2 years later...

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...