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)
vendor
magento
module-configurable-product
Model
Plugin
PriceBackend.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\ConfigurableProduct\Model\Plugin
;
7
8
use
Magento\ConfigurableProduct\Model\Product\Type\Configurable
;
9
15
class
PriceBackend
16
{
24
public
function
aroundValidate
(
25
\
Magento
\Catalog\Model\
Product
\
Attribute
\Backend\
Price
$subject,
26
\Closure $proceed,
27
$object
28
) {
29
if
($object instanceof \
Magento
\Catalog\Model\
Product
30
&& $object->
getTypeId
() ==
Configurable::TYPE_CODE
31
) {
32
return
true
;
33
}
else
{
34
return
$proceed($object);
35
}
36
}
37
}
Magento\ConfigurableProduct\Model\Product\Type\Configurable\TYPE_CODE
const TYPE_CODE
Definition:
Configurable.php:35
Magento\ConfigurableProduct\Model\Plugin\PriceBackend\aroundValidate
aroundValidate(\Magento\Catalog\Model\Product\Attribute\Backend\Price $subject, \Closure $proceed, $object)
Definition:
PriceBackend.php:24
Magento\ConfigurableProduct\Model\Plugin
Definition:
PriceBackend.php:6
Magento\ConfigurableProduct\Model\Product\Type\Configurable
Definition:
AttributeTest.php:6
Magento\Catalog\Model\Product
Definition:
Product.php:42
Magento
Magento\Catalog\Model\Product\getTypeId
getTypeId()
Definition:
Product.php:653
Magento\ConfigurableProduct\Model\Plugin\PriceBackend
Definition:
PriceBackend.php:15
Magento\ConfigurableProduct\Model\Product\Type\Configurable\Attribute
Definition:
Attribute.php:18
Magento\Catalog\Model\Product\Type\Price
Definition:
Price.php:22