/** * Returns true if widget is visible * * @return boolean */ protected function isVisible() { /** @var \XLite\Model\Cart $cart */ $cart = $this->getCart(); return parent::isVisible() && $cart && 0 < $cart->getTotal() && \XLite\Module\CDev\Paypal\Main::isPaypalCreditEnabled($cart) && $cart->checkCart(); }
/** * Returns true if widget is visible * * @return boolean */ protected function isVisible() { /** @var \XLite\Model\Cart $cart */ $cart = $this->getCart(); return parent::isVisible() && $cart && 0 < $cart->getTotal() && $cart->checkCart(); }
/** * Returns true if widget is visible * * @return boolean */ protected function isVisible() { return parent::isVisible() && \XLite\Module\CDev\Paypal\Main::isBuyNowEnabled(); }