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-quote
Model
Product
Plugin
UpdateQuoteItems.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Quote\Model\Product\Plugin
;
7
8
class
UpdateQuoteItems
9
{
13
private
$resource;
14
18
public
function
__construct
(
19
\
Magento
\
Quote
\Model\
ResourceModel
\
Quote
$resource
20
) {
21
$this->resource =
$resource
;
22
}
23
31
public
function
afterSave
(
32
\
Magento
\Catalog\Model\
ResourceModel
\
Product
$subject,
33
\
Magento
\Catalog\Model\
ResourceModel
\
Product
$result
,
34
\
Magento
\Framework\Model\
AbstractModel
$product
35
) {
36
$originalPrice =
$product
->getOrigData(
'price'
);
37
$tierPriceChanged =
$product
->getData(
'tier_price_changed'
);
38
if
((!empty($originalPrice) && ($originalPrice !=
$product
->getPrice())) || $tierPriceChanged) {
39
$this->resource->markQuotesRecollect(
$product
->getId());
40
}
41
return
$result
;
42
}
43
}
Magento\Framework\Model\AbstractModel
Definition:
AbstractModel.php:19
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\Quote\Model\Product\Plugin\UpdateQuoteItems
Definition:
UpdateQuoteItems.php:8
Magento\Catalog\Model\ResourceModel\Product
Definition:
CollectionTest.php:6
Magento\Quote\Model\Product\Plugin
Definition:
RemoveQuoteItems.php:6
Magento\Quote\Model\Product\Plugin\UpdateQuoteItems\__construct
__construct(\Magento\Quote\Model\ResourceModel\Quote $resource)
Definition:
UpdateQuoteItems.php:18
$resource
$resource
Definition:
bulk.php:12
Magento\Quote\Model\Product\Plugin\UpdateQuoteItems\afterSave
afterSave(\Magento\Catalog\Model\ResourceModel\Product $subject, \Magento\Catalog\Model\ResourceModel\Product $result, \Magento\Framework\Model\AbstractModel $product)
Definition:
UpdateQuoteItems.php:31
Magento\Catalog\Model\Product
Definition:
Product.php:42
Magento
Magento\Framework\DB\Platform\Quote
Definition:
Quote.php:13
$product
$product
Definition:
bundle_product_with_not_visible_children.php:22