This commit is contained in:
rahul shukla 2021-02-09 19:21:29 +05:30
parent 8ab75bb805
commit 994e19d761
1 changed files with 2 additions and 2 deletions

View File

@ -45,11 +45,11 @@ class ProductFlatRepository extends Repository
$productFlatIds = $qb->pluck('id')->toArray();
$productIds = $qb->pluck('product_flat.product_id')->toArray();
$childProductsIds = $this->model->distinct()
$childProductIds = $this->model->distinct()
->whereIn('parent_id', $productFlatIds)
->pluck('product_id')->toArray();
$productIds = array_merge($productIds, $childProductsIds);
$productIds = array_merge($productIds, $childProductIds);
$attributeValues = $this->model
->distinct()