Modules
Swft Cart ships with 18 modules. Each is opt-in — disabled by default unless noted. Enable modules in WooCommerce → Swft Cart → Modules.
Module reference
Section titled “Module reference”| # | Module | Option name | Default | Description |
|---|---|---|---|---|
| 1 | Announcement Bar | swftcart_module_announcements | off | A dismissible banner at the top of the cart drawer. Supports plain text, links, and icons. Content controlled via swftcart_announcements filter. |
| 2 | Free Shipping Progress | swftcart_module_shipping_progress | off | A progress bar showing how far the customer is from free shipping. Threshold pulled from WooCommerce Free Shipping settings. |
| 3 | Upsells | swftcart_module_upsells | off | Horizontal scrollable strip of product recommendations shown below cart items. IDs set via swftcart_upsell_ids filter. |
| 4 | Cross-sells | swftcart_module_crosssells | off | WooCommerce cross-sell products for the items in cart, shown as cards. |
| 5 | Save for Later | swftcart_module_save_for_later | off | Per-item “Save for later” button. Saved items move to a separate list below the cart. |
| 6 | Order Notes | swftcart_module_order_notes | off | A text field in the cart drawer that writes to order_comments when the order is created. |
| 7 | Coupon Field | swftcart_module_coupon | off | An inline coupon code input. Applies the coupon via wc_add_to_cart and refreshes totals. Fires swftcart:coupon-applied and swftcart:coupon-removed. |
| 8 | Delivery Countdown | swftcart_module_delivery_countdown | off | A countdown timer showing time remaining to order for same-day or next-day dispatch. Data supplied via swftcart_delivery_data filter. |
| 9 | Share Cart | swftcart_module_share_cart | off | Generates a shareable URL encoding the current cart contents. Fires swftcart:cart-shared on copy. |
| 10 | Sticky Checkout Button | swftcart_module_sticky_checkout | off | Pins the checkout button to the bottom of the drawer when the item list is taller than the drawer. |
| 11 | Empty Cart CTA | swftcart_module_empty_cta | off | Custom content shown when the cart is empty (text, button, image). Configured in WP Admin. |
| 12 | Item Images | swftcart_module_item_images | on | Product thumbnail per line item. Uses woocommerce_thumbnail image size. Disable for a compact list-only layout. |
| 13 | Quantity Stepper | swftcart_module_quantity_stepper | on | +/- quantity buttons per item. Without this module, quantity is shown as a read-only number. |
| 14 | Remove Item | swftcart_module_remove_item | on | Per-item remove button. Fires swftcart:item-removed. |
| 15 | Cart Total | swftcart_module_cart_total | on | Subtotal, discount, and total rows above the checkout button. |
| 16 | Trust Badges | swftcart_module_trust_badges | off | A row of configurable trust icons (lock, returns, secure payment) below the checkout button. |
| 17 | Recently Viewed | swftcart_module_recently_viewed | off | Products the customer viewed in the current session, shown below cart items. |
| 18 | FAB (Floating Action Button) | swftcart_module_fab | on | The floating cart icon shown on all pages. Click opens the drawer. Fires swftcart:fab-clicked. Badge shows item count. |
Enabling modules via PHP
Section titled “Enabling modules via PHP”You can force-enable or force-disable modules programmatically using the swftcart_modules filter:
add_filter( 'swftcart_modules', function( array $modules ): array { $modules['swftcart_module_upsells'] = true; $modules['swftcart_module_delivery_countdown'] = true; $modules['swftcart_module_sticky_checkout'] = false; // force-disable return $modules;} );The filter receives the current module state array (option name => bool) and must return the same structure.