add basket on rows, uniformize baskets
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user