20 if ($this->sessionHelper->isPersistent()) {
21 $this->sessionHelper->getSession()->removePersistentCookie();
22 if (!$this->customerSession->isLoggedIn()) {
23 $this->customerSession->setCustomerId(
null)->setCustomerGroupId(
null);
25 $this->quoteManager->setGuest();
27 $checkoutUrl = $this->
_redirect->getRefererUrl();
29 $resultRedirect = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT);
30 $resultRedirect->setUrl($checkoutUrl . (strpos($checkoutUrl,
'?') ?
'&' :
'?') .
'register');
31 return $resultRedirect;
_redirect($path, $arguments=[])