Browse Source

[Backend] Catégories : ordre

packProduct
Guillaume 3 years ago
parent
commit
e7a3271101
3 changed files with 2 additions and 3 deletions
  1. +1
    -0
      Model/Product/ProductCategoryModel.php
  2. +0
    -2
      Repository/Product/ProductCategoryRepositoryQuery.php
  3. +1
    -1
      Repository/Product/ProductCategoryStore.php

+ 1
- 0
Model/Product/ProductCategoryModel.php View File

$parent = $this->getParent(); $parent = $this->getParent();
$title = $parent ? $parent->getTitle() . ' - ' : ''; $title = $parent ? $parent->getTitle() . ' - ' : '';
$title .= $this->getTitle(); $title .= $this->getTitle();

return $title; return $title;
} }



+ 0
- 2
Repository/Product/ProductCategoryRepositoryQuery.php View File

return $this; return $this;
} }




public function hasProductFamilyOnline(): self public function hasProductFamilyOnline(): self
{ {
$this->joinProductFamilies(); $this->joinProductFamilies();

+ 1
- 1
Repository/Product/ProductCategoryStore.php View File



public function orderByDefault(RepositoryQueryInterface $query): RepositoryQueryInterface public function orderByDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
{ {
$query->orderBy('position');
$query->addOrderBy('.parent')->addOrderBy('.position');
return $query; return $query;
} }



Loading…
Cancel
Save