Esempio n. 1
0
 /**
  * Get pages templates
  *
  * @return array
  */
 protected function getPageTemplates()
 {
     $list = parent::getPageTemplates();
     if (!$this->isNew()) {
         $list['auctionInc'] = 'modules/XC/AuctionInc/product.tpl';
     }
     return $list;
 }
Esempio n. 2
0
 /**
  * Get pages templates
  *
  * @return array
  */
 protected function getPageTemplates()
 {
     $tpls = parent::getPageTemplates();
     if (!$this->isNew()) {
         $tpls += array('upselling_products' => 'modules/XC/Upselling/upselling_products.tpl');
     }
     return $tpls;
 }
Esempio n. 3
0
 /**
  * Get pages templates
  *
  * @return array
  */
 protected function getPageTemplates()
 {
     $list = parent::getPageTemplates();
     if (!$this->isNew()) {
         $list['attachments'] = 'modules/CDev/FileAttachments/product_tab.tpl';
     }
     return $list;
 }
Esempio n. 4
0
 /**
  * Get pages templates
  *
  * @return array
  */
 protected function getPageTemplates()
 {
     $tpls = parent::getPageTemplates();
     if (!$this->isNew()) {
         $tpls += array('pin_codes' => 'modules/CDev/PINCodes/product/pin_codes.tpl');
     }
     return $tpls;
 }
Esempio n. 5
0
 /**
  * Get pages templates
  *
  * @return array
  */
 protected function getPageTemplates()
 {
     $list = parent::getPageTemplates();
     if (!$this->isNew()) {
         $list['product_reviews'] = 'modules/XC/Reviews/product/reviews.tpl';
     }
     return $list;
 }
Esempio n. 6
0
 /**
  * Get pages templates
  *
  * @return array
  */
 protected function getPageTemplates()
 {
     $list = parent::getPageTemplates();
     if (!$this->isNew()) {
         $list['product_options'] = 'modules/CDev/ProductOptions/product_options_lander.tpl';
     }
     return $list;
 }
Esempio n. 7
0
 /**
  * Update attributes
  *
  * @return void
  */
 protected function doActionUpdateAttributes()
 {
     foreach ($this->getProduct()->getCategoryProducts()->toArray() as $cp) {
         $categoriesToRemoveCache[] = $cp->getCategory()->getCategoryId();
     }
     if ($categoriesToRemoveCache) {
         \XLite\Core\Database::getRepo('XLite\\Model\\Category')->removeProductFilterCache($categoriesToRemoveCache);
     }
     parent::doActionUpdateAttributes();
 }
Esempio n. 8
0
 /**
  * Update inventory
  *
  * @return void
  */
 protected function doActionUpdateInventory()
 {
     parent::doActionUpdateInventory();
     \XLite\Core\Database::getRepo('\\XLite\\Module\\CDev\\Wholesale\\Model\\MinQuantity')->deleteByProduct($this->getProduct());
     \XLite\Core\Database::getRepo('\\XLite\\Module\\CDev\\Wholesale\\Model\\MinQuantity')->insertInBatch($this->getMinQuantitiesInsertInfo());
 }
Esempio n. 9
0
 /**
  * Get pages templates
  *
  * @return array
  */
 protected function getPageTemplates()
 {
     $list = parent::getPageTemplates();
     if (!$this->isNew()) {
         $list = array_merge(array_slice($list, 0, 2), array(static::PAGE_VARIANTS => 'modules/XC/ProductVariants/variants/body.tpl'), array_slice($list, 2));
     }
     return $list;
 }
Esempio n. 10
0
 /**
  * Update attributes
  *
  * @return void
  */
 protected function doActionUpdateAttributes()
 {
     $this->getProduct()->checkVariants();
     \XLite\Core\Database::getEM()->clear();
     parent::doActionUpdateAttributes();
     \XLite\Core\Database::getEM()->clear();
     $this->getProduct()->checkVariants();
 }
Esempio n. 11
0
 /**
  * Get pages templates
  *
  * @return array
  */
 protected function getPageTemplates()
 {
     $list = parent::getPageTemplates();
     if (!$this->isNew()) {
         $list['additional_info'] = 'modules/XC/PitneyBowes/product/additional.tpl';
         $list['shipping_restrictions'] = 'modules/XC/PitneyBowes/product/restrictions.tpl';
     }
     return $list;
 }
Esempio n. 12
0
 /**
  * Get model form class
  *
  * @return string
  */
 protected function getModelFormClass()
 {
     return \XLite\Core\Request::getInstance()->page == 'tabs' ? 'XLite\\Module\\XC\\CustomProductTabs\\View\\Model\\Product\\Tab' : parent::getModelFormClass();
 }