I'm using the WooCommerce Composite Products plugin in my WordPress/WooCommerce website and would like to be able to control what the default chosen product option is for just the first component via URL parameters.
For example, say I create a composite product that allows you to build a skateboard (deck component + wheels component + trucks component). If I create a link that says "Build your own Skateboard using this deck", that link should have URL parameters of some sort that pre-selects the right deck out of the available deck options upon opening the skateboard composite product (the link's URL might look something like this: www.mydomain.com/shop/skateboard-composite-product?deck-option=red-deck , where that last bolded part of the URL pre-selects the given deck option. The WooCommerce Composite Products plugin has the ability to select a default product option for any component. So I'd assume targeting that and changing the default option to whatever you say in the URL is the right way of tackling this.
I'm a bit of a noob at coding, especially php. Does anyone have an idea of how to accomplish this? WordPress/WooCommerce/plugins are all updated to latest versions as of this posting date. I'm using the Storefront theme for my shop.
Thanks in advance!