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

  • @legascii
    @legascii7 ай бұрын

    Yo thanks for this, spent 2 hours trying to figure out why this didn't work but now I've got it fixed. cheers.

  • @Etcher
    @Etcher Жыл бұрын

    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!

  • @user-iq6wd1bk3p
    @user-iq6wd1bk3p Жыл бұрын

    Brilliant overview and demo, thanks, Chris.

  • @Fedgery007
    @Fedgery00711 ай бұрын

    Thank you for this video!

  • @AmedeeBoulette
    @AmedeeBoulette Жыл бұрын

    Wow man, incredible stuff! You should offer a full custom theme + application course, I’d pay for that!

  • @CodewithChristheFreelancer

    @CodewithChristheFreelancer

    Жыл бұрын

    New courses are on the way!

  • @AmedeeBoulette

    @AmedeeBoulette

    Жыл бұрын

    @@CodewithChristheFreelancer awesome!

  • @SastaTechProduct
    @SastaTechProduct7 ай бұрын

    02:07 which tool you are using for creating such a good presentation of Objects and attributes?

  • @CodewithChristheFreelancer

    @CodewithChristheFreelancer

    7 ай бұрын

    Pretty sure it was Miro - miro.com/

  • @talal.thabet

    @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

    @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.

  • @gregbrown2819
    @gregbrown281910 ай бұрын

    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

    @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.

  • @user-45446
    @user-45446 Жыл бұрын

    Which tool have you used to showcase all information in box for different definitions to display in pages, blogs, cart...

  • @CodewithChristheFreelancer

    @CodewithChristheFreelancer

    Жыл бұрын

    Miro.com

  • @libradohernandezcruz4881
    @libradohernandezcruz4881 Жыл бұрын

    nice to see you back

  • @jaredingold
    @jaredingold8 ай бұрын

    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

    @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.

  • @PurchaseLocallyInc.
    @PurchaseLocallyInc.7 ай бұрын

    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

    @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.

  • @ervinveisz
    @ervinveisz8 ай бұрын

    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

    @CodewithChristheFreelancer

    7 ай бұрын

    Should work for both.

  • @ervinveisz

    @ervinveisz

    7 ай бұрын

    @@CodewithChristheFreelancer yeah should but is not :/

  • @sss-gs4rs
    @sss-gs4rs Жыл бұрын

    i want to learn shopify web components

  • @joyahmed963
    @joyahmed963 Жыл бұрын

    Update your course buddy on SS🚀🚀

  • @CodewithChristheFreelancer

    @CodewithChristheFreelancer

    Жыл бұрын

    Actually working on a completely new one at the moment (it won’t be on Skillshare though)

  • @sss-gs4rs
    @sss-gs4rs Жыл бұрын

    hi can put your courses in udemy please

  • @CodewithChristheFreelancer

    @CodewithChristheFreelancer

    Жыл бұрын

    Not considering Udemy at the moment but I am building a self-hosted course at the moment. Will be out later this year.

  • @yasminemaqsood9806
    @yasminemaqsood98066 ай бұрын

    You doing too much with this code black screen thing i got lost 😂 im mad

  • @CodewithChristheFreelancer

    @CodewithChristheFreelancer

    6 ай бұрын

    code black screen?