Alternatives can be exposed in the cart form
Confirmation modal form gates the switch between variations
Trait-provided form in product variation form

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.

Supporting organizations: 
Development and maintenance

Project information

Releases