Add a hook 'actionValidateOrderBefore' called before actionValidateOrder#34431
Conversation
|
Hi, thanks for this contribution! I found some issues with the Pull Request description:
Would you mind having a look at it? This will help us understand how interesting your contribution is, thank you very much! About linked issuesPlease consider opening an issue before submitting a Pull Request:
(Note: this is an automated message, but answering it will reach a real human) |
|
I think this should be QA by dev |
matks
left a comment
There was a problem hiding this comment.
Tested using https://github.com/PrestaShop/ps_qualityassurance
|
Thank you @bibips |
|
Hello @bibips |
|
@gericfo I opened the PR PrestaShop/autoupgrade#981 |
|
Thanks @bibips! |
When the order tunnel is customized with additional steps, developers need to verify the data entered by the user within the tunnel steps.
It is of course possible to verify this data at each stage of the order tunnel, but it is also preferable to check the integrity of the data just before confirming the order.
For example, in the case of an order tunnel stage where the customer can enter a date in the future, it is necessary to check this date again when the customer confirms the order. This check avoids data inconsistencies when the customer confirms his basket several days after creating it.