Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Wyomind\MassStockUpdate\Model; use \Wyomind\Core\Helper\Progress as Prog..
Decoded Output download
<?php
namespace Wyomind\MassStockUpdate\Model; use \Wyomind\Core\Helper\Progress as ProgressHelper; class Profiles extends
\Magento\Framework\Model\AbstractModel {public $xc9=null;public $x1a=null;public $x20=null; public $module = "MassStockUpdate"; public $name = "Mass Stock Update"; protected $_helperClass = null; protected $_storageHelper = null; protected $_dataHelper = null; protected $_coreHelper = null; protected $_appResource = null; protected $_productCollectionFactory = null; protected $_dateTime = null; public $_params = []; public $_products = []; protected $objectManager; protected $_identifierCode = "sku"; public $_success = array(); public $_warnings = array(); public $_notices = array(); public $error = "Invalid License!"; protected $_indexerFactory; protected $_ioWrite = null; protected $_ioRead = null; protected $parentSku = []; protected $_urlPersistInterface; protected $_productUrlRewriteGenerator; public function __construct( \Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Wyomind\MassStockUpdate\Helper\Storage $storageHelper, \Wyomind\MassStockUpdate\Helper\Data $dataHelper, \Wyomind\Core\Helper\Data $coreHelper, \Magento\Framework\Indexer\IndexerInterfaceFactory $indexerFactory, \Magento\Framework\Filesystem $filesystem, \Magento\Framework\App\ResourceConnection $appResource, \Wyomind\MassStockUpdate\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory, \Magento\UrlRewrite\Model\UrlPersistInterface $urlPersistInterface, \Magento\CatalogUrlRewrite\Model\ProductUrlRewriteGeneratorFactory $productUrlRewriteGenerator, \Magento\Framework\Stdlib\DateTime\DateTime $dateTime, \Magento\Framework\ObjectManagerInterface $objectManager, \Magento\Framework\Model\ResourceModel\AbstractResource $abstractResource = null, \Magento\Framework\Data\Collection\AbstractDb $abstractDb = null, array $data = [] ) { $coreHelper->constructor($this, func_get_args(), __CLASS__); $this->{$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->xa7e}}} = "\\Wyomind\\" . $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xa69}}} . "\\Helper\\Data"; $this->{$this->x1a->xa26->{$this->x1a->xa26->{$this->x20->xa26->{$this->x1a->xa26->xb31}}}} = $this->{$this->xc9->xa4f->x1d9a} . " - " . $this->{$this->x1a->xa26->{$this->x20->xa26->xb2a}}; $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}} = $storageHelper; $this->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->xa9d}}}} = $dataHelper; $this->{$this->x20->xa26->{$this->x1a->xa26->{$this->x20->xa26->xb41}}} = $indexerFactory; $this->{$this->x1a->xa26->{$this->xc9->xa26->{$this->x20->xa26->xaaf}}} = $coreHelper; $this->{$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->xabb}}} = $appResource; $this->{$this->x20->xa26->{$this->x1a->xa26->xac3}} = $productCollectionFactory; ${$this->x20->xa5c->{$this->xc9->xa5c->x3209}} = $this->{$this->xc9->xa4f->x1dbf}; ${$this->xc9->xa4f->{$this->xc9->xa4f->x1f16}} = ${$this->x20->xa4f->x1f07}->{$this->x1a->xa26->x151c}("core_read"); $this->tableCpe = ${$this->x20->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->{$this->xc9->xa4f->x1f0e}}}}->{$this->x1a->xa26->x152c}("catalog_product_entity"); $this->{$this->xc9->xa26->{$this->x20->xa26->xad0}} = $dateTime; $this->{$this->x1a->xa26->{$this->xc9->xa26->xb54}} = $filesystem->{$this->x1a->xa26->x1536}(\Magento\Framework\App\Filesystem\DirectoryList::ROOT); $this->{$this->x1a->xa26->{$this->x1a->xa26->{$this->x20->xa26->{$this->x1a->xa26->xb69}}}} = $filesystem->{$this->x1a->xa26->x1536}(\Magento\Framework\App\Filesystem\DirectoryList::ROOT); $this->{$this->x20->xa4f->{$this->x20->xa4f->x1e62}} = $urlPersistInterface; $this->{$this->x1a->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->x1a->xa26->xb99}}}} = $productUrlRewriteGenerator; parent::__construct($context, $registry, $abstractResource, $abstractDb, $data); $this->{$this->x20->xa26->{$this->xc9->xa26->xaef}} = $objectManager; $this->progressHelper = $objectManager->{$this->x1a->xa26->x156d}("Wyomind\\" . $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xa69}}} . "\\Helper\\Progress"); } protected function _construct() { $this->{$this->x20->xa26->x1580}('Wyomind\\' . $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xa69}}} . '\Model\ResourceModel\Profiles'); } protected function extractParams($x11b = null) {$x122 = $this->xc9->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x379e}};$xe9 = $this->x1a->xa5c->x37a2;$xf7 = $this->xc9->xa5c->x37b1;$x105 = $this->xc9->xa26->x1205;$x10f = $this->xc9->xa4f->{$this->x1a->xa4f->x24ea}; $this->progressHelper->log(__("Collecting parameters"), false); ${$this->x1a->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->x1f3b}}} = $this->{$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->xabb}}}; ${$this->x1a->xa26->xc76} = ${$this->x1a->xa5c->x321a}->{$this->x1a->xa26->x151c}("core_read"); ${$this->x1a->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x1f53}}} = ${$this->x1a->xa5c->x321a}->{$this->x1a->xa26->x152c}($xe9($this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xa69}}}) . "_profiles"); ${$this->xc9->xa5c->x323b} = ${$this->x20->xa5c->{$this->xc9->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->x322c}}}}->{$this->x1a->xa26->x15aa}(${$this->x1a->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x1f55}}}}}); foreach ($xf7(${$this->xc9->xa5c->{$this->x20->xa5c->x323e}}) as ${$this->x20->xa4f->{$this->x1a->xa4f->x1f64}}) { $this->{$this->x20->xa4f->x1ded}[${$this->x20->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x1f66}}}] = (${$this->x1a->xa5c->x3213} !== null && ($x105(${$this->xc9->xa4f->x1f22}->{$this->x20->xa26->x15b6}(${$this->x1a->xa4f->x1f62})) || $x10f(${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->x1f2e}}}}}->{$this->x20->xa26->x15b6}(${$this->x1a->xa4f->x1f62})))) ? ${$this->xc9->xa5c->{$this->xc9->xa5c->x3216}}->{$this->x20->xa26->x15b6}(${$this->x1a->xa4f->x1f62}) : $this->{$this->x1a->xa26->x15dc}(${$this->x1a->xa4f->x1f62}); } $this->progressHelper->log(__("Parameters collected"), false); return $this->{$this->x20->xa4f->x1ded}; } public function getImportData($x144 = null, $x158 = INF, $x15c = false) {$x169 = $this->x1a->xa4f->x24f2;$x167 = $this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->x1226}};$x16f = $this->x1a->xa4f->{$this->x20->xa4f->x250e};$x176 = $this->x1a->xa5c->{$this->x1a->xa5c->x37ff}; try { $this->progressHelper->log(__("Retrieving data"), false); if (${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->x3258}}} == null) { ${$this->x1a->xa5c->{$this->xc9->xa5c->x3276}} = $this->{$this->x1a->xa26->{$this->x1a->xa26->x1172}}(${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->x3258}}}); } else { ${$this->x1a->xa5c->{$this->xc9->xa5c->x3276}} = ${$this->x20->xa4f->x1f68}->{$this->xc9->xa26->x15f0}(); } if (${$this->x1a->xa26->xcbd}['file_path'] == "") { return ['error' => true, 'message' => __("No data preview available until source file is added.<br/><br/>Minimize this screen, and add a new source file under the \"File Location\" settings.")]; } ${$this->xc9->xa4f->x1f97} = $this->{$this->x1a->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa90}}}->{$this->xc9->xa26->x15fd}(${$this->x1a->xa5c->x3272}); ${$this->x1a->xa26->{$this->x20->xa26->{$this->x20->xa26->xcd2}}} = $this->{$this->xc9->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xa98}}}->{$this->x1a->xa26->x15dc}(${$this->x1a->xa5c->{$this->x1a->xa5c->x3278}}, ${$this->xc9->xa26->{$this->x1a->xa26->xcc0}}, ${$this->x1a->xa5c->x325a}, ${$this->xc9->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x1f81}}}); if (isset(${$this->xc9->xa4f->x1fa1}["data"])) { $this->progressHelper->log(__("Data retrieved : %1 rows found", $x167(${$this->x20->xa26->xccb}['data'])), false); } $this->progressHelper->log(__('Removing tmp file : %1', ${$this->xc9->xa26->{$this->xc9->xa26->xcc8}}), false); $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->{$this->xc9->xa26->x161b}($x16f(${$this->x1a->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->x1f9e}}}), $x176(${$this->x1a->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->x1f9e}}})); return ${$this->x20->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x1fab}}}}; } catch (\Exception $x181) { var_dump(12);die;throw new \Magento\Framework\Exception\LocalizedException(__("Error: %1", $x181->{$this->xc9->xa26->x1625}())); } } public function multipleImport() {$x1ac = $this->xc9->xa26->x124a; ${$this->x1a->xa26->{$this->x20->xa26->{$this->x1a->xa26->{$this->x1a->xa26->xcf5}}}} = $this->{$this->x1a->xa26->x1637}(); ${$this->xc9->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->{$this->xc9->xa4f->x1fd0}}}} = $this->{$this->x1a->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa90}}}->{$this->x20->xa26->x1645}(${$this->x1a->xa26->xced}, $this->{$this->xc9->xa26->x1652}(), true); ${$this->x20->xa26->{$this->x1a->xa26->xd05}} = array(); foreach (${$this->xc9->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x1fd1}}}}} as ${$this->xc9->xa4f->{$this->xc9->xa4f->x1fdd}} => ${$this->xc9->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->x32b4}}}) { ${$this->xc9->xa4f->x1fe9} = $this->{$this->xc9->xa26->x165c}(${$this->x1a->xa26->xd15})->{$this->x1a->xa26->x1666}(${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->x32ad}}}, ${$this->x1a->xa5c->x3293}); ${$this->x1a->xa26->xd03} = $x1ac(${$this->x20->xa26->{$this->x1a->xa26->xd05}}, ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x1fed}}}); } return ${$this->x1a->xa5c->{$this->x20->xa5c->x32a8}}; } protected function isLogEnabled() {$x1be = $this->x20->xa4f->{$this->xc9->xa4f->x2530}; return ($this->{$this->x1a->xa4f->x1db3}->{$this->xc9->xa26->x1675}($x1be($this->{$this->x20->xa26->{$this->x20->xa26->xa66}}) . '/settings/log')) ? true : false; } public function import($x35e, $x4d6) {$x1ea = $this->xc9->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->x3832}}}};$x1d0 = $this->x20->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x254f}};$x4df = $this->x1a->xa5c->{$this->x20->xa5c->x3850};$x221 = $this->xc9->xa26->{$this->x20->xa26->{$this->x1a->xa26->x128d}};$x4c1 = $this->x20->xa4f->{$this->x20->xa4f->x257a};$x239 = $this->x1a->xa5c->{$this->x20->xa5c->x3875};$x428 = $this->xc9->xa5c->{$this->x1a->xa5c->x3881};$x32b = $this->xc9->xa4f->{$this->x20->xa4f->x2597};$x260 = $this->x1a->xa5c->x38a1;$x338 = $this->x20->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x38be}}};$x2ba = $this->xc9->xa5c->{$this->x1a->xa5c->x38c5};$x2cb = $this->x1a->xa5c->x38cf;$x30f = $this->x1a->xa4f->x25e7;$x3fa = $this->x1a->xa4f->{$this->x20->xa4f->{$this->xc9->xa4f->x25fd}};$x352 = $this->x1a->xa26->{$this->x1a->xa26->{$this->x20->xa26->x130f}};$x464 = $this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->x1326}}};$x46a = $this->xc9->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->x2626}};$x38b = $this->x1a->xa26->x133c;$x3dc = $this->x20->xa5c->x391f;$x412 = $this->x1a->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x265d}}}};$x439 = $this->x1a->xa4f->{$this->xc9->xa4f->x2665};$x442 = $this->x20->xa5c->{$this->xc9->xa5c->x394e};$x4ce = $this->x1a->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->x2683}}; try { $this->progressHelper->{$this->x1a->xa26->x1681}($this->{$this->xc9->xa26->{$this->x1a->xa26->x1196}}(), $this->{$this->x1a->xa26->x169d}(), $this->{$this->xc9->xa26->x16aa}()); $this->_eventManager->{$this->x1a->xa26->x16b9}("massupdateimport_start", ['profile' => $this]); ${$this->x1a->xa5c->x32c3} = $this->{$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->xa7e}}}; ${$this->x1a->xa4f->{$this->x20->xa4f->x2010}} = $this; ${$this->xc9->xa4f->{$this->x1a->xa4f->x2018}} = $x1ea($x1d0()); $this->${$this->x20->xa26->xd44} = ""; ${$this->x20->xa26->xd4a} = "error"; ${$this->xc9->xa26->xd3d}->_coreHelper->{$this->x1a->xa26->x1510}(${$this->xc9->xa4f->x200d}, ${$this->xc9->xa4f->{$this->x1a->xa4f->x2018}}); if (${$this->xc9->xa5c->{$this->x1a->xa5c->x32d7}}->${$this->xc9->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->x2020}}}} != $x1ea(${$this->xc9->xa4f->{$this->x1a->xa4f->x2018}})) { var_dump(32);die;throw new \Magento\Framework\Exception\LocalizedException(__(${$this->xc9->xa26->xd3d}->${$this->x1a->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->x202f}}}}));; } $this->progressHelper->log("Starting " . $this->{$this->xc9->xa26->x16aa}(), true); $this->progressHelper->log("Current import file " . $this->{$this->x1a->xa26->x1637}(), true, progressHelper::PROCESSING, 0); ${$this->xc9->xa26->xd4f} = $this->{$this->x20->xa4f->{$this->x20->xa4f->x2462}}(); ${$this->xc9->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x2041}}} = ${$this->xc9->xa5c->{$this->x20->xa5c->x32f3}}['profile_method']; if (${$this->x1a->xa5c->{$this->x1a->xa5c->x32f9}} == 0) { ${$this->x1a->xa26->{$this->x1a->xa26->xd64}} = ${$this->x1a->xa26->{$this->x20->xa26->xd3c}}::UPDATE; } $this->{$this->x1a->xa26->{$this->x1a->xa26->{$this->x1a->xa26->{$this->xc9->xa26->xae6}}}} = []; $this->progressHelper->log("Importing data "); ${$this->xc9->xa26->{$this->x20->xa26->{$this->xc9->xa26->xd74}}} = $this->{$this->x1a->xa4f->{$this->x1a->xa4f->x246a}}(); if (isset(${$this->xc9->xa26->{$this->x20->xa26->{$this->xc9->xa26->xd74}}}['error']) && ${$this->xc9->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->x2054}}}}["error"] == "true") { $this->progressHelper->log("" . ${$this->xc9->xa5c->{$this->x1a->xa5c->x32ff}}['message'], true, progressHelper::FAILED, 0); return; } $this->progressHelper->log(__("Collecting products")); $this->{$this->x20->xa26->{$this->x20->xa26->{$this->x20->xa26->xb03}}} = $this->{$this->x20->xa4f->{$this->xc9->xa4f->x1def}}['identifier'] ?: "sku"; ${$this->x1a->xa26->{$this->x20->xa26->{$this->x20->xa26->{$this->xc9->xa26->{$this->x20->xa26->xd8e}}}}} = $this->{$this->x20->xa26->{$this->x1a->xa26->xac3}}->{$this->x1a->xa26->x156d}()->{$this->x1a->xa26->x172d}($this->{$this->x20->xa26->{$this->xc9->xa26->xb00}}); foreach (${$this->x1a->xa26->{$this->x20->xa26->{$this->x20->xa26->xd85}}} as ${$this->xc9->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x2072}}}) { $this->{$this->x1a->xa26->{$this->x1a->xa26->{$this->x20->xa26->xae3}}}[$x221(${$this->xc9->xa26->{$this->x20->xa26->xd95}}->{$this->x1a->xa26->x15dc}($this->{$this->xc9->xa4f->x1e03}))] = ${$this->xc9->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x3311}}}->{$this->x1a->xa26->x169d}(); } $this->progressHelper->log(__("%1 products collected", $x4c1($this->{$this->x1a->xa26->{$this->xc9->xa26->xae1}}))); ${$this->x20->xa4f->{$this->x20->xa4f->x207f}} = ["System"]; $this->progressHelper->log(__("Analyzing columns mapping")); ${$this->xc9->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x2097}}}} = $x239($this->{$this->x20->xa26->{$this->xc9->xa26->xad9}}['mapping']); if (${$this->xc9->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x209b}}}}} === NULL) { ${$this->x1a->xa5c->x332b} = array(); } ${$this->x1a->xa5c->{$this->x1a->xa5c->x3335}} = array(); if ($x428(${$this->x20->xa5c->{$this->x20->xa5c->x3330}})) { foreach (${$this->x1a->xa26->{$this->x20->xa26->xdae}} as ${$this->xc9->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x20ad}}}) { ${$this->xc9->xa5c->{$this->xc9->xa5c->x3340}} = $x32b("/", ${$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->x1a->xa26->xdc4}}}}}->id); ${$this->x1a->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->x334d}}}} = $x260(${$this->x1a->xa26->xdc8}); if (${$this->xc9->xa5c->x3344} == "") { continue; } ${$this->x1a->xa26->{$this->xc9->xa26->{$this->x20->xa26->{$this->x1a->xa26->xdb6}}}}[${$this->x1a->xa26->{$this->x20->xa26->xdd5}}][] = ${$this->x1a->xa4f->{$this->x1a->xa4f->x20ba}}; if (!$x338(${$this->x1a->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->x334d}}}}, ${$this->x20->xa4f->{$this->x20->xa4f->x207f}})) { ${$this->x1a->xa26->{$this->x1a->xa26->xd9c}}[] = ${$this->x1a->xa26->{$this->x20->xa26->xdd5}}; } if ($this->{$this->x20->xa26->x1755}()) { if ($x338(${$this->xc9->xa4f->x20a6}->configurable, array(1, 2))) { if (${$this->x1a->xa5c->{$this->x1a->xa5c->x3347}} != "ConfigurableProduct") { ${$this->x1a->xa5c->{$this->x1a->xa5c->x3347}} = "ConfigurableProducts" . ${$this->xc9->xa4f->x20c2}; if (!$x338(${$this->x20->xa4f->{$this->x1a->xa4f->x20c5}}, ${$this->xc9->xa5c->x3317})) { ${$this->x1a->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->xda4}}}}[] = ${$this->xc9->xa4f->x20c2}; } } } } } } foreach (${$this->xc9->xa5c->{$this->x1a->xa5c->x32c5}}::MODULES as ${$this->x1a->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x3349}}}) { ${$this->xc9->xa26->xdd8} = $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xaf2}}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa6c}}}} . "\\Model\\ResourceModel\\Type\\" . ${$this->x1a->xa26->xdd4}); ${$this->x1a->xa26->{$this->xc9->xa26->xddd}}->reset(); ${$this->x20->xa4f->x20cb} = ${$this->x20->xa5c->x3351}->{$this->xc9->xa26->x1772}($this, ${$this->xc9->xa4f->{$this->x1a->xa4f->x2091}}); if (${$this->x1a->xa26->{$this->x20->xa26->{$this->x1a->xa26->{$this->x1a->xa26->xdf2}}}} != false) { ${$this->x20->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x2089}}}}} = $x2cb(${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x3321}}}, ${$this->x1a->xa26->{$this->x1a->xa26->xded}}); } } ${$this->x1a->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xd9f}}} = $x30f(${$this->x20->xa4f->{$this->x20->xa4f->x207f}}); ${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->x336d}}}}} = []; foreach (${$this->x1a->xa5c->{$this->xc9->xa5c->x331c}} as ${$this->x1a->xa26->xdd4}) { if (${$this->xc9->xa4f->x20c2} == "") { continue; } ${$this->x20->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->x335a}}} = $this->{$this->x20->xa26->{$this->xc9->xa26->xaef}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->x20->xa26->xa66}} . "\\Model\\ResourceModel\\Type\\" . ${$this->x1a->xa26->{$this->x20->xa26->xdd5}}); $this->progressHelper->log("Collect data for ${$this->x1a->xa5c->{$this->x1a->xa5c->x3347}}"); ${$this->x1a->xa26->{$this->x20->xa26->{$this->x1a->xa26->xddf}}}->{$this->x20->xa26->x179e}($this, ${$this->xc9->xa4f->{$this->x20->xa4f->x209f}});; if ($this->{$this->x1a->xa26->x17a7}() > ${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->x32ca}}}::POST_PROCESS_INDEXERS_DISABLED) { if ($this->{$this->x1a->xa26->x17a7}() == ${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x32cb}}}}::POST_PROCESS_INDEXERS_AUTOMATICALLY) { ${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->x336d}}}}} = $x30f(${$this->x20->xa26->{$this->xc9->xa26->xdfe}} + ${$this->xc9->xa26->xdd8}->{$this->x20->xa26->x17c7}(${$this->xc9->xa26->xdab})); } elseif ($this->{$this->x1a->xa26->x17a7}() == ${$this->xc9->xa26->xd3a}::POST_PROCESS_INDEXERS_ONLY_SELECTED) { ${$this->x1a->xa26->{$this->x20->xa26->{$this->xc9->xa26->xe07}}} = ${$this->x20->xa5c->x3351}->{$this->x20->xa26->x17c7}(${$this->x1a->xa4f->x208e}); ${$this->x1a->xa4f->x20eb} = $x32b(',', $this->{$this->x1a->xa26->x17f4}()); foreach (${$this->xc9->xa4f->x20dd} as ${$this->xc9->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->x20fd}}} => ${$this->xc9->xa26->{$this->xc9->xa26->xe25}}) { if ($x338(${$this->x20->xa4f->{$this->xc9->xa4f->x2105}}, ${$this->x1a->xa4f->x20eb})) { ${$this->xc9->xa4f->{$this->x1a->xa4f->x20d1}}[${$this->xc9->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x20fe}}}}] = ${$this->x1a->xa5c->{$this->xc9->xa5c->x338f}}; } } } } } $x3fa(${$this->x1a->xa5c->{$this->x20->xa5c->x3363}}); $this->progressHelper->log("Creating SQL script"); if ($this->{$this->x20->xa4f->x1ded}['sql']) { ${$this->xc9->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->x210d}}}} = $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->{$this->x20->xa26->x17ff}() . DIRECTORY_SEPARATOR . $this->{$this->x20->xa4f->{$this->xc9->xa4f->x1def}}['sql_path'] . DIRECTORY_SEPARATOR . $this->{$this->x20->xa26->{$this->xc9->xa26->xad9}}['sql_file']; $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->mkdir($this->{$this->x1a->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa90}}}->{$this->x20->xa26->x17ff}() . DIRECTORY_SEPARATOR . $this->{$this->x20->xa4f->x1ded}['sql_path']); } else { ${$this->xc9->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x210c}}} = $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->{$this->x20->xa26->x1824}(); } ${$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->{$this->x20->xa26->{$this->x20->xa26->xe4c}}}}} = (!${$this->x20->xa26->{$this->xc9->xa26->xd31}} || !$this->{$this->x20->xa4f->{$this->xc9->xa4f->x1def}}['sql']) ? "w" : "a"; ${$this->xc9->xa4f->{$this->x20->xa4f->x211d}} = $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->{$this->xc9->xa26->x182f}($x464(${$this->x1a->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->x339d}}}), $x46a(${$this->x20->xa26->xe32}), ${$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->{$this->x1a->xa26->xe48}}}}); ${$this->x20->xa26->{$this->x1a->xa26->{$this->x1a->xa26->xe61}}} = ($this->{$this->x20->xa4f->x1ded}['sql']) ? 100 : 50; ${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->x33c4}}} = 1; ${$this->x1a->xa4f->x2134} = $x4c1(${$this->xc9->xa26->{$this->x20->xa26->xd73}}['data']); ${$this->xc9->xa4f->{$this->x20->xa4f->x2141}} = $x38b(${$this->xc9->xa5c->x33c8} / 100); ${$this->xc9->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x214b}}} = 0; foreach (${$this->xc9->xa26->{$this->x20->xa26->xd73}}['data'] as ${$this->xc9->xa26->xe7f}) { foreach (${$this->x1a->xa26->{$this->x1a->xa26->{$this->x1a->xa26->{$this->x1a->xa26->xe86}}}} as ${$this->xc9->xa4f->{$this->x1a->xa4f->x20f8}} => ${$this->x1a->xa5c->x33e4}) { if (isset(${$this->xc9->xa26->{$this->x20->xa26->{$this->xc9->xa26->{$this->x20->xa26->xd75}}}}['header'][${$this->x1a->xa26->{$this->xc9->xa26->{$this->x20->xa26->xe1a}}}])) { ${$this->x20->xa5c->x33dc}[${$this->xc9->xa4f->x2048}['header'][${$this->xc9->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->x20fd}}}]] = ${$this->x1a->xa4f->x2161}; } } $this->{$this->x1a->xa26->x11cf}(${$this->x1a->xa4f->{$this->xc9->xa4f->{$this->xc9->xa4f->{$this->xc9->xa4f->x2159}}}}, ${$this->x20->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x2089}}}}}, ${$this->x1a->xa26->{$this->x20->xa26->xdae}}, ${$this->x1a->xa4f->x203d}); if (${$this->xc9->xa5c->{$this->x20->xa5c->x33bf}} % ${$this->x20->xa4f->x213f} == 0 || ${$this->x20->xa26->xe63} + ${$this->xc9->xa26->xe6f} >= ${$this->x1a->xa26->{$this->xc9->xa26->{$this->x20->xa26->xe6d}}}) { ${$this->x1a->xa26->xe74} = $x3dc(${$this->x20->xa4f->{$this->xc9->xa4f->x212b}} * ${$this->x1a->xa5c->x33b3} / ${$this->xc9->xa5c->x33c8}); $this->progressHelper->log("${$this->xc9->xa4f->x212a} processed / ${$this->x1a->xa26->xe67} lines", true, progressHelper::PROCESSING, ${$this->x1a->xa5c->x33d5}); } ${$this->xc9->xa5c->x33bb}++; } ${$this->x1a->xa5c->{$this->xc9->xa5c->x33fc}} = ${$this->x20->xa4f->{$this->xc9->xa4f->x200c}}::MODULES; $x3fa(${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->{$this->x1a->xa5c->x3401}}}}); foreach (${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x33fe}}} as ${$this->x1a->xa5c->{$this->x1a->xa5c->x3347}}) { if (${$this->x20->xa4f->{$this->x1a->xa4f->x20c5}} == "") { continue; } ${$this->x1a->xa4f->{$this->x1a->xa4f->x20c7}} = $this->{$this->x20->xa26->{$this->xc9->xa26->xaef}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xa69}}} . "\\Model\\ResourceModel\\Type\\" . ${$this->x1a->xa26->{$this->x20->xa26->xdd5}}); ${$this->xc9->xa4f->{$this->x1a->xa4f->x2177}} = "/************** " . $x412(${$this->x20->xa4f->{$this->x1a->xa4f->x20c5}}) . " ******************/
"; $this->{$this->xc9->xa4f->x1da8}->{$this->xc9->xa26->x185b}(${$this->x1a->xa4f->x2119}, ${$this->x1a->xa4f->x2176}); ${$this->xc9->xa26->xdd8}->{$this->xc9->xa26->x1864}($this); foreach (${$this->xc9->xa26->xdd8}->queries as ${$this->xc9->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->x3416}}}} => ${$this->x20->xa4f->{$this->xc9->xa4f->x2184}}) { ${$this->x20->xa26->{$this->x1a->xa26->{$this->x20->xa26->xec0}}} = []; if ($x428(${$this->x1a->xa5c->{$this->xc9->xa5c->x341b}})) { foreach (${$this->x1a->xa26->{$this->x20->xa26->{$this->xc9->xa26->{$this->x1a->xa26->xeb5}}}} as ${$this->x20->xa5c->x342f}) { ${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->x342c}}}[] = $x439("
", " ", ${$this->x1a->xa4f->{$this->x1a->xa4f->x21a1}}); } } ${$this->x1a->xa26->xed2} = $x442("
", ${$this->x1a->xa26->xeba}); $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->{$this->xc9->xa26->x185b}(${$this->xc9->xa4f->{$this->x20->xa4f->{$this->xc9->xa4f->x211e}}}, ${$this->x1a->xa5c->x343f} . "
"); } ${$this->x20->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->x335b}}}}->queries = array(); $this->progressHelper->log("Execute after collect for ${$this->x20->xa4f->{$this->x1a->xa4f->x20c5}}", true, progressHelper::PROCESSING, ${$this->x1a->xa26->{$this->x1a->xa26->xe75}}); } $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->{$this->x1a->xa26->x1882}(${$this->x1a->xa26->{$this->x20->xa26->{$this->xc9->xa26->xe57}}}); if (!$this->{$this->x20->xa26->{$this->xc9->xa26->xad9}}['sql']) { ${$this->x20->xa4f->x2143} = $this->{$this->xc9->xa5c->{$this->xc9->xa5c->{$this->x1a->xa5c->x3777}}}(${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x3368}}}}, ${$this->x1a->xa4f->x2108}, false); $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->{$this->xc9->xa26->x161b}($x464(${$this->x1a->xa4f->x2108}), $x46a(${$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xe38}}})); $this->{$this->xc9->xa4f->{$this->x1a->xa4f->x2483}}(); } foreach (${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x3321}}} as ${$this->x1a->xa26->{$this->x20->xa26->xdd5}}) { if (${$this->x20->xa4f->{$this->x1a->xa4f->x20c5}} == "") { continue; } $this->progressHelper->log("Execute after process for ${$this->x1a->xa5c->{$this->x1a->xa5c->x3347}}", true, progressHelper::PROCESSING, ${$this->xc9->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x214b}}}); ${$this->x20->xa5c->x3351} = $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xaf2}}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa6c}}}} . "\\Model\\ResourceModel\\Type\\" . ${$this->x1a->xa26->xdd4}); ${$this->x20->xa5c->x3351}->{$this->xc9->xa26->x18c4}($this); } ${$this->xc9->xa5c->{$this->x20->xa5c->x344e}} = ""; if ($this->{$this->x20->xa4f->x1ded}['sql']) { ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x21b0}}} = "will be "; } ${$this->x1a->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->x3454}}}} = array("notice" => [], "warning" => [], "success" => []); ${$this->x20->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x21c4}}} = ""; if ($x4c1($this->{$this->x1a->xa4f->x1e16})) { ${$this->x20->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x21c4}}} = $x4c1($this->{$this->x20->xa4f->{$this->x1a->xa4f->x1e18}}) . " " . __("products %1ignored", ${$this->x1a->xa5c->x344a}); ${$this->x20->xa26->xee2}["notice"] = ${$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->xef9}}}; } if ($x4c1($this->{$this->x20->xa26->{$this->xc9->xa26->xb21}})) { ${$this->x20->xa4f->{$this->x20->xa4f->x21c0}} = $x4c1($this->{$this->x1a->xa4f->{$this->x1a->xa4f->x1e20}}) . " " . __("products %1updated.", ${$this->x1a->xa4f->{$this->x20->xa4f->x21af}}); ${$this->x20->xa5c->x3450}["warning"] = ${$this->x1a->xa26->xef3}; } if ($x4c1($this->{$this->x20->xa26->{$this->x1a->xa26->xb0a}})) { ${$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->xef9}}} = $x4c1($this->{$this->x20->xa26->{$this->x1a->xa26->xb0a}}) . " " . __("products %1imported.", ${$this->x20->xa4f->x21ae}); ${$this->x1a->xa26->{$this->x1a->xa26->{$this->x1a->xa26->xee9}}}["success"] = ${$this->x20->xa4f->x21bb}; } $this->progressHelper->log($x4ce(${$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->xef9}}}, true), true, "SUCCEEDED", 100); $this->{$this->x1a->xa26->x18d0}($this->{$this->x20->xa4f->{$this->xc9->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->x2496}}}}(${$this->x1a->xa5c->x344a})); $this->{$this->x20->xa26->x18e8}($this->{$this->xc9->xa4f->x1de6}->{$this->xc9->xa26->x18f4}('Y-m-d H:i:s')); $this->{$this->xc9->xa26->x165c}(${$this->xc9->xa4f->{$this->x1a->xa4f->x2009}}); $this->{$this->x1a->xa26->x1911}(); $this->_eventManager->{$this->x1a->xa26->x16b9}("massupdateimport_success", ['profile' => $this]); $this->progressHelper->{$this->xc9->xa26->x1934}(); return ${$this->x1a->xa5c->{$this->x20->xa5c->x3451}}; } catch (\Magento\Framework\Exception\LocalizedException $x4e6) { $this->progressHelper->log("" . $x4e6->{$this->xc9->xa26->x1625}(), true, progressHelper::FAILED, 0); $this->_eventManager->{$this->x1a->xa26->x16b9}("massupdateimport_failure", ['profile' => $this, 'error' => $x4e6]); var_dump(45);die;throw new \Magento\Framework\Exception\LocalizedException(__("<b>Unable to process the profile</b><br> %1", $x4e6->{$this->xc9->xa26->x1625}())); } } public function postProcess() {$x4ee = $this->x20->xa4f->x2688;$x511 = $this->x1a->xa4f->x2694;$x513 = $this->x1a->xa4f->{$this->xc9->xa4f->{$this->xc9->xa4f->x26aa}};$x515 = $this->x20->xa5c->x3987; ${$this->xc9->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x1a->xa26->xf17}}}} = $this->{$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->xa7e}}}; ${$this->xc9->xa4f->x21df} = $x4ee($this->{$this->xc9->xa4f->x1da8}->{$this->x20->xa26->x17ff}(), "/"); if ($this->{$this->x20->xa4f->{$this->xc9->xa4f->x1def}}['post_process_action'] == ${$this->x1a->xa4f->{$this->x20->xa4f->x21d6}}::POST_PROCESS_ACTION_MOVE) { $this->{$this->xc9->xa4f->x1da8}->{$this->x1a->xa26->x1981}( ${$this->xc9->xa26->{$this->xc9->xa26->xf22}} . DIRECTORY_SEPARATOR . $x511($x513($this->{$this->x1a->xa26->x1637}()), "\\/"), $x515($this->{$this->x1a->xa26->x1637}()), ${$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->xf25}}} . DIRECTORY_SEPARATOR . $x511($this->{$this->x20->xa4f->x1ded}['post_process_move_folder'], "\\/"), $x515($this->{$this->x1a->xa26->x1637}()) ); } elseif ($this->{$this->x20->xa26->{$this->xc9->xa26->xad9}}['post_process_action'] == ${$this->xc9->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x1a->xa26->xf17}}}}::POST_PROCESS_ACTION_DELETE) { $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->{$this->xc9->xa26->x161b}( ${$this->x1a->xa26->xf1e} . DIRECTORY_SEPARATOR . $x511($x513($this->{$this->x1a->xa26->x1637}()), "\\/"), $x515($this->{$this->x1a->xa26->x1637}()) ); } } public function generateReport($x54d) {$x54c = $this->x20->xa4f->{$this->x1a->xa4f->x26c7};$x557 = $this->x1a->xa4f->{$this->x1a->xa4f->x26d9}; ${$this->x1a->xa26->{$this->x1a->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xf39}}}} = ""; if ($x54c($this->{$this->x1a->xa4f->x1e16})) { ${$this->x1a->xa26->{$this->x1a->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xf39}}}} .= "<h3>" . $x54c($this->{$this->x1a->xa4f->x1e16}) . " " . __("products %1ignored", ${$this->xc9->xa26->xf2b}) . "</h3>"; ${$this->x20->xa4f->{$this->x20->xa4f->x2202}} .= "<p>" . $x557(", ", $this->{$this->x1a->xa4f->x1e16}) . "</p>"; } if ($x54c($this->{$this->x20->xa4f->x1e1d})) { ${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->x34a6}}}} .= "<h3>" . $x54c($this->{$this->x20->xa4f->x1e1d}) . " " . __("products %1updated.", ${$this->xc9->xa26->xf2b}) . "</h3>"; ${$this->x20->xa4f->{$this->x20->xa4f->x2202}} .= "<p>" . $x557(", ", $this->{$this->x20->xa4f->x1e1d}) . "</p>"; } if ($x54c($this->{$this->x20->xa4f->x1e09})) { ${$this->x20->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->x2203}}} .= "<h3>" . $x54c($this->{$this->x20->xa26->{$this->x1a->xa26->xb0a}}) . " " . __("products %1imported.", ${$this->xc9->xa4f->x21f3}) . "</h3>"; ${$this->x20->xa4f->{$this->x20->xa4f->x2202}} .= "<p>" . $x557(", ", $this->{$this->x20->xa4f->x1e09}) . "</p>"; } return ${$this->x1a->xa26->{$this->x1a->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x1a->xa26->xf3a}}}}}; } public function executeSqlFile($x654 = [], $x5ac = false, $x5b8 = true) {$x704 = $this->xc9->xa5c->{$this->x1a->xa5c->x39b2};$x5a3 = $this->x1a->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x39c3}}};$x5aa = $this->x1a->xa4f->{$this->xc9->xa4f->x26f9};$x5b1 = $this->x1a->xa26->{$this->xc9->xa26->x13fa};$x5bc = $this->x1a->xa5c->{$this->x20->xa5c->x39f0};$x629 = $this->xc9->xa5c->x39fb;$x6fd = $this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->x142b}};$x665 = $this->x20->xa26->x1430;$x66e = $this->x1a->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->x274a}};$x6fa = $this->x1a->xa26->{$this->x1a->xa26->x1446}; $this->progressHelper->{$this->x1a->xa26->x1681}($this->{$this->xc9->xa4f->{$this->xc9->xa4f->x2473}}(), $this->{$this->x1a->xa26->x169d}(), $this->{$this->xc9->xa26->x16aa}(), true); $this->progressHelper->log("Start importing sql queries for " . $this->{$this->xc9->xa26->x16aa}(), true); if (!${$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->{$this->x1a->xa26->xf5b}}}}) { ${$this->x20->xa5c->{$this->x20->xa5c->x34b6}} = $this->{$this->x1a->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa90}}}->{$this->x20->xa26->x17ff}() . DIRECTORY_SEPARATOR . $this->{$this->x20->xa26->x1a17}() . DIRECTORY_SEPARATOR . $this->{$this->x20->xa26->x1a22}(); } ${$this->x20->xa26->{$this->xc9->xa26->{$this->x1a->xa26->xf7a}}} = $this->{$this->x1a->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa90}}}->{$this->xc9->xa26->x182f}($x5a3(${$this->x1a->xa26->xf4e}), $x5aa(${$this->x1a->xa4f->{$this->xc9->xa4f->{$this->xc9->xa4f->x2221}}}), 'r'); ${$this->x1a->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->x34da}}} = $this->{$this->xc9->xa26->{$this->x1a->xa26->xab6}}->{$this->x1a->xa26->x151c}('core_write'); ${$this->x20->xa26->{$this->x1a->xa26->xf7e}}->{$this->x20->xa26->x1a49}(); ${$this->xc9->xa4f->{$this->xc9->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->x2254}}}} = 0; ${$this->xc9->xa26->xf86} = 0; try { while ((${$this->xc9->xa26->xf90} = $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->{$this->x20->xa26->x1a59}(${$this->xc9->xa5c->{$this->x20->xa5c->x34cb}})) !== false) { ${$this->xc9->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->x34ea}}}}++; } } catch (\Magento\Framework\Exception\FileSystemException $x6c3) { ${$this->x20->xa5c->x34ca} = $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->{$this->xc9->xa26->x182f}($x5a3(${$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->{$this->x1a->xa26->xf5b}}}}), $x5aa(${$this->x1a->xa26->xf4e}), 'r'); } ${$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->xfa8}}} = $x5b1(${$this->xc9->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->x34ea}}}} / 100); ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x2289}}}}} = (${$this->x20->xa26->{$this->x20->xa26->{$this->x1a->xa26->{$this->xc9->xa26->{$this->x1a->xa26->xf70}}}}}) ? 0 : 50; try { while ((${$this->xc9->xa4f->x228c} = $this->{$this->x1a->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa90}}}->{$this->x20->xa26->x1a59}(${$this->x1a->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->x223d}}})) !== false) { try { if ($x5bc(${$this->xc9->xa26->{$this->xc9->xa26->xfb8}}) != "") { ${$this->x1a->xa5c->x34d3}->{$this->xc9->xa26->x1a88}(${$this->x1a->xa26->xfb7}); } if (${$this->x20->xa26->xf7f} % ${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->x350d}}}} == 0 || ${$this->xc9->xa5c->x34e0} + ${$this->xc9->xa5c->{$this->xc9->xa5c->x3506}} >= ${$this->x1a->xa26->{$this->x1a->xa26->xf8b}}) { ${$this->x20->xa4f->x229b} = $x629(${$this->xc9->xa4f->{$this->xc9->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->x2254}}}} * (100 - ${$this->x20->xa5c->{$this->x20->xa5c->x3518}}) / ${$this->x20->xa4f->{$this->x1a->xa4f->x225b}}) + ${$this->x1a->xa5c->x3515}; $this->progressHelper->log("${$this->xc9->xa5c->x34e0} processed / ${$this->xc9->xa26->xf86} queries", true, progressHelper::PROCESSING, ${$this->x1a->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->x353a}}}); } ${$this->xc9->xa5c->x34e0}++; } catch (\Exception $x6c3) { ${$this->x1a->xa4f->x2242}->{$this->xc9->xa26->x1a98}(); $this->progressHelper->log(__("Error in SQL query: %1", ${$this->x20->xa5c->{$this->x1a->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->x3531}}}}), false); $this->progressHelper->log("Error in SQL query: " . $x6fd(";", "", ${$this->x1a->xa26->xfb7}), true, progressHelper::FAILED, 0); var_dump(78);die;throw new \Exception(__("SQL error in ${$this->xc9->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x2299}}}}}.<br/>Error was [%1]<br><b>All updates have been rollback</b>", $x6c3->{$this->xc9->xa26->x1625}())); break; } } } catch (\Magento\Framework\Exception\LocalizedException $x6c3) { if (${$this->x1a->xa4f->x224c} % ${$this->xc9->xa5c->{$this->xc9->xa5c->x3506}} == 0 || ${$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->xf83}}} + ${$this->x20->xa26->xfa1} >= ${$this->xc9->xa26->xf86}) { ${$this->x20->xa4f->x229b} = $x629(${$this->xc9->xa5c->x34e0} * (100 - ${$this->xc9->xa26->xfab}) / ${$this->x20->xa4f->{$this->x1a->xa4f->x225b}}) + ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x2281}}}; $this->progressHelper->log("${$this->x1a->xa4f->x224c} processed / ${$this->xc9->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->x34ea}}}} queries", true, progressHelper::PROCESSING, ${$this->x1a->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x3542}}}}}); } $this->progressHelper->log(__("%1 sql queries executed", ${$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->xf83}}}), true, progressHelper::PROCESSING, ${$this->x20->xa26->xfc1}); ${$this->x1a->xa5c->{$this->x20->xa5c->x34d8}}->{$this->x20->xa26->x1ab2}(); foreach (${$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xf4a}}}}} as ${$this->x1a->xa4f->{$this->x20->xa4f->x22a6}}) { if (${$this->x1a->xa4f->x22a3} == "catalog_url") { ${$this->x20->xa4f->{$this->x20->xa4f->x22ac}} = $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xaf2}}}->{$this->xc9->xa26->x1760}("\\Wyomind\\MassProductImport\\Model\\ResourceModel\\Type\\Attribute"); ${$this->x1a->xa5c->x3566} = $x665($this->{$this->x20->xa26->{$this->xc9->xa26->xb21}}, $this->{$this->x20->xa4f->x1e09}); ${$this->x20->xa4f->{$this->xc9->xa4f->x22bc}} = $x66e($this->{$this->x20->xa4f->x1ded}['mapping']); ${$this->x20->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x22ae}}}->{$this->x20->xa26->x17c7}(${$this->x1a->xa5c->x356c}); ${$this->x20->xa26->{$this->x20->xa26->xff9}} = ${$this->xc9->xa4f->x22aa}->urlRewriteStoreViews; foreach (${$this->xc9->xa5c->{$this->xc9->xa5c->x357b}} as ${$this->xc9->xa4f->x22dc}) { if (!${$this->x20->xa26->xfff}) { continue; } ${$this->x20->xa26->x1007} = ${$this->x20->xa4f->{$this->x20->xa4f->x22f2}} = $this->{$this->xc9->xa4f->x1dd5}->{$this->x1a->xa26->x156d}(); ${$this->x20->xa4f->{$this->xc9->xa4f->x22ea}}->{$this->x1a->xa26->x1af3}(${$this->xc9->xa4f->{$this->x1a->xa4f->x22df}})->{$this->xc9->xa26->x1b02}(${$this->xc9->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->x22e2}}}}); ${$this->x20->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x35a1}}}}->{$this->xc9->xa26->x1b0b}("sku", array("in" => ${$this->x20->xa4f->{$this->x1a->xa4f->x22b2}})); ${$this->x20->xa5c->{$this->x1a->xa5c->x359a}}->{$this->x20->xa26->x1b1f}(['url_path', 'url_key'], true); ${$this->x1a->xa4f->x22fd} = ${$this->x20->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->x35a6}}}}}->{$this->x1a->xa26->x1b2b}(); foreach (${$this->xc9->xa4f->{$this->xc9->xa4f->x2300}} as ${$this->xc9->xa26->x102f}) { ${$this->xc9->xa5c->x35b6}->{$this->xc9->xa26->x1b02}(${$this->xc9->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x22e0}}}); $this->{$this->x1a->xa26->{$this->x20->xa26->xb86}}->{$this->x1a->xa26->x1b46}( [ \Magento\UrlRewrite\Service\V1\Data\UrlRewrite::ENTITY_ID => ${$this->xc9->xa4f->x2304}->{$this->x1a->xa26->x169d}(), \Magento\UrlRewrite\Service\V1\Data\UrlRewrite::ENTITY_TYPE => \Magento\CatalogUrlRewrite\Model\ProductUrlRewriteGenerator::ENTITY_TYPE, \Magento\UrlRewrite\Service\V1\Data\UrlRewrite::REDIRECT_TYPE => 0, \Magento\UrlRewrite\Service\V1\Data\UrlRewrite::STORE_ID => ${$this->x20->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->x358b}}} ] ); try { $this->{$this->xc9->xa4f->x1e5e}->{$this->x1a->xa26->x1b66}( $this->{$this->x1a->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->x1a->xa26->xb99}}}}->{$this->x1a->xa26->x156d}()->{$this->xc9->xa26->x1b81}(${$this->xc9->xa5c->x35b6}) ); } catch (\Exception $x6c3) { $this->progressHelper->log(__('Duplicated url for %1', ${$this->xc9->xa5c->{$this->xc9->xa5c->x35ba}}->{$this->x1a->xa26->x169d}()), true); } } } ${$this->x20->xa26->{$this->x20->xa26->{$this->x1a->xa26->x1043}}} = $x6fa($x6fd("_", " ", ${$this->x1a->xa4f->{$this->x20->xa4f->x22a6}})) . " " . __("re-indexed"); $this->progressHelper->log("${$this->x1a->xa4f->{$this->xc9->xa4f->x230c}}", true, progressHelper::PROCESSING, 100); continue; } ${$this->x1a->xa4f->{$this->xc9->xa4f->x2310}} = $this->{$this->x20->xa26->{$this->xc9->xa26->xb3f}}->{$this->x1a->xa26->x156d}()->{$this->x1a->xa26->x1b2b}(${$this->x1a->xa26->{$this->x1a->xa26->xfd1}}); ${$this->x1a->xa4f->{$this->xc9->xa4f->x2310}}->{$this->xc9->xa26->x1bb8}(); ${$this->x1a->xa4f->{$this->xc9->xa4f->x230c}} = $x6fa($x6fd("_", " ", ${$this->x20->xa26->xfd0})) . " " . __("re-indexed"); $this->progressHelper->log("${$this->x20->xa26->{$this->x20->xa26->{$this->x1a->xa26->x1043}}}", true, progressHelper::PROCESSING, 100); } $this->progressHelper->log("Sql file has been executed", true, progressHelper::SUCCEEDED, ${$this->x1a->xa5c->{$this->xc9->xa5c->x3538}}); $this->progressHelper->{$this->xc9->xa26->x1934}(); return ${$this->x1a->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x3542}}}}}; } } public function createSql($x89b, $x95b, $x82b, $x7c8) {$x72e = $this->x1a->xa26->x1458;$x9e3 = $this->x20->xa5c->x3a5a;$x859 = $this->xc9->xa26->{$this->xc9->xa26->{$this->xc9->xa26->x1478}};$x863 = $this->x1a->xa26->{$this->xc9->xa26->{$this->xc9->xa26->x1489}};$x8b6 = $this->x20->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->x3a88}};$x8bb = $this->x20->xa4f->x27b0;$x8c5 = $this->xc9->xa26->{$this->xc9->xa26->{$this->x1a->xa26->x14b3}};$x8d0 = $this->x1a->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x27d1}};$x974 = $this->xc9->xa26->{$this->x20->xa26->{$this->x1a->xa26->{$this->x1a->xa26->x14de}}};$x9a0 = $this->x1a->xa4f->{$this->xc9->xa4f->x27e5};$x97a = $this->x20->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->x3adc}}};$x9ee = $this->xc9->xa4f->x27f2; ${$this->x20->xa4f->x2342} = $this->{$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->{$this->xc9->xa26->xa83}}}}; try { foreach (${$this->xc9->xa4f->x2325} as ${$this->x20->xa26->{$this->x20->xa26->{$this->x1a->xa26->x1089}}}) { ${$this->xc9->xa26->x108d} = $this->{$this->x20->xa26->{$this->xc9->xa26->xaef}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->x20->xa26->xa66}} . "\\Model\\ResourceModel\\Type\\" . ${$this->xc9->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x3617}}}}); ${$this->x1a->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->x3626}}}->reset(); } if (!isset(${$this->x20->xa5c->{$this->x20->xa5c->x35db}}[$this->{$this->x1a->xa26->x1be6}()])) { return; } ${$this->xc9->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->x2367}}} = $this->{$this->xc9->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xa98}}}->{$this->x1a->xa26->x1bf2}($this->{$this->x20->xa26->x1c05}(), ${$this->xc9->xa26->x1052}, ${$this->xc9->xa26->x1052}[$this->{$this->x1a->xa26->x1be6}()]); if (${$this->x1a->xa5c->x362c} === FALSE) { return; } else if (${$this->xc9->xa26->x1094} === TRUE) { ${$this->xc9->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x236a}}}} = ""; } foreach (${$this->x1a->xa26->x1069} as ${$this->xc9->xa4f->x2370}) { if (isset(${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->x363d}}}->index) && ${$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->x10a3}}}}->index != "" && isset(${$this->x20->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x35e0}}}[${$this->x1a->xa5c->x3635}->index])) { ${$this->x20->xa5c->{$this->x20->xa5c->x35db}}[${$this->xc9->xa4f->x2370}->source] = ${$this->xc9->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->x2320}}}[${$this->x20->xa4f->{$this->xc9->xa4f->x2374}}->index]; } } if ($this->{$this->x20->xa26->x1755}()) { foreach (${$this->xc9->xa26->{$this->xc9->xa26->x106d}} as ${$this->x20->xa5c->x3640} => ${$this->x20->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x2375}}}) { if (${$this->x20->xa4f->{$this->xc9->xa4f->x2374}}->id == "ConfigurableProduct/parentSku") { if (isset(${$this->x20->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x2375}}}->index) && ${$this->xc9->xa26->{$this->xc9->xa26->{$this->xc9->xa26->x10a1}}}->index != '') { ${$this->x1a->xa4f->x2384} = ${$this->xc9->xa4f->x231a}[${$this->x20->xa4f->{$this->xc9->xa4f->x2374}}->index]; } ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x2388}}} = $this->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->xa9d}}}}->{$this->x1a->xa26->x1bf2}(${$this->x1a->xa5c->x3635}->scripting, ${$this->x20->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x35e1}}}}, ${$this->x1a->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->x10b4}}}}); if (${$this->xc9->xa5c->{$this->x20->xa5c->x3648}} == FALSE && ${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x364c}}}} == TRUE) { unset(${$this->x1a->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->x10b4}}}}); } break; } } } ${$this->xc9->xa4f->x2389} = true; ${$this->x20->xa26->x10bd} = true; if (!isset($this->{$this->x1a->xa26->{$this->xc9->xa26->xae1}}[${$this->x1a->xa5c->{$this->x1a->xa5c->x3630}}])) { ${$this->xc9->xa26->{$this->xc9->xa26->x10b8}} = false; } if (isset(${$this->xc9->xa5c->{$this->x20->xa5c->x3648}}) && !isset($this->{$this->x1a->xa26->{$this->xc9->xa26->xae1}}[${$this->x20->xa5c->x3644}])) { ${$this->x1a->xa26->{$this->x20->xa26->x10c2}} = false; } ${$this->x1a->xa26->x10c7} = null; ${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->x3675}}}}} = null; ${$this->x1a->xa4f->x23aa} = ${$this->x1a->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x233b}}}} == ${$this->xc9->xa4f->{$this->x20->xa4f->{$this->xc9->xa4f->x2347}}}::UPDATE; ${$this->x20->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->{$this->x1a->xa5c->x368e}}}} = ${$this->x1a->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x233b}}}} == ${$this->x20->xa4f->x2342}::IMPORT; ${$this->x1a->xa26->{$this->x20->xa26->{$this->x20->xa26->x10f2}}} = ${$this->x20->xa26->{$this->x20->xa26->x1076}} == ${$this->xc9->xa4f->{$this->x20->xa4f->{$this->xc9->xa4f->x2347}}}::UPDATEIMPORT; if ((${$this->x20->xa5c->{$this->xc9->xa5c->x367b}} && ${$this->xc9->xa4f->x2389}) || (${$this->xc9->xa26->x10e3} && !${$this->xc9->xa26->{$this->xc9->xa26->x10b8}}) || ${$this->x1a->xa26->{$this->x20->xa26->{$this->x20->xa26->x10f2}}}) { ${$this->x20->xa5c->x3621} = $this->{$this->x20->xa26->{$this->xc9->xa26->xaef}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa6c}}}} . "\\Model\\ResourceModel\\Type\\System"); if ($x9e3($this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa6c}}}}) == "massproductimport") { if ($this->{$this->x20->xa26->x1755}()) { ${$this->x20->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x23d4}}} = $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xaf2}}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa6c}}}} . "\\Model\\ResourceModel\\Type\\ConfigurableProductsSystem"); } } if (${$this->xc9->xa5c->{$this->x20->xa5c->x3651}}) { ${$this->x20->xa5c->{$this->xc9->xa5c->{$this->x1a->xa5c->x365e}}} = (int)$this->{$this->x1a->xa26->{$this->x1a->xa26->{$this->x20->xa26->xae3}}}[${$this->x20->xa4f->x2363}]; ${$this->x1a->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x1a->xa5c->x3628}}}}->fields = []; } else { ${$this->x20->xa26->{$this->xc9->xa26->x1090}}->{$this->x1a->xa26->x1c63}(${$this->xc9->xa4f->x239b}, ${$this->xc9->xa4f->{$this->xc9->xa4f->x2364}}, array("option" => array("sku")), $this); } if (${$this->x20->xa5c->{$this->x20->xa5c->x3657}}) { if (isset(${$this->x1a->xa4f->x2384})) { ${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x1a->xa5c->{$this->x1a->xa5c->x3673}}}} = (int)$this->{$this->x1a->xa26->{$this->x1a->xa26->{$this->x1a->xa26->{$this->xc9->xa26->xae6}}}}[${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x364c}}}}]; } if ($x9e3($this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa6c}}}}) == "massproductimport") { if ($this->{$this->x20->xa26->x1755}()) { ${$this->x1a->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->x1a->xa26->x1100}}}}->fields = []; } } } else { if (isset(${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x2388}}})) { if ($this->{$this->x20->xa26->x1755}()) { ${$this->x1a->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->x1a->xa26->x1100}}}}->{$this->x1a->xa26->x1c63}(${$this->x20->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->x3662}}}}, ${$this->x1a->xa26->{$this->xc9->xa26->x10b0}}, array("option" => array("sku")), $this); } } } ${$this->x1a->xa4f->{$this->x20->xa4f->x23dd}} = 0; ${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x36a9}}} = false; ${$this->x20->xa5c->{$this->x20->xa5c->x35db}}["identifier"] = ${$this->x20->xa26->{$this->x20->xa26->{$this->x1a->xa26->x1098}}}; foreach (${$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->{$this->xc9->xa26->x1070}}}} as ${$this->x20->xa4f->{$this->xc9->xa4f->x2374}}) { if (!isset(${$this->x20->xa4f->{$this->xc9->xa4f->x2374}}->importupdate)) { ${$this->x1a->xa5c->x3635}->importupdate = 2; } switch (${$this->x20->xa26->x109b}->importupdate) { case 0: if (${$this->x1a->xa5c->x3650}) { continue 2; } break; case 1: if (!${$this->xc9->xa4f->x2389}) { continue 2; } break; } if (!${$this->xc9->xa26->{$this->xc9->xa26->{$this->xc9->xa26->x10a1}}}->enabled) { continue; } if (${$this->xc9->xa5c->{$this->x1a->xa5c->x3638}}->enabled) { if (${$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->x1114}}}) { continue; } ${$this->x20->xa4f->{$this->x20->xa4f->x23e9}} = ""; if (isset(${$this->x20->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x2378}}}}->index) && ${$this->x20->xa4f->{$this->xc9->xa4f->x2374}}->index != "" && isset(${$this->xc9->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->x2320}}}[${$this->xc9->xa4f->x2370}->index])) { if ($x859(${$this->x1a->xa5c->x35d6}[${$this->xc9->xa4f->x2370}->index])) { ${$this->x20->xa26->{$this->xc9->xa26->x111b}} = $x863(${$this->xc9->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x2322}}}}}[${$this->xc9->xa26->{$this->xc9->xa26->x109f}}->index]); } else { ${$this->x20->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->{$this->xc9->xa4f->x23f0}}}} = (${$this->x1a->xa26->{$this->x20->xa26->{$this->x20->xa26->{$this->xc9->xa26->x105b}}}}[${$this->xc9->xa4f->x2370}->index]); } } else { if (${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->x363d}}}->scripting == "") { ${$this->xc9->xa5c->x36ac} = ${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->x363e}}}}->default; } } if ($this->{$this->x1a->xa4f->x1db3}->{$this->x20->xa26->x1c8b}("Wyomind_MassProductImport")) { if (isset(${$this->x20->xa26->x109b}->rule)) { ${$this->x1a->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x36c2}}}} = \Magento\Framework\App\ObjectManager::{$this->x20->xa26->x1c96}(); ${$this->xc9->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x2402}}} = ${$this->x1a->xa5c->{$this->x20->xa5c->x36bc}}->{$this->x1a->xa26->x156d}("\\Wyomind\\MassProductImport\\Helper\\Data"); ${$this->x20->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x23eb}}} = ${$this->x1a->xa26->x1126}->{$this->x1a->xa26->x1caa}(${$this->xc9->xa4f->x2370}->rule, ${$this->x20->xa4f->x23e7}); } } if (${$this->x20->xa4f->{$this->xc9->xa4f->x2374}}->scripting != "") { try { ${$this->x20->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x23eb}}} = $this->{$this->xc9->xa26->{$this->x20->xa26->xa97}}->{$this->x1a->xa26->x1bf2}(${$this->xc9->xa5c->{$this->x1a->xa5c->x3638}}->scripting, ${$this->x1a->xa5c->x35d6}, ${$this->x20->xa4f->x23e7}); if (${$this->x20->xa26->{$this->xc9->xa26->x111b}} === FALSE) { ${$this->x20->xa4f->{$this->xc9->xa4f->x23e2}} = true; continue; } elseif (${$this->x20->xa4f->x23e7} === TRUE) { continue; } } catch (\Exception $x9f7) { var_dump(55);die;throw new \Magento\Framework\Exception\LocalizedException(__("Error in script for %1 :%2", ${$this->x20->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x2378}}}}->label, $x8b6($x8bb($x9f7->{$this->xc9->xa26->x1625}())))); } } ${$this->x1a->xa5c->{$this->x1a->xa5c->x36dc}} = $x8c5("/", ${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->x363d}}}->id); ${$this->xc9->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x361c}}}}} = $x8d0(${$this->xc9->xa26->{$this->xc9->xa26->x1137}}); ${$this->xc9->xa26->{$this->x1a->xa26->x1143}}["storeviews"] = ${$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->x10a3}}}}->storeviews; ${$this->x1a->xa4f->{$this->x20->xa4f->x241f}}["option"] = ${$this->x20->xa4f->x2412}; if (${$this->xc9->xa5c->{$this->xc9->xa5c->x3613}} == null) { continue; } if (!$this->{$this->x20->xa26->x1755}()) { ${$this->x20->xa4f->{$this->xc9->xa4f->x2374}}->configurable = 0; } if ($x974(${$this->x20->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x2378}}}}->configurable, array(0, 2))) { if (!${$this->x20->xa4f->{$this->x20->xa4f->x238c}}) { ${$this->x1a->xa4f->{$this->x20->xa4f->x2430}} = ${$this->x20->xa4f->x2363}; ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x243e}}} = "(SELECT entity_id FROM " . $this->tableCpe . " WHERE sku='" . $x9a0(${$this->x20->xa26->{$this->xc9->xa26->x114d}}) . "' LIMIT 1)"; } else { ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x2447}}}}} = ${$this->x1a->xa26->{$this->x1a->xa26->x10ca}}; } ${$this->x20->xa26->{$this->xc9->xa26->x1090}} = $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xaf4}}}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->x20->xa26->xa66}} . "\\Model\\ResourceModel\\Type\\" . ${$this->x20->xa5c->x360e}); ${$this->x20->xa26->{$this->xc9->xa26->x1090}}->{$this->x1a->xa26->x1c63}(${$this->x1a->xa26->x1154}, ${$this->x20->xa5c->{$this->x20->xa5c->x36b0}}, ${$this->xc9->xa26->x113f}, $this); } if ($this->{$this->x20->xa26->x1755}()) { if ($x974(${$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->x10a3}}}}->configurable, array(1, 2))) { if (isset(${$this->xc9->xa5c->{$this->x20->xa5c->x3648}}) && $x974(${$this->x1a->xa26->x10af}, $this->{$this->xc9->xa26->{$this->x1a->xa26->{$this->x1a->xa26->xb75}}})) { } else { if (!${$this->x1a->xa26->{$this->x20->xa26->{$this->x1a->xa26->x10c3}}}) { ${$this->x20->xa5c->{$this->xc9->xa5c->{$this->x1a->xa5c->x36f6}}} = ${$this->xc9->xa5c->{$this->x20->xa5c->x3648}}; ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x243e}}} = "(SELECT entity_id FROM " . $this->tableCpe . " WHERE sku='" . $x9a0(${$this->x20->xa26->{$this->xc9->xa26->x114d}}) . "' LIMIT 1)"; } else { ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x2447}}}}} = ${$this->x20->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->x1a->xa26->x10d5}}}}; } if (${$this->x20->xa5c->x360e} == "ConfigurableProduct" && ${$this->x1a->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x2426}}}}["option"][0] == "attributes") { ${$this->xc9->xa26->x108d} = $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xaf2}}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->x20->xa26->xa66}} . "\\Model\\ResourceModel\\Type\\ConfigurableProduct"); } else { ${$this->x20->xa26->{$this->xc9->xa26->x1090}} = $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xaf2}}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->x20->xa26->xa66}} . "\\Model\\ResourceModel\\Type\\ConfigurableProducts" . ${$this->xc9->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x3617}}}}); } ${$this->x20->xa26->{$this->xc9->xa26->x1090}}->{$this->x1a->xa26->x1c63}(${$this->x1a->xa4f->{$this->x20->xa4f->x243b}}, ${$this->x20->xa26->{$this->xc9->xa26->x111b}}, ${$this->xc9->xa26->x113f}, $this); } } } } } foreach (${$this->x1a->xa26->{$this->x20->xa26->{$this->x1a->xa26->x1063}}} as ${$this->xc9->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x361c}}}}}) { if (${$this->xc9->xa5c->{$this->xc9->xa5c->x3613}} == "") { continue; } if ($x97a(${$this->xc9->xa4f->{$this->x20->xa4f->x2350}}, "ConfigurableProducts") != FALSE && !$this->{$this->x20->xa26->x1755}()) { continue; } if ($x97a(${$this->xc9->xa5c->{$this->xc9->xa5c->x3613}}, "ConfigurableProducts") != FALSE && $x974(${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->x1a->xa5c->x364b}}}, $this->{$this->xc9->xa26->{$this->x1a->xa26->{$this->x1a->xa26->{$this->xc9->xa26->xb78}}}})) { continue; } if ($x97a(${$this->x20->xa5c->x360e}, "ConfigurableProducts") != FALSE) { if (!${$this->xc9->xa4f->{$this->xc9->xa4f->x2395}}) { ${$this->x1a->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x2437}}}} = ${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->x1a->xa5c->x364b}}}; ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x243e}}} = "(SELECT entity_id FROM " . $this->tableCpe . " WHERE sku='" . $x9a0(${$this->x20->xa26->{$this->x1a->xa26->{$this->x1a->xa26->x1150}}}) . "' LIMIT 1)"; } else { ${$this->x1a->xa26->x1154} = ${$this->x20->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->x1a->xa26->x10d5}}}}; } } else { if (!${$this->xc9->xa4f->x2389}) { ${$this->x20->xa26->{$this->xc9->xa26->x114d}} = ${$this->x20->xa26->{$this->xc9->xa26->x1095}}; ${$this->x1a->xa4f->{$this->x20->xa4f->x243b}} = "(SELECT entity_id FROM " . $this->tableCpe . " WHERE sku='" . $x9a0(${$this->x20->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x36fa}}}}) . "' LIMIT 1)"; } else { ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x2447}}}}} = ${$this->xc9->xa4f->x239b}; } } ${$this->x1a->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->x3626}}} = $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xaf4}}}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xa69}}} . "\\Model\\ResourceModel\\Type\\" . ${$this->x20->xa5c->x360e}); ${$this->xc9->xa26->x108d}->{$this->x1a->xa26->x1d45}(${$this->x1a->xa4f->{$this->x20->xa4f->x243b}}, $this); } ${$this->x1a->xa5c->{$this->xc9->xa5c->x3624}} = $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xaf2}}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->x20->xa26->xa66}} . "\\Model\\ResourceModel\\Type\\System"); ${$this->x20->xa4f->{$this->x1a->xa4f->x2359}}->{$this->x20->xa26->x1d60}(${$this->x20->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->x3662}}}}, $this); if ($x9e3($this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xa69}}}) == "massproductimport") { ${$this->x20->xa5c->x3621}->{$this->x20->xa26->x1d60}(${$this->x20->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->x1a->xa26->x10d5}}}}, $this); } if (${$this->x20->xa4f->{$this->x20->xa4f->x238c}}) { $this->{$this->x20->xa4f->x1e1d}[] = ${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x3634}}}; } else { $this->{$this->x20->xa26->{$this->x1a->xa26->xb0a}}[] = ${$this->xc9->xa4f->{$this->xc9->xa4f->x2364}}; } } else { $this->{$this->x20->xa26->{$this->x20->xa26->xb16}}[] = ${$this->xc9->xa26->x1094}; } if ($x9e3($this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa6c}}}}) == "massproductimport" && isset(${$this->x1a->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->x10b4}}}})) { $this->{$this->xc9->xa26->{$this->xc9->xa26->xb73}}[] = ${$this->x1a->xa26->{$this->xc9->xa26->x10b0}}; } } catch (\Exception $x9f7) { $this->progressHelper->log($x9f7->{$this->xc9->xa26->x1625}(), true, ProgressHelper::ERROR); var_dump(56);die;throw new \Magento\Framework\Exception\LocalizedException(__("%1", $x9f7->{$this->xc9->xa26->x1625}())); } } } ?>
Did this file decode correctly?
Original Code
<?php
namespace Wyomind\MassStockUpdate\Model; use \Wyomind\Core\Helper\Progress as ProgressHelper; class Profiles extends
\Magento\Framework\Model\AbstractModel {public $xc9=null;public $x1a=null;public $x20=null; public $module = "MassStockUpdate"; public $name = "Mass Stock Update"; protected $_helperClass = null; protected $_storageHelper = null; protected $_dataHelper = null; protected $_coreHelper = null; protected $_appResource = null; protected $_productCollectionFactory = null; protected $_dateTime = null; public $_params = []; public $_products = []; protected $objectManager; protected $_identifierCode = "sku"; public $_success = array(); public $_warnings = array(); public $_notices = array(); public $error = "Invalid License!"; protected $_indexerFactory; protected $_ioWrite = null; protected $_ioRead = null; protected $parentSku = []; protected $_urlPersistInterface; protected $_productUrlRewriteGenerator; public function __construct( \Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Wyomind\MassStockUpdate\Helper\Storage $storageHelper, \Wyomind\MassStockUpdate\Helper\Data $dataHelper, \Wyomind\Core\Helper\Data $coreHelper, \Magento\Framework\Indexer\IndexerInterfaceFactory $indexerFactory, \Magento\Framework\Filesystem $filesystem, \Magento\Framework\App\ResourceConnection $appResource, \Wyomind\MassStockUpdate\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory, \Magento\UrlRewrite\Model\UrlPersistInterface $urlPersistInterface, \Magento\CatalogUrlRewrite\Model\ProductUrlRewriteGeneratorFactory $productUrlRewriteGenerator, \Magento\Framework\Stdlib\DateTime\DateTime $dateTime, \Magento\Framework\ObjectManagerInterface $objectManager, \Magento\Framework\Model\ResourceModel\AbstractResource $abstractResource = null, \Magento\Framework\Data\Collection\AbstractDb $abstractDb = null, array $data = [] ) { $coreHelper->constructor($this, func_get_args(), __CLASS__); $this->{$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->xa7e}}} = "\\Wyomind\\" . $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xa69}}} . "\\Helper\\Data"; $this->{$this->x1a->xa26->{$this->x1a->xa26->{$this->x20->xa26->{$this->x1a->xa26->xb31}}}} = $this->{$this->xc9->xa4f->x1d9a} . " - " . $this->{$this->x1a->xa26->{$this->x20->xa26->xb2a}}; $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}} = $storageHelper; $this->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->xa9d}}}} = $dataHelper; $this->{$this->x20->xa26->{$this->x1a->xa26->{$this->x20->xa26->xb41}}} = $indexerFactory; $this->{$this->x1a->xa26->{$this->xc9->xa26->{$this->x20->xa26->xaaf}}} = $coreHelper; $this->{$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->xabb}}} = $appResource; $this->{$this->x20->xa26->{$this->x1a->xa26->xac3}} = $productCollectionFactory; ${$this->x20->xa5c->{$this->xc9->xa5c->x3209}} = $this->{$this->xc9->xa4f->x1dbf}; ${$this->xc9->xa4f->{$this->xc9->xa4f->x1f16}} = ${$this->x20->xa4f->x1f07}->{$this->x1a->xa26->x151c}("core_read"); $this->tableCpe = ${$this->x20->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->{$this->xc9->xa4f->x1f0e}}}}->{$this->x1a->xa26->x152c}("catalog_product_entity"); $this->{$this->xc9->xa26->{$this->x20->xa26->xad0}} = $dateTime; $this->{$this->x1a->xa26->{$this->xc9->xa26->xb54}} = $filesystem->{$this->x1a->xa26->x1536}(\Magento\Framework\App\Filesystem\DirectoryList::ROOT); $this->{$this->x1a->xa26->{$this->x1a->xa26->{$this->x20->xa26->{$this->x1a->xa26->xb69}}}} = $filesystem->{$this->x1a->xa26->x1536}(\Magento\Framework\App\Filesystem\DirectoryList::ROOT); $this->{$this->x20->xa4f->{$this->x20->xa4f->x1e62}} = $urlPersistInterface; $this->{$this->x1a->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->x1a->xa26->xb99}}}} = $productUrlRewriteGenerator; parent::__construct($context, $registry, $abstractResource, $abstractDb, $data); $this->{$this->x20->xa26->{$this->xc9->xa26->xaef}} = $objectManager; $this->progressHelper = $objectManager->{$this->x1a->xa26->x156d}("Wyomind\\" . $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xa69}}} . "\\Helper\\Progress"); } protected function _construct() { $this->{$this->x20->xa26->x1580}('Wyomind\\' . $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xa69}}} . '\Model\ResourceModel\Profiles'); } protected function extractParams($x11b = null) {$x122 = $this->xc9->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x379e}};$xe9 = $this->x1a->xa5c->x37a2;$xf7 = $this->xc9->xa5c->x37b1;$x105 = $this->xc9->xa26->x1205;$x10f = $this->xc9->xa4f->{$this->x1a->xa4f->x24ea}; $this->progressHelper->log(__("Collecting parameters"), false); ${$this->x1a->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->x1f3b}}} = $this->{$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->xabb}}}; ${$this->x1a->xa26->xc76} = ${$this->x1a->xa5c->x321a}->{$this->x1a->xa26->x151c}("core_read"); ${$this->x1a->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x1f53}}} = ${$this->x1a->xa5c->x321a}->{$this->x1a->xa26->x152c}($xe9($this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xa69}}}) . "_profiles"); ${$this->xc9->xa5c->x323b} = ${$this->x20->xa5c->{$this->xc9->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->x322c}}}}->{$this->x1a->xa26->x15aa}(${$this->x1a->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x1f55}}}}}); foreach ($xf7(${$this->xc9->xa5c->{$this->x20->xa5c->x323e}}) as ${$this->x20->xa4f->{$this->x1a->xa4f->x1f64}}) { $this->{$this->x20->xa4f->x1ded}[${$this->x20->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x1f66}}}] = (${$this->x1a->xa5c->x3213} !== null && ($x105(${$this->xc9->xa4f->x1f22}->{$this->x20->xa26->x15b6}(${$this->x1a->xa4f->x1f62})) || $x10f(${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->x1f2e}}}}}->{$this->x20->xa26->x15b6}(${$this->x1a->xa4f->x1f62})))) ? ${$this->xc9->xa5c->{$this->xc9->xa5c->x3216}}->{$this->x20->xa26->x15b6}(${$this->x1a->xa4f->x1f62}) : $this->{$this->x1a->xa26->x15dc}(${$this->x1a->xa4f->x1f62}); } $this->progressHelper->log(__("Parameters collected"), false); return $this->{$this->x20->xa4f->x1ded}; } public function getImportData($x144 = null, $x158 = INF, $x15c = false) {$x169 = $this->x1a->xa4f->x24f2;$x167 = $this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->x1226}};$x16f = $this->x1a->xa4f->{$this->x20->xa4f->x250e};$x176 = $this->x1a->xa5c->{$this->x1a->xa5c->x37ff}; try { $this->progressHelper->log(__("Retrieving data"), false); if (${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->x3258}}} == null) { ${$this->x1a->xa5c->{$this->xc9->xa5c->x3276}} = $this->{$this->x1a->xa26->{$this->x1a->xa26->x1172}}(${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->x3258}}}); } else { ${$this->x1a->xa5c->{$this->xc9->xa5c->x3276}} = ${$this->x20->xa4f->x1f68}->{$this->xc9->xa26->x15f0}(); } if (${$this->x1a->xa26->xcbd}['file_path'] == "") { return ['error' => true, 'message' => __("No data preview available until source file is added.<br/><br/>Minimize this screen, and add a new source file under the \"File Location\" settings.")]; } ${$this->xc9->xa4f->x1f97} = $this->{$this->x1a->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa90}}}->{$this->xc9->xa26->x15fd}(${$this->x1a->xa5c->x3272}); ${$this->x1a->xa26->{$this->x20->xa26->{$this->x20->xa26->xcd2}}} = $this->{$this->xc9->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xa98}}}->{$this->x1a->xa26->x15dc}(${$this->x1a->xa5c->{$this->x1a->xa5c->x3278}}, ${$this->xc9->xa26->{$this->x1a->xa26->xcc0}}, ${$this->x1a->xa5c->x325a}, ${$this->xc9->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x1f81}}}); if (isset(${$this->xc9->xa4f->x1fa1}["data"])) { $this->progressHelper->log(__("Data retrieved : %1 rows found", $x167(${$this->x20->xa26->xccb}['data'])), false); } $this->progressHelper->log(__('Removing tmp file : %1', ${$this->xc9->xa26->{$this->xc9->xa26->xcc8}}), false); $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->{$this->xc9->xa26->x161b}($x16f(${$this->x1a->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->x1f9e}}}), $x176(${$this->x1a->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->x1f9e}}})); return ${$this->x20->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x1fab}}}}; } catch (\Exception $x181) { var_dump(12);die;throw new \Magento\Framework\Exception\LocalizedException(__("Error: %1", $x181->{$this->xc9->xa26->x1625}())); } } public function multipleImport() {$x1ac = $this->xc9->xa26->x124a; ${$this->x1a->xa26->{$this->x20->xa26->{$this->x1a->xa26->{$this->x1a->xa26->xcf5}}}} = $this->{$this->x1a->xa26->x1637}(); ${$this->xc9->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->{$this->xc9->xa4f->x1fd0}}}} = $this->{$this->x1a->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa90}}}->{$this->x20->xa26->x1645}(${$this->x1a->xa26->xced}, $this->{$this->xc9->xa26->x1652}(), true); ${$this->x20->xa26->{$this->x1a->xa26->xd05}} = array(); foreach (${$this->xc9->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x1fd1}}}}} as ${$this->xc9->xa4f->{$this->xc9->xa4f->x1fdd}} => ${$this->xc9->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->x32b4}}}) { ${$this->xc9->xa4f->x1fe9} = $this->{$this->xc9->xa26->x165c}(${$this->x1a->xa26->xd15})->{$this->x1a->xa26->x1666}(${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->x32ad}}}, ${$this->x1a->xa5c->x3293}); ${$this->x1a->xa26->xd03} = $x1ac(${$this->x20->xa26->{$this->x1a->xa26->xd05}}, ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x1fed}}}); } return ${$this->x1a->xa5c->{$this->x20->xa5c->x32a8}}; } protected function isLogEnabled() {$x1be = $this->x20->xa4f->{$this->xc9->xa4f->x2530}; return ($this->{$this->x1a->xa4f->x1db3}->{$this->xc9->xa26->x1675}($x1be($this->{$this->x20->xa26->{$this->x20->xa26->xa66}}) . '/settings/log')) ? true : false; } public function import($x35e, $x4d6) {$x1ea = $this->xc9->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->x3832}}}};$x1d0 = $this->x20->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x254f}};$x4df = $this->x1a->xa5c->{$this->x20->xa5c->x3850};$x221 = $this->xc9->xa26->{$this->x20->xa26->{$this->x1a->xa26->x128d}};$x4c1 = $this->x20->xa4f->{$this->x20->xa4f->x257a};$x239 = $this->x1a->xa5c->{$this->x20->xa5c->x3875};$x428 = $this->xc9->xa5c->{$this->x1a->xa5c->x3881};$x32b = $this->xc9->xa4f->{$this->x20->xa4f->x2597};$x260 = $this->x1a->xa5c->x38a1;$x338 = $this->x20->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x38be}}};$x2ba = $this->xc9->xa5c->{$this->x1a->xa5c->x38c5};$x2cb = $this->x1a->xa5c->x38cf;$x30f = $this->x1a->xa4f->x25e7;$x3fa = $this->x1a->xa4f->{$this->x20->xa4f->{$this->xc9->xa4f->x25fd}};$x352 = $this->x1a->xa26->{$this->x1a->xa26->{$this->x20->xa26->x130f}};$x464 = $this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->x1326}}};$x46a = $this->xc9->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->x2626}};$x38b = $this->x1a->xa26->x133c;$x3dc = $this->x20->xa5c->x391f;$x412 = $this->x1a->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x265d}}}};$x439 = $this->x1a->xa4f->{$this->xc9->xa4f->x2665};$x442 = $this->x20->xa5c->{$this->xc9->xa5c->x394e};$x4ce = $this->x1a->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->x2683}}; try { $this->progressHelper->{$this->x1a->xa26->x1681}($this->{$this->xc9->xa26->{$this->x1a->xa26->x1196}}(), $this->{$this->x1a->xa26->x169d}(), $this->{$this->xc9->xa26->x16aa}()); $this->_eventManager->{$this->x1a->xa26->x16b9}("massupdateimport_start", ['profile' => $this]); ${$this->x1a->xa5c->x32c3} = $this->{$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->xa7e}}}; ${$this->x1a->xa4f->{$this->x20->xa4f->x2010}} = $this; ${$this->xc9->xa4f->{$this->x1a->xa4f->x2018}} = $x1ea($x1d0()); $this->${$this->x20->xa26->xd44} = ""; ${$this->x20->xa26->xd4a} = "error"; ${$this->xc9->xa26->xd3d}->_coreHelper->{$this->x1a->xa26->x1510}(${$this->xc9->xa4f->x200d}, ${$this->xc9->xa4f->{$this->x1a->xa4f->x2018}}); if (${$this->xc9->xa5c->{$this->x1a->xa5c->x32d7}}->${$this->xc9->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->x2020}}}} != $x1ea(${$this->xc9->xa4f->{$this->x1a->xa4f->x2018}})) { var_dump(32);die;throw new \Magento\Framework\Exception\LocalizedException(__(${$this->xc9->xa26->xd3d}->${$this->x1a->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->x202f}}}}));; } $this->progressHelper->log("Starting " . $this->{$this->xc9->xa26->x16aa}(), true); $this->progressHelper->log("Current import file " . $this->{$this->x1a->xa26->x1637}(), true, progressHelper::PROCESSING, 0); ${$this->xc9->xa26->xd4f} = $this->{$this->x20->xa4f->{$this->x20->xa4f->x2462}}(); ${$this->xc9->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x2041}}} = ${$this->xc9->xa5c->{$this->x20->xa5c->x32f3}}['profile_method']; if (${$this->x1a->xa5c->{$this->x1a->xa5c->x32f9}} == 0) { ${$this->x1a->xa26->{$this->x1a->xa26->xd64}} = ${$this->x1a->xa26->{$this->x20->xa26->xd3c}}::UPDATE; } $this->{$this->x1a->xa26->{$this->x1a->xa26->{$this->x1a->xa26->{$this->xc9->xa26->xae6}}}} = []; $this->progressHelper->log("Importing data "); ${$this->xc9->xa26->{$this->x20->xa26->{$this->xc9->xa26->xd74}}} = $this->{$this->x1a->xa4f->{$this->x1a->xa4f->x246a}}(); if (isset(${$this->xc9->xa26->{$this->x20->xa26->{$this->xc9->xa26->xd74}}}['error']) && ${$this->xc9->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->x2054}}}}["error"] == "true") { $this->progressHelper->log("" . ${$this->xc9->xa5c->{$this->x1a->xa5c->x32ff}}['message'], true, progressHelper::FAILED, 0); return; } $this->progressHelper->log(__("Collecting products")); $this->{$this->x20->xa26->{$this->x20->xa26->{$this->x20->xa26->xb03}}} = $this->{$this->x20->xa4f->{$this->xc9->xa4f->x1def}}['identifier'] ?: "sku"; ${$this->x1a->xa26->{$this->x20->xa26->{$this->x20->xa26->{$this->xc9->xa26->{$this->x20->xa26->xd8e}}}}} = $this->{$this->x20->xa26->{$this->x1a->xa26->xac3}}->{$this->x1a->xa26->x156d}()->{$this->x1a->xa26->x172d}($this->{$this->x20->xa26->{$this->xc9->xa26->xb00}}); foreach (${$this->x1a->xa26->{$this->x20->xa26->{$this->x20->xa26->xd85}}} as ${$this->xc9->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x2072}}}) { $this->{$this->x1a->xa26->{$this->x1a->xa26->{$this->x20->xa26->xae3}}}[$x221(${$this->xc9->xa26->{$this->x20->xa26->xd95}}->{$this->x1a->xa26->x15dc}($this->{$this->xc9->xa4f->x1e03}))] = ${$this->xc9->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x3311}}}->{$this->x1a->xa26->x169d}(); } $this->progressHelper->log(__("%1 products collected", $x4c1($this->{$this->x1a->xa26->{$this->xc9->xa26->xae1}}))); ${$this->x20->xa4f->{$this->x20->xa4f->x207f}} = ["System"]; $this->progressHelper->log(__("Analyzing columns mapping")); ${$this->xc9->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x2097}}}} = $x239($this->{$this->x20->xa26->{$this->xc9->xa26->xad9}}['mapping']); if (${$this->xc9->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x209b}}}}} === NULL) { ${$this->x1a->xa5c->x332b} = array(); } ${$this->x1a->xa5c->{$this->x1a->xa5c->x3335}} = array(); if ($x428(${$this->x20->xa5c->{$this->x20->xa5c->x3330}})) { foreach (${$this->x1a->xa26->{$this->x20->xa26->xdae}} as ${$this->xc9->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x20ad}}}) { ${$this->xc9->xa5c->{$this->xc9->xa5c->x3340}} = $x32b("/", ${$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->x1a->xa26->xdc4}}}}}->id); ${$this->x1a->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->x334d}}}} = $x260(${$this->x1a->xa26->xdc8}); if (${$this->xc9->xa5c->x3344} == "") { continue; } ${$this->x1a->xa26->{$this->xc9->xa26->{$this->x20->xa26->{$this->x1a->xa26->xdb6}}}}[${$this->x1a->xa26->{$this->x20->xa26->xdd5}}][] = ${$this->x1a->xa4f->{$this->x1a->xa4f->x20ba}}; if (!$x338(${$this->x1a->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->x334d}}}}, ${$this->x20->xa4f->{$this->x20->xa4f->x207f}})) { ${$this->x1a->xa26->{$this->x1a->xa26->xd9c}}[] = ${$this->x1a->xa26->{$this->x20->xa26->xdd5}}; } if ($this->{$this->x20->xa26->x1755}()) { if ($x338(${$this->xc9->xa4f->x20a6}->configurable, array(1, 2))) { if (${$this->x1a->xa5c->{$this->x1a->xa5c->x3347}} != "ConfigurableProduct") { ${$this->x1a->xa5c->{$this->x1a->xa5c->x3347}} = "ConfigurableProducts" . ${$this->xc9->xa4f->x20c2}; if (!$x338(${$this->x20->xa4f->{$this->x1a->xa4f->x20c5}}, ${$this->xc9->xa5c->x3317})) { ${$this->x1a->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->xda4}}}}[] = ${$this->xc9->xa4f->x20c2}; } } } } } } foreach (${$this->xc9->xa5c->{$this->x1a->xa5c->x32c5}}::MODULES as ${$this->x1a->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x3349}}}) { ${$this->xc9->xa26->xdd8} = $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xaf2}}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa6c}}}} . "\\Model\\ResourceModel\\Type\\" . ${$this->x1a->xa26->xdd4}); ${$this->x1a->xa26->{$this->xc9->xa26->xddd}}->reset(); ${$this->x20->xa4f->x20cb} = ${$this->x20->xa5c->x3351}->{$this->xc9->xa26->x1772}($this, ${$this->xc9->xa4f->{$this->x1a->xa4f->x2091}}); if (${$this->x1a->xa26->{$this->x20->xa26->{$this->x1a->xa26->{$this->x1a->xa26->xdf2}}}} != false) { ${$this->x20->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x2089}}}}} = $x2cb(${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x3321}}}, ${$this->x1a->xa26->{$this->x1a->xa26->xded}}); } } ${$this->x1a->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xd9f}}} = $x30f(${$this->x20->xa4f->{$this->x20->xa4f->x207f}}); ${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->x336d}}}}} = []; foreach (${$this->x1a->xa5c->{$this->xc9->xa5c->x331c}} as ${$this->x1a->xa26->xdd4}) { if (${$this->xc9->xa4f->x20c2} == "") { continue; } ${$this->x20->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->x335a}}} = $this->{$this->x20->xa26->{$this->xc9->xa26->xaef}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->x20->xa26->xa66}} . "\\Model\\ResourceModel\\Type\\" . ${$this->x1a->xa26->{$this->x20->xa26->xdd5}}); $this->progressHelper->log("Collect data for ${$this->x1a->xa5c->{$this->x1a->xa5c->x3347}}"); ${$this->x1a->xa26->{$this->x20->xa26->{$this->x1a->xa26->xddf}}}->{$this->x20->xa26->x179e}($this, ${$this->xc9->xa4f->{$this->x20->xa4f->x209f}});; if ($this->{$this->x1a->xa26->x17a7}() > ${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->x32ca}}}::POST_PROCESS_INDEXERS_DISABLED) { if ($this->{$this->x1a->xa26->x17a7}() == ${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x32cb}}}}::POST_PROCESS_INDEXERS_AUTOMATICALLY) { ${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->x336d}}}}} = $x30f(${$this->x20->xa26->{$this->xc9->xa26->xdfe}} + ${$this->xc9->xa26->xdd8}->{$this->x20->xa26->x17c7}(${$this->xc9->xa26->xdab})); } elseif ($this->{$this->x1a->xa26->x17a7}() == ${$this->xc9->xa26->xd3a}::POST_PROCESS_INDEXERS_ONLY_SELECTED) { ${$this->x1a->xa26->{$this->x20->xa26->{$this->xc9->xa26->xe07}}} = ${$this->x20->xa5c->x3351}->{$this->x20->xa26->x17c7}(${$this->x1a->xa4f->x208e}); ${$this->x1a->xa4f->x20eb} = $x32b(',', $this->{$this->x1a->xa26->x17f4}()); foreach (${$this->xc9->xa4f->x20dd} as ${$this->xc9->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->x20fd}}} => ${$this->xc9->xa26->{$this->xc9->xa26->xe25}}) { if ($x338(${$this->x20->xa4f->{$this->xc9->xa4f->x2105}}, ${$this->x1a->xa4f->x20eb})) { ${$this->xc9->xa4f->{$this->x1a->xa4f->x20d1}}[${$this->xc9->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x20fe}}}}] = ${$this->x1a->xa5c->{$this->xc9->xa5c->x338f}}; } } } } } $x3fa(${$this->x1a->xa5c->{$this->x20->xa5c->x3363}}); $this->progressHelper->log("Creating SQL script"); if ($this->{$this->x20->xa4f->x1ded}['sql']) { ${$this->xc9->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->x210d}}}} = $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->{$this->x20->xa26->x17ff}() . DIRECTORY_SEPARATOR . $this->{$this->x20->xa4f->{$this->xc9->xa4f->x1def}}['sql_path'] . DIRECTORY_SEPARATOR . $this->{$this->x20->xa26->{$this->xc9->xa26->xad9}}['sql_file']; $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->mkdir($this->{$this->x1a->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa90}}}->{$this->x20->xa26->x17ff}() . DIRECTORY_SEPARATOR . $this->{$this->x20->xa4f->x1ded}['sql_path']); } else { ${$this->xc9->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x210c}}} = $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->{$this->x20->xa26->x1824}(); } ${$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->{$this->x20->xa26->{$this->x20->xa26->xe4c}}}}} = (!${$this->x20->xa26->{$this->xc9->xa26->xd31}} || !$this->{$this->x20->xa4f->{$this->xc9->xa4f->x1def}}['sql']) ? "w" : "a"; ${$this->xc9->xa4f->{$this->x20->xa4f->x211d}} = $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->{$this->xc9->xa26->x182f}($x464(${$this->x1a->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->x339d}}}), $x46a(${$this->x20->xa26->xe32}), ${$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->{$this->x1a->xa26->xe48}}}}); ${$this->x20->xa26->{$this->x1a->xa26->{$this->x1a->xa26->xe61}}} = ($this->{$this->x20->xa4f->x1ded}['sql']) ? 100 : 50; ${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->x33c4}}} = 1; ${$this->x1a->xa4f->x2134} = $x4c1(${$this->xc9->xa26->{$this->x20->xa26->xd73}}['data']); ${$this->xc9->xa4f->{$this->x20->xa4f->x2141}} = $x38b(${$this->xc9->xa5c->x33c8} / 100); ${$this->xc9->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x214b}}} = 0; foreach (${$this->xc9->xa26->{$this->x20->xa26->xd73}}['data'] as ${$this->xc9->xa26->xe7f}) { foreach (${$this->x1a->xa26->{$this->x1a->xa26->{$this->x1a->xa26->{$this->x1a->xa26->xe86}}}} as ${$this->xc9->xa4f->{$this->x1a->xa4f->x20f8}} => ${$this->x1a->xa5c->x33e4}) { if (isset(${$this->xc9->xa26->{$this->x20->xa26->{$this->xc9->xa26->{$this->x20->xa26->xd75}}}}['header'][${$this->x1a->xa26->{$this->xc9->xa26->{$this->x20->xa26->xe1a}}}])) { ${$this->x20->xa5c->x33dc}[${$this->xc9->xa4f->x2048}['header'][${$this->xc9->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->x20fd}}}]] = ${$this->x1a->xa4f->x2161}; } } $this->{$this->x1a->xa26->x11cf}(${$this->x1a->xa4f->{$this->xc9->xa4f->{$this->xc9->xa4f->{$this->xc9->xa4f->x2159}}}}, ${$this->x20->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x2089}}}}}, ${$this->x1a->xa26->{$this->x20->xa26->xdae}}, ${$this->x1a->xa4f->x203d}); if (${$this->xc9->xa5c->{$this->x20->xa5c->x33bf}} % ${$this->x20->xa4f->x213f} == 0 || ${$this->x20->xa26->xe63} + ${$this->xc9->xa26->xe6f} >= ${$this->x1a->xa26->{$this->xc9->xa26->{$this->x20->xa26->xe6d}}}) { ${$this->x1a->xa26->xe74} = $x3dc(${$this->x20->xa4f->{$this->xc9->xa4f->x212b}} * ${$this->x1a->xa5c->x33b3} / ${$this->xc9->xa5c->x33c8}); $this->progressHelper->log("${$this->xc9->xa4f->x212a} processed / ${$this->x1a->xa26->xe67} lines", true, progressHelper::PROCESSING, ${$this->x1a->xa5c->x33d5}); } ${$this->xc9->xa5c->x33bb}++; } ${$this->x1a->xa5c->{$this->xc9->xa5c->x33fc}} = ${$this->x20->xa4f->{$this->xc9->xa4f->x200c}}::MODULES; $x3fa(${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->{$this->x1a->xa5c->x3401}}}}); foreach (${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x33fe}}} as ${$this->x1a->xa5c->{$this->x1a->xa5c->x3347}}) { if (${$this->x20->xa4f->{$this->x1a->xa4f->x20c5}} == "") { continue; } ${$this->x1a->xa4f->{$this->x1a->xa4f->x20c7}} = $this->{$this->x20->xa26->{$this->xc9->xa26->xaef}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xa69}}} . "\\Model\\ResourceModel\\Type\\" . ${$this->x1a->xa26->{$this->x20->xa26->xdd5}}); ${$this->xc9->xa4f->{$this->x1a->xa4f->x2177}} = "/************** " . $x412(${$this->x20->xa4f->{$this->x1a->xa4f->x20c5}}) . " ******************/
"; $this->{$this->xc9->xa4f->x1da8}->{$this->xc9->xa26->x185b}(${$this->x1a->xa4f->x2119}, ${$this->x1a->xa4f->x2176}); ${$this->xc9->xa26->xdd8}->{$this->xc9->xa26->x1864}($this); foreach (${$this->xc9->xa26->xdd8}->queries as ${$this->xc9->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->x3416}}}} => ${$this->x20->xa4f->{$this->xc9->xa4f->x2184}}) { ${$this->x20->xa26->{$this->x1a->xa26->{$this->x20->xa26->xec0}}} = []; if ($x428(${$this->x1a->xa5c->{$this->xc9->xa5c->x341b}})) { foreach (${$this->x1a->xa26->{$this->x20->xa26->{$this->xc9->xa26->{$this->x1a->xa26->xeb5}}}} as ${$this->x20->xa5c->x342f}) { ${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->x342c}}}[] = $x439("
", " ", ${$this->x1a->xa4f->{$this->x1a->xa4f->x21a1}}); } } ${$this->x1a->xa26->xed2} = $x442("
", ${$this->x1a->xa26->xeba}); $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->{$this->xc9->xa26->x185b}(${$this->xc9->xa4f->{$this->x20->xa4f->{$this->xc9->xa4f->x211e}}}, ${$this->x1a->xa5c->x343f} . "
"); } ${$this->x20->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->x335b}}}}->queries = array(); $this->progressHelper->log("Execute after collect for ${$this->x20->xa4f->{$this->x1a->xa4f->x20c5}}", true, progressHelper::PROCESSING, ${$this->x1a->xa26->{$this->x1a->xa26->xe75}}); } $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->{$this->x1a->xa26->x1882}(${$this->x1a->xa26->{$this->x20->xa26->{$this->xc9->xa26->xe57}}}); if (!$this->{$this->x20->xa26->{$this->xc9->xa26->xad9}}['sql']) { ${$this->x20->xa4f->x2143} = $this->{$this->xc9->xa5c->{$this->xc9->xa5c->{$this->x1a->xa5c->x3777}}}(${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x3368}}}}, ${$this->x1a->xa4f->x2108}, false); $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->{$this->xc9->xa26->x161b}($x464(${$this->x1a->xa4f->x2108}), $x46a(${$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xe38}}})); $this->{$this->xc9->xa4f->{$this->x1a->xa4f->x2483}}(); } foreach (${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x3321}}} as ${$this->x1a->xa26->{$this->x20->xa26->xdd5}}) { if (${$this->x20->xa4f->{$this->x1a->xa4f->x20c5}} == "") { continue; } $this->progressHelper->log("Execute after process for ${$this->x1a->xa5c->{$this->x1a->xa5c->x3347}}", true, progressHelper::PROCESSING, ${$this->xc9->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x214b}}}); ${$this->x20->xa5c->x3351} = $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xaf2}}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa6c}}}} . "\\Model\\ResourceModel\\Type\\" . ${$this->x1a->xa26->xdd4}); ${$this->x20->xa5c->x3351}->{$this->xc9->xa26->x18c4}($this); } ${$this->xc9->xa5c->{$this->x20->xa5c->x344e}} = ""; if ($this->{$this->x20->xa4f->x1ded}['sql']) { ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x21b0}}} = "will be "; } ${$this->x1a->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->x3454}}}} = array("notice" => [], "warning" => [], "success" => []); ${$this->x20->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x21c4}}} = ""; if ($x4c1($this->{$this->x1a->xa4f->x1e16})) { ${$this->x20->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x21c4}}} = $x4c1($this->{$this->x20->xa4f->{$this->x1a->xa4f->x1e18}}) . " " . __("products %1ignored", ${$this->x1a->xa5c->x344a}); ${$this->x20->xa26->xee2}["notice"] = ${$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->xef9}}}; } if ($x4c1($this->{$this->x20->xa26->{$this->xc9->xa26->xb21}})) { ${$this->x20->xa4f->{$this->x20->xa4f->x21c0}} = $x4c1($this->{$this->x1a->xa4f->{$this->x1a->xa4f->x1e20}}) . " " . __("products %1updated.", ${$this->x1a->xa4f->{$this->x20->xa4f->x21af}}); ${$this->x20->xa5c->x3450}["warning"] = ${$this->x1a->xa26->xef3}; } if ($x4c1($this->{$this->x20->xa26->{$this->x1a->xa26->xb0a}})) { ${$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->xef9}}} = $x4c1($this->{$this->x20->xa26->{$this->x1a->xa26->xb0a}}) . " " . __("products %1imported.", ${$this->x20->xa4f->x21ae}); ${$this->x1a->xa26->{$this->x1a->xa26->{$this->x1a->xa26->xee9}}}["success"] = ${$this->x20->xa4f->x21bb}; } $this->progressHelper->log($x4ce(${$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->xef9}}}, true), true, "SUCCEEDED", 100); $this->{$this->x1a->xa26->x18d0}($this->{$this->x20->xa4f->{$this->xc9->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->x2496}}}}(${$this->x1a->xa5c->x344a})); $this->{$this->x20->xa26->x18e8}($this->{$this->xc9->xa4f->x1de6}->{$this->xc9->xa26->x18f4}('Y-m-d H:i:s')); $this->{$this->xc9->xa26->x165c}(${$this->xc9->xa4f->{$this->x1a->xa4f->x2009}}); $this->{$this->x1a->xa26->x1911}(); $this->_eventManager->{$this->x1a->xa26->x16b9}("massupdateimport_success", ['profile' => $this]); $this->progressHelper->{$this->xc9->xa26->x1934}(); return ${$this->x1a->xa5c->{$this->x20->xa5c->x3451}}; } catch (\Magento\Framework\Exception\LocalizedException $x4e6) { $this->progressHelper->log("" . $x4e6->{$this->xc9->xa26->x1625}(), true, progressHelper::FAILED, 0); $this->_eventManager->{$this->x1a->xa26->x16b9}("massupdateimport_failure", ['profile' => $this, 'error' => $x4e6]); var_dump(45);die;throw new \Magento\Framework\Exception\LocalizedException(__("<b>Unable to process the profile</b><br> %1", $x4e6->{$this->xc9->xa26->x1625}())); } } public function postProcess() {$x4ee = $this->x20->xa4f->x2688;$x511 = $this->x1a->xa4f->x2694;$x513 = $this->x1a->xa4f->{$this->xc9->xa4f->{$this->xc9->xa4f->x26aa}};$x515 = $this->x20->xa5c->x3987; ${$this->xc9->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x1a->xa26->xf17}}}} = $this->{$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->xa7e}}}; ${$this->xc9->xa4f->x21df} = $x4ee($this->{$this->xc9->xa4f->x1da8}->{$this->x20->xa26->x17ff}(), "/"); if ($this->{$this->x20->xa4f->{$this->xc9->xa4f->x1def}}['post_process_action'] == ${$this->x1a->xa4f->{$this->x20->xa4f->x21d6}}::POST_PROCESS_ACTION_MOVE) { $this->{$this->xc9->xa4f->x1da8}->{$this->x1a->xa26->x1981}( ${$this->xc9->xa26->{$this->xc9->xa26->xf22}} . DIRECTORY_SEPARATOR . $x511($x513($this->{$this->x1a->xa26->x1637}()), "\\/"), $x515($this->{$this->x1a->xa26->x1637}()), ${$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->xf25}}} . DIRECTORY_SEPARATOR . $x511($this->{$this->x20->xa4f->x1ded}['post_process_move_folder'], "\\/"), $x515($this->{$this->x1a->xa26->x1637}()) ); } elseif ($this->{$this->x20->xa26->{$this->xc9->xa26->xad9}}['post_process_action'] == ${$this->xc9->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x1a->xa26->xf17}}}}::POST_PROCESS_ACTION_DELETE) { $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->{$this->xc9->xa26->x161b}( ${$this->x1a->xa26->xf1e} . DIRECTORY_SEPARATOR . $x511($x513($this->{$this->x1a->xa26->x1637}()), "\\/"), $x515($this->{$this->x1a->xa26->x1637}()) ); } } public function generateReport($x54d) {$x54c = $this->x20->xa4f->{$this->x1a->xa4f->x26c7};$x557 = $this->x1a->xa4f->{$this->x1a->xa4f->x26d9}; ${$this->x1a->xa26->{$this->x1a->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xf39}}}} = ""; if ($x54c($this->{$this->x1a->xa4f->x1e16})) { ${$this->x1a->xa26->{$this->x1a->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xf39}}}} .= "<h3>" . $x54c($this->{$this->x1a->xa4f->x1e16}) . " " . __("products %1ignored", ${$this->xc9->xa26->xf2b}) . "</h3>"; ${$this->x20->xa4f->{$this->x20->xa4f->x2202}} .= "<p>" . $x557(", ", $this->{$this->x1a->xa4f->x1e16}) . "</p>"; } if ($x54c($this->{$this->x20->xa4f->x1e1d})) { ${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->x34a6}}}} .= "<h3>" . $x54c($this->{$this->x20->xa4f->x1e1d}) . " " . __("products %1updated.", ${$this->xc9->xa26->xf2b}) . "</h3>"; ${$this->x20->xa4f->{$this->x20->xa4f->x2202}} .= "<p>" . $x557(", ", $this->{$this->x20->xa4f->x1e1d}) . "</p>"; } if ($x54c($this->{$this->x20->xa4f->x1e09})) { ${$this->x20->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->x2203}}} .= "<h3>" . $x54c($this->{$this->x20->xa26->{$this->x1a->xa26->xb0a}}) . " " . __("products %1imported.", ${$this->xc9->xa4f->x21f3}) . "</h3>"; ${$this->x20->xa4f->{$this->x20->xa4f->x2202}} .= "<p>" . $x557(", ", $this->{$this->x20->xa4f->x1e09}) . "</p>"; } return ${$this->x1a->xa26->{$this->x1a->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x1a->xa26->xf3a}}}}}; } public function executeSqlFile($x654 = [], $x5ac = false, $x5b8 = true) {$x704 = $this->xc9->xa5c->{$this->x1a->xa5c->x39b2};$x5a3 = $this->x1a->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x39c3}}};$x5aa = $this->x1a->xa4f->{$this->xc9->xa4f->x26f9};$x5b1 = $this->x1a->xa26->{$this->xc9->xa26->x13fa};$x5bc = $this->x1a->xa5c->{$this->x20->xa5c->x39f0};$x629 = $this->xc9->xa5c->x39fb;$x6fd = $this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->x142b}};$x665 = $this->x20->xa26->x1430;$x66e = $this->x1a->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->x274a}};$x6fa = $this->x1a->xa26->{$this->x1a->xa26->x1446}; $this->progressHelper->{$this->x1a->xa26->x1681}($this->{$this->xc9->xa4f->{$this->xc9->xa4f->x2473}}(), $this->{$this->x1a->xa26->x169d}(), $this->{$this->xc9->xa26->x16aa}(), true); $this->progressHelper->log("Start importing sql queries for " . $this->{$this->xc9->xa26->x16aa}(), true); if (!${$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->{$this->x1a->xa26->xf5b}}}}) { ${$this->x20->xa5c->{$this->x20->xa5c->x34b6}} = $this->{$this->x1a->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa90}}}->{$this->x20->xa26->x17ff}() . DIRECTORY_SEPARATOR . $this->{$this->x20->xa26->x1a17}() . DIRECTORY_SEPARATOR . $this->{$this->x20->xa26->x1a22}(); } ${$this->x20->xa26->{$this->xc9->xa26->{$this->x1a->xa26->xf7a}}} = $this->{$this->x1a->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa90}}}->{$this->xc9->xa26->x182f}($x5a3(${$this->x1a->xa26->xf4e}), $x5aa(${$this->x1a->xa4f->{$this->xc9->xa4f->{$this->xc9->xa4f->x2221}}}), 'r'); ${$this->x1a->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->x34da}}} = $this->{$this->xc9->xa26->{$this->x1a->xa26->xab6}}->{$this->x1a->xa26->x151c}('core_write'); ${$this->x20->xa26->{$this->x1a->xa26->xf7e}}->{$this->x20->xa26->x1a49}(); ${$this->xc9->xa4f->{$this->xc9->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->x2254}}}} = 0; ${$this->xc9->xa26->xf86} = 0; try { while ((${$this->xc9->xa26->xf90} = $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->{$this->x20->xa26->x1a59}(${$this->xc9->xa5c->{$this->x20->xa5c->x34cb}})) !== false) { ${$this->xc9->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->x34ea}}}}++; } } catch (\Magento\Framework\Exception\FileSystemException $x6c3) { ${$this->x20->xa5c->x34ca} = $this->{$this->x1a->xa26->{$this->x1a->xa26->xa8e}}->{$this->xc9->xa26->x182f}($x5a3(${$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->{$this->x1a->xa26->xf5b}}}}), $x5aa(${$this->x1a->xa26->xf4e}), 'r'); } ${$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->xfa8}}} = $x5b1(${$this->xc9->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->x34ea}}}} / 100); ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x2289}}}}} = (${$this->x20->xa26->{$this->x20->xa26->{$this->x1a->xa26->{$this->xc9->xa26->{$this->x1a->xa26->xf70}}}}}) ? 0 : 50; try { while ((${$this->xc9->xa4f->x228c} = $this->{$this->x1a->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa90}}}->{$this->x20->xa26->x1a59}(${$this->x1a->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->x223d}}})) !== false) { try { if ($x5bc(${$this->xc9->xa26->{$this->xc9->xa26->xfb8}}) != "") { ${$this->x1a->xa5c->x34d3}->{$this->xc9->xa26->x1a88}(${$this->x1a->xa26->xfb7}); } if (${$this->x20->xa26->xf7f} % ${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->x350d}}}} == 0 || ${$this->xc9->xa5c->x34e0} + ${$this->xc9->xa5c->{$this->xc9->xa5c->x3506}} >= ${$this->x1a->xa26->{$this->x1a->xa26->xf8b}}) { ${$this->x20->xa4f->x229b} = $x629(${$this->xc9->xa4f->{$this->xc9->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->x2254}}}} * (100 - ${$this->x20->xa5c->{$this->x20->xa5c->x3518}}) / ${$this->x20->xa4f->{$this->x1a->xa4f->x225b}}) + ${$this->x1a->xa5c->x3515}; $this->progressHelper->log("${$this->xc9->xa5c->x34e0} processed / ${$this->xc9->xa26->xf86} queries", true, progressHelper::PROCESSING, ${$this->x1a->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->x353a}}}); } ${$this->xc9->xa5c->x34e0}++; } catch (\Exception $x6c3) { ${$this->x1a->xa4f->x2242}->{$this->xc9->xa26->x1a98}(); $this->progressHelper->log(__("Error in SQL query: %1", ${$this->x20->xa5c->{$this->x1a->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->x3531}}}}), false); $this->progressHelper->log("Error in SQL query: " . $x6fd(";", "", ${$this->x1a->xa26->xfb7}), true, progressHelper::FAILED, 0); var_dump(78);die;throw new \Exception(__("SQL error in ${$this->xc9->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x2299}}}}}.<br/>Error was [%1]<br><b>All updates have been rollback</b>", $x6c3->{$this->xc9->xa26->x1625}())); break; } } } catch (\Magento\Framework\Exception\LocalizedException $x6c3) { if (${$this->x1a->xa4f->x224c} % ${$this->xc9->xa5c->{$this->xc9->xa5c->x3506}} == 0 || ${$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->xf83}}} + ${$this->x20->xa26->xfa1} >= ${$this->xc9->xa26->xf86}) { ${$this->x20->xa4f->x229b} = $x629(${$this->xc9->xa5c->x34e0} * (100 - ${$this->xc9->xa26->xfab}) / ${$this->x20->xa4f->{$this->x1a->xa4f->x225b}}) + ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x2281}}}; $this->progressHelper->log("${$this->x1a->xa4f->x224c} processed / ${$this->xc9->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->x34ea}}}} queries", true, progressHelper::PROCESSING, ${$this->x1a->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x3542}}}}}); } $this->progressHelper->log(__("%1 sql queries executed", ${$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->xf83}}}), true, progressHelper::PROCESSING, ${$this->x20->xa26->xfc1}); ${$this->x1a->xa5c->{$this->x20->xa5c->x34d8}}->{$this->x20->xa26->x1ab2}(); foreach (${$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xf4a}}}}} as ${$this->x1a->xa4f->{$this->x20->xa4f->x22a6}}) { if (${$this->x1a->xa4f->x22a3} == "catalog_url") { ${$this->x20->xa4f->{$this->x20->xa4f->x22ac}} = $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xaf2}}}->{$this->xc9->xa26->x1760}("\\Wyomind\\MassProductImport\\Model\\ResourceModel\\Type\\Attribute"); ${$this->x1a->xa5c->x3566} = $x665($this->{$this->x20->xa26->{$this->xc9->xa26->xb21}}, $this->{$this->x20->xa4f->x1e09}); ${$this->x20->xa4f->{$this->xc9->xa4f->x22bc}} = $x66e($this->{$this->x20->xa4f->x1ded}['mapping']); ${$this->x20->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x22ae}}}->{$this->x20->xa26->x17c7}(${$this->x1a->xa5c->x356c}); ${$this->x20->xa26->{$this->x20->xa26->xff9}} = ${$this->xc9->xa4f->x22aa}->urlRewriteStoreViews; foreach (${$this->xc9->xa5c->{$this->xc9->xa5c->x357b}} as ${$this->xc9->xa4f->x22dc}) { if (!${$this->x20->xa26->xfff}) { continue; } ${$this->x20->xa26->x1007} = ${$this->x20->xa4f->{$this->x20->xa4f->x22f2}} = $this->{$this->xc9->xa4f->x1dd5}->{$this->x1a->xa26->x156d}(); ${$this->x20->xa4f->{$this->xc9->xa4f->x22ea}}->{$this->x1a->xa26->x1af3}(${$this->xc9->xa4f->{$this->x1a->xa4f->x22df}})->{$this->xc9->xa26->x1b02}(${$this->xc9->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->x22e2}}}}); ${$this->x20->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x35a1}}}}->{$this->xc9->xa26->x1b0b}("sku", array("in" => ${$this->x20->xa4f->{$this->x1a->xa4f->x22b2}})); ${$this->x20->xa5c->{$this->x1a->xa5c->x359a}}->{$this->x20->xa26->x1b1f}(['url_path', 'url_key'], true); ${$this->x1a->xa4f->x22fd} = ${$this->x20->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->x35a6}}}}}->{$this->x1a->xa26->x1b2b}(); foreach (${$this->xc9->xa4f->{$this->xc9->xa4f->x2300}} as ${$this->xc9->xa26->x102f}) { ${$this->xc9->xa5c->x35b6}->{$this->xc9->xa26->x1b02}(${$this->xc9->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x22e0}}}); $this->{$this->x1a->xa26->{$this->x20->xa26->xb86}}->{$this->x1a->xa26->x1b46}( [ \Magento\UrlRewrite\Service\V1\Data\UrlRewrite::ENTITY_ID => ${$this->xc9->xa4f->x2304}->{$this->x1a->xa26->x169d}(), \Magento\UrlRewrite\Service\V1\Data\UrlRewrite::ENTITY_TYPE => \Magento\CatalogUrlRewrite\Model\ProductUrlRewriteGenerator::ENTITY_TYPE, \Magento\UrlRewrite\Service\V1\Data\UrlRewrite::REDIRECT_TYPE => 0, \Magento\UrlRewrite\Service\V1\Data\UrlRewrite::STORE_ID => ${$this->x20->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->x358b}}} ] ); try { $this->{$this->xc9->xa4f->x1e5e}->{$this->x1a->xa26->x1b66}( $this->{$this->x1a->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->x1a->xa26->xb99}}}}->{$this->x1a->xa26->x156d}()->{$this->xc9->xa26->x1b81}(${$this->xc9->xa5c->x35b6}) ); } catch (\Exception $x6c3) { $this->progressHelper->log(__('Duplicated url for %1', ${$this->xc9->xa5c->{$this->xc9->xa5c->x35ba}}->{$this->x1a->xa26->x169d}()), true); } } } ${$this->x20->xa26->{$this->x20->xa26->{$this->x1a->xa26->x1043}}} = $x6fa($x6fd("_", " ", ${$this->x1a->xa4f->{$this->x20->xa4f->x22a6}})) . " " . __("re-indexed"); $this->progressHelper->log("${$this->x1a->xa4f->{$this->xc9->xa4f->x230c}}", true, progressHelper::PROCESSING, 100); continue; } ${$this->x1a->xa4f->{$this->xc9->xa4f->x2310}} = $this->{$this->x20->xa26->{$this->xc9->xa26->xb3f}}->{$this->x1a->xa26->x156d}()->{$this->x1a->xa26->x1b2b}(${$this->x1a->xa26->{$this->x1a->xa26->xfd1}}); ${$this->x1a->xa4f->{$this->xc9->xa4f->x2310}}->{$this->xc9->xa26->x1bb8}(); ${$this->x1a->xa4f->{$this->xc9->xa4f->x230c}} = $x6fa($x6fd("_", " ", ${$this->x20->xa26->xfd0})) . " " . __("re-indexed"); $this->progressHelper->log("${$this->x20->xa26->{$this->x20->xa26->{$this->x1a->xa26->x1043}}}", true, progressHelper::PROCESSING, 100); } $this->progressHelper->log("Sql file has been executed", true, progressHelper::SUCCEEDED, ${$this->x1a->xa5c->{$this->xc9->xa5c->x3538}}); $this->progressHelper->{$this->xc9->xa26->x1934}(); return ${$this->x1a->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x3542}}}}}; } } public function createSql($x89b, $x95b, $x82b, $x7c8) {$x72e = $this->x1a->xa26->x1458;$x9e3 = $this->x20->xa5c->x3a5a;$x859 = $this->xc9->xa26->{$this->xc9->xa26->{$this->xc9->xa26->x1478}};$x863 = $this->x1a->xa26->{$this->xc9->xa26->{$this->xc9->xa26->x1489}};$x8b6 = $this->x20->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->x3a88}};$x8bb = $this->x20->xa4f->x27b0;$x8c5 = $this->xc9->xa26->{$this->xc9->xa26->{$this->x1a->xa26->x14b3}};$x8d0 = $this->x1a->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x27d1}};$x974 = $this->xc9->xa26->{$this->x20->xa26->{$this->x1a->xa26->{$this->x1a->xa26->x14de}}};$x9a0 = $this->x1a->xa4f->{$this->xc9->xa4f->x27e5};$x97a = $this->x20->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->x3adc}}};$x9ee = $this->xc9->xa4f->x27f2; ${$this->x20->xa4f->x2342} = $this->{$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->{$this->xc9->xa26->xa83}}}}; try { foreach (${$this->xc9->xa4f->x2325} as ${$this->x20->xa26->{$this->x20->xa26->{$this->x1a->xa26->x1089}}}) { ${$this->xc9->xa26->x108d} = $this->{$this->x20->xa26->{$this->xc9->xa26->xaef}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->x20->xa26->xa66}} . "\\Model\\ResourceModel\\Type\\" . ${$this->xc9->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x3617}}}}); ${$this->x1a->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->x3626}}}->reset(); } if (!isset(${$this->x20->xa5c->{$this->x20->xa5c->x35db}}[$this->{$this->x1a->xa26->x1be6}()])) { return; } ${$this->xc9->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->x2367}}} = $this->{$this->xc9->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xa98}}}->{$this->x1a->xa26->x1bf2}($this->{$this->x20->xa26->x1c05}(), ${$this->xc9->xa26->x1052}, ${$this->xc9->xa26->x1052}[$this->{$this->x1a->xa26->x1be6}()]); if (${$this->x1a->xa5c->x362c} === FALSE) { return; } else if (${$this->xc9->xa26->x1094} === TRUE) { ${$this->xc9->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x236a}}}} = ""; } foreach (${$this->x1a->xa26->x1069} as ${$this->xc9->xa4f->x2370}) { if (isset(${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->x363d}}}->index) && ${$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->x10a3}}}}->index != "" && isset(${$this->x20->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x35e0}}}[${$this->x1a->xa5c->x3635}->index])) { ${$this->x20->xa5c->{$this->x20->xa5c->x35db}}[${$this->xc9->xa4f->x2370}->source] = ${$this->xc9->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->x2320}}}[${$this->x20->xa4f->{$this->xc9->xa4f->x2374}}->index]; } } if ($this->{$this->x20->xa26->x1755}()) { foreach (${$this->xc9->xa26->{$this->xc9->xa26->x106d}} as ${$this->x20->xa5c->x3640} => ${$this->x20->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x2375}}}) { if (${$this->x20->xa4f->{$this->xc9->xa4f->x2374}}->id == "ConfigurableProduct/parentSku") { if (isset(${$this->x20->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x2375}}}->index) && ${$this->xc9->xa26->{$this->xc9->xa26->{$this->xc9->xa26->x10a1}}}->index != '') { ${$this->x1a->xa4f->x2384} = ${$this->xc9->xa4f->x231a}[${$this->x20->xa4f->{$this->xc9->xa4f->x2374}}->index]; } ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x2388}}} = $this->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->xa9d}}}}->{$this->x1a->xa26->x1bf2}(${$this->x1a->xa5c->x3635}->scripting, ${$this->x20->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x35e1}}}}, ${$this->x1a->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->x10b4}}}}); if (${$this->xc9->xa5c->{$this->x20->xa5c->x3648}} == FALSE && ${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x364c}}}} == TRUE) { unset(${$this->x1a->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->x10b4}}}}); } break; } } } ${$this->xc9->xa4f->x2389} = true; ${$this->x20->xa26->x10bd} = true; if (!isset($this->{$this->x1a->xa26->{$this->xc9->xa26->xae1}}[${$this->x1a->xa5c->{$this->x1a->xa5c->x3630}}])) { ${$this->xc9->xa26->{$this->xc9->xa26->x10b8}} = false; } if (isset(${$this->xc9->xa5c->{$this->x20->xa5c->x3648}}) && !isset($this->{$this->x1a->xa26->{$this->xc9->xa26->xae1}}[${$this->x20->xa5c->x3644}])) { ${$this->x1a->xa26->{$this->x20->xa26->x10c2}} = false; } ${$this->x1a->xa26->x10c7} = null; ${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->x3675}}}}} = null; ${$this->x1a->xa4f->x23aa} = ${$this->x1a->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x233b}}}} == ${$this->xc9->xa4f->{$this->x20->xa4f->{$this->xc9->xa4f->x2347}}}::UPDATE; ${$this->x20->xa5c->{$this->x20->xa5c->{$this->x1a->xa5c->{$this->x1a->xa5c->x368e}}}} = ${$this->x1a->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x233b}}}} == ${$this->x20->xa4f->x2342}::IMPORT; ${$this->x1a->xa26->{$this->x20->xa26->{$this->x20->xa26->x10f2}}} = ${$this->x20->xa26->{$this->x20->xa26->x1076}} == ${$this->xc9->xa4f->{$this->x20->xa4f->{$this->xc9->xa4f->x2347}}}::UPDATEIMPORT; if ((${$this->x20->xa5c->{$this->xc9->xa5c->x367b}} && ${$this->xc9->xa4f->x2389}) || (${$this->xc9->xa26->x10e3} && !${$this->xc9->xa26->{$this->xc9->xa26->x10b8}}) || ${$this->x1a->xa26->{$this->x20->xa26->{$this->x20->xa26->x10f2}}}) { ${$this->x20->xa5c->x3621} = $this->{$this->x20->xa26->{$this->xc9->xa26->xaef}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa6c}}}} . "\\Model\\ResourceModel\\Type\\System"); if ($x9e3($this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa6c}}}}) == "massproductimport") { if ($this->{$this->x20->xa26->x1755}()) { ${$this->x20->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x23d4}}} = $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xaf2}}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa6c}}}} . "\\Model\\ResourceModel\\Type\\ConfigurableProductsSystem"); } } if (${$this->xc9->xa5c->{$this->x20->xa5c->x3651}}) { ${$this->x20->xa5c->{$this->xc9->xa5c->{$this->x1a->xa5c->x365e}}} = (int)$this->{$this->x1a->xa26->{$this->x1a->xa26->{$this->x20->xa26->xae3}}}[${$this->x20->xa4f->x2363}]; ${$this->x1a->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x1a->xa5c->x3628}}}}->fields = []; } else { ${$this->x20->xa26->{$this->xc9->xa26->x1090}}->{$this->x1a->xa26->x1c63}(${$this->xc9->xa4f->x239b}, ${$this->xc9->xa4f->{$this->xc9->xa4f->x2364}}, array("option" => array("sku")), $this); } if (${$this->x20->xa5c->{$this->x20->xa5c->x3657}}) { if (isset(${$this->x1a->xa4f->x2384})) { ${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->x1a->xa5c->{$this->x1a->xa5c->x3673}}}} = (int)$this->{$this->x1a->xa26->{$this->x1a->xa26->{$this->x1a->xa26->{$this->xc9->xa26->xae6}}}}[${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x364c}}}}]; } if ($x9e3($this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa6c}}}}) == "massproductimport") { if ($this->{$this->x20->xa26->x1755}()) { ${$this->x1a->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->x1a->xa26->x1100}}}}->fields = []; } } } else { if (isset(${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x2388}}})) { if ($this->{$this->x20->xa26->x1755}()) { ${$this->x1a->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->x1a->xa26->x1100}}}}->{$this->x1a->xa26->x1c63}(${$this->x20->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->x3662}}}}, ${$this->x1a->xa26->{$this->xc9->xa26->x10b0}}, array("option" => array("sku")), $this); } } } ${$this->x1a->xa4f->{$this->x20->xa4f->x23dd}} = 0; ${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x36a9}}} = false; ${$this->x20->xa5c->{$this->x20->xa5c->x35db}}["identifier"] = ${$this->x20->xa26->{$this->x20->xa26->{$this->x1a->xa26->x1098}}}; foreach (${$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->{$this->xc9->xa26->x1070}}}} as ${$this->x20->xa4f->{$this->xc9->xa4f->x2374}}) { if (!isset(${$this->x20->xa4f->{$this->xc9->xa4f->x2374}}->importupdate)) { ${$this->x1a->xa5c->x3635}->importupdate = 2; } switch (${$this->x20->xa26->x109b}->importupdate) { case 0: if (${$this->x1a->xa5c->x3650}) { continue 2; } break; case 1: if (!${$this->xc9->xa4f->x2389}) { continue 2; } break; } if (!${$this->xc9->xa26->{$this->xc9->xa26->{$this->xc9->xa26->x10a1}}}->enabled) { continue; } if (${$this->xc9->xa5c->{$this->x1a->xa5c->x3638}}->enabled) { if (${$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->x1114}}}) { continue; } ${$this->x20->xa4f->{$this->x20->xa4f->x23e9}} = ""; if (isset(${$this->x20->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x2378}}}}->index) && ${$this->x20->xa4f->{$this->xc9->xa4f->x2374}}->index != "" && isset(${$this->xc9->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->x2320}}}[${$this->xc9->xa4f->x2370}->index])) { if ($x859(${$this->x1a->xa5c->x35d6}[${$this->xc9->xa4f->x2370}->index])) { ${$this->x20->xa26->{$this->xc9->xa26->x111b}} = $x863(${$this->xc9->xa4f->{$this->xc9->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x2322}}}}}[${$this->xc9->xa26->{$this->xc9->xa26->x109f}}->index]); } else { ${$this->x20->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->{$this->xc9->xa4f->x23f0}}}} = (${$this->x1a->xa26->{$this->x20->xa26->{$this->x20->xa26->{$this->xc9->xa26->x105b}}}}[${$this->xc9->xa4f->x2370}->index]); } } else { if (${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->x363d}}}->scripting == "") { ${$this->xc9->xa5c->x36ac} = ${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->x363e}}}}->default; } } if ($this->{$this->x1a->xa4f->x1db3}->{$this->x20->xa26->x1c8b}("Wyomind_MassProductImport")) { if (isset(${$this->x20->xa26->x109b}->rule)) { ${$this->x1a->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x36c2}}}} = \Magento\Framework\App\ObjectManager::{$this->x20->xa26->x1c96}(); ${$this->xc9->xa4f->{$this->x20->xa4f->{$this->x20->xa4f->x2402}}} = ${$this->x1a->xa5c->{$this->x20->xa5c->x36bc}}->{$this->x1a->xa26->x156d}("\\Wyomind\\MassProductImport\\Helper\\Data"); ${$this->x20->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x23eb}}} = ${$this->x1a->xa26->x1126}->{$this->x1a->xa26->x1caa}(${$this->xc9->xa4f->x2370}->rule, ${$this->x20->xa4f->x23e7}); } } if (${$this->x20->xa4f->{$this->xc9->xa4f->x2374}}->scripting != "") { try { ${$this->x20->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x23eb}}} = $this->{$this->xc9->xa26->{$this->x20->xa26->xa97}}->{$this->x1a->xa26->x1bf2}(${$this->xc9->xa5c->{$this->x1a->xa5c->x3638}}->scripting, ${$this->x1a->xa5c->x35d6}, ${$this->x20->xa4f->x23e7}); if (${$this->x20->xa26->{$this->xc9->xa26->x111b}} === FALSE) { ${$this->x20->xa4f->{$this->xc9->xa4f->x23e2}} = true; continue; } elseif (${$this->x20->xa4f->x23e7} === TRUE) { continue; } } catch (\Exception $x9f7) { var_dump(55);die;throw new \Magento\Framework\Exception\LocalizedException(__("Error in script for %1 :%2", ${$this->x20->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x2378}}}}->label, $x8b6($x8bb($x9f7->{$this->xc9->xa26->x1625}())))); } } ${$this->x1a->xa5c->{$this->x1a->xa5c->x36dc}} = $x8c5("/", ${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->x20->xa5c->x363d}}}->id); ${$this->xc9->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x361c}}}}} = $x8d0(${$this->xc9->xa26->{$this->xc9->xa26->x1137}}); ${$this->xc9->xa26->{$this->x1a->xa26->x1143}}["storeviews"] = ${$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->x10a3}}}}->storeviews; ${$this->x1a->xa4f->{$this->x20->xa4f->x241f}}["option"] = ${$this->x20->xa4f->x2412}; if (${$this->xc9->xa5c->{$this->xc9->xa5c->x3613}} == null) { continue; } if (!$this->{$this->x20->xa26->x1755}()) { ${$this->x20->xa4f->{$this->xc9->xa4f->x2374}}->configurable = 0; } if ($x974(${$this->x20->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x2378}}}}->configurable, array(0, 2))) { if (!${$this->x20->xa4f->{$this->x20->xa4f->x238c}}) { ${$this->x1a->xa4f->{$this->x20->xa4f->x2430}} = ${$this->x20->xa4f->x2363}; ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x243e}}} = "(SELECT entity_id FROM " . $this->tableCpe . " WHERE sku='" . $x9a0(${$this->x20->xa26->{$this->xc9->xa26->x114d}}) . "' LIMIT 1)"; } else { ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x2447}}}}} = ${$this->x1a->xa26->{$this->x1a->xa26->x10ca}}; } ${$this->x20->xa26->{$this->xc9->xa26->x1090}} = $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xaf4}}}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->x20->xa26->xa66}} . "\\Model\\ResourceModel\\Type\\" . ${$this->x20->xa5c->x360e}); ${$this->x20->xa26->{$this->xc9->xa26->x1090}}->{$this->x1a->xa26->x1c63}(${$this->x1a->xa26->x1154}, ${$this->x20->xa5c->{$this->x20->xa5c->x36b0}}, ${$this->xc9->xa26->x113f}, $this); } if ($this->{$this->x20->xa26->x1755}()) { if ($x974(${$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->{$this->x20->xa26->x10a3}}}}->configurable, array(1, 2))) { if (isset(${$this->xc9->xa5c->{$this->x20->xa5c->x3648}}) && $x974(${$this->x1a->xa26->x10af}, $this->{$this->xc9->xa26->{$this->x1a->xa26->{$this->x1a->xa26->xb75}}})) { } else { if (!${$this->x1a->xa26->{$this->x20->xa26->{$this->x1a->xa26->x10c3}}}) { ${$this->x20->xa5c->{$this->xc9->xa5c->{$this->x1a->xa5c->x36f6}}} = ${$this->xc9->xa5c->{$this->x20->xa5c->x3648}}; ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x243e}}} = "(SELECT entity_id FROM " . $this->tableCpe . " WHERE sku='" . $x9a0(${$this->x20->xa26->{$this->xc9->xa26->x114d}}) . "' LIMIT 1)"; } else { ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x2447}}}}} = ${$this->x20->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->x1a->xa26->x10d5}}}}; } if (${$this->x20->xa5c->x360e} == "ConfigurableProduct" && ${$this->x1a->xa4f->{$this->xc9->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x2426}}}}["option"][0] == "attributes") { ${$this->xc9->xa26->x108d} = $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xaf2}}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->x20->xa26->xa66}} . "\\Model\\ResourceModel\\Type\\ConfigurableProduct"); } else { ${$this->x20->xa26->{$this->xc9->xa26->x1090}} = $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xaf2}}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->x20->xa26->xa66}} . "\\Model\\ResourceModel\\Type\\ConfigurableProducts" . ${$this->xc9->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x3617}}}}); } ${$this->x20->xa26->{$this->xc9->xa26->x1090}}->{$this->x1a->xa26->x1c63}(${$this->x1a->xa4f->{$this->x20->xa4f->x243b}}, ${$this->x20->xa26->{$this->xc9->xa26->x111b}}, ${$this->xc9->xa26->x113f}, $this); } } } } } foreach (${$this->x1a->xa26->{$this->x20->xa26->{$this->x1a->xa26->x1063}}} as ${$this->xc9->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->xc9->xa5c->x361c}}}}}) { if (${$this->xc9->xa5c->{$this->xc9->xa5c->x3613}} == "") { continue; } if ($x97a(${$this->xc9->xa4f->{$this->x20->xa4f->x2350}}, "ConfigurableProducts") != FALSE && !$this->{$this->x20->xa26->x1755}()) { continue; } if ($x97a(${$this->xc9->xa5c->{$this->xc9->xa5c->x3613}}, "ConfigurableProducts") != FALSE && $x974(${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->x1a->xa5c->x364b}}}, $this->{$this->xc9->xa26->{$this->x1a->xa26->{$this->x1a->xa26->{$this->xc9->xa26->xb78}}}})) { continue; } if ($x97a(${$this->x20->xa5c->x360e}, "ConfigurableProducts") != FALSE) { if (!${$this->xc9->xa4f->{$this->xc9->xa4f->x2395}}) { ${$this->x1a->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x1a->xa4f->x2437}}}} = ${$this->xc9->xa5c->{$this->x1a->xa5c->{$this->x1a->xa5c->x364b}}}; ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->xc9->xa4f->x243e}}} = "(SELECT entity_id FROM " . $this->tableCpe . " WHERE sku='" . $x9a0(${$this->x20->xa26->{$this->x1a->xa26->{$this->x1a->xa26->x1150}}}) . "' LIMIT 1)"; } else { ${$this->x1a->xa26->x1154} = ${$this->x20->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->x1a->xa26->x10d5}}}}; } } else { if (!${$this->xc9->xa4f->x2389}) { ${$this->x20->xa26->{$this->xc9->xa26->x114d}} = ${$this->x20->xa26->{$this->xc9->xa26->x1095}}; ${$this->x1a->xa4f->{$this->x20->xa4f->x243b}} = "(SELECT entity_id FROM " . $this->tableCpe . " WHERE sku='" . $x9a0(${$this->x20->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x36fa}}}}) . "' LIMIT 1)"; } else { ${$this->x1a->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->{$this->x1a->xa4f->{$this->x20->xa4f->x2447}}}}} = ${$this->xc9->xa4f->x239b}; } } ${$this->x1a->xa5c->{$this->x1a->xa5c->{$this->xc9->xa5c->x3626}}} = $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xaf4}}}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xa69}}} . "\\Model\\ResourceModel\\Type\\" . ${$this->x20->xa5c->x360e}); ${$this->xc9->xa26->x108d}->{$this->x1a->xa26->x1d45}(${$this->x1a->xa4f->{$this->x20->xa4f->x243b}}, $this); } ${$this->x1a->xa5c->{$this->xc9->xa5c->x3624}} = $this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xaf2}}}->{$this->xc9->xa26->x1760}("\\Wyomind\\" . $this->{$this->x20->xa26->{$this->x20->xa26->xa66}} . "\\Model\\ResourceModel\\Type\\System"); ${$this->x20->xa4f->{$this->x1a->xa4f->x2359}}->{$this->x20->xa26->x1d60}(${$this->x20->xa5c->{$this->xc9->xa5c->{$this->x20->xa5c->{$this->x20->xa5c->x3662}}}}, $this); if ($x9e3($this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->xa69}}}) == "massproductimport") { ${$this->x20->xa5c->x3621}->{$this->x20->xa26->x1d60}(${$this->x20->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->x1a->xa26->x10d5}}}}, $this); } if (${$this->x20->xa4f->{$this->x20->xa4f->x238c}}) { $this->{$this->x20->xa4f->x1e1d}[] = ${$this->x1a->xa5c->{$this->xc9->xa5c->{$this->xc9->xa5c->x3634}}}; } else { $this->{$this->x20->xa26->{$this->x1a->xa26->xb0a}}[] = ${$this->xc9->xa4f->{$this->xc9->xa4f->x2364}}; } } else { $this->{$this->x20->xa26->{$this->x20->xa26->xb16}}[] = ${$this->xc9->xa26->x1094}; } if ($x9e3($this->{$this->x20->xa26->{$this->xc9->xa26->{$this->xc9->xa26->{$this->x20->xa26->xa6c}}}}) == "massproductimport" && isset(${$this->x1a->xa26->{$this->xc9->xa26->{$this->x1a->xa26->{$this->xc9->xa26->x10b4}}}})) { $this->{$this->xc9->xa26->{$this->xc9->xa26->xb73}}[] = ${$this->x1a->xa26->{$this->xc9->xa26->x10b0}}; } } catch (\Exception $x9f7) { $this->progressHelper->log($x9f7->{$this->xc9->xa26->x1625}(), true, ProgressHelper::ERROR); var_dump(56);die;throw new \Magento\Framework\Exception\LocalizedException(__("%1", $x9f7->{$this->xc9->xa26->x1625}())); } } } ?>
Function Calls
None |
Stats
MD5 | 952c68d214280fc1e8f632e4431fc593 |
Eval Count | 0 |
Decode Time | 75 ms |