Skip to content

Add a hook 'actionValidateOrderBefore' called before actionValidateOrder#34431

Merged
matks merged 1 commit into
PrestaShop:developfrom
bibips:develop
Jan 25, 2024
Merged

Add a hook 'actionValidateOrderBefore' called before actionValidateOrder#34431
matks merged 1 commit into
PrestaShop:developfrom
bibips:develop

Conversation

@bibips

@bibips bibips commented Oct 31, 2023

Copy link
Copy Markdown
Contributor
Questions Answers
Branch? develop
Description? Add a new hook 'actionValidateOrderBefore'. This hook is called before the creation of an order
Type? new feature
Category? FO
BC breaks? no
Deprecations? no
How to test? From a module register the hook and create the function hookActionValidateOrderBefore
UI Tests https://github.com/bibips/ga.tests.ui.pr/actions/runs/6709834106
Fixed issue or discussion? Fixes #34432

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.

@prestonBot

Copy link
Copy Markdown
Collaborator

Hi, thanks for this contribution!

I found some issues with the Pull Request description:

  • Your pull request does not seem to fix any issue, consider creating one (see note below) and linking it by writing Fixes #1234.

Would you mind having a look at it? This will help us understand how interesting your contribution is, thank you very much!

About linked issues

Please consider opening an issue before submitting a Pull Request:

  • If it's a bug fix, it helps maintainers verify that the bug is effectively due to a defect in the code, and that it hasn't been fixed already.
  • It can help trigger a discussion about the best implementation path before a single line of code is written.
  • It may lead the Core Product team to mark that issue as a priority, further attracting the maintainers' attention.

(Note: this is an automated message, but answering it will reach a real human)

@prestonBot prestonBot added develop Branch Feature Type: New Feature labels Oct 31, 2023
@bibips bibips marked this pull request as ready for review October 31, 2023 17:25
@bibips bibips requested a review from a team as a code owner October 31, 2023 17:25
@M0rgan01 M0rgan01 added this to the 9.0.0 milestone Nov 6, 2023
@ps-jarvis ps-jarvis added the Waiting for QA Status: action required, waiting for test feedback label Nov 6, 2023
@florine2623

Copy link
Copy Markdown
Contributor

I think this should be QA by dev

@florine2623 florine2623 added the Waiting for dev Status: action required, waiting for tech feedback label Nov 6, 2023
@kpodemski kpodemski closed this Jan 11, 2024
@kpodemski kpodemski reopened this Jan 11, 2024

@matks matks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matks matks added QA ✔️ Status: check done, code approved and removed Waiting for QA Status: action required, waiting for test feedback Waiting for dev Status: action required, waiting for tech feedback labels Jan 25, 2024
@matks

matks commented Jan 25, 2024

Copy link
Copy Markdown
Contributor

Thank you @bibips

@matks matks merged commit 9d85a18 into PrestaShop:develop Jan 25, 2024
@gericfo

gericfo commented Oct 14, 2024

Copy link
Copy Markdown

Hello @bibips
Please note that the “Needs autoupgrade PR” label has been automatically added to your Pull Request. This means that the changes made in your PR must also be reported in the Autoupgrade module, responsible for running the update process of PrestaShop stores.
When there's a modification to the db-structure.sql file or if a Doctrine entity has been modified, added, or deleted, it impacts the database structure. Modifying the list of hooks and feature flags has consequences on the update process as well. These changes can affect how the application interacts with the database and how update procedures are handled. It's important to consider these aspects when contributing to ensure a smooth update experience for users.
That's why this contribution should be backported, with another corresponding PR, on the Autoupgrade module's GitHub repository which is available here: link.
Don't forget to add a comment in this current thread with the link to this PR once it has been created.
Thank you.

@bibips

bibips commented Oct 29, 2024

Copy link
Copy Markdown
Contributor Author

@gericfo I opened the PR PrestaShop/autoupgrade#981

@gericfo

gericfo commented Oct 30, 2024

Copy link
Copy Markdown

Thanks @bibips!

@gericfo gericfo added the PR Autoupgrade opened ✔️ The associated PR has been opened in the Autoupgrade module repository. label Oct 30, 2024
@Hlavtox Hlavtox removed Needs autoupgrade PR PR Autoupgrade opened ✔️ The associated PR has been opened in the Autoupgrade module repository. labels Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

develop Branch Feature Type: New Feature QA ✔️ Status: check done, code approved

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.