Variation Switcher in Cart for WooCommerce allows your users to change their variations on their cart page.
Installation
↑ Back to top1. Download the variation-switcher-in-cart-for-woocommerce.zip file from your WooCommerce account.
2. Go to: WordPress Admin > Plugins > Add New and Upload Plugin with the file you downloaded with Choose File.
3. Install Now and Activate the extension.
More information at: Install and Activate Plugins/Extensions.
Setup and Configuration
↑ Back to topTo access the plugin settings navigate to Dashboard > WooCommerce > Settings > Variation Switcher in Cart.
General Settings
↑ Back to top- By default, the Change Variation Link will not display for registered users in the cart for the variable product & variable subscriptions. Enable Variation Switcher Link for Logged-in Users checkbox to display it.
- By default, the Change Variation Link will not display for guest users in the cart for the variable product & variable subscription. Enable Variation Switcher Link for Guest Users checkbox to display it.
- By default, users will not be allowed to switch variation on the checkout page. If you wish to allow your users to switch variation on the checkout page, you can do so by enabling the “Variation Switcher Link in Checkout” option.
Note: This option is displayed only when Variation Switcher Link for Logged-in Users and/or Variation Switcher Link for Guest Users is enabled.
Display Settings
↑ Back to top- If you wish to display the selected variation on the cart and checkout page, you can do so by enabling the “Display Selected Variation” option.
- By default, the variation switching option will be displayed as a list. If you wish to display the switching as a popup, you can do so by customizing the “Variation Switcher Link Display Type” option.
- By default, the variation switcher link is displayed as text. If you wish to display it as an icon, select Icon in the “Change Variation Type” option.
- By default, a separate Update Variation button is displayed to apply the newly selected variation. If you wish to allow your users to apply the variation change using the WooCommerce Update Cart button instead, enable the “Modify Variation using the Update Cart button” option.
- Note: This option is available only when Variation Switcher Link Display Type is set to List. On the checkout page, the Update Variation button is always displayed.
- By default, out-of-stock variations are listed in the variation switcher as unavailable options. If you wish to remove them from the selection list, enable the “Hide Out-of-Stock Variations” option.
- If you wish to display the price difference between the variation currently in the cart and the newly selected variation while switching, enable the “Display Variation Price Difference” option. A higher price is shown as +amount, a lower price as -amount, and No price difference is shown when the prices are the same.
- If you wish to display the image of the selected variation while switching, enable the “Display Variation Image” option.
- Use the “Variation Image Size” option to choose the size of the displayed variation image: Thumbnail (default), Small or Medium. This option is displayed only when Display Variation Image is enabled.
- By default, variation attributes are selected using dropdowns. Use the “Variation Selector Type” option to choose how attributes are selected while switching:
- Default Dropdown – Attributes are selected using the standard dropdowns.
- Button Swatch – Each attribute value is displayed as a clickable button.
- Color / Image Swatch – Color attributes are displayed as color or image swatches, as configured in the Swatch Options.
- When Variation Selector Type is set to Color / Image Swatch, use the “Swatch Options” option to choose how attribute values are displayed (Color swatches and Size buttons are selected by default):
- Color swatches – Attribute values that match a standard color name (e.g. Red, Blue, Black) are displayed as a color swatch.
- Image swatches – The matching variation image is displayed as the swatch, when one is available.
- Size buttons – Attribute values with no matching color or image (e.g. sizes) are displayed as buttons instead of a dropdown.
Note: Only one of Color swatches or Image swatches can be selected at a time; selecting one deselects the other. Color and image swatches apply only to attributes named Color/Colour or whose values are all standard color names.
- If you wish to list all available variations (with price and stock status) so your users can choose a complete variation at once instead of changing each attribute separately, enable the “Quick Variation Selection” option. Initially, 3 variations are displayed and the rest can be viewed using the Show More link.
- Use the “Quick Selection Display” option to choose how the variations are listed. This option is displayed only when Quick Variation Selection is enabled.
- Variation Cards (default) – Variations are displayed as cards. Users select a card and then apply it using the update button.
- Compact List – Variations are displayed as a list with a button for each variation, which switches to that variation immediately.
- If you wish to display a search box that allows your users to filter the available variations by attribute value (e.g. “red” or “large”), enable the“Variation Search” option. If Quick Variation Selection is disabled, matching variations are listed only after the user searches.
Variation Change Confirmation Settings
↑ Back to top- By default, the cart item is updated as soon as the user applies the new variation. If you wish to ask your users to confirm the replacement in a popup before the cart item is updated, enable the “Confirm Variation Change” option. Users can click Confirm Change to proceed or Cancel to keep the current variation.
- Use the “Confirmation Popup Content” option to choose which details are displayed in the confirmation popup: Show Current Variation, Show New Variation and Show Price Difference (all selected by default). This option is displayed only when Confirm Variation Change is enabled.
Success Message Settings
↑ Back to top- By default, the success message configured in the Localization section is displayed after a variation is switched. If you wish to display details about the switched variation in the success message, enable the “Use Detailed Success Messages” option.
- Use the “Detailed Message Content” option to choose which details are included in the success message (both selected by default). This option is displayed only when Use Detailed Success Messages is enabled.
- Show Variation Name – Displays the previous and the new variation (e.g. Red, Small → Blue, Large).
- Show Updated Price – Displays the price of the new variation.
Undo Variation Change Settings
↑ Back to top- If you wish to allow your users to restore the previous variation after a successful switch, enable the “Undo Last Variation Change” option. An Undo button is displayed along with the success message. The undo option remains available until the cart is updated again, and only the most recent variation change can be undone.
Restriction Settings
↑ Back to topBy default, all user roles can use the variation switcher. If you wish to allow only specific user roles, select them in the “Allowed User Roles” option. Select Guest to include logged-out visitors. Leave it empty to allow all roles.
Note: The Variation Switcher Link for Logged-in Users / Variation Switcher Link for Guest Users option in General Settings must also be enabled for the matching user type.
By default, the Change Variation link will be displayed for all the variable products & variable subscriptions in cart. If you wish to display the link for specific products/categories, then make use of the filter given in Product(s)/Category Filter.
Note: In this option, you can search only the Variable products & Variable subscriptions.
The Product(s)/Category Filter provides the following options: All Products, Include Products, Exclude Products, Include Categories, Exclude Categories, Include Variations and Exclude Variations.
- Include Variations – Only the variations selected in the Include Variations field can be selected when switching. All variable products still display the Change Variation link.
- Exclude Variations – The variations selected in the Exclude Variations field can never be selected when switching.
Localization
↑ Back to topYou can customize the Change Variation Text, Link Text, Button Name & Success Message in this section.
Custom CSS Settings
↑ Back to topYou can make use of the Custom CSS settings for styling the Change Variation Link based on your needs.
Troubleshoot Settings
↑ Back to topBy default, the cart/checkout is refreshed without reloading the page after a variation is changed. If you face compatibility issues with third-party plugins while switching variations, enable the “Variation Switcher Link” option in this section to change the variation by reloading the page.
Usage
↑ Back to top- Users adds a variable product / variable subscription product to the cart.
- “Change Variation” link will be displayed in the cart line item for Variable Product(s) & Variable Subscription(s).

- Users can change the variation in a cart without going to the product page using the “Change Variation” Link & proceed to complete the order.

Translation
↑ Back to topVariation Switcher in Cart for WooCommerce Plugin is translation ready meaning you can edit the po files by which you can translate the text to any language.
The steps to do the translation are as follows. For eg let us consider translation to French.
- Download and install Poedit
- Open the file variation-switcher-in-cart-for-woocommerce -> languages folder -> variation-switcher-in-cart-for-woocommerce.pot using Poedit.
- Create a new translation file by clicking Create new translation button
- Choose the Source text and set its corresponding French text in Translation Text Area.
- Save the changes.
- Save the file name as variation-switcher-in-cart-for-woocommerce-fr_FR.po.
- If you are using WordPress Version 3.9.13 or below, then in wp-config.php define the WPLANG as French. Syntax is define(‘WPLANG’, ‘fr_FR’);
- If you are using WordPress Version 4.0 or above, then go to WordPress dashboard -> Settings -> General and select the Site Language as French.