Exemplo n.º 1
0
 /**
  * Return list of the form default parameters
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $list = parent::getDefaultParams();
     $list[\XLite\Module\CDev\FeaturedProducts\View\ItemsList\Model\FeaturedProduct::PARAM_CATEGORY_ID] = \XLite\Core\Request::getInstance()->category_id ?: $this->getRootCategoryId();
     return $list;
 }
Exemplo n.º 2
0
 /**
  * Return list of the form default parameters
  *
  * @return array
  */
 protected function getDefaultParams()
 {
     $list = parent::getDefaultParams();
     $list[\XLite\Module\XC\Upselling\View\ItemsList\Model\UpsellingProduct::PARAM_PARENT_PRODUCT_ID] = \XLite\Core\Request::getInstance()->parent_product_id;
     return $list;
 }