14 class Select extends \Magento\Catalog\Model\Product\Option\Type\DefaultType
44 \
Magento\Framework\Escaper $escaper,
48 $this->_escaper = $escaper;
49 parent::__construct($checkoutSession, $scopeConfig,
$data);
61 parent::validateUserValue(
$values);
64 $value = $this->getUserValue();
67 $this->setIsValid(
false);
69 __(
"The product's required option(s) weren't entered. Make sure the options are entered and try again.")
75 if ($valuesCollection->count() != $valueCount) {
76 $this->setIsValid(
false);
79 "The product's required option(s) weren't entered. " 80 .
"Make sure the options are entered and try again." 95 if ($this->getIsValid() && $this->getUserValue()) {
96 return is_array($this->getUserValue()) ? implode(
',', $this->getUserValue()) : $this->getUserValue();
110 if ($this->_formattedOptionValue ===
null) {
134 return __(
'Some of the selected item options are not currently available.');
151 $result .= $_result->getTitle() .
', ';
153 if ($this->getListener()) {
164 $result = $_result->getTitle();
166 if ($this->getListener()) {
190 if (array_key_exists(
$value, $productOptionValues)) {
235 $_result->getPrice(),
236 $_result->getPriceType() ==
'percent',
240 if ($this->getListener()) {
250 $_result->getPrice(),
251 $_result->getPriceType() ==
'percent',
255 if ($this->getListener()) {
280 $skus[] = $optionSku->getSku();
282 if ($this->getListener()) {
294 if ($this->getListener()) {
elseif(isset( $params[ 'redirect_parent']))
getSkipCheckRequiredOption()
const OPTION_TYPE_DROP_DOWN
validateUserValue($values)
foreach($websiteCodes as $websiteCode) $skus
_getWrongConfigurationMessage()
getOptionSku($optionValue, $skuDelimiter)
getFormattedOptionValue($optionValue)
parseOptionValue($optionValue, $productOptionValues)
getOptionPrice($optionValue, $basePrice)
getPrintableOptionValue($optionValue)
_getChargeableOptionPrice($price, $isPercent, $basePrice)
prepareOptionValueForRequest($optionValue)
getEditableOptionValue($optionValue)
__construct(\Magento\Checkout\Model\Session $checkoutSession, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\Stdlib\StringUtils $string, \Magento\Framework\Escaper $escaper, array $data=[])