Shopify Metaobjects - Create your own objects in Shopify

Sdílet
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

Komentáře • 35

  • @Etcher
    @Etcher Před rokem +1

    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!

  • @legascii
    @legascii Před 8 měsíci +1

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

  • @user-iq6wd1bk3p
    @user-iq6wd1bk3p Před rokem

    Brilliant overview and demo, thanks, Chris.

  • @fnelis1
    @fnelis1 Před 16 dny

    Clear as mud, thx

    • @CodewithChristheFreelancer
      @CodewithChristheFreelancer  Před 12 dny

      If you check the other comments, the video seems to helpful to most viewers. If you need clarification on anything let me know.

  • @Fedgery007
    @Fedgery007 Před 11 měsíci

    Thank you for this video!

  • @AmedeeBoulette
    @AmedeeBoulette Před rokem +1

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

  • @user-45446
    @user-45446 Před rokem +1

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

  • @gregbrown2819
    @gregbrown2819 Před 11 měsíci +1

    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  Před 11 měsíci +2

      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.

  • @libradohernandezcruz4881

    nice to see you back

  • @jaredingold
    @jaredingold Před 9 měsíci

    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  Před 8 měsíci

      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.

  • @humbertg.9661
    @humbertg.9661 Před 6 dny

    Thanks a lot for this! Is it possible to use HTML in metaobjects? Cheers!

  • @dynamn
    @dynamn Před 20 dny

    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.

    • @CodewithChristheFreelancer
      @CodewithChristheFreelancer  Před 12 dny

      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/

  • @SastaTechProduct
    @SastaTechProduct Před 8 měsíci +1

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

    • @CodewithChristheFreelancer
      @CodewithChristheFreelancer  Před 8 měsíci +1

      Pretty sure it was Miro - miro.com/

    • @talal.thabet
      @talal.thabet Před 2 měsíci

      @@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  Před 2 měsíci

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

  • @ervinveisz
    @ervinveisz Před 9 měsíci

    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.

  • @PurchaseLocallyInc.
    @PurchaseLocallyInc. Před 8 měsíci

    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  Před 8 měsíci +1

      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.

  • @sss-gs4rs
    @sss-gs4rs Před rokem

    i want to learn shopify web components

  • @joyahmed963
    @joyahmed963 Před rokem

    Update your course buddy on SS🚀🚀

  • @sss-gs4rs
    @sss-gs4rs Před rokem

    hi can put your courses in udemy please

    • @CodewithChristheFreelancer
      @CodewithChristheFreelancer  Před rokem

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

  • @yasminemaqsood9806
    @yasminemaqsood9806 Před 7 měsíci

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