The wc_dropdown_filter() is basically a copy of the original WooCommerce Code creating the dropdown, just altered to output radio instead of select, the only missing thing was the javascript code to make it work.
Maybe if you integrate that, you can get rid of the need to copy the template file.
Hi,
I just stumpled upon your plugin while I was creating the same functionality myself.
My idea differed in one way from your way, maybe you guys can integrate my idea into your plugin, making it easier to use.
Instead of altering the /single-product/add-to-cart/variable.php I hooked into the filter for the Dropdown.
` add_filter( 'woocommerce_dropdown_variation_attribute_options_html', [ $this, 'wc_dropdown_filter' ], 10, 2 );
`
The wc_dropdown_filter() is basically a copy of the original WooCommerce Code creating the dropdown, just altered to output radio instead of select, the only missing thing was the javascript code to make it work.
Maybe if you integrate that, you can get rid of the need to copy the template file.