empty($product) // No product associated with the specified order number (empty result set)
||
empty($product['articleID'
]) // or empty articleID
||
empty($product['notification'
]) // or notification disabled on product
||
empty($product['active'
]) // or product is not active
) { continue;
} $attributeLoader =
$this->
get(DataLoaderInterface::
class);
$notify['attribute'
] =
$attributeLoader->
load('s_articles_notification_attributes',
$notify['id'
]);
$shop =
$modelManager->
getRepository(Shop::
class)->
getActiveById($notify['language'
]);
// Continue if shop is inactive or deleted
if ($shop === null
) { continue;
} $this->
get(ShopRegistrationServiceInterface::
class)->
registerShop($shop);
$shopContext = Context::
createFromShop($shop,
$this->
get(Shopware_Components_Config::
class));
$this->
get(RouterInterface::
class)->
setContext($shopContext);
$sContext =
$this->
get(ContextServiceInterface::
class)->
createShopContext($notify['language'
]);