Skip to content

Parameters content update #1944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions modules/concepts/hooks/list-of-hooks/actionOrderSlipAdd.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ files:
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/Adapter/Order/Refund/OrderSlipCreator.php'
file: src/Adapter/Order/Refund/OrderSlipCreator.php
locations:
- 'front office'
- 'back office'
type: action
hookAliases:
- orderSlip
Expand All @@ -28,19 +28,18 @@ description: 'This hook is called when a new credit slip is added regarding clie
array(
'order' => Order,
'productList' => array(
(int) product ID 1,
(int) product ID 2,
(int) order detail ID 1 => Order Slip Detail 1,
(int) order detail ID 2 => Order Slip Detail 2,
...,
(int) product ID n
(int) order detail ID n => Order Slip Detail n
),
'qtyList' => array(
(int) quantity 1,
(int) quantity 2,
(int) order detail ID 1 => (int) quantity 1,
(int) order detail ID 2 => (int) quantity 2,
...,
(int) quantity n
(int) order detail ID n => (int) quantity n
)
);
The order of IDs and quantities is important!
```

## Call of the Hook in the origin file
Expand Down