Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 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();
 }