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-bundle
Model
Plugin
QuoteItem.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Bundle\Model\Plugin
;
7
8
use
Magento\Quote\Model\Quote\Item\ToOrderItem
;
9
use
Magento\Sales\Api\Data\OrderItemInterface
;
10
use
Magento\Quote\Model\Quote\Item\AbstractItem
;
11
15
class
QuoteItem
16
{
28
public
function
afterConvert
(
ToOrderItem
$subject,
OrderItemInterface
$orderItem
,
AbstractItem
$item
,
$data
= [])
29
{
30
if
(
$attributes
=
$item
->getProduct()->getCustomOption(
'bundle_selection_attributes'
)) {
31
$productOptions
=
$orderItem
->getProductOptions();
32
$productOptions
[
'bundle_selection_attributes'
] =
$attributes
->getValue();
33
$orderItem
->setProductOptions(
$productOptions
);
34
}
35
36
return
$orderItem
;
37
}
38
}
Magento\Sales\Api\Data\OrderItemInterface
Definition:
OrderItemInterface.php:17
$orderItem
$orderItem
Definition:
order.php:30
$item
$item
Definition:
partial_invoice.php:27
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Bundle\Model\Plugin\QuoteItem
Definition:
QuoteItem.php:15
$productOptions
$productOptions
Definition:
order_item_with_product_and_custom_options.php:43
Magento\Quote\Model\Quote\Item\ToOrderItem
Definition:
ToOrderItem.php:18
Magento\Bundle\Model\Plugin\QuoteItem\afterConvert
afterConvert(ToOrderItem $subject, OrderItemInterface $orderItem, AbstractItem $item, $data=[])
Definition:
QuoteItem.php:28
$attributes
$attributes
Definition:
matrix.phtml:13
Magento\Quote\Model\Quote\Item\AbstractItem
Definition:
AbstractItem.php:50
Magento\Bundle\Model\Plugin
Definition:
PriceBackend.php:6