Esempio n. 1
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->isCategoryVisible() && $this->hasSubcategories();
 }
Esempio n. 2
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() || $this->isExported();
 }
Esempio n. 3
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getBody();
 }
Esempio n. 4
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && \XLite\Core\Auth::getInstance()->isLogged();
 }
Esempio n. 5
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getPaymentMethod();
 }
Esempio n. 6
0
 /**
  * Check widget visible
  *
  * @return boolean
  */
 public function isVisible()
 {
     return parent::isVisible() && $this->getPaymentMethod() && $this->getPaymentMethod()->getProcessor() && $this->getPaymentMethod()->getProcessor()->getSettingsWidget();
 }
Esempio n. 7
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     $result = parent::isVisible() && (Paypal\Main::isPaypalCreditEnabled() || Paypal\Main::isPaypalWPSEnabled()) && $this->isValidTarget() && $this->getPublisherId() && $this->getSetting('agreement');
     if ($result) {
         $settingName = 'bannerOn' . ucfirst($this->getParam(static::PARAM_PAGE));
         $result = $this->getParam(static::PARAM_POSITION) == $this->getSetting($settingName);
     }
     return $result;
 }
Esempio n. 8
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getCart()->getOrigProfile() && !$this->getCart()->getOrigProfile()->getOrder();
 }
Esempio n. 9
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     $config = \XLite\Core\Config::getInstance()->CDev->Paypal;
     return parent::isVisible() && $this->isRootAccess() && 1 != \XLite\Core\Session::getInstance()->hide_welcome_block_paypal && 'Y' == $config->show_admin_welcome;
 }