/** * Returns additional link params * * @return array */ protected function getAdditionalLinkParams() { $result = parent::getAdditionalLinkParams(); if ($this->isInContextAvailable()) { $result['inContext'] = true; } return $result; }
/** * Returns additional link params * * @return array */ protected function getAdditionalLinkParams() { $result = parent::getAdditionalLinkParams(); if ($this->isInContextAvailable()) { $result['inContext'] = true; $result['cancelUrl'] = $this->isAjax() ? $this->getReferrerURL() : \XLite\Core\URLManager::getSelfURI(); } return $result; }
/** * Returns additional link params * * @return array */ protected function getAdditionalLinkParams() { $result = parent::getAdditionalLinkParams(); if ($this->isInContextAvailable()) { $result['inContext'] = true; $result['cancelUrl'] = $this->isAjax() ? $this->getReferrerURL() : \XLite\Core\URLManager::getSelfURI(); } $result['product_id'] = $this->getParam(static::PARAM_PRODUCT_ID); $result['expressCheckout'] = true; return $result; }
/** * Returns true if widget is visible * * @return boolean */ protected function isVisible() { return parent::isVisible() && \XLite\Module\CDev\Paypal\Main::isBuyNowEnabled(); }