Link from email forces customer to autenticate
new
Hello,
On emails sent , review link forces user to autenticate even if I have configured to allow anonymous review:
Also I would like that the link from email to point to product page and to pop-up the review modal window
https://www.dioda.ro/module/revws/EmailAction?id=28&action=review&product-id=5748&rating=5&secret=2974237e2144ba7f9f669bb6f6c69e5c
What should change in above link ?
Thank you,
Daniel
Please tell me where I have to modify the link sent on email. I promise to be last (almost) question that I raise !
Thank you,
Daniel
@Petr - are you ok ? Are you around ?
Could you please provide an answer ?
I have found that in in front controllers "EmailAction.php" is this first test with autoLogin.
I have commented this test and now it's working as I would like.
However I do not think that this is the best action to solve this.
Daniel
private function reviewProduct(RevwsEmail $email) {
$email->markClicked();
$productId = (int)$this->getValueOrThrow('product-id');
//if ($this->autoLogin($email->getCustomer())) {
// $this->openMyReviewsUrl($productId);
//} else {
if ($this->module->getSettings()->allowGuestReviews()) {
$this->openProductUrl($productId, true);
} else {
$this->openMyReviewsUrl($productId);
}
//}
}
this fix problem, overwrite this function
private function autoLogin(Customer $customer) {
if ($this->context->customer->isLogged() && $customer && $customer->active) {
$this->context->updateCustomer($customer);
return true;
}
return $this->context->customer->isLogged();
}
PAtryk , the question has been asked 2 moths ago.. and this is a bug of product.
Thank you,
Daniel
yeah i know...
yeah i know...