We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6da226d commit f47033cCopy full SHA for f47033c
app/code/Magento/ConfigurableProduct/Plugin/SalesRule/Model/Rule/Condition/Product.php
@@ -56,7 +56,10 @@ private function getProductToValidate(
56
$attrCode = $subject->getAttribute();
57
58
/* Check for attributes which are not available for configurable products */
59
- if ($product->getTypeId() == Configurable::TYPE_CODE && !$product->hasData($attrCode)) {
+ if ($product->getTypeId() == Configurable::TYPE_CODE &&
60
+ !$product->hasData($attrCode) &&
61
+ count($model->getChildren())
62
+ ) {
63
/** @var \Magento\Catalog\Model\AbstractModel $childProduct */
64
$childProduct = current($model->getChildren())->getProduct();
65
if ($childProduct->hasData($attrCode)) {
0 commit comments