if (!
empty($productTranslation['packUnit'
])) { $data['packUnit'
] =
$productTranslation['packUnit'
];
} } } return $data;
} private function createShopContext(Order
$order): ShopContextInterface
{ $customerGroupKey =
$this->
getCustomerGroupKey($order);
$areaId = null;
$countryId = null;
$stateId = null;
$currencyId =
(int) $this->container->
get(Connection::
class)->
fetchOne( 'SELECT `id` FROM `s_core_currencies` WHERE `currency` = :currency',
['currency' =>
$order->
getCurrency()] );
$shippingAddress =
$order->
getShipping();
if ($shippingAddress instanceof Shipping
) {