Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Creating searchable database of metaobject entries

Creating searchable database of metaobject entries

WayneAlan
Visitor
2 0 2

Hi folks,

Is it possible to create a frontend searchable database of metaobject entries using the new metaobject/entry system?

Here's an example of the desired functionality: https://waynealan.com/database/

A customer enters their serial number and the search returns the relevant entry. You can use the serial # 10000549 as an example. 

Thank you!

Replies 3 (3)

PaulNewton
Shopify Partner
7450 657 1565

This could be an XY-problem https://xyproblem.info/

Why what is the goal, why metaobjects, why not pages or products that use metafield definitions for which you could then possibly just use collections filters.

 

With metaobjects yes that should be possible with developing a custom app, possibly using a proxy-app.

 

Though at it's simplest all that example search really does is a convention that redirects to premade[*] pages i.e. on shopify it's like /pages/1234567 .

In that example any non-matches just go to a 404 page i.e. /certification/132663; no auto-correct suggestion,  no number completion,  or search preview,etc so less than ideal expecting perfection from customers.  

 

Keep in mind metaobjects need a namespace & key and this can make things complicated when trying to do dynamic things from arbitrary user inputs.

 

 

* There's no custom query parameter system on shopify or custom url structure. Though you could workaround this kinda through the search template/api for a custom search that returns programmatic results. There are various forum discussions around working with the search features to get custom results. But this is advanced customizations needing at least basic html,javascript skills.

 

 

If you need this customization explored , or app or consultation you can contact me directly for services.
Please provide context: store url, theme name, post url(s) and any further detail.
Contact Info in signature.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


atarp
Visitor
3 0 0

I went the link you provided and see that you have a working database. Did you find the answers you were looking for using metaobjects or did you have to use an app? I'm in search for the same solution.

PaulNewton
Shopify Partner
7450 657 1565

@atarp that is only an example of another systems implementation.

It isn't even a shopify store.

 

If you need this explored or consulted on you can contact me directly for services.
Please always provide context, examples: store url, theme name, post url(s) , or any further detail.
Contact Info in signature.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org