File tree 1 file changed +1
-3
lines changed
app/code/Magento/SalesRule/Model/Rule/Condition
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \SalesRule \Model \Rule \Condition ;
7
7
8
- use Magento \ConfigurableProduct \Model \Product \Type \Configurable ;
9
-
10
8
/**
11
9
* Product rule condition data model
12
10
*
@@ -47,7 +45,7 @@ protected function getProductToValidate(\Magento\Framework\Model\AbstractModel $
47
45
$ attrCode = $ this ->getAttribute ();
48
46
49
47
/* 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 )) {
51
49
/** @var \Magento\Catalog\Api\Data\ProductInterface $childProduct */
52
50
$ childProduct = current ($ model ->getChildren ())->getProduct ();
53
51
if ($ childProduct ->hasData ($ attrCode )) {
You can’t perform that action at this time.
0 commit comments