/** * Returns true if widget is visible * * @return boolean */ protected function isVisible() { $cart = $this->getCart(); return parent::isVisible() && \XLite\Module\CDev\Paypal\Main::isExpressCheckoutEnabled($cart); }
/** * 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); }
/** * 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(); }