Shopify Magic: see / accept suggestions on products

Hi devs,

Is it possible to see / accept the Shopify suggestions on product category and the corresponding metafield values that are suggested?

We import the products via de API but it would great to query the suggestions that are made by Shopify.

We all know that product management is not great in Shopify so PIM is used a lot, but this is missing the opportunity to use the kind of nice features in Shopify itself.

1 Like

Hey @AdminGh :waving_hand: - hopefully I’m understanding correctly, but you’re looking for a way to pull the suggested metafields that appear in the Admin UI through the Admin API like below?

If so, there’s not a specific API endpoint to pull those, but if you have a product that is already attached to a category, you can run something like this to grab those suggested category metafield values:

query GetProductCategoryAttributes($id: ID!) {
  product(id: $id) {
    id
    title
    category {
      id
      fullName
      attributes(first: 20) {
        nodes {
          __typename
          ... on TaxonomyChoiceListAttribute {
            id
            name
            values(first: 20) {
              nodes {
                id
                name
              }
            }
          }
          ... on TaxonomyMeasurementAttribute {
            id
            name
            options {
              key
              value
            }
          }
        }
      }
    }
  }
}

Hope this helps, let me know if I can help out further :slight_smile:

@Alan_G thank you for the reply. This is helping definitely to get the values, it is missing the suggested value by Shopify Magic.

The same is for the Category itself. In our case we migrated 60k products, it is quite some work to go trough. Basically the Bulk editor and then bulk accept.

No worries @AdminGh - I think I understand where you’re coming from on this for sure. Are you referring to the suggestions that appear here on the product page?

If so, you’re right that there isn’t a direct way to grab these by the API, but that said, I am happy to see if this is something we have on our roadmap if you’d like? Feel free ping me here and I’d be happy to look into this for you, just wanted to confirm I was looking at the right feature on my end here.

1 Like

Hey @AdminGh :waving_hand: - looks like this one was marked as solved. Just wanted to follow up here to let you know I’ll set up that feature request for you on my end here, so we can close the loop on the thread. Let me know if I can help with anything else!