Togglix Variation Switcher for WooCommerce

Togglix Variation Switcher for WooCommerce

Details
View on WordPress

Togglix Variation Switcher for WooCommerce helps customers update selected variation attributes (for example size, color, material) without leaving the purchase flow.

Instead of removing a variable product and searching again on the single product page, the customer can click Edit next to the line item, choose another valid combination, and update the cart item with an AJAX request.

This plugin is built for WooCommerce stores using modern checkout experiences and supports both block-based (Gutenberg) Cart/Checkout usage and standard Cart/Checkout pages where the Edit interaction is rendered.

Key Features

  • Edit variation selections directly in Cart and Checkout contexts
  • Customer-friendly popup UI with a dedicated close button and overlay click-to-close behavior
  • Fetches available variation attributes from the parent variable product
  • Preserves selected cart quantity while replacing variation
  • Uses secure AJAX endpoints with nonce verification
  • Supports logged-in and guest customers (wp_ajax_ + wp_ajax_nopriv_)
  • Works with WooCommerce variable products (simple products are intentionally ignored)
  • Translation-ready with included POT file in the languages directory

Compatibility

  • WordPress: 6.0+
  • WooCommerce: required
  • PHP: 7.4+
  • Compatible with block-based (Gutenberg) WooCommerce Cart/Checkout experiences
  • Designed for standard Cart/Checkout flows where line-item Edit links are available

What the plugin changes

  • Adds an Edit action for variable line items in Cart/Checkout UX
  • Opens a variation selector popup from the current page
  • Validates selected combinations before updating the cart
  • Replaces the existing line item variation and reloads the page to reflect totals and attributes

How to Use

  1. Add a variable product to the cart.
  2. Go to Cart or Checkout.
  3. Click the Edit link shown for a variation line item.
  4. Select the new attribute values in the popup.
  5. Click Update to replace the existing cart variation.
  6. The page reloads to reflect the updated variation.

Notes

  • This plugin updates variation selections for items that are already in the cart.
  • Attribute labels are displayed in a simple customer-facing format.
  • If no valid matching variation is found for the selected attributes, the customer sees an error message.

Details

Plugin code:
togglix-variation-switcher-for-woocommerce
Plugin version:
1.0
Author:
Outdated:
No
WP version:
6.0 or higher
PHP version:
7.4 or higher
Test up to WP version:
6.9.4
Total installations:
0
Last updated:
2026-04-03
Rating:
Times rated:
0
blocks
cart
checkout
variation
woocommerce