Sylius\Behat\Context\Setup\ProductContext::itHasDifferentPricesForDifferentChannelsAndCurrencies PHP Method

itHasDifferentPricesForDifferentChannelsAndCurrencies() public method

public itHasDifferentPricesForDifferentChannelsAndCurrencies ( Sylius\Component\Core\Model\ProductInterface $product )
$product Sylius\Component\Core\Model\ProductInterface
    public function itHasDifferentPricesForDifferentChannelsAndCurrencies(ProductInterface $product)
    {
        /** @var ProductVariantInterface $variant */
        $variant = $this->defaultVariantResolver->getVariant($product);
        $variant->setPricingCalculator(Calculators::CHANNEL_AND_CURRENCY_BASED);
    }