How tg11-org/storefront works
TG11 Shop is a Django ecommerce storefront with marketplace and fulfillment integrations. The main customer journey is browsing the catalog, building a cart, then submitting checkout; checkout coordinates pricing, order creation, and payment. A successful payment updates order state and can initiate fulfillment. Supporting branches cover customer accounts, promotions/shipping/tax, marketplace listing and order synchronization, and staff merchandising. The graph uses sampled source references and README claims; some provider-specific and unsampled routes are therefore shown only as documented, unverified integrations.
Main entry points: views.py Checkout · payments/services.py Payment Services · models.py Product Catalog · pricing/services.py Pricing Engine
Components 21
Storefront
- Product Catalog
catalog/models.py - Shopping Cart
cart/models.py - Checkout
checkout/views.py
Commerce Operations
- Order Records
orders/models.py - Order Fulfillment
orders/services.py - Payment Services
payments/services.py - Payment Records
payments/models.py
Pricing and Delivery
- Pricing Engine
pricing/services.py - Promotions and Coupons
pricing/models.py - Tax Calculation
pricing/tax.py - Shipping Rates
pricing/services.py
External Integrations
- Stripe
- Connector Services
connectors/services.py - Provider Registry
connectors/registry.py - Etsy Connector
connectors/etsy.py - PopCustoms Connector
connectors/popcustoms.py - Shipping Providers
- Shipping Webhooks
pricing/webhooks.py
Customer and Staff
- Customer Accounts
accounts/models.py - Store Dashboard
dashboard
Other components
- Shopper
Connections 30
- Shopper → Product Catalog: browses
- Shopper → Shopping Cart: adds items
- Shopper → Checkout: submits checkout
- Checkout → Shopping Cart: reads
checkout/views.py - Checkout → Product Catalog: reads
checkout/views.py - Checkout → Customer Accounts: reads
checkout/views.py - Checkout → Pricing Engine: calculates prices
checkout/views.py - Checkout → Tax Calculation: calculates tax
checkout/views.py - Checkout → Order Records: creates orders
checkout/views.py - Checkout → Payment Services: starts payment
checkout/views.py - Checkout → Connector Services: reads channel data
checkout/views.py - Shopping Cart → Product Catalog: references products
cart/models.py - Pricing Engine → Product Catalog: reads products
pricing/services.py - Pricing Engine → Order Records: reads orders
pricing/services.py - Pricing Engine → Promotions and Coupons: uses promotions
pricing/services.py - Pricing Engine → Shipping Providers: requests rates
- Tax Calculation → Payment Services: supports tax totals
pricing/tax.py - Payment Services → Stripe: creates sessions
payments/services.py - Payment Services → Payment Records: records payments
payments/services.py - Payment Services → Order Records: updates paid orders
payments/services.py - Payment Services → Shopping Cart: clears checked-out cart
payments/services.py - Payment Services → Connector Services: initiates fulfillment
payments/services.py - Connector Services → Order Records: updates sync state
connectors/services.py - Connector Services → Product Catalog: imports listings
connectors/services.py - Connector Services → Provider Registry: gets connector
connectors/services.py - Provider Registry → Etsy Connector: registers
connectors/registry.py - Provider Registry → PopCustoms Connector: registers
connectors/registry.py - Order Records → Order Fulfillment: tracks fulfillment
orders/services.py - Shipping Providers → Shipping Webhooks: sends events
- Store Dashboard → Product Catalog: manages merchandising