File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
app/code/Magento/SalesRule/Model/Rule/Condition Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 55 */
66namespace Magento \SalesRule \Model \Rule \Condition ;
77
8- use Magento \ConfigurableProduct \Model \Product \Type \Configurable ;
9-
108/**
119 * Product rule condition data model
1210 *
@@ -47,7 +45,7 @@ protected function getProductToValidate(\Magento\Framework\Model\AbstractModel $
4745 $ attrCode = $ this ->getAttribute ();
4846
4947 /* Check for attributes which are not available for configurable products */
50- if ($ product ->getTypeId () == Configurable:: TYPE_CODE && !$ product ->hasData ($ attrCode )) {
48+ if ($ product ->isComposite () && !$ product ->hasData ($ attrCode )) {
5149 /** @var \Magento\Catalog\Api\Data\ProductInterface $childProduct */
5250 $ childProduct = current ($ model ->getChildren ())->getProduct ();
5351 if ($ childProduct ->hasData ($ attrCode )) {
You can’t perform that action at this time.
0 commit comments