/** * Get pages templates * * @return array */ protected function getPageTemplates() { $list = parent::getPageTemplates(); if (!$this->isNew()) { $list['auctionInc'] = 'modules/XC/AuctionInc/product.tpl'; } return $list; }
/** * 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; }
/** * Get pages templates * * @return array */ protected function getPageTemplates() { $list = parent::getPageTemplates(); if (!$this->isNew()) { $list['attachments'] = 'modules/CDev/FileAttachments/product_tab.tpl'; } return $list; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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(); }
/** * 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()); }
/** * 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; }
/** * 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(); }
/** * 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; }
/** * 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(); }