diff --git a/packages/TPS/Shop/src/Repositories/ProductRepository.php b/packages/TPS/Shop/src/Repositories/ProductRepository.php index f691494bf..af62c806f 100644 --- a/packages/TPS/Shop/src/Repositories/ProductRepository.php +++ b/packages/TPS/Shop/src/Repositories/ProductRepository.php @@ -283,12 +283,12 @@ class ProductRepository extends PRepository ->where([['product_flat.channel','=', $channel],['product_flat.locale', '=',$locale]]) ->whereNotNull(['product_flat.url_key','product_flat.special_price']) ->where(function($query){ - $query->whereNull('special_price_from') - ->orWhere('special_price_from', '>=', Carbon::now()); + $query->whereNull('product_flat.special_price_from') + ->orWhere('product_flat.special_price_from', '>=', Carbon::now()); }) ->where(function($query){ - $query->whereNull('special_price_to') - ->orWhere('special_price_to', '<=', Carbon::now()); + $query->whereNull('product_flat.special_price_to') + ->orWhere('product_flat.special_price_to', '<=', Carbon::now()); });