Пример #1
0
 /**
  * Returns true if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     $cart = $this->getCart();
     return parent::isVisible() && \XLite\Module\CDev\Paypal\Main::isExpressCheckoutEnabled($cart);
 }
Пример #2
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && 'addons_list_installed' === \XLite\Core\Request::getInstance()->target && !isset(\XLite\Core\Request::getInstance()->recent);
 }
Пример #3
0
 /**
  * Returns true if widget is visible
  * 
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && \XLite\Module\CDev\Paypal\Main::isExpressCheckoutEnabled() && $this->getCart() && 0 < $this->getCart()->getTotal();
 }