Skip to content

feat(backorders): BACK-469 add backorder availability prompt on PDP#2592

Merged
bc-apostoliuk merged 2 commits intomasterfrom
BACK-469
Feb 12, 2026
Merged

feat(backorders): BACK-469 add backorder availability prompt on PDP#2592
bc-apostoliuk merged 2 commits intomasterfrom
BACK-469

Conversation

@bc-apostoliuk
Copy link
Contributor

@bc-apostoliuk bc-apostoliuk commented Jan 6, 2026

Jira: BACK-469

What/Why?

Screenshot 2026-02-10 at 15 24 47
  • Add backorder availability prompt on the Product Detail Page (PDP) to inform customers about backorder availability for a product.
  • The prompt is conditionally shown only when:
    • show_backorder_availability_prompt is enabled
    • available_to_sell > 0
    • available_for_backorder > 0
  • Pass available_to_sell and available_for_backorder from the product object to the backorder-availability-prompt partial so the template can evaluate the conditions.

Rollout/Rollback

Standard deployment. Rollback by reverting the PR if needed.

Testing

  1. Navigate to a PDP for a product that has backorder enabled with available_to_sell > 0 and available_for_backorder > 0 — verify the backorder availability prompt is displayed.
  2. Set a product with available_to_sell = 0 — verify the prompt is not shown.
  3. Set a product with available_for_backorder = 0 — verify the prompt is not shown.
  4. Verify that products without show_backorder_availability_prompt enabled still do not show the prompt.

@bc-apostoliuk bc-apostoliuk marked this pull request as ready for review February 10, 2026 13:25
Only show the backorder availability prompt when available_to_sell > 0
and available_for_backorder > 0, in addition to the existing
show_backorder_availability_prompt check.

Co-authored-by: Cursor <cursoragent@cursor.com>
@bc-apostoliuk bc-apostoliuk merged commit f34af7e into master Feb 12, 2026
1 check passed
@bc-apostoliuk bc-apostoliuk deleted the BACK-469 branch February 12, 2026 11:17
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.

6 participants

Comments