Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
shipment_comments_for_search.php File Reference

Go to the source code of this file.

Variables

 $payment = $order->getPayment()
 
 $paymentInfoBlock
 
 $items = []
 
foreach($order->getItems() as $orderItem) $shipment = Bootstrap::getObjectManager()->get(ShipmentFactory::class)->create($order, $items)
 
 $comments
 
 $shipmentCommentRepository = Bootstrap::getObjectManager()->get(ShipmentCommentRepositoryInterface::class)
 

Variable Documentation

◆ $comments

$comments
Initial value:
= [
[
'comment' => 'comment 1',
'is_visible_on_front' => 1,
'is_customer_notified' => 1,
],
[
'comment' => 'comment 2',
'is_visible_on_front' => 1,
'is_customer_notified' => 1,
],
[
'comment' => 'comment 3',
'is_visible_on_front' => 1,
'is_customer_notified' => 1,
],
[
'comment' => 'comment 4',
'is_visible_on_front' => 1,
'is_customer_notified' => 1,
],
[
'comment' => 'comment 5',
'is_visible_on_front' => 0,
'is_customer_notified' => 1,
],
]

Definition at line 33 of file shipment_comments_for_search.php.

◆ $items

$items = []

Definition at line 23 of file shipment_comments_for_search.php.

◆ $payment

$payment = $order->getPayment()

Definition at line 18 of file shipment_comments_for_search.php.

◆ $paymentInfoBlock

$paymentInfoBlock
Initial value:
= Bootstrap::getObjectManager()->get(Data::class)
->getInfoBlock($payment)

Definition at line 19 of file shipment_comments_for_search.php.

◆ $shipment

foreach ( $order->getItems() as $orderItem) $shipment = Bootstrap::getObjectManager()->get(ShipmentFactory::class)->create($order, $items)

Definition at line 27 of file shipment_comments_for_search.php.

◆ $shipmentCommentRepository

$shipmentCommentRepository = Bootstrap::getObjectManager()->get(ShipmentCommentRepositoryInterface::class)

Definition at line 62 of file shipment_comments_for_search.php.