Repository navigation
Conversation
Prompt for a price and quantity before adding an open-price product to the cart, so catalogue open-price lines always carry a unit price. When an unpriced open-price line is already present, let cart event recording value the line on a best-effort basis so void, quantity reduction, and cart cancellation still work. Return a dedicated open_price_required validation error, show it explicitly in the cart, and offer a direct action to set the missing price. Add openPrice to product/catalog bindings and update translations and fixtures Signed-off-by: orwilDz <djedri.aimen.lotfi@gmail.com>
ogyamada
self-requested a review
November 29, 2026 12:33
2 tasks done
Contributor
|
@orwilDz i will test this out,it will take a few days to build and run everything, and once its verified, Ill merge it in. Thanks for the effort! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Prompt for a price and quantity before adding an open-price product to the cart, so catalogue open-price lines always carry a unit price. When an unpriced open-price line is already present, let cart event recording value the line on a best-effort basis so void, quantity reduction, and cart cancellation still work.
Return a dedicated open_price_required validation error, show it explicitly in the cart, and offer a direct action to set the missing price. Add openPrice to product/catalog bindings and update translations and fixtures
What and why
Bug from issue: #15
Fixes the sale cart getting stuck when an open-price product is present without a unit price.
unitPrice requiredvalidation with a dedicatedopen_price_requiredcode.openPriceonProduct/ProductHit, regenerate bindings, and add locale/fixture updates.How it was tested
pnpm check (fail on rust) see bellow.
[]
pnpm checkpasses locally. pnpm run test succeeds, but the Rust tests fail. This failure does not appear to be related to this fix; it may be specific to my local environment, as the tests were already failing on a fresh fork before applying these changes.Tests added or updated for the change
Checklist
git commit -s, DCO)ar,franden(pnpm i18n)ms-,pe-,start,end) and was checked in Arabic (right to left)unwrap()orexpect()in command pathsScreenshots
"before" screen are attached to the issue.
Fix screens:
FR
AR
EN