/** * Register JS files * * @return array */ public function getJSFiles() { $list = parent::getJSFiles(); $list[] = $this->getDir() . '/welcome/script.js'; return $list; }
/** * Check if widget is visible * * @return boolean */ protected function isVisible() { return parent::isVisible() && \XLite\Module\CDev\XPaymentsConnector\Core\Settings::hasPaymentMethods(); }
/** * Check if widget is visible * * @return boolean */ protected function isVisible() { return parent::isVisible() && \XLite\Module\CDev\XPaymentsConnector\Core\XPaymentsClient::getInstance()->isModuleConfigured(); }