/** * Register CSS files * * @return array */ public function getCSSFiles() { $list = parent::getCSSFiles(); $list[] = 'modules/CDev/Wholesale/product_price/style.css'; $list[] = 'modules/CDev/Wholesale/min_quantity/style.css'; return $list; }
/** * Define tabs * * @return array */ protected function defineTabs() { $list = parent::defineTabs(); if (\XLite\Core\Config::getInstance()->CDev->GoSocial->fb_comments_use) { $list['Comments'] = array('list' => 'product.details.page.tab.comments'); } return $list; }
/** * Define tabs * * @return array */ protected function defineTabs() { $list = parent::defineTabs(); $weight = 5000; foreach ($this->getProduct()->getTabs() as $tab) { if ($tab->getEnabled()) { $list['tab' . $tab->getId()] = array('widget' => '\\XLite\\Module\\XC\\CustomProductTabs\\View\\Tab', 'parameters' => array('tab' => $tab), 'name' => $tab->getName(), 'weight' => $weight); $weight++; } } return $list; }
/** * Check - product has Description tab or not * * @return boolean */ protected function hasDescription() { return parent::hasDescription() || 0 < $this->getProduct()->getAttachments()->count(); }
/** * getDir * * @return string */ protected function getDir() { return parent::getDir() . '/page'; }
/** * Register CSS files * * @return array */ public function getCSSFiles() { $list = parent::getCSSFiles(); $list[] = 'modules/CDev/MarketPrice/style.css'; return $list; }
/** * Define tabs * * @return array */ protected function defineTabs() { $list = parent::defineTabs(); $list['Reviews'] = array('list' => 'product.details.page.tab.reviews'); return $list; }
/** * getDir * * @return string */ protected function getDir() { return parent::getDir() . '/quick_look'; }
/** * Check - loupe icon is visible or not * * @return boolean */ protected function isLoupeVisible() { $repo = \XLite\Core\Database::getRepo('\\XLite\\Module\\XC\\ProductVariants\\Model\\Image\\ProductVariant\\Image'); return parent::isLoupeVisible() || $repo->countByProduct($this->getProduct()); }
/** * Register CSS files * * @return array */ public function getCSSFiles() { $list = parent::getCSSFiles(); $list[] = 'modules/CDev/ProductAdvisor/style.css'; return $list; }