PrestaShop Developer Conference
PrestaShop Developer Conference
Paris, France - November 30, 2023
Let's talk code, commerce and open source.

Hook actionProductCancel


  • cancelProduct


Product cancelled:

This hook is called when you cancel a product in an order

Hook locations:

  • front office

Hook type: action

Located in:

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)