41 private $customOptionPriceCalculator;
61 $this->customOptionPriceCalculator = $customOptionPriceCalculator
76 $options = $this->product->getOptions();
81 if (!$optionItem->getIsRequire()) {
85 if ($optionItem->getValues() ===
null && $optionItem->getPrice() !==
null) {
99 $this->customOptionPriceCalculator->getOptionPriceByPriceCode(
$optionValue, $priceCode);
105 $type = $optionItem->getType();
116 'option_id' => $optionItem->getId(),
117 'type' => $optionItem->getType(),
118 'min' => ($min ===
null) ? 0. : $min,
123 return $optionValues;
140 return $this->calculator->getAmount(
$amount, $this->
getProduct(), $exclude, $context);
161 return $this->priceCurrency->convertAndRound(
$optionValue);
171 if (
null !== $this->
value) {
174 $this->
value =
false;
175 $optionIds = $this->product->getCustomOption(
'option_ids');
205 $confItemOption = $this->product->getCustomOption(
'option_' .
$option->getId());
209 ->setConfigurationItemOption($confItemOption);
222 if (
null !== $this->priceOptions) {
225 $this->priceOptions = [];
226 $options = $this->product->getOptions();
__construct(SaleableInterface $saleableItem, $quantity, CalculatorInterface $calculator, \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency, $excludeAdjustment=null, CustomOptionPriceCalculator $customOptionPriceCalculator=null)
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
elseif(isset( $params[ 'redirect_parent']))
processOptions(array $values)
getCustomAmount($amount=null, $exclude=null, $context=[])
const OPTION_TYPE_MULTIPLE
const OPTION_TYPE_CHECKBOX
getCustomOptionRange($getMin, $priceCode=\Magento\Catalog\Pricing\Price\BasePrice::PRICE_CODE)