Is there any way I could generate variant ID of a combination of selected Size and Color swatches using javascript?
Solved! Go to the solution
This is an accepted solution.
Hey @cedrichadjian, I don't believe you could generate a variant ID out of size and color values, but you can definitely assign the {{ product | json }} object somewhere, and use the variants object inside to find which variant has the current values (if any) using JS. This is the basis of most product configurators I develop.
User | Count |
---|---|
28 | |
17 | |
15 | |
12 | |
10 |