if (isset($options['language'
]) && !
empty($options['language'
])) { $shop =
$this->
findEntityByConditions(Shop::
class,
[ ['id' =>
$options['language'
]],
['shop' =>
$options['language'
]],
]);
if (!
$shop instanceof Shop
) { throw new ModelNotFoundException(Shop::
class,
$options['language'
]);
} $product =
$this->
translateArticle($product,
$shop);
} } return $product;
} /**
* Helper function which calculates formats the variant prices for each customer group.
* If the customer group configured "taxInput" as true, the price will be formatted as gross.
*
* @param array $prices Array of the variant prices
* @param float $taxRate Float value of the product tax (example: 19.00)
*
* @return array
*/