Reveal and hide variants using query parameters
How to dynamically show or hide product variants using URL query parameters
What are hidden variants?
You can show or hide specific product variants using query parameters. Use this to segment customers by campaign or create customized product pages.
How to hide a variant
- Go to Pages and open the checkout you want to edit.
- Go to Details → Variants and click on the variant.
- Open Settings and check Hide variant.
How to show hidden variants via URL
Add the variant's Reference to the end of your checkout URL:
yourcheckouturl.com?show_variants=discounted-packages
For multiple variants, separate references with a comma:
yourcheckouturl.com?show_variants=discounted-packages,vip-options
To find the reference, open the variant's Settings and copy the Reference value.