zeberrun Posted June 4, 2009 Share Posted June 4, 2009 from products_write_review.php if not registered customer, i must write "please login first" require('includes/application_top.php'); if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); echo "LOGIN" ; } $product_info_query = tep_db_query("select p.products_id, p.products_model, p.products_image, p.products_price, p.products_tax_class_id, p.fr_currencies_id, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'"); if (!tep_db_num_rows($product_info_query)) { tep_redirect(tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params(array('action')))); } else { $product_info = tep_db_fetch_array($product_info_query); } Link to comment Share on other sites More sharing options...
steve_s Posted June 4, 2009 Share Posted June 4, 2009 from products_write_review.phpif not registered customer, i must write "please login first" require('includes/application_top.php'); if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); echo "LOGIN" ; } $product_info_query = tep_db_query("select p.products_id, p.products_model, p.products_image, p.products_price, p.products_tax_class_id, p.fr_currencies_id, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'"); if (!tep_db_num_rows($product_info_query)) { tep_redirect(tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params(array('action')))); } else { $product_info = tep_db_fetch_array($product_info_query); } add in includes/languages/xxx/product_reviews_write.php define('LOGIN', 'Please log in first'); before the ?> Link to comment Share on other sites More sharing options...
zeberrun Posted June 4, 2009 Author Share Posted June 4, 2009 thanks, but the review box is seen. i want customer to stop with login message, after login, be able to write review. thx Link to comment Share on other sites More sharing options...
steve_s Posted June 5, 2009 Share Posted June 5, 2009 thanks, but the review box is seen.i want customer to stop with login message, after login, be able to write review. thx Im sure there is some where in admin where you can set it, that they have to login to write a review something like allow guest to write reviews false but im damned if i can find it Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.