Skip to content

Commit 916536a

Browse files
committed
MAGETWO-85781: Configurable product Final Price ignores Catalog Rule
1 parent c28b121 commit 916536a

File tree

1 file changed

+16
-24
lines changed
  • app/code/Magento/CatalogWidget/Model/Rule/Condition

1 file changed

+16
-24
lines changed

app/code/Magento/CatalogWidget/Model/Rule/Condition/Product.php

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@
1212
use \Magento\Catalog\Model\ResourceModel\Product\Collection as ProductCollection;
1313
use \Magento\Catalog\Model\ResourceModel\Eav\Attribute as EavAttribute;
1414
use \Magento\Store\Model\StoreManagerInterface;
15-
use \Magento\Catalog\Api\ProductRepositoryInterface;
16-
use \Magento\Framework\Locale\FormatInterface;
17-
use \Magento\Catalog\Model\ResourceModel\Category;
18-
use \Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\Collection as AttributeSetCollection;
19-
use \Magento\Catalog\Model\ProductFactory;
20-
use \Magento\Eav\Model\Config;
21-
use \Magento\Rule\Model\Condition\Context;
22-
use \Magento\Backend\Helper\Data as BackendData;
2315

2416
/**
2517
* Class Product
@@ -46,31 +38,31 @@ class Product extends \Magento\Rule\Model\Condition\Product\AbstractProduct
4638
protected $storeManager;
4739

4840
/**
49-
* @param Context $context
50-
* @param BackendData $backendData
51-
* @param Config $config
52-
* @param ProductFactory $productFactory
53-
* @param ProductRepositoryInterface $productRepository
41+
* @param \Magento\Rule\Model\Condition\Context $context
42+
* @param \Magento\Backend\Helper\Data $backendData
43+
* @param \Magento\Eav\Model\Config $config
44+
* @param \Magento\Catalog\Model\ProductFactory $productFactory
45+
* @param \Magento\Catalog\Api\ProductRepositoryInterface $productRepository
5446
* @param \Magento\Catalog\Model\ResourceModel\Product $productResource
55-
* @param AttributeSetCollection $attrSetCollection
56-
* @param FormatInterface $localeFormat
47+
* @param \Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\Collection $attrSetCollection
48+
* @param \Magento\Framework\Locale\FormatInterface $localeFormat
5749
* @param StoreManagerInterface $storeManager
5850
* @param array $data
59-
* @param Category $category
51+
* @param \Magento\Catalog\Model\ResourceModel\Category $category
6052
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
6153
*/
6254
public function __construct(
63-
Context $context,
64-
BackendData $backendData,
65-
Config $config,
66-
ProductFactory $productFactory,
67-
ProductRepositoryInterface $productRepository,
55+
\Magento\Rule\Model\Condition\Context $context,
56+
\Magento\Backend\Helper\Data $backendData,
57+
\Magento\Eav\Model\Config $config,
58+
\Magento\Catalog\Model\ProductFactory $productFactory,
59+
\Magento\Catalog\Api\ProductRepositoryInterface $productRepository,
6860
\Magento\Catalog\Model\ResourceModel\Product $productResource,
69-
AttributeSetCollection $attrSetCollection,
70-
FormatInterface $localeFormat,
61+
\Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\Collection $attrSetCollection,
62+
\Magento\Framework\Locale\FormatInterface $localeFormat,
7163
StoreManagerInterface $storeManager,
7264
array $data = [],
73-
Category $category = null
65+
\Magento\Catalog\Model\ResourceModel\Category $category = null
7466
) {
7567
$this->storeManager = $storeManager;
7668
parent::__construct(

0 commit comments

Comments
 (0)