Adding products to cart on page of other product

Hey :slightly_smiling_face:

I am building a product customizer. Initially, for each customization, a different variant of the product was used, but this doesn’t really make sense anymore since some customizations are addons that are sold seperately.

Right now I am wondering, how I can use the logic that creates the visual appearance and depending on that add multiple products to the cart.
E.g. the product with yellow buttons was initially a product variant, now I would want to add the plain product and an additional set of yellow buttons to the cart.

If this is too abstract:

  1. How can I get information of other products and their variants on a third product page?

  2. How can I modify the add to cart with some logic, so that depending on the user input, additional products are added to the cart?

Best

Christof