@@ -348,11 +348,7 @@ protected function getNonAnchorCategoriesSelect(Store $store)
348
348
\Magento \Catalog \Model \Product \Attribute \Source \Status::STATUS_ENABLED
349
349
)->where (
350
350
$ this ->connection ->getIfNullSql ('cpvs.value ' , 'cpvd.value ' ) . ' IN (?) ' ,
351
- [
352
- \Magento \Catalog \Model \Product \Visibility::VISIBILITY_IN_CATALOG ,
353
- \Magento \Catalog \Model \Product \Visibility::VISIBILITY_IN_SEARCH ,
354
- \Magento \Catalog \Model \Product \Visibility::VISIBILITY_BOTH
355
- ]
351
+ $ this ->config ->getVisibility ()->getVisibleInSiteIds ()
356
352
)->columns (
357
353
[
358
354
'category_id ' => 'cc.entity_id ' ,
@@ -593,11 +589,7 @@ protected function createAnchorSelect(Store $store)
593
589
\Magento \Catalog \Model \Product \Attribute \Source \Status::STATUS_ENABLED
594
590
)->where (
595
591
$ this ->connection ->getIfNullSql ('cpvs.value ' , 'cpvd.value ' ) . ' IN (?) ' ,
596
- [
597
- \Magento \Catalog \Model \Product \Visibility::VISIBILITY_IN_CATALOG ,
598
- \Magento \Catalog \Model \Product \Visibility::VISIBILITY_IN_SEARCH ,
599
- \Magento \Catalog \Model \Product \Visibility::VISIBILITY_BOTH
600
- ]
592
+ $ this ->config ->getVisibility ()->getVisibleInSiteIds ()
601
593
)->where (
602
594
$ this ->connection ->getIfNullSql ('ccas.value ' , 'ccad.value ' ) . ' = ? ' ,
603
595
1
@@ -841,11 +833,7 @@ protected function getAllProducts(Store $store)
841
833
\Magento \Catalog \Model \Product \Attribute \Source \Status::STATUS_ENABLED
842
834
)->where (
843
835
$ this ->connection ->getIfNullSql ('cpvs.value ' , 'cpvd.value ' ) . ' IN (?) ' ,
844
- [
845
- \Magento \Catalog \Model \Product \Visibility::VISIBILITY_IN_CATALOG ,
846
- \Magento \Catalog \Model \Product \Visibility::VISIBILITY_IN_SEARCH ,
847
- \Magento \Catalog \Model \Product \Visibility::VISIBILITY_BOTH
848
- ]
836
+ $ this ->config ->getVisibility ()->getVisibleInSiteIds ()
849
837
)->group (
850
838
'cp.entity_id '
851
839
)->columns (
0 commit comments