コード例 #1
0
ファイル: Product.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Get pages templates
  *
  * @return array
  */
 protected function getPageTemplates()
 {
     $list = parent::getPageTemplates();
     if (!$this->isNew()) {
         $list['auctionInc'] = 'modules/XC/AuctionInc/product.tpl';
     }
     return $list;
 }
コード例 #2
0
ファイル: Product.php プロジェクト: kirkbauer2/kirkxc
 /**
  * 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;
 }
コード例 #3
0
ファイル: Product.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Get pages templates
  *
  * @return array
  */
 protected function getPageTemplates()
 {
     $list = parent::getPageTemplates();
     if (!$this->isNew()) {
         $list['attachments'] = 'modules/CDev/FileAttachments/product_tab.tpl';
     }
     return $list;
 }
コード例 #4
0
ファイル: Product.php プロジェクト: kewaunited/xcart
 /**
  * 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;
 }
コード例 #5
0
ファイル: Product.php プロジェクト: kirkbauer2/kirkxc
 /**
  * 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;
 }
コード例 #6
0
ファイル: Product.php プロジェクト: kingsj/core
 /**
  * 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;
 }
コード例 #7
0
ファイル: Product.php プロジェクト: kewaunited/xcart
 /**
  * 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();
 }
コード例 #8
0
ファイル: Product.php プロジェクト: kirkbauer2/kirkxc
 /**
  * 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());
 }
コード例 #9
0
ファイル: Product.php プロジェクト: kewaunited/xcart
 /**
  * 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;
 }
コード例 #10
0
ファイル: Product.php プロジェクト: kirkbauer2/kirkxc
 /**
  * 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();
 }
コード例 #11
0
ファイル: Product.php プロジェクト: kirkbauer2/kirkxc
 /**
  * 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;
 }
コード例 #12
0
ファイル: Product.php プロジェクト: kirkbauer2/kirkxc
 /**
  * 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();
 }