Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo 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();
 }
Ejemplo 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());
 }
Ejemplo 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;
 }
Ejemplo 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();
 }
Ejemplo 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;
 }
Ejemplo 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();
 }