private function createSalesChannel(string
$newId, array
$shop, Connection
$connection): void
{ $typeId = Defaults::SALES_CHANNEL_TYPE_STOREFRONT;
$paymentMethod =
$this->
getFirstActivePaymentMethodId($connection);
$shippingMethod =
$this->
getFirstActiveShippingMethodId($connection);
$languageId =
$this->
getLanguageId($shop['locale'
],
$connection);
$currencyId =
$this->
getCurrencyId($shop['currency'
],
$connection);
$countryId =
$this->
getCountryId($shop['country'
],
$connection);
$statement =
$connection->
prepare( 'INSERT INTO sales_channel (
id,
type_id, access_key, navigation_category_id, navigation_category_version_id,
language_id, currency_id, payment_method_id,
shipping_method_id, country_id, customer_group_id, created_at
) VALUES (
?,
UNHEX(?), ?, ?, UNHEX(?),
?, ?, ?,
?, ?, ?, ?
)'