I have a couple of things...
1. message stack/notice is not showing up when customer is not logged in and tries to write a review with Enable product reviews by guests? set to 0.
2. I had previously added reply to reviews functionality to my 1.3.9h store. I am trying to add it to this with some problems. I am hoping that someone notices and can correct my mistake/s and/or omissions.
All I have been getting is a blank page with no right side boxes, and no myDebug out put either...???
here is a list of my mods...
SQL
modules/pages/product_reviews_info/header_php.php:Code:ALTER TABLE `reviews_description` ADD `reviews_reply_text` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
languages/english/YOUR_TEMPLATE/product_reviews_info.phpCode:// addition of reviews_reply_text below $review_info_query = "SELECT rd.reviews_text, r.reviews_rating, r.reviews_id, r.customers_name, rd.reviews_reply_text, r.date_added, r.reviews_read, p.products_id, p.products_price, p.products_tax_class_id, p.products_image, p.products_model, pd.products_name FROM " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd, " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd WHERE r.reviews_id = :reviewsID AND r.reviews_id = rd.reviews_id AND rd.languages_id = :languagesID AND r.products_id = p.products_id AND p.products_status = '1' AND p.products_id = pd.products_id AND pd.language_id = :languagesID " . $review_status; $review_info_query = $db->bindVars($review_info_query, ':reviewsID', $_GET['reviews_id'], 'integer'); $review_info_query = $db->bindVars($review_info_query, ':languagesID', $_SESSION['languages_id'], 'integer'); $review_info = $db->Execute($review_info_query); $products_price = zen_get_products_display_price($review_info->fields['products_id']); $products_name = $review_info->fields['products_name']; //addition of reviews reply if ($review_info->fields['reviews_reply_text']) != '') { $reviews_reply_text = $review_info->fields['reviews_reply_text']; } if ($review_info->fields['products_model'] != '') { $products_model = '<br /><span class="smallText">[' . $review_info->fields['products_model'] . ']</span>'; } else { $products_model = ''; }
templates/YOUR_TEMPLATE/templates/tpl_product_reviews_info_default.phpCode:define('TEXT_OF_5_STARS', ''); define('TEXT_PRODUCT_INFO', 'Take Me to the Details'); define('TEXT_REVIEW_ADDITIONAL', 'Read More Reviews'); //addition of review reply heading define('TEXT_REVIEW_REPLY_HEADING','<strong>' . STORE_NAME . ''s Reply:</strong>');
My hope is to get this working properly, and then add the ability to write your reply on the "edit review" page in the admin. I am currently just writing the reply's through phpMyAdmin and then approving the review there.Code:ADDED TO THE BOTTOM, JUST BEFORE THE LAST </div> <!--bof Reviews Reply --> <br class="clearBoth"/> <?php if ($reviews_reply_text) != ''){ ?> <div id="reviewsInfoDefaultMainContent" class="content"><?php echo TEXT_REVIEW_REPLY_HEADING; ?><br /><?php echo zen_break_string(nl2br(zen_output_string_protected(stripslashes($review_info->fields['reviews_reply_text']))), 60, '-<br />'); ?></div> <?php } ?> <!--eof Reviews Reply--> </div>
The working 1.3.9 version of this is here
Non working 1.5.1 is here - (this store is not yet public!)



Reply With Quote

