Hello,
I seem to have created a product that is visible to searches from my admin but invisible to storefront. Same holds for using admin products view as well as direct graphQL from my javascript script and from the GraphiQL access tool.
Notable is that when I create a duplicate copy via the admin page, the copy is fully visible to both.
This is true for search by tag or productType. I am using graphQL version 2024-04 for both. The product is ACTIVE.
The deviant product is fully visible by direct product graphQL access using its id.
This is the code which shows the deviant product “defecto” and its copy “defecto2”. This is on the store “stranddesigner4”.
Please someone check this product out and let me know what monster I have created! Thanks and best regards. jb
query Fetch_New_Products (
$q: String!
) {
designs: products(first: 5, query: $q) {
edges {
node {
id
title
productType
tags
handle
}
}
}
}
Variables:
{
"q": "product_type:'defecto'"
}
Storefront gives this result:
{
"data": {
"designs": {
"edges": [
{
"node": {
"id": "gid://shopify/Product/7948198150322",
"title": "defecto2",
"productType": "defecto",
"tags": [
"defecto"
],
"handle": "copy-of-defecto"
}
}
]
}
}
}
Admin search gives this result:
{
"data": {
"designs": {
"edges": [
{
"node": {
"id": "gid://shopify/Product/7947215896754",
"status": "ACTIVE",
"title": "defecto",
"productType": "defecto",
"tags": [
"defecto"
],
"handle": "bare-strand-460mm-1"
}
},
{
"node": {
"id": "gid://shopify/Product/7948198150322",
"status": "ACTIVE",
"title": "defecto2",
"productType": "defecto",
"tags": [
"defecto"
],
"handle": "copy-of-defecto"
}
}
]
}
},
"extensions": {
"cost": {
"requestedQueryCost": 5,
"actualQueryCost": 3,
"throttleStatus": {
"maximumAvailable": 2000,
"currentlyAvailable": 1997,
"restoreRate": 100
}
}
}
}
This access by the deviant product id shows results in both storefront and admin:
{
product (id:"gid://shopify/Product/7947215896754")
{
id
title
productType
tags
handle
}
}
result via storefront:
{
"data": {
"product": {
"id": "gid://shopify/Product/7947215896754",
"title": "defecto",
"productType": "defecto",
"tags": [
"defecto"
],
"handle": "bare-strand-460mm-1"
}
}
}
result via admin:
{
"data": {
"product": {
"id": "gid://shopify/Product/7947215896754",
"status": "ACTIVE",
"title": "defecto",
"productType": "defecto",
"tags": [
"defecto"
],
"handle": "bare-strand-460mm-1"
}
},
"extensions": {
"cost": {
"requestedQueryCost": 1,
"actualQueryCost": 1,
"throttleStatus": {
"maximumAvailable": 2000,
"currentlyAvailable": 1999,
"restoreRate": 100
}
}
}
}