Add checkout confirmation button for free carts with coupons #91
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "freebies"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When coupons reduced cart total to $0, the checkout page displayed no
button to finalize the order. This occurred because the Stripe button
only appears with active_card, and crypto buttons only appear when
cart.requires_payment is True. Users without saved payment methods
were unable to complete free orders.
Added dedicated "Confirm Free Checkout" button that displays when
cart.requires_payment is False, allowing users to finalize free orders.
Enhanced test coverage to verify button appears in checkout page HTML.
Summary by CodeRabbit
New Features
Tests
Walkthrough
Adds a conditional free-checkout confirmation form to the checkout template, displayed when cart.requires_payment is false. Updates functional tests to assert presence of the "Yes, Confirm Free Checkout" button and related HTML. Paid checkout flow remains unchanged.
Changes
make_post_sell/templates/cart_checkout.j2make_post_sell/tests/test_functional.pySequence Diagram(s)
Estimated code review effort
🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
📜 Recent review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Free
📥 Commits
Reviewing files that changed from the base of the PR and between
c9afd3b893and400b4c042b.📒 Files selected for processing (2)
make_post_sell/templates/cart_checkout.j2(1 hunks)make_post_sell/tests/test_functional.py(2 hunks)Comment
@coderabbitai helpto get the list of available commands and usage tips.changed the description
mentioned in commit
30ee39bbe5