Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: Product API returns Product as Active but Product is not visible on frontend

Solved

Product API returns Product as Active but Product is not visible on frontend

IamSantosh
Shopify Partner
8 1 1

Hi there,

 

I'm using Shopify API "https://XYZ/admin/api/2023-04/products.json?limit=250&published_status=published" and it returns the product list in response. Most of the Product returns in this API are marked as Active and also showing as Published but on the frontend, (on our website) these products are not visible. On direct opening the URL of product, it returns 404 Page Not Found error.

 

Example of a API response of a product :

{
"product": {
"created_at": "2023-11-19T12:44:26+11:00",
"handle": "meditation-cushion-seating-block-set-stpink-yb-redele",
"updated_at": "2023-11-22T16:18:50+11:00",
"published_at": "2023-11-19T12:44:26+11:00",
"template_suffix": null,
"published_scope": "web",
"status": "active",
"admin_graphql_api_id": "gid://shopify/Product/XYZ",
"variants": [
{
"id": XYZ,
"product_id": XYZZ,
"title": "Default Title",
"position": 1,
"inventory_policy": "deny",
"fulfillment_service": "manual",
"inventory_management": "shopify",
"option1": "Default Title",
"option2": null,
"option3": null,
"created_at": "2023-11-19T12:44:26+11:00",
"updated_at": "2023-11-19T12:44:26+11:00",
"taxable": false,
"barcode": "CVBN",
"grams": 12,
"image_id": null,
"weight": 1.5,
"weight_unit": "kg",
"inventory_item_id": CVBN,
"inventory_quantity": 41,
"old_inventory_quantity": 41,
"requires_shipping": true,
"admin_graphql_api_id": "gid://shopify/ProductVariant/XYZS"
}
],
"options": [
{
"id": XYZS,
"product_id": XYZS,
"name": "Title",
"position": 1,
"values": [
"Default Title"
]
}
]
}
}

 

Product URL : https://zanlanadesign.com.au/products/meditation-cushion-seating-block-set-stpink-yb-redele

 

Please help me out here.

Accepted Solution (1)

Liam
Community Manager
3108 344 899

This is an accepted solution.

Hi IamSantosh,

 

The product you linked is appearing for me on the front-end of the store:

Is it possible there's some caching issue here - are you testing in incognito when opening the URL?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 3 (3)

Liam
Community Manager
3108 344 899

This is an accepted solution.

Hi IamSantosh,

 

The product you linked is appearing for me on the front-end of the store:

Is it possible there's some caching issue here - are you testing in incognito when opening the URL?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

IamSantosh
Shopify Partner
8 1 1

Thankyou so much Liam.

Actually, the product is available only in the Australian market place but I was trying to open the URL in the US. That's why I was getting the 404 page not found error.

 

I saw the Australia pricing on the top right of your screen and when I open the URL with Australia Proxy, it opens.

 

Thanks once again.

Liam
Community Manager
3108 344 899

Glad it's working IamSantosh!!

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog