This commit is contained in:
2026-06-14 22:00:21 +03:30
parent 0c4cbd7c12
commit b021acde56
7 changed files with 119 additions and 15 deletions
+5 -1
View File
@@ -462,7 +462,11 @@ class ProductDisplayPriceService
*/
public function resolveCustomerShow(Product $product): bool
{
if (! (bool) ($product->show ?? true)) {
if (! (bool) ($product->active ?? true)) {
return false;
}
if (! app(ConfigService::class)->isProductWithinTradingHours($product)) {
return false;
}