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:
commit
356a2ccdbe
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in New Issue