Link from email forces customer to autenticate
new

By Daniel Dumitru, 3 years ago

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

By Daniel Dumitru, 3 years ago

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

By Daniel Dumitru, 3 years ago

@Petr - are you ok ? Are you around ?

Could you please provide an answer ?

By Daniel Dumitru, 3 years ago

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);

   }

  //}

 }

By Patryk Dębski, 3 years ago

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();

 }

By Daniel Dumitru, 3 years ago

PAtryk , the question has been asked 2 moths ago.. and this is a bug of product.

Thank you,

Daniel

By Patryk Dębski, 3 years ago

yeah i know...

By Patryk Dębski, 3 years ago

yeah i know...