add basket on rows, uniformize baskets

This commit is contained in:
Ludovic CANDELLIER
2023-03-21 23:16:47 +01:00
parent 06c68dd223
commit 20b3521c72
8 changed files with 52 additions and 51 deletions

View File

@@ -28,7 +28,9 @@ class CategoryController extends Controller
} else {
// $product_type = Articles::getProductTypeByCategory($category_id);
// dump($product_type);
switch ($request->input('article_nature')) {
$article_nature = $request->input('article_nature');
switch ($article_nature) {
case 'semences':
$product_type = 'botanic';
$article_nature_id = 1;
@@ -54,7 +56,7 @@ class CategoryController extends Controller
'breadcrumb' => Categories::getAncestorsByCategory($category_id),
'display_by_rows' => $request->input('display_by_rows') ?? false,
'product_type' => $product_type,
'article_nature' => $article_nature_id,
'article_nature' => $article_nature,
'tags_selected' => $request->input('tags') ?? [],
'articles' => Articles::getArticlesToSell([
'category_id' => $category_id,