| Hook | actionOrderSlipAdd |
|---|---|
| Locations | FO |
| Type | action |
| Origin | core |
| Aliases | [orderSlip] |
| Description | This hook is called when a new credit slip is added regarding client order |
This hook has a $check_exceptions parameter set to false (check permission exceptions, see explaination here).
| Origin | File |
|---|---|
| core | src/Adapter/Order/Refund/OrderSlipCreator.php |
<?php
array(
'order' => Order,
'productList' => array(
(int) product ID 1,
(int) product ID 2,
...,
(int) product ID n
),
'qtyList' => array(
(int) quantity 1,
(int) quantity 2,
...,
(int) quantity n
)
);
The order of IDs and quantities is important!
Hook::exec('actionOrderSlipAdd', [ 'order' => $order, 'productList' => $orderRefundSummary->getProductRefunds(), 'qtyList' => $fullQuantityList, 'orderSlipCreated' => $this->orderSlipCreated, ], null, false, true, false, $order->id_shop)