I’m trying to add a swatcher to woocommerce variable products, I can see each variation id is stored in the forms tag, but when you have multiple attributes, that value is “false” so how can I get the variation id when the dropdown select is replaced with my swatches?
It’s the data-product_variations
attribute in the form tag that is returning false, so how to get variations ids on the front end with JS?
I don’t need the code, I just need an idea on how to start.
Becker Armata is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.