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 |
---|---|
12 | |
6 | |
5 | |
5 | |
5 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022