I have created a custom input type for customizable options. Despite it rendering a fairly complex UI element for the user to interact with, all it actually submits when you click "add to cart" is a hidden text field that it populates via JS.
It appears in the "add to cart" form as expected, but when I try to add the product to the cart I receive following error:
"The option type to get group instance is incorrect"
I've searched Google and the only references to this error I can find are in the Magento 2 source code.
I believe it's something to do with Option.php or Options.php, but can anyone point me in the right direction?