Conversation
097189b to
f96fa85
Compare
bc-shawnwang
left a comment
There was a problem hiding this comment.
code LGTM and the two manual test cases is as expected.
|
hey a few edits:
The above 2 are design change. Added a mockup below for intended display:
Thanks. let me know if anything isn't clear enough cc @animesh1987 |
|
@JessicaHu51 for your comment
Just remind this display is not accurate, and might not match the backorder prompts after added to cart. because it doesn't count the cart might already have same items. apple has 5 onhand available and 100 backorder available cart already have 6 x apple (5 on-hand 1 backordered). This is not considered on the PDP page (I think we decided not to calculate it, as luke recorded it somewhere in ADR). At least there is a slack thread on it: https://bigcommerce.slack.com/archives/C081DP3B6MV/p1762732177432859?thread_ts=1762728031.783749&cid=C081DP3B6MV I raised this because I saw the ticket https://bigcommercecloud.atlassian.net/browse/BACK-627 seems it want to consider current cart status? |
|
https://bigcommercecloud.atlassian.net/browse/BACK-627
@JessicaHu51 also if you check the tickets and design screenshot, it did only per product. Since you made a design change, can you aslo change the screenshot on the jira ticket? |
14ebdf3 to
61072c7
Compare
other that these, it looks great! thanks @agchan12 |
|
Hi @agchan12 I tested on your branch, found something might need to take a look inventory settings considered? When I uncheck Quantity on backorder and backorder message, PDP still displayed them, for either main item (not about this PR though) or bundled item
@JessicaHu51 in this case should we not display Quantity on backorder and backorder message? |
|
Hey @JessicaHu51 Another question about the behaviour of the picklist items (this is similar to the issue Shawn flagged) Setup: Main product with two picklist attributes (Bundle 1, Bundle 2) There are two ways to display this, each with a trade-off: Option A: Independent (each bundle shows its own view of the product's stock) (No consideration of cart content): Bundle 1: (no backorder shown) Option B: Shared pool (No consideration of cart content) Bundle 1: (no backorder) This is partially accurate and doesn't account for what is already in the cart (which could also be misleading) is harder to calculate. Option A is simpler and consistent with how main product backorder already works (doesn't account for other demand sources). Option B warns the shopper but introduces asymmetry and partial precision. Happy to implement either. |
c39e300 to
33501cf
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 33501cf. Configure here.
|
@bc-shawnwang In regards to #2662 (comment) I have made some changes to the PR I have made some changes to the main product and picklist. The picklist backorder display now respects the store level inventory display settings directly:
|
|
@JessicaHu51 In regards to #2662 (comment) I believe the spacing and wrap around spacing are all vertically the same now
|
7f7ecf3 to
344d3aa
Compare
|
FYI, for bundled item set to NOT "adjust inventory", what we do is to still check if it is within ATS (onhand without backorder feature, plus backorder available if backorder feature enabled), but not calculate and display xxx is backordered. |







What?
selected_picklist_optionsandpicklist_products_detailsfromPOST /remote/v1/product-attributes/:productIdand render a per picklist backorder prompt in addition to the main product stock on the Stencil PDP.Requirements
Tickets / Documentation
Add links to any relevant tickets and documentation.
Screenshots (if appropriate)
Display backorder prompt when picklist 'Adjust inventory for these products...' is selected
Adjust inventory for these products when purchasedis enabledAdjust inventory for these products when purchasedis enabledBACK-655.mov
Explanation
When a picklist item is selected, the backorder prompt is displayed.
Display backorder prompt when picklist 'Adjust inventory for these products...' is NOT selected
Adjust inventory for these products when purchasedis NOT enabledAdjust inventory for these products when purchasedis NOT enabledBACK-655-adjust.mov
Explanation
When a picklist item is selected, the backorder prompt is NOT displayed.
Display backorder prompt when 'Qty on backorder display' is selected AND picklist 'Adjust inventory for these products...' is and is NOT selected
Adjust inventory for these products when purchasedis enabledAdjust inventory for these products when purchasedis NOT enabledBACK-655-qty-backorder.mov
Explanation
We can see that only the qty for backorder for picklist item 1 (Bundle 1) is displayed.
Display backorder prompt when 'Qty on backorder display' is not selected AND picklist 'Adjust inventory for these products...' is and is NOT selected
Adjust inventory for these products when purchasedis enabledAdjust inventory for these products when purchasedis NOT enabledScreen.Recording.2026-05-29.at.11.41.18.am.mov
Explanation
No backorder message is displayed and the qty for backorder for both the main product and the picklist item is not displayed
ping @bc-shawnwang @animesh1987 @bigcommerce/team-trac
Note
Medium Risk
Changes PDP inventory/backorder UX and quantity messaging logic; incorrect clamping or flags could misstate backorder qty for bundled picklist products.
Overview
Adds per-picklist backorder messaging on the PDP using
selected_picklist_optionsandpicklist_products_detailsfrom the product-attributes API. A newPicklistBackordermodule renders a list under the stock block (attribute name, backordered qty, optional message), wired into option changes and quantity updates viarender/rerender.Inventory display tweaks: main-product qty-on-backorder now respects
showQuantityOnBackorder(replacing the prior flag check), and the backorder availability prompt is shown without wrapping parentheses. Stock copy uses “in stock” next to the level, with SCSS to align stock, main backorder, and picklist lines.Tests: broad unit coverage for picklist backorder rules (auto-adjust flag, sell limits, AFB clamping, settings toggles).
Reviewed by Cursor Bugbot for commit 4d9d71e. Bugbot is set up for automated code reviews on this repo. Configure here.