WooCommerce Variation URL – Generate & Share Product Links with Swatchly

The WooCommerce Variation URL feature lets you generate unique links for selected product variations, making it easy to share and keep selections active.

  • Share direct product links with pre-selected variations.
  • Ensure variations remain active after page reload.
  • Use shareable links with WooCommerce Product Bundles.

How It Works

  1. Customer selects product variations (e.g., Color: Off White, Size: M).
  2. The URL updates to include variation parameters:

    yoursite.com/product/t-shirt/?attribute_pa_color=off-white&attribute_pa_size=m
  3. Reloading or sharing this URL keeps the same variation active.

Enabling the Feature

Step 1: Global Settings (Required)

  1. Go to Swatchly → Settings → Global.
  2. Enable Variation URL by checking Yes.
  3. Save changes.

Step 2: Product Details Page (Conditional)

If “Want to control the Global settings for Product Details Page differently?” is enabled, you must also enable the option here:

  1. Navigate to Swatchly → Settings → For Product Details Page.
  2. Enable Variation URL by checking Yes.
  3. Save changes.

Step 3: Product List/Shop Page (Conditional)

If “Want to control the Global settings for Shop Page differently?” is enabled, you must also enable the option here:

  1. Go to Swatchly → Settings → For Product List/Shop Page.
  2. Enable Variation URL by checking Yes.
  3. Save changes.

Example in Action

  • Customer selects Color: Off White, Size: M.
  • The generated URL looks like this: yoursite.com/product/t-shirt/?attribute_pa_color=off-white&attribute_pa_size=m
  • When shared, anyone clicking the link will land on the product page with those variations pre-selected.
Last updated on September 11, 2025

Was this article helpful?