Merge pull request #583 from jitendra-webkul/jitendra

Issue Fixed (If product visiblity is set as false than products are s…
This commit is contained in:
JItendra Singh 2019-02-15 19:44:23 +05:30 committed by GitHub
commit 356a2ccdbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -87,7 +87,7 @@ class ProductRepository extends Repository
parent::__construct($app);
}
/**
/**->where('product_flat.visible_individually', 1)
* Specify Model class name
*
* @return mixed
@ -520,6 +520,7 @@ class ProductRepository extends Repository
return $query->distinct()
->addSelect('product_flat.*')
->where('product_flat.status', 1)
->where('product_flat.visible_individually', 1)
->where('product_flat.new', 1)
->where('product_flat.channel', $channel)
->where('product_flat.locale', $locale)
@ -544,6 +545,7 @@ class ProductRepository extends Repository
return $query->distinct()
->addSelect('product_flat.*')
->where('product_flat.status', 1)
->where('product_flat.visible_individually', 1)
->where('product_flat.featured', 1)
->where('product_flat.channel', $channel)
->where('product_flat.locale', $locale)
@ -567,6 +569,7 @@ class ProductRepository extends Repository
return $query->distinct()
->addSelect('product_flat.*')
->where('product_flat.status', 1)
->where('product_flat.visible_individually', 1)
->where('product_flat.channel', $channel)
->where('product_flat.locale', $locale)
->whereNotNull('product_flat.url_key')