Jump to content

¿este hook se activara cada vez que haya una venta?

Recommended Posts

Si no hay ningún error en el momento de crear el pedido, sí.

Ese hook se llama en la función changeIdOrderState de la clase OrderHistory:

if (in_array($new_os->id, [Configuration::get('PS_OS_PAYMENT'), Configuration::get('PS_OS_WS_PAYMENT')])) {
	Hook::exec('actionPaymentConfirmation', ['id_order' => (int) $order->id], null, false, true, false, $order->id_shop);


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...