-
-
Save ahmadwaliesipick/36e11b2e2c28ab09ea9ef3b33c11c2e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$currentStores=[ | |
'es', | |
'sp', | |
'en', | |
'ar', | |
'it' | |
] | |
foreach ($currentStores as $currentStore){ | |
$importData[] = [ | |
'sku' => $sku, | |
'name' => $name, | |
'price' => $price, | |
'description' => $description, | |
'product_type' => $product_type, | |
'store_view_code' => $currentStore['code'], | |
]; | |
} | |
$this->importerModel->setBehavior(Import::BEHAVIOR_ADD_UPDATE); | |
$this->importerModel->setEntityCode('catalog_product'); | |
$this->importerModel->processImport($importData); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment