Set product color from URL variable
-
In WooCommerce I have some variable products with the options to select color and size. I need to set the default option for color based on a variable from the url. For example the url:
example.com/product/product-name/?color=blue
Would then result in the color attribute default value being set to “blue”. Any guidance to get this complete would be greatly appreciated.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Set product color from URL variable’ is closed to new replies.