Skip to content

feat(checkout): FUNDEDBIT 2-step checkout redesign — dynamic, native payment, add-on only#7

Open
kautzargypf wants to merge 1 commit into
QuantTechnologyGroup:mainfrom
kautzargypf:feat/fundedbot-checkout-redesign
Open

feat(checkout): FUNDEDBIT 2-step checkout redesign — dynamic, native payment, add-on only#7
kautzargypf wants to merge 1 commit into
QuantTechnologyGroup:mainfrom
kautzargypf:feat/fundedbot-checkout-redesign

Conversation

@kautzargypf

Copy link
Copy Markdown
Contributor

Summary

Rebuilds the checkout into the FUNDEDBIT 2-step design (Challenge → Information),
delivered entirely as the yourpropfirm-ui-addon override layer. Runs against the
stock main plugin 1.15 + this add-onzero main-plugin changes. Everything in
Step 1 and the order summary is driven by the merchant's WooCommerce categories,
products and gateways
— nothing hardcoded.

Reported bugs fixed

Bug (from staging) Fix
Continue button can't be selected Plugin 1.15 removed checkout-multistep.js; the add-on now owns the 2-step engine (6930949)
Product Category & Account empty in order summary Derive from real store data + leaf category (eb9b2ab)
Currency not following WooCommerce Use get_woocommerce_currency() + store currency format (eb9b2ab)

What's included

  • Step 1 (Challenge): category-driven, design-matched — eval-type cards (name +
    description + badge + radio dot), account-balance pills, trading platform. All read live
    from categories/products (3841096).
  • Drill-down render fix: the category/product picker no longer collapses to a blank
    column (5b11570).
  • Step 2 (Information): email sub-step → billing → native WooCommerce payment using
    the merchant's own enabled gateways (dynamic #payment_method_select); each gateway
    renders its own fields (e.g. Stripe card form); "Proceed to Payment" places the order via
    native WC. Terms handled via consent text (hidden accepted terms field) — no
    checkbox (948e4a1).
  • Currency model: account balance follows the product's Account Currency; prices
    follow the store currency (b9bf550).
  • Order-summary nav: removed the redundant Back button to match the design (eb1e795).
  • Admin "Checkout Badge" field on Product Categories so "Best Value"/"Most Popular" are
    editable in admin, not just code (00fc094).
  • setup_guide.md — production configuration reference.

Testing

  • End-to-end verified locally on plugin 1.15: Stripe test card → order placed →
    order-received page; all order details dynamic from the WC order.
  • Verified with EUR store currency + USD account currency (account shows $, prices ).

Notes for deployment

  • See setup_guide.md for product/category structure, checkout settings, gateways,
    terms, and the currency model.
  • Compiled dist/css/checkout.css is committed — no Node build needed in production.
  • The main plugin caches checkout data ~5 min; product/category edits may take a refresh to
    appear.

🤖 Generated with Claude Code

…uide

- includes/class-ypf-ui-addon-category-badge.php: add a "Checkout Badge" field to
  the Product Category add/edit screens (Products → Categories), saved to the
  _ypf_term_badge term meta that form-product-selection.php already reads. Lets
  the merchant manage "Best Value"/"Most Popular" badges in admin instead of
  code. Standard WP taxonomy hooks — add-on only, no main-plugin change.
- yourpropfirm-ui-addon.php: load + init the new class.
- setup_guide.md: production setup reference — product/category structure,
  checkout settings, badges, dynamic gateways, terms via consent text, the
  account-vs-store currency model, caching gotchas, and dev/build notes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.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