Tutorials and Recipes
These tutorials walk through common CartThrob store patterns, implementation techniques, and copy-paste template examples. Start with a design pattern that matches your project, then follow focused how-to guides for checkout, pricing, and member account features.
For a high-level overview of store design patterns, see also Designing with CartThrob.
Store Design Patterns
End-to-end guides for common ecommerce site types.
- Selling Products Standard product catalog with categories and related items.
- Taking Donations Donation flows with preset amounts and optional notes.
- Selling Photos Stock photography and print sizes from one image entry.
- Configurable Products Products with many options and dynamic pricing.
- Selling Software Downloads Protected download delivery after purchase.
- Selling Tickets to Events Events, bookings, and ticket options.
- Classified Ads Customer-submitted listings and purchasable entries.
- Dynamic Sites with AJAX Cart and customer-info updates without full page reloads.
Implementation How-Tos
Focused recipes for specific checkout, pricing, and account features.
- Using Price Modifiers and Product Options Channel-based option groups and modifiers.
- Hard Coding Price Modifiers and Product Options Template-defined options without channel fields.
- Adding Custom Data to Purchased Items and Orders Persist extra data through checkout.
- Allow the Customer to Select a Gateway Multi-gateway checkout selection.
- Overriding Gateway Fields Customize gateway field output in templates.
- Custom checkout JavaScript Tokenizer quote path, events, and
custom_js="yes". - Updating custom checkout JavaScript for CartThrob 10 Pre-10
form_extracopies vs the quote → prepare → confirm path. - Authorize Later with Vaults Delay capture using saved payment methods.
- Securing Your Checkout Page HTTPS, form hardening, and checkout safety.
- Member Accounts Member registration and account integration.
- Displaying an Order History List for Logged-in Members Account order history templates.
- Create Departments for Your Products Organize products with departments or groups.
Template Examples
Starter templates you can adapt for common store layouts.
- Template Example: T-Shirt Store Simple apparel storefront.
- Template Example: Donations Donation form and checkout flow.
- Template Example: Single Page Checkout Combined cart and checkout on one page.
- Template Example: Software Downloads Post-purchase download delivery.
- Template Example: Order Reports Admin-facing order reporting templates.
Related Documentation
- Tag reference Full template tag documentation.
- Fieldtypes CartThrob channel fieldtypes for pricing and options.
- Operate Checkout Backend payment, shipping, and tax configuration.