Hi,
I’m experiencing an issue with adding product variants to the cart. Everything works perfectly on desktop, but not on mobile and tablet.
On mobile and tablet, the main variant selector and add to cart button are hidden.
A second variant selector and button are visible, but clicking the button results in ?variant=undefined being added to the URL instead of the correct variant ID.
Ideally, I would like to place the variant selector and add to cart button in a custom location—preferably in two different places. If that’s not possible, then at the very least I need to ensure that the visible button functions properly and passes the correct variant ID.
Do you have any suggestions on how to fix this?
Thanks in advance,
Matthias