feat(checkout): FUNDEDBIT 2-step checkout redesign — dynamic, native payment, add-on only#7
Open
kautzargypf wants to merge 1 commit into
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rebuilds the checkout into the FUNDEDBIT 2-step design (Challenge → Information),
delivered entirely as the
yourpropfirm-ui-addonoverride layer. Runs against thestock main plugin 1.15 + this add-on — zero 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
checkout-multistep.js; the add-on now owns the 2-step engine (6930949)eb9b2ab)get_woocommerce_currency()+ store currency format (eb9b2ab)What's included
description + badge + radio dot), account-balance pills, trading platform. All read live
from categories/products (
3841096).column (
5b11570).the merchant's own enabled gateways (dynamic
#payment_method_select); each gatewayrenders its own fields (e.g. Stripe card form); "Proceed to Payment" places the order via
native WC. Terms handled via consent text (hidden accepted
termsfield) — nocheckbox (
948e4a1).follow the store currency (
b9bf550).eb1e795).editable in admin, not just code (
00fc094).setup_guide.md— production configuration reference.Testing
order-received page; all order details dynamic from the WC order.
$, prices€).Notes for deployment
setup_guide.mdfor product/category structure, checkout settings, gateways,terms, and the currency model.
dist/css/checkout.cssis committed — no Node build needed in production.appear.
🤖 Generated with Claude Code