Filter product variant by selecting a product in a dropdown

New Member
1 0 1

Hello everyone, Im new to the community and I'm glad to take part in this community.


I'm having troubles programming a functionality in a theme. I'm trying to show a dropdown menu in the product page showing products of a 'x' collection and filtering their two types of variants in two dropdown menus below . I already did the showing products part, but the real problem comes when I try to load their variants when I select the product.

Anyone know how to do that in the theme code? I would appreciate any kind of help. Or any correction/feedback about the  formulation of the question, I'm very new asking these kind of questions.


Geetings to all!!