-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from techdivision/pac-903
PAC-903: add the enterprise variant
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
/** | ||
* TechDivision\Import\Product\Ee\Observers\StoreWebsiteValidatorObserver | ||
* | ||
* PHP version 7 | ||
* | ||
* @author MET <[email protected]> | ||
* @copyright 2024 TechDivision GmbH <[email protected]> | ||
* @license https://opensource.org/licenses/MIT | ||
* @link https://github.com/techdivision/import | ||
* @link http://www.techdivision.com | ||
*/ | ||
|
||
namespace TechDivision\Import\Product\Ee\Observers; | ||
|
||
use TechDivision\Import\Product\Msi\Utils\ColumnKeys; | ||
use TechDivision\Import\Product\Observers\StoreWebsiteValidatorObserver; | ||
use TechDivision\Import\Product\Utils\MemberNames; | ||
|
||
/** | ||
* Store view validator implementation. | ||
* | ||
* @author MET <[email protected]> | ||
* @copyright 2024 TechDivision GmbH <[email protected]> | ||
* @license https://opensource.org/licenses/MIT | ||
* @link https://github.com/techdivision/import | ||
* @link http://www.techdivision.com | ||
*/ | ||
class EeStoreWebsiteValidatorObserver extends StoreWebsiteValidatorObserver | ||
{ | ||
/** | ||
* @return void | ||
*/ | ||
public function setLastEntityRowId($sku): void | ||
{ | ||
if (!$this->hasBeenProcessed($sku)) { | ||
$this->entity = $this->loadProduct($sku); | ||
$this->setLastEntityId($this->entity[MemberNames::ROW_ID]); | ||
$this->lastEntityId = $this->getLastEntityId(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters