hi
thank you for reply.
I want the ID of each variant of the product to be displayed by selecting the desired variant. With the following code, all product IDs of all variants are displayed together!
For example, I have a product with the ID 650 and the ID of its variants, respectively, equal to 651/652/653/654, now with the code you gave, the following number is displayed in one place.
650651652653654
Do you understand what I mean?
I want product id (variant ) for each variants to be displayed dynamically.
thank you.