File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,12 @@ public function __construct(
54
54
/**
55
55
* Get Meta attribute mapping
56
56
*
57
+ * @param int $storeId
57
58
* @return array
58
- * @throws LocalizedException
59
59
*/
60
- public function getAttributeMapping (): array
60
+ public function getAttributeMapping (int $ storeId ): array
61
61
{
62
62
$ metaAttrMappings = [];
63
- $ storeId = $ this ->_getRequest ()->getParam ('store ' );
64
63
try {
65
64
$ attributeMaps = $ this ->scopeConfig ->getValue (
66
65
self ::XML_PATH_META_CATALOG_MAPPING ,
Original file line number Diff line number Diff line change @@ -736,7 +736,7 @@ private function getWeight(Product $product)
736
736
*/
737
737
public function buildProductEntry (Product $ product )
738
738
{
739
- $ this ->attrMap = $ this ->mappingConfig ->getAttributeMapping ();
739
+ $ this ->attrMap = $ this ->mappingConfig ->getAttributeMapping ($ product -> getStoreId () );
740
740
$ product ->setCustomerGroupId (self ::NOT_LOGGED_IN_ID );
741
741
742
742
$ inventory = $ this ->getInventory ($ product );
You can’t perform that action at this time.
0 commit comments