I've created a custom product page and am encountering challenges with the variants section. After users make their selections (like choosing colors, sizes, etc.), I need a way to search for these selected choices within the variants collection. The goal is to identify and set the appropriate variant ID, so it can be added to the cart.
I've attempted several solutions without success. Has anyone managed to address this issue?