Skip to content

Comments

feat(backorders): BACK-471 display backordered quantity message on PDP#2613

Open
bc-apostoliuk wants to merge 1 commit intomasterfrom
BACK-471
Open

feat(backorders): BACK-471 display backordered quantity message on PDP#2613
bc-apostoliuk wants to merge 1 commit intomasterfrom
BACK-471

Conversation

@bc-apostoliuk
Copy link
Contributor

@bc-apostoliuk bc-apostoliuk commented Feb 19, 2026

Jira: BACK-471

What/Why?

Screen.Recording.2026-02-19.at.14.22.15.mov

Display a dynamic "X will be backordered" message on the product detail page (PDP) when the selected quantity exceeds available on-hand stock.

  • Inject availableOnHand and availableForBackorder product context into the template
  • Add a hidden <p data-product-backordered> element in the stock form field area
  • Add updateQtyBackorderedMessage(qty) method to ProductDetailsBase that calculates how many items will be backordered and shows/hides the message accordingly
  • Call the update method on both quantity increment/decrement and manual keyup input

Rollout/Rollback

Standard deployment. Rollback by reverting the PR if needed.

Testing

  1. Navigate to a product that has backorder availability configured (on-hand stock < max purchasable, with backorder enabled)
  2. Increase the quantity beyond the on-hand stock level
  3. Verify the "X will be backordered" message appears below the stock label
  4. Decrease quantity back to within on-hand stock and verify the message hides
  5. Manually type a quantity in the input field and verify the message updates on keyup
  6. Verify no message appears for products without backorder availability

Made with Cursor

Show a dynamic message indicating how many items will be backordered
based on the selected quantity, available on-hand stock, and backorder
availability.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants