fix on article based on old merchandise

This commit is contained in:
Ludovic CANDELLIER
2023-03-27 21:05:37 +02:00
parent ba8f87cff4
commit 6e4f93dd65
3 changed files with 8 additions and 3 deletions

View File

@@ -29,6 +29,8 @@ class CategoryController extends Controller
// $product_type = Articles::getProductTypeByCategory($category_id);
// dump($product_type);
$article_nature = $request->input('article_nature');
// dump($article_nature);
// exit;
switch ($article_nature) {
case 'semences':
@@ -46,11 +48,14 @@ class CategoryController extends Controller
default:
$product_type = 'botanic';
$article_nature_id = 1;
$article_nature = 'semences';
break;
}
// $product_type = ArticleNatures::getProductType($article_nature_id);
// dump($product_type);
// dump($article_nature_id);
}
// exit;
$data = [
'category' => Categories::getFull($category_id),
'breadcrumb' => Categories::getAncestorsByCategory($category_id),