Quote Originally Posted by philip937 View Post
do I change this:
$messageStack->add_session('header', REVIEWS_APPROVAL == '1' ? MESSAGE_REVIEW_SUBMITTED_APPROVAL : MESSAGE_REVIEW_SUBMITTED, 'success');

to this:
$messageStack->add_session('review_text', REVIEWS_APPROVAL == '1' ? MESSAGE_REVIEW_SUBMITTED_APPROVAL : MESSAGE_REVIEW_SUBMITTED, 'success');

is that what will make it output by this one:
<h1 id="reviewsWriteHeading"><?php echo $products_name . $products_model; ?></h1>
<?php if ($messageStack->size('review_text') > 0) echo $messageStack->output('review_text'); ?>

??
It would ... if the message was going to be displayed by the product_reviews_write page. However, upon successful recording of the review, the reviews_write processing causes a redirect to the product_reviews page and there's no messaging used by the as-shipped page template (that's why the message is sent to the header, which is available on all pages).

So, you have two choices:
  1. Change /includes/modules/pages/product_reviews_write/header_php.php to change the message stack location and comment-out the redirect to the product_reviews page (on line 138).
  2. Change /includes/modules/pages/product_reviews_write/header_php.php to change the message stack location and also edit your template's version of /includes/templates/YOUR_TEMPLATE/templates/tpl_product_reviews_default.php to add the code
    PHP Code:
    <?php if ($messageStack->size('review_text') > 0) echo $messageStack->output('review_text'); ?>
    where you want the message displayed.