Skip to content

Refactor quantity inputs following recent CORE changes#926

Merged
Hlavtox merged 1 commit intoPrestaShop:developfrom
tblivet:refactor/product-quantity-selectors
Feb 6, 2026
Merged

Refactor quantity inputs following recent CORE changes#926
Hlavtox merged 1 commit intoPrestaShop:developfrom
tblivet:refactor/product-quantity-selectors

Conversation

@tblivet
Copy link
Contributor

@tblivet tblivet commented Feb 4, 2026

Questions Answers
Description? Refactor quantity inputs following recent CORE changes
Type? refactor
BC breaks? no
Deprecations? no
Fixed ticket? #915
Sponsor company @PrestaShopCorp
How to test? Should be tested with the recent changes added to the CORE. PrestaShop/PrestaShop#40538 NOTE for QA: Check that quantity selection and updates work correctly in different cases, such as minimum quantity...

@tblivet tblivet linked an issue Feb 4, 2026 that may be closed by this pull request
attributes=[
"id" => "quantity_wanted_{$product.id_product}",
"value" => "{$product.quantity_required}",
"value" => "{$product.quantity_wanted}",
Copy link
Contributor

Choose a reason for hiding this comment

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

This will never work anyway, it will always resolve to quantity_required.

Before PrestaShop/PrestaShop#40570, it wasn't even reliable, that's why I just used quantity_required.

Copy link
Contributor

@Hlavtox Hlavtox left a comment

Choose a reason for hiding this comment

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

Testing right now

Copy link
Contributor

@Hlavtox Hlavtox left a comment

Choose a reason for hiding this comment

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

Works perfectly, even quantity wanted from URL works now.

@github-project-automation github-project-automation bot moved this to Ready for review in PR Dashboard Feb 4, 2026
@AureRita AureRita self-assigned this Feb 6, 2026
Copy link

@AureRita AureRita left a comment

Choose a reason for hiding this comment

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

Hi @

Thank you for your PR, I tested it and it seems to works as you can see :

Capture.video.du.2026-02-06.11-37-23.mp4
Capture.video.du.2026-02-06.11-38-49.mp4
Capture.video.du.2026-02-06.11-41-27.mp4

Because the PR seems to works as expected, It's QA ✔️

Thank you

@ps-jarvis ps-jarvis moved this from Ready for review to To be tested in PR Dashboard Feb 6, 2026
@ps-jarvis ps-jarvis moved this from To be tested to Ready for review in PR Dashboard Feb 6, 2026
@Hlavtox Hlavtox merged commit 6e04318 into PrestaShop:develop Feb 6, 2026
6 checks passed
@github-project-automation github-project-automation bot moved this from Ready for review to Merged in PR Dashboard Feb 6, 2026
@ps-jarvis
Copy link

PR merged, well done!

Message to @PrestaShop/committers: do not forget to milestone it before the merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Logic that manually handled min quantity in inputs can be now removed

4 participants