Native WooCommerce cart for the TBC Community App. Adds a header cart icon with live badge, fast cart REST API, and optional shop/checkout frame in Fluent Community.
TBC Cart is the WooCommerce bridge for the TBC Community App. It exposes a lightweight REST API around the WC cart so the mobile app can show a header cart icon with a live badge count, open a native bottom-sheet cart UI, update quantities, remove items, and apply coupons — all without loading the full WooCommerce frontend on each request.
A /count endpoint reads persistent-cart user meta directly (no WC session boot) so the badge stays in sync cheaply, and an X-TBC-Cart-Count response header piggybacks on every authenticated API call to keep the badge accurate even when the cart changes outside the app.
On the WordPress side, optional toggles let you iframe the WooCommerce shop and checkout into the Fluent Community portal and enable a classic mini-cart slide-out, so members can browse and check out without leaving the community UI. Payments are handled by WooCommerce and whatever gateway you’ve configured (Stripe, PayPal, etc.) — TBC Cart is purely the cart surface.