Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
c
d
e
f
g
h
i
m
p
r
s
t
u
+
Functions
_
c
d
e
f
g
h
i
m
p
r
s
t
u
Variables
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
+
Functions
_
c
d
e
f
g
m
o
r
s
t
v
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
vendor
magento
module-catalog-rule-configurable
Plugin
ConfigurableProduct
Model
ResourceModel
AddCatalogRulePrice.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\CatalogRuleConfigurable\Plugin\ConfigurableProduct\Model\ResourceModel
;
9
10
use
Magento\ConfigurableProduct\Model\ResourceModel\Product\Type\Configurable\Product\Collection
;
11
12
class
AddCatalogRulePrice
13
{
17
private
$catalogRuleCollectionFactory;
18
22
public
function
__construct
(
23
\
Magento
\CatalogRule\Model\
ResourceModel
\Product\CollectionProcessorFactory $catalogRuleCollectionFactory
24
) {
25
$this->catalogRuleCollectionFactory = $catalogRuleCollectionFactory;
26
}
27
34
public
function
beforeLoad
(
Collection
$productCollection
, $printQuery =
false
, $logQuery =
false
)
35
{
36
$this->catalogRuleCollectionFactory
37
->create()
38
->addPriceData(
$productCollection
);
39
40
return
[$printQuery, $logQuery];
41
}
42
}
Magento\Catalog\Model\ResourceModel\Product
Definition:
CollectionTest.php:6
Magento\CatalogRuleConfigurable\Plugin\ConfigurableProduct\Model\ResourceModel\AddCatalogRulePrice\beforeLoad
beforeLoad(Collection $productCollection, $printQuery=false, $logQuery=false)
Definition:
AddCatalogRulePrice.php:34
Magento\ConfigurableProduct\Model\ResourceModel\Product\Type\Configurable\Product\Collection
Definition:
Collection.php:17
$productCollection
$productCollection
Definition:
configurable_attribute_rollback.php:12
Magento\CatalogRuleConfigurable\Plugin\ConfigurableProduct\Model\ResourceModel\AddCatalogRulePrice
Definition:
AddCatalogRulePrice.php:12
Magento\CatalogRuleConfigurable\Plugin\ConfigurableProduct\Model\ResourceModel\AddCatalogRulePrice\__construct
__construct(\Magento\CatalogRule\Model\ResourceModel\Product\CollectionProcessorFactory $catalogRuleCollectionFactory)
Definition:
AddCatalogRulePrice.php:22
Magento
Magento\CatalogRuleConfigurable\Plugin\ConfigurableProduct\Model\ResourceModel
Definition:
AddCatalogRulePrice.php:8