added kashkool 5

This commit is contained in:
2026-06-12 19:23:09 +03:30
parent 7b18009e9b
commit 11fb7272cb
2 changed files with 92 additions and 3 deletions
@@ -162,9 +162,7 @@ class ProductController extends SuperController
$displayPriceService = app(ProductDisplayPriceService::class);
$displayPriceService->enrichForApi($products);
$products->each(function (Product $product) use ($displayPriceService) {
if (! $displayPriceService->hasCustomerDisplayPrice($product)) {
$product->setAttribute('show', false);
}
$product->setAttribute('show', $displayPriceService->resolveCustomerShow($product));
});
}