Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Commerce Product Alternative

Security covered Under active development 2 sites

Part of the Commerce ecosystem · 487 projects

This module allows shoppers to easily swap one product variation for another directly within their shopping cart. Store administrators can define which product variations are interchangeable, and customers will see links to easily make these exchanges without needing to remove and re-add items. This is especially useful for products with different formats, bundles, or configurations that customers might want to switch between during checkout.

Commerce Product Alternative lets shoppers swap a product variation in their cart for a different one - without removing and re-adding items. Store managers configure which variations are valid alternatives for each other, then expose swap links in any cart view.

Features

  • Define alternative variations per variation using a configurable trait on the variation type
  • Expose swap links in the cart view via a dedicated Views field plugin
  • Swapping replaces the underlying order item — no manual remove/re-add needed

Useful when you sell products with meaningfully different variations — formats, bundles, or configurations — and want shoppers to switch without losing their place in checkout.

Post-Installation

  1. Go to Commerce → Configuration → Product variation types, edit the relevant variation type, and enable the Alternative Variations trait.
  2. Edit individual product variations and assign which other variations are valid alternatives.
  3. Open your cart View and add the Alternative variations field from the order item fields.

Additional Requirements

None required beyond Drupal Commerce.

Drupal 11 · not 10

Ask your assistant about Commerce Product Alternative

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Jun 2026
Latest release
3 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core PHP Release date
1.0.0 Stable 11 Jun 29, 2026
1.x-dev Dev 11 Jun 3, 2026