File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed
app/code/Magento/Wishlist Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -284,20 +284,10 @@ protected function _assignProducts()
284
284
$ productCollection ->setVisibility ($ this ->_productVisibility ->getVisibleInSiteIds ());
285
285
}
286
286
287
- $ attributesToSelect = [
288
- 'name ' ,
289
- 'visibility ' ,
290
- 'small_image ' ,
291
- 'thumbnail ' ,
292
- 'links_purchased_separately ' ,
293
- 'links_title ' ,
294
- 'price_type '
295
- ];
296
-
297
287
$ productCollection ->addPriceData ()
298
288
->addTaxPercents ()
299
289
->addIdFilter ($ this ->_productIds )
300
- ->addAttributeToSelect ($ attributesToSelect )
290
+ ->addAttributeToSelect ($ this -> _wishlistConfig -> getProductAttributes () )
301
291
->addOptionsToResult ()
302
292
->addUrlRewrite ();
303
293
Original file line number Diff line number Diff line change 7
7
-->
8
8
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:module:Magento_Catalog:etc/catalog_attributes.xsd" >
9
9
<group name =" wishlist_item" >
10
+ <attribute name =" name" />
11
+ <attribute name =" small_image" />
12
+ <attribute name =" thumbnail" />
13
+ <attribute name =" links_purchased_separately" />
14
+ <attribute name =" links_title" />
15
+ <attribute name =" price_type" />
10
16
<attribute name =" visibility" />
11
17
<attribute name =" url_path" />
12
18
<attribute name =" url_key" />
You can’t perform that action at this time.
0 commit comments