
Originally Posted by
tom97zr2
As a guest, when I click on write review, the next page says "Whoops! Your session has expired.". Before this I removed the Log in and My account links/code so visitors don't see anything about logging in or signing up for an account, and so when they add a item to the cart and click go to checkout, then they go straight to the checkout page to fill in their billing address, they don't get the option to log in or create an account or ask them if they want to checkout as a guest.
If I add a product to the cart, and fill in the billing information and go to step 2 the payment page, then go back to the product page and click the write review link it will take me to the write review page. I'd like it to send you directly to that page as a visitor, so anyone can write a review of the product regardless if they purchased from my website, so they don't have to log in.
Looks like I would have to remove some sort of code that requires the visitor to log in before they can get to the write review page. hopefully that is possible to do. thanks.
I installed "Reviews Updated" on a just-installed Zen Cart v1.5.1, and was able to write a review as a guest. Is the file /includes/modules/pages/product_reviews_write/header_php.php the one that ships with this plugin? The top-most portion of the file should look like:
Code:
// This should be first line of the script:
$zco_notifier->notify('NOTIFY_HEADER_START_PRODUCT_REVIEWS_WRITE');
require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
if (REVIEWS_BY_GUESTS != '1' && !$_SESSION['customer_id']) {
$_SESSION['navigation']->set_snapshot();
$messageStack->add_session('header', MESSAGE_REVIEW_WRITE_NEEDS_LOGIN, 'caution');
zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL'));
}
I'm not sure why you're being redirected to the time_out page, but I'm also not familiar with the changes that the installation of FEC has introduced to your store.
Bookmarks