Esempio n. 1
0
 /**
  * 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;
 }
Esempio n. 2
0
 /**
  * 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;
 }
Esempio n. 3
0
 /**
  * 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;
 }
Esempio n. 4
0
 /**
  * Check - product has Description tab or not
  *
  * @return boolean
  */
 protected function hasDescription()
 {
     return parent::hasDescription() || 0 < $this->getProduct()->getAttachments()->count();
 }
Esempio n. 5
0
File: Main.php Progetto: kingsj/core
 /**
  * getDir
  *
  * @return string
  */
 protected function getDir()
 {
     return parent::getDir() . '/page';
 }
Esempio n. 6
0
 /**
  * Register CSS files
  *
  * @return array
  */
 public function getCSSFiles()
 {
     $list = parent::getCSSFiles();
     $list[] = 'modules/CDev/MarketPrice/style.css';
     return $list;
 }
Esempio n. 7
0
 /**
  * Define tabs
  *
  * @return array
  */
 protected function defineTabs()
 {
     $list = parent::defineTabs();
     $list['Reviews'] = array('list' => 'product.details.page.tab.reviews');
     return $list;
 }
Esempio n. 8
0
 /**
  * getDir
  *
  * @return string
  */
 protected function getDir()
 {
     return parent::getDir() . '/quick_look';
 }
Esempio n. 9
0
 /**
  * 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());
 }
Esempio n. 10
0
 /**
  * Register CSS files
  *
  * @return array
  */
 public function getCSSFiles()
 {
     $list = parent::getCSSFiles();
     $list[] = 'modules/CDev/ProductAdvisor/style.css';
     return $list;
 }