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
- Customer selects product variations (e.g., Color: Off White, Size: M).
- The URL updates to include variation parameters:
yoursite.com/product/t-shirt/?attribute_pa_color=off-white&attribute_pa_size=m
- Reloading or sharing this URL keeps the same variation active.
Enabling the Feature
Step 1: Global Settings (Required)
- Go to Swatchly → Settings → Global.
- Enable Variation URL by checking Yes.
- 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:
- Navigate to Swatchly → Settings → For Product Details Page.
- Enable Variation URL by checking Yes.
- 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:
- Go to Swatchly → Settings → For Product List/Shop Page.
- Enable Variation URL by checking Yes.
- 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