DL Frequently Bought Together

Plugin Banner

DL Frequently Bought Together

by Digital Lychee

Download
Description

DL Frequently Bought Together adds a simple, flexible upsell system to WooCommerce product pages, allowing store owners to group products that are commonly purchased together.

Each product can define its own “Frequently Bought Together” set from within the product editor. On the frontend, customers can select which products to include, choose variations where applicable, and add everything to the basket in a single action.

Pricing updates dynamically and supports mixed VAT rules (some products taxable, others not).

Key Features

  • Add a Frequently Bought Together panel to product pages
  • Select bundled products directly in the product editor
  • Supports simple and variable products
  • Dynamic total price calculation (incl. & excl. VAT)
  • One-click “Add all to basket” button
  • Automatically excludes unavailable or out-of-stock variations
  • Lightweight, no frontend dependencies

How It Works

Admin (Product Editor)

  1. Edit any WooCommerce product
  2. Open the Frequently Bought Together tab
  3. Select one or more products to associate
  4. Save the product

Each product has its own independent bundle configuration.

Frontend (Product Page)

  • The bundle appears below the product summary
  • Customers can:
    • Toggle items on/off
    • Select variations where required
  • Prices update instantly as selections change
  • Clicking Add all to basket adds all selected items to the basket

Variable Products

Variable products always default to a valid, purchasable variation to avoid ambiguous pricing or invalid selections.

If no purchasable variations exist, the product is excluded from the bundle entirely.

Requirements

  • WooCommerce 6.0+
  • PHP 8.3+
  • JavaScript enabled on the frontend
  1. Upload the plugin folder to /wp-content/plugins/
  2. Activate DL Frequently Bought Together via the Plugins menu
  3. Edit a product and configure the bundle via the new tab
Does this replace WooCommerce cross-sells or related products?

No. This is a separate, opt-in bundle system shown directly on product pages.

Can I style it to match my theme?

Yes. All markup uses scoped CSS classes (.dl-fbt__*) and inherits theme colours where possible.

Does it support taxes and mixed VAT products?

Yes. Totals are calculated using WooCommerce’s tax APIs and correctly handle mixed tax statuses.

Can I include variable products?

Yes. Only purchasable, in-stock variations are included, and a valid variation is always selected.

Can I include products that use third-party add-ons or custom fields?

Products that require additional input (such as custom fields added by other plugins) may behave differently depending on how those plugins integrate with WooCommerce. For the most predictable experience, Frequently Bought Together works best with standard simple and variable products.

1.0.2

  • Hardened input handling and nonce validation to meet WordPress.org review guidelines.
  • Improved sanitization and validation of frontend and admin POST data.
  • Renamed localized JavaScript object to a fully-qualified, plugin-specific name.
  • Internal code quality improvements.

1.0.1

  • Refactor: Improved internal code structure (class-based modules) for better maintainability.
  • Tweak: Cart/checkout notice assets are now loaded only where needed.
  • No functional changes intended.

1.0.0

  • Initial release
  • Frequently Bought Together bundles
  • Dynamic pricing (incl. & excl. VAT)
  • Variable product support
  • One-click add-to-cart
  • Admin product editor integration
Back to top