Commerce Product Alternative
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
- Go to Commerce → Configuration → Product variation types, edit the relevant variation type, and enable the Alternative Variations trait.
- Edit individual product variations and assign which other variations are valid alternatives.
- Open your cart View and add the Alternative variations field from the order item fields.
Additional Requirements
- Drupal Commerce (including the Cart module)
Recommended modules/libraries
None required beyond Drupal Commerce.