added setting for user
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user