Skip to content

Modules

Swft Cart ships with 18 modules. Each is opt-in — disabled by default unless noted. Enable modules in WooCommerce → Swft Cart → Modules.

#ModuleOption nameDefaultDescription
1Announcement Barswftcart_module_announcementsoffA dismissible banner at the top of the cart drawer. Supports plain text, links, and icons. Content controlled via swftcart_announcements filter.
2Free Shipping Progressswftcart_module_shipping_progressoffA progress bar showing how far the customer is from free shipping. Threshold pulled from WooCommerce Free Shipping settings.
3Upsellsswftcart_module_upsellsoffHorizontal scrollable strip of product recommendations shown below cart items. IDs set via swftcart_upsell_ids filter.
4Cross-sellsswftcart_module_crosssellsoffWooCommerce cross-sell products for the items in cart, shown as cards.
5Save for Laterswftcart_module_save_for_lateroffPer-item “Save for later” button. Saved items move to a separate list below the cart.
6Order Notesswftcart_module_order_notesoffA text field in the cart drawer that writes to order_comments when the order is created.
7Coupon Fieldswftcart_module_couponoffAn inline coupon code input. Applies the coupon via wc_add_to_cart and refreshes totals. Fires swftcart:coupon-applied and swftcart:coupon-removed.
8Delivery Countdownswftcart_module_delivery_countdownoffA countdown timer showing time remaining to order for same-day or next-day dispatch. Data supplied via swftcart_delivery_data filter.
9Share Cartswftcart_module_share_cartoffGenerates a shareable URL encoding the current cart contents. Fires swftcart:cart-shared on copy.
10Sticky Checkout Buttonswftcart_module_sticky_checkoutoffPins the checkout button to the bottom of the drawer when the item list is taller than the drawer.
11Empty Cart CTAswftcart_module_empty_ctaoffCustom content shown when the cart is empty (text, button, image). Configured in WP Admin.
12Item Imagesswftcart_module_item_imagesonProduct thumbnail per line item. Uses woocommerce_thumbnail image size. Disable for a compact list-only layout.
13Quantity Stepperswftcart_module_quantity_stepperon+/- quantity buttons per item. Without this module, quantity is shown as a read-only number.
14Remove Itemswftcart_module_remove_itemonPer-item remove button. Fires swftcart:item-removed.
15Cart Totalswftcart_module_cart_totalonSubtotal, discount, and total rows above the checkout button.
16Trust Badgesswftcart_module_trust_badgesoffA row of configurable trust icons (lock, returns, secure payment) below the checkout button.
17Recently Viewedswftcart_module_recently_viewedoffProducts the customer viewed in the current session, shown below cart items.
18FAB (Floating Action Button)swftcart_module_fabonThe floating cart icon shown on all pages. Click opens the drawer. Fires swftcart:fab-clicked. Badge shows item count.

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.