invoice fx

This commit is contained in:
merdan 2022-11-13 15:35:50 +05:00
parent e14e1a6d9c
commit a75cb5a528
1 changed files with 3 additions and 2 deletions

View File

@ -277,6 +277,8 @@ class ProductRepository extends WProductRepository
->where('product_flat.visible_individually', 1)
->where('product_flat.channel', $channel)
->where('product_flat.locale', $locale)
->whereNotNull('product_flat.special_price')
->where('product_flat.special_price','>',0)
->join('marketplace_products', 'product_flat.product_id', '=', 'marketplace_products.product_id')
->where('marketplace_products.marketplace_seller_id', $seller_id);
if ($categoryId) {
@ -284,8 +286,7 @@ class ProductRepository extends WProductRepository
->whereIn('product_categories.category_id', explode(',', $categoryId));
}
return $query->inRandomOrder();
})->whereNotNull('product_flat.special_price')
->where('product_flat.special_price','>',0)->paginate(10);
})->paginate(10);
return $results;
}