Shopify Metaobjects - Create your own objects in Shopify
Wanna go deeper into Shopify Theme Development? Join my mastermind community.
shopifythemedeveloper.com/
Or sign up for a free trial with Skillshare and take my Shopify class for free:
skl.sh/2MCrJIE
Do you run a business on Shopify and want help with your store? Get in contact
form.typeform.com/to/Zg0k4BEP
Episode Overview
-----------------------------
Metaobjects. They sound quite similar to metafields but while metafields are used to extend existing models in Shopify, metaobjects allow us to create completely new ones.
Metaobjects were first announced as part of the Shopify Winter 2023 Edition. To be honest, not a lot of fuss was made about them but for some users, I’m sure it would have been so exciting to see that you can now create your own objects in Shopify.
So let’s take a deeper look at Shopify Metaobjects, we’ll run through an example, talk about how metaobjects are different from metafields and finally, look at the numerous areas of our online store where we can bring in this new metaobject data.
Chapters:
00:00 Intro and theory
02:48 Creating a Metaobject and adding entries
08:29 Using Metaobjects in Shopify Liquid
17:38 Accessing a Metaobject via a metafield
24:38 Using Metaobject data in the theme customiser
Check out my stuff online...
My Skillshare.com channel:
www.skillshare.com/r/profile/...
My travel channel:
/ christhefreelancer
My website:
christhefreelancer.com
My socials:
Instagram: / christhefreelancer
Facebook: / christhefreelancer
Twitter: / chrisrdodd
Пікірлер: 30
Yo thanks for this, spent 2 hours trying to figure out why this didn't work but now I've got it fixed. cheers.
Excellent run down of metaobjects, thank you! Also, those dynamic looping blocks towards the end of the video are awesome, I did not know about that feature until I watched your video!
Brilliant overview and demo, thanks, Chris.
Thank you for this video!
Wow man, incredible stuff! You should offer a full custom theme + application course, I’d pay for that!
@CodewithChristheFreelancer
Жыл бұрын
New courses are on the way!
@AmedeeBoulette
Жыл бұрын
@@CodewithChristheFreelancer awesome!
02:07 which tool you are using for creating such a good presentation of Objects and attributes?
@CodewithChristheFreelancer
7 ай бұрын
Pretty sure it was Miro - miro.com/
@talal.thabet
Ай бұрын
@@CodewithChristheFreelancer First, I would like to thank you for sharing! Would you mind sharing the list of Shopify's standard fields you showed in Miro?
@CodewithChristheFreelancer
Ай бұрын
@@talal.thabet you can find all the list of fields for each object in the Shopify Liquid documentation. I just made a Miro diagram just to visually show the options for the video.
Very helpful video! It looks like you associated products with the metaobjects of creators in the first part, and then associated creators via metafields in the second part. If you already have the first association, could you pull in the applicable creators onto the product pages without reselecting creators at the product level?
@CodewithChristheFreelancer
10 ай бұрын
It depends on what you're able to access via Liquid. I think at this stage, 'referenced_by' is not a field you can access on an object.
Which tool have you used to showcase all information in box for different definitions to display in pages, blogs, cart...
@CodewithChristheFreelancer
Жыл бұрын
Miro.com
nice to see you back
Thanks for making this video! How would you reference a metafield that is referencing a metaobject with "one entry"? I'm assuming we wouldn't need to use the "for" loop if it's not a list of entries
@CodewithChristheFreelancer
7 ай бұрын
Exactly. Not sure what you're struggling with here but I've done this a few times recently. I prefer to build the fields into the section and then use dynamic linking to bring into the metaobject data though, it's a bit more flexible.
Is this same technique the same if we want to call information in from a metaobject inside a metaobject? Example; Metaobject with fields that list business profile data information and in that list is another metaobject list that has contests. This will allow a businesses profile to show contests related to that business. If so, what do you put instead of product.title or product.url? I guess to sum up the question, how do you call metaobject list items that are not products? Ps. Your videos are great! Keep it up!
@CodewithChristheFreelancer
7 ай бұрын
Interesting question. I haven't tried that yet. I would assume it would just be the same as if you would do from a metafield.
Why is this only working with list of entries and not single list on the metafield selection? Im trying to make it so that its only possible to use one product.
@CodewithChristheFreelancer
7 ай бұрын
Should work for both.
@ervinveisz
7 ай бұрын
@@CodewithChristheFreelancer yeah should but is not :/
i want to learn shopify web components
Update your course buddy on SS🚀🚀
@CodewithChristheFreelancer
Жыл бұрын
Actually working on a completely new one at the moment (it won’t be on Skillshare though)
hi can put your courses in udemy please
@CodewithChristheFreelancer
Жыл бұрын
Not considering Udemy at the moment but I am building a self-hosted course at the moment. Will be out later this year.
You doing too much with this code black screen thing i got lost 😂 im mad
@CodewithChristheFreelancer
6 ай бұрын
code black screen?