This commit is contained in:
2026-06-13 11:17:32 +03:30
parent acb69394cf
commit f8c96a420f
7 changed files with 206 additions and 6 deletions
@@ -18,6 +18,7 @@ use App\Services\ConfigService;
use App\Services\ProductDisplayPriceService;
use App\Services\ProductPriceService;
use App\Services\ProductPriceSyncService;
use App\Services\CategoryService;
use Illuminate\Support\Facades\Schema;
@@ -161,6 +162,9 @@ class ProductController extends SuperController
}
$products = Product::with(['file'])->where('active', 1)->get();
$categoryService = app(CategoryService::class);
$products = $categoryService->filterProductsByVisibleCategories($products);
$products = $categoryService->sortProductsForStore($products);
if (str_contains(request()->path(), '/customer/')) {
$products->each(function (Product $product) {