I don't know how hard is it to code, but Woo-Commerce as this plugin called "Add-Ons".
Add-Ons are extremely easy to use and very helpful.
If there could be a BOM field for Add-Ons this would be amazing.
Thanks for the amazing product, it's been a game changer for my company.
Renfield