diff --git a/vendor/magento/module-sales-rule/Model/Rule/Condition/Product.php b/vendor/magento/module-sales-rule/Model/Rule/Condition/Product.php index e4388609ab01..cc65876fb513 100644 --- a/vendor/magento/module-sales-rule/Model/Rule/Condition/Product.php +++ b/vendor/magento/module-sales-rule/Model/Rule/Condition/Product.php @@ -3,7 +3,6 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ - namespace Magento\SalesRule\Model\Rule\Condition; /** @@ -22,7 +21,7 @@ class Product extends \Magento\Rule\Model\Condition\Product\AbstractProduct protected function _addSpecialAttributes(array &$attributes) { parent::_addSpecialAttributes($attributes); - $attributes['quote_item_qty'] = __('Quantity in cart'); + $attributes['parent::quote_item_qty'] = __('Quantity in cart'); $attributes['quote_item_price'] = __('Price in cart'); $attributes['quote_item_row_total'] = __('Row total in cart'); diff --git a/vendor/magento/module-sales-rule/Model/Rule/Condition/Product/Combine.php b/vendor/magento/module-sales-rule/Model/Rule/Condition/Product/Combine.php index 35e7e6214461..f96d1ebe1d48 100644 --- a/vendor/magento/module-sales-rule/Model/Rule/Condition/Product/Combine.php +++ b/vendor/magento/module-sales-rule/Model/Rule/Condition/Product/Combine.php @@ -45,7 +45,7 @@ public function getNewChildSelectOptions() $pAttributes = []; $iAttributes = []; foreach ($productAttributes as $code => $label) { - if (strpos($code, 'quote_item_') === 0) { + if (strpos($code, 'quote_item_') === 0 || strpos($code, 'parent::quote_item_') === 0) { $iAttributes[] = [ 'value' => \Magento\SalesRule\Model\Rule\Condition\Product::class . '|' . $code, 'label' => $label,