I am getting the right data from production store, but in development store I’m getting a JSON parse error since the request is getting the page’s source code instead of a JSON code ( I am doing this to ajaxify adding to cart )
While debugging I found out that the link redirects to the product’s page.
So first up it’s weird that this url is using a querystring parameter with the name of variant, but is using the product id. odd.
the next part “&view=metafields” shows that the theme expects there to be an alternate product in place called “product.metafields.liquid”. if it’s missing, it will just show the default product template.
Does the dev shop have that alt template in place?