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-gift-message
Model
Plugin
MergeQuoteItems.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\GiftMessage\Model\Plugin
;
9
10
use
Magento\Quote\Model\Quote\Item
;
11
use
Magento\Quote\Model\Quote\Item\Processor
;
12
13
class
MergeQuoteItems
14
{
26
public
function
afterMerge
(
Processor
$subject,
Item
$result
,
Item
$source
):
Item
27
{
28
$giftMessageId =
$source
->getGiftMessageId();
29
30
if
($giftMessageId) {
31
$result
->setGiftMessageId($giftMessageId);
32
}
33
34
return
$result
;
35
}
36
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\GiftMessage\Model\Plugin\MergeQuoteItems
Definition:
MergeQuoteItems.php:13
Magento\GiftMessage\Model\Plugin
Definition:
MergeQuoteItems.php:8
Magento\CatalogSearch\Model\Indexer\Fulltext\Processor
Definition:
Processor.php:16
$source
$source
Definition:
source.php:23
Magento\GiftMessage\Model\Plugin\MergeQuoteItems\afterMerge
afterMerge(Processor $subject, Item $result, Item $source)
Definition:
MergeQuoteItems.php:26
Magento\Quote\Model\Quote\Item\Processor
Definition:
Processor.php:21
Magento\Quote\Model\Quote\Item
Definition:
RepositoryTest.php:6
Magento\Quote\Model\Quote\Address\Item
Definition:
Item.php:89