/** * Get return URL * * @return string */ public function getReturnURL() { if (\XLite\Core\Request::getInstance()->action) { $profileId = \XLite\Core\Request::getInstance()->profile_id; if (!isset($profileId)) { $profileId = $this->correctProfileIdForURLParams($this->getAddress()->getProfile()->getProfileId()); } $params = isset($profileId) ? array('profile_id' => $profileId) : array(); $url = $this->buildURL('address_book', '', $params); } else { $url = parent::getReturnURL(); } return $url; }
/** * Get return URL * * @return string */ public function getReturnURL() { $url = parent::getReturnURL(); if (\XLite\Core\Request::getInstance()->action) { $target = $this->getReturnTarget(); $params = array('product_id' => $this->getProductId()); $widget = \XLite\Core\Request::getInstance()->widget; if ($widget) { $params['widget'] = $widget; } $url = $this->buildURL($target, '', $params) . '#product-details-tab-reviews'; } return $url; }