Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
QuoteItem.php
Go to the documentation of this file.
1 <?php
7 
11 
15 class QuoteItem
16 {
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 }
$orderItem
Definition: order.php:30
afterConvert(ToOrderItem $subject, OrderItemInterface $orderItem, AbstractItem $item, $data=[])
Definition: QuoteItem.php:28
$attributes
Definition: matrix.phtml:13