Skip to content

Fix: hook extra content issues with multi shipment - #41298

Merged
Quetzacoalt91 merged 1 commit into
PrestaShop:9.1.xfrom
Nakahiru:fix/multi-shipment-hook-extra-content
Jun 15, 2026
Merged

Quetzacoalt91 merged 1 commit into
PrestaShop:9.1.xfrom
Nakahiru:fix/multi-shipment-hook-extra-content

Conversation

@Nakahiru

@Nakahiru Nakahiru commented Apr 20, 2026 •

Copy link
Copy Markdown
Contributor
Questions Answers
Branch? 9.1.x
Description? There was multiple issues regarding how the hook carrierExtraContent was call. Firstly, the filter on if the carrier belongs to a module was not present. Secondly, the second argument in the exec() method of the hook was wrong. Finally there was also a typing issue. This was causing error in front office from all shipping modules that use the hook carrierExtraContent. @Progi1984 This should fix the issue on ui tests with the module psshipping 😌
Type? bug fix
Category? FO
BC breaks? no
Deprecations? no
How to test? Create multiple carrier with one carrier that was created by a module and it is using the hook carrierExtraContent. Make an order with some products that are handled by those carriers. You should be able to complete the checkout process without any error.
UI Tests Click here
Fixed issue or discussion? -
Related PRs -

@ps-jarvis

Copy link
Copy Markdown

Hi, thanks for this contribution!

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)

@ps-jarvis ps-jarvis added develop Branch Bug fix Type: Bug fix labels Apr 20, 2026
@github-project-automation github-project-automation Bot moved this to Ready for review in PR Dashboard Apr 20, 2026
@Nakahiru Nakahiru changed the title fix: hook extra content issues with multi shipment Fix: hook extra content issues with multi shipment Apr 20, 2026
@ps-jarvis ps-jarvis added 9.1.x Branch and removed develop Branch labels Apr 20, 2026
@Nakahiru
Nakahiru marked this pull request as ready for review May 4, 2026 13:41
@Nakahiru
Nakahiru requested a review from a team as a code owner May 4, 2026 13:41
@Quetzacoalt91 Quetzacoalt91 added this to the 9.1.5 milestone Jun 4, 2026
@ps-jarvis ps-jarvis moved this from Ready for review to Need 2nd approval in PR Dashboard Jun 10, 2026

@Hlavtox Hlavtox left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One step closer! 🚀

@ps-jarvis ps-jarvis added the Waiting for QA Status: action required, waiting for test feedback label Jun 10, 2026
@ps-jarvis ps-jarvis moved this from Need 2nd approval to To be tested in PR Dashboard Jun 10, 2026
@ingridusta ingridusta self-assigned this Jun 15, 2026

@ingridusta ingridusta left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hi @Nakahiru,

With your PR, the optional fields using displaycarrierExtraContent are displayed :

Image

And no problem to place orders :

With 1 carrier :

Enregistrement.de.l.ecran.2026-06-15.a.13.08.13.mov

With several carriers :

Enregistrement.de.l.ecran.2026-06-15.a.13.08.59.mov

⚠️ Couldn't test the map for pickup point that uses displaycarrierExtraContent as my shop ain't exposed

It's QA approved ✅

@ingridusta ingridusta added QA ✔️ Status: check done, code approved and removed Waiting for QA Status: action required, waiting for test feedback labels Jun 15, 2026
@Quetzacoalt91
Quetzacoalt91 merged commit d6cf580 into PrestaShop:9.1.x Jun 15, 2026
47 of 51 checks passed
@github-project-automation github-project-automation Bot moved this from To be tested to Merged in PR Dashboard Jun 15, 2026
@ps-jarvis ps-jarvis moved this from Merged to To be tested in PR Dashboard Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

9.1.x Branch Bug fix Type: Bug fix Hook Contribution QA ✔️ Status: check done, code approved

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants