fix bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user