Esempio n. 1
0
 /**
  * Calculate next position relative to our default category
  *
  * @param ProductQuery $query
  * @deprecated since 2.3, and will be removed in 2.4
  */
 protected function addCriteriaToPositionQuery($query)
 {
     // Find products in the same category
     $products = ProductCategoryQuery::create()->filterByCategoryId($this->getDefaultCategoryId())->filterByDefaultCategory(true)->select('product_id')->find();
     if ($products != null) {
         $query->filterById($products, Criteria::IN);
     }
 }