File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
app/code/Meta/Catalog/Model/Product/Feed/ProductRetriever Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 21
21
namespace Meta \Catalog \Model \Product \Feed \ProductRetriever ;
22
22
23
23
use Magento \Catalog \Api \ProductRepositoryInterface ;
24
- use Magento \Catalog \Model \Product \Visibility ;
24
+ use Magento \Catalog \Model \ResourceModel \ Product \Collection as ProductCollection ;
25
25
use Magento \Framework \Api \SearchCriteriaBuilder ;
26
26
use Meta \BusinessExtension \Helper \FBEHelper ;
27
27
use Meta \BusinessExtension \Model \System \Config as SystemConfig ;
@@ -119,6 +119,7 @@ public function retrieve($offset = 1, $limit = self::LIMIT): array
119
119
{
120
120
$ storeId = $ this ->storeId ?? $ this ->fbeHelper ->getStore ()->getId ();
121
121
122
+ /** @var ProductCollection $configurableCollection */
122
123
$ configurableCollection = $ this ->productCollectionFactory ->create ();
123
124
$ configurableCollection ->addAttributeToSelect ('* ' )
124
125
->addAttributeToFilter ([
@@ -132,6 +133,7 @@ public function retrieve($offset = 1, $limit = self::LIMIT): array
132
133
]
133
134
], null , 'left ' )
134
135
->addAttributeToFilter ('type_id ' , ConfigurableType::TYPE_CODE )
136
+ ->addMediaGalleryData ()
135
137
->addStoreFilter ($ storeId )
136
138
->setStoreId ($ storeId );
137
139
Original file line number Diff line number Diff line change 22
22
23
23
use Magento \Catalog \Api \ProductRepositoryInterface ;
24
24
use Magento \Catalog \Model \Product \Visibility ;
25
+ use Magento \Catalog \Model \ResourceModel \Product \Collection as ProductCollection ;
25
26
use Magento \Framework \Api \SearchCriteriaBuilder ;
26
27
use Meta \BusinessExtension \Helper \FBEHelper ;
27
28
use Meta \BusinessExtension \Model \System \Config as SystemConfig ;
@@ -114,6 +115,7 @@ public function retrieve($offset = 1, $limit = self::LIMIT): array
114
115
115
116
$ storeId = $ this ->storeId ?? $ this ->fbeHelper ->getStore ()->getId ();
116
117
118
+ /** @var ProductCollection $collection */
117
119
$ collection = $ this ->productCollectionFactory ->create ();
118
120
$ collection ->addAttributeToSelect ('* ' )
119
121
->addAttributeToFilter ('visibility ' , ['neq ' => Visibility::VISIBILITY_NOT_VISIBLE ])
@@ -139,6 +141,7 @@ public function retrieve($offset = 1, $limit = self::LIMIT): array
139
141
'neq ' => SimpleType::TYPE_SIMPLE
140
142
],
141
143
], null , 'left ' )
144
+ ->addMediaGalleryData ()
142
145
->addStoreFilter ($ storeId )
143
146
->setStoreId ($ storeId );
144
147
Original file line number Diff line number Diff line change 21
21
namespace Meta \Catalog \Model \Product \Feed \ProductRetriever ;
22
22
23
23
use Magento \Catalog \Api \ProductRepositoryInterface ;
24
- use Magento \Catalog \Model \Product \Visibility ;
24
+ use Magento \Catalog \Model \ResourceModel \ Product \Collection as ProductCollection ;
25
25
use Magento \Framework \Api \SearchCriteriaBuilder ;
26
26
use Meta \BusinessExtension \Helper \FBEHelper ;
27
27
use Meta \BusinessExtension \Model \System \Config as SystemConfig ;
@@ -113,6 +113,7 @@ public function retrieve($offset = 1, $limit = null): array
113
113
}
114
114
$ storeId = $ this ->storeId ?? $ this ->fbeHelper ->getStore ()->getId ();
115
115
116
+ /** @var ProductCollection $collection */
116
117
$ collection = $ this ->productCollectionFactory ->create ();
117
118
$ collection ->addAttributeToSelect ('* ' )
118
119
->addAttributeToFilter ([
@@ -126,6 +127,7 @@ public function retrieve($offset = 1, $limit = null): array
126
127
]
127
128
], null , 'left ' )
128
129
->addAttributeToFilter ('type_id ' , ProductType::TYPE_SIMPLE )
130
+ ->addMediaGalleryData ()
129
131
->addStoreFilter ($ storeId )
130
132
->setStoreId ($ storeId );
131
133
You can’t perform that action at this time.
0 commit comments