added setting for user

This commit is contained in:
2026-08-16 22:00:23 +03:30
parent c3c3a60088
commit bd8284e4f8
11 changed files with 769 additions and 12 deletions
@@ -572,6 +572,11 @@ class ProductController extends SuperController
$products->each(function (Product $product) use ($displayPriceService) {
$product->setAttribute('show', $displayPriceService->resolveCustomerShow($product));
});
$customerId = (int) (auth('customer')->id() ?? 0);
if ($customerId > 0) {
app(\App\Services\CustomerSpecialPricingService::class)->applyToProducts($products, $customerId);
}
}
/**