Shopify Metaobjects - Create your own objects in Shopify
Vložit
- čas přidán 24. 07. 2024
- 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
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!
Yo thanks for this, spent 2 hours trying to figure out why this didn't work but now I've got it fixed. cheers.
Brilliant overview and demo, thanks, Chris.
Clear as mud, thx
If you check the other comments, the video seems to helpful to most viewers. If you need clarification on anything let me know.
Thank you for this video!
Wow man, incredible stuff! You should offer a full custom theme + application course, I’d pay for that!
New courses are on the way!
@@CodewithChristheFreelancer awesome!
Which tool have you used to showcase all information in box for different definitions to display in pages, blogs, cart...
Miro.com
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?
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.
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
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.
Thanks a lot for this! Is it possible to use HTML in metaobjects? Cheers!
Thanks in advance if you can shed some light. We sell car styling kits, hundreds of products but there’re only few styles and colours, while for many different car models.
Is there a feature within shopify, or an app will let us create individual modules of product description, such as modules for each style description; modules for each colour description; modules for each car models. So we can pre-create all those modules and store in the system. When compose description for a product, we can just select its relevant style module; colour module; and compatible car model module, instead of have to repeatedly write up description for each product. Maybe it’s like metafield with pre-filled contents, not under each product, but store in the system and available for each product to select and utilise.
Sounds like a combination of metaobjects and metafields on the product object might do the trick. If you'd like me to help you set this up. You can book a call with me here: calendly.com/christopherdodd/
02:07 which tool you are using for creating such a good presentation of Objects and attributes?
Pretty sure it was Miro - miro.com/
@@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?
@@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.
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.
Should work for both.
@@CodewithChristheFreelancer yeah should but is not :/
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!
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.
i want to learn shopify web components
Update your course buddy on SS🚀🚀
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
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
code black screen?