shoppingflux / shoppingfluxexport

7 stars 7 forks source link

Create a custom hook after order edition #390

Open ghost opened 6 years ago

ghost commented 6 years ago

Expected behaviour

Once the order is created and prices updated (with _updatePrices()), we should trigger a custom hook that can be used by other modules.

This is especially helpful for all modules and services that hook themselves on the order creation (to send the order details to the carrier, to print something, to send an email, etc ...).

The default hook in validateOrder of PaymentModule will not have the correct price details.

Actual behaviour

The is no hooks triggered after _updatePrices().

Steps to reproduce the behaviour

Receive an order from ShoppingFlux and look at the changes done after validateOrder