File tree Expand file tree Collapse file tree 1 file changed +3
-26
lines changed
app/code/Magento/CatalogRuleConfigurable/Plugin/CatalogRule/Model/Rule Expand file tree Collapse file tree 1 file changed +3
-26
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
+ *
3
4
* Copyright © Magento, Inc. All rights reserved.
4
5
* See COPYING.txt for license details.
5
6
*/
6
7
namespace Magento \CatalogRuleConfigurable \Plugin \CatalogRule \Model \Rule ;
7
8
9
+ use Magento \ConfigurableProduct \Model \Product \Type \Configurable ;
8
10
use Magento \CatalogRuleConfigurable \Plugin \CatalogRule \Model \ConfigurableProductsProvider ;
9
11
10
12
/**
11
- * Add configurable sub products to catalog rule indexer on reindex
13
+ * Add configurable sub products to catalog rule indexer on full reindex
12
14
*/
13
15
class ConfigurableProductHandler
14
16
{
@@ -40,31 +42,6 @@ public function __construct(
40
42
}
41
43
42
44
/**
43
- * Add configurable products during setting product ids for filtering
44
- *
45
- * @param \Magento\CatalogRule\Model\Rule $rule
46
- * @param int|array $productIds
47
- * @return array
48
- * @SuppressWarnings(PHPMD.UnusedFormalParameter)
49
- */
50
- public function beforeSetProductsFilter (\Magento \CatalogRule \Model \Rule $ rule , $ productIds )
51
- {
52
- if ($ productIds ) {
53
- $ configurableProductIds = $ this ->configurable ->getParentIdsByChild ($ productIds );
54
- if ($ configurableProductIds ) {
55
- $ productIds = array_merge ((array ) $ productIds , $ configurableProductIds );
56
-
57
- }
58
- }
59
-
60
- return [
61
- $ productIds ,
62
- ];
63
- }
64
-
65
- /**
66
- * Add configurable products for matched products
67
- *
68
45
* @param \Magento\CatalogRule\Model\Rule $rule
69
46
* @param array $productIds
70
47
* @return array
You can’t perform that action at this time.
0 commit comments