Jump to content

hookActionProductCancel help


Recommended Posts

15 minutes ago, idnovate.com said:

Check the params received in the hook:

['order' => $order, 'id_order_detail' => (int) $orderDetailId, 'cancel_quantity' => $productRefund['quantity'], 'cancel_amount' => $productRefund['amount'], 'action' => CancellationActionType::PARTIAL_REFUND]

 

if multiple positions are returned, then a separate instance of hookActionProductCancel is called for each position? Is there any way to load the whole object at once

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...