Warning: You are browsing the documentation for PrestaShop 8, which is outdated.

You might want to read an updated version of this page for the current version, PrestaShop 9. Read the updated version of this page

Learn how to update to the latest version.

Hook actionProductCancel

Informations

Product cancelled This hook is called when you cancel a product in an order
Hook actionProductCancel
Locations
FO
Type action
Origin core
Aliases [cancelProduct]
Description This hook is called when you cancel a product in an order

Located in

Origin File
core src/Adapter/Order/CommandHandler/IssueStandardRefundHandler.php

Call of the Hook in the origin file

Hook::exec('actionProductCancel', ['order' => $order, 'id_order_detail' => (int) $orderDetailId, 'cancel_quantity' => $productRefund['quantity'], 'action' => CancellationActionType::STANDARD_REFUND], null, false, true, false, $order->id_shop)