Link 2 input fields on product page to create calculator for accessories

Hello,

I want customers to be able to see the amount of accessories that they need for their products.
I added the accessories in a collection list with an add to cart button.

What I now want to do, is that if the client for example selects 10x of the main product. All the accessories input fields are supposed to show 10 times a custom formula. And then if the client presses the add to cart button of the accessorie, it is supposed to add the right amount to the cart.

Is it possible to somehow create the add to cart button in custom code and then link the different input fields to each other?

Here a example of what it should look like (except the total price calculation)
https://www.grasexpert.com/nl_NL/kunstgras-outlet/fedde

If you need any more information let me know, I think I have a way in my head how it would work but I don’t have the coding skills to make it work.

Please let me know if you think this is possible. I would also not mind hiring someone to do it for me since I’m not that great with coding myself.

Best regards,

Tim


Here is my site Read-Only: LINK
(how to share your site Read-Only link)