);
$statement->
executeStatement([ $newId,
$typeId,
AccessKeyHelper::
generateAccessKey('sales-channel'
),
$this->
getRootCategoryId($connection), Defaults::LIVE_VERSION,
$languageId,
$currencyId,
$paymentMethod,
$shippingMethod,
$countryId,
$this->
getCustomerGroupId($connection),
(new \
DateTime())->
format(Defaults::STORAGE_DATE_TIME_FORMAT
),
]);
$statement =
$connection->
prepare( 'INSERT INTO sales_channel_translation (sales_channel_id, language_id, `name`, created_at)
VALUES (?, UNHEX(?), ?, ?)'