I went thru the supabase example but it’s a little thin.. anyone have example code or at least a scaffold for how to get additional product information from the store into the shop mini. we are looking to extend the search with tags and potentially meta data fields but don’t want to have to do multiple searchs and then bounce the lists off each other..
Hey @davidfertig ,
Yes, the Supabase example is indeed a bit light on details, it was created mainly to illustrate request validation. To clarify, the Shop Minis SDK is primarily a client-only framework, so it doesn’t provide direct server-to-server APIs beyond basic user validation (e.g., confirming the request is from Shopify and authenticating the user).
That said, I’d love to help if we can! Could you share a bit more about your specific use case (e.g., what kind of product info you’re trying to fetch and how you’re planning to extend the search)? That way, we might be able to suggest workarounds or point you to relevant resources.
My ultimate goal is a shop local app with location awareness (hey the product you were looking at online is available at a store X miles away. - or look at my wishlist/favorites and find items nearby. having said that - i understand we can’t do geolocation or maps yet so my current idea is to add tags or metadata to products in the stores (and or provide a store app that does this (we have one already) and then using those tags or meta data in the search or use recommended - i did not see those fields exposed in the product array/results so was going to extend them by authenticating to the store , calling the api for each product they are viewing and then filtering the results based on that..
not ideal but open to better suggestions or routes or looking for an example of how to get product details that are in shopify but not in the shop mini api..
Assuming that you have a Shopify app, then what you can do is to call Storefront API from your backend to retrieve those metafields. But, it will only work for those merchants who have installed your Shopify app.
There’s no way to write or read product metafields just using the Shop Minis SDK.
Yeah it’s a bit limiting but do you think you could whip up and example and throw it into the github repo until we can get more info into shop mini..
Hi @davidfertig , I totally get why you’re asking, but this scenario is pretty specialized. Shop Minis are designed for buyer-facing experiences rather than for Shopify apps installed on merchant stores, so we don’t have a built-in sample for that workflow.
The repo is open source, though, so if you (or anyone else in the community) want to draft an example, feel free to open a PR and we’ll happily review it.