Development discussions around Shopify APIs
I am trying to debug a 404 issue for a product using the ShopifyBuy client api. The product is always returning 404 and I am unable to understand why.
The code below is where the issue is happening. The variable productId has a valid id for an active product in the Shopify store but client.fetchProduct returns 404.
var productId = productDiv.data("shopify-id");
client.fetchProduct(productId).then(function (fetchedProduct) {
productDiv.data("product", fetchedProduct);
});
Request URL: https://shop.mysite.co/api/apps/6/product_listings/[productId]
Has anyone seen this issue before?
Thanks
User | RANK |
---|---|
10 | |
4 | |
3 | |
3 | |
3 |
We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023