示例#1
0
 /**
  * Returns additional link params
  *
  * @return array
  */
 protected function getAdditionalLinkParams()
 {
     $result = parent::getAdditionalLinkParams();
     if ($this->isInContextAvailable()) {
         $result['inContext'] = true;
     }
     return $result;
 }
示例#2
0
 /**
  * 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;
 }
示例#3
0
 /**
  * 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;
 }
示例#4
0
 /**
  * Returns true if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && \XLite\Module\CDev\Paypal\Main::isBuyNowEnabled();
 }