Creating and Using Shopify Metaobjects - Shopify Tutorial

Поділитися
Вставка
  • Опубліковано 14 чер 2024
  • #shopify #metaobjects #tutorial
    Shopify has released a new featured called Metaobjects. These help you add reusable structured content to your store. The metaobject data can be used in themes via Liquid and with the Storefront API. Once you create and populate the metaobjects, you can use the content throughout your Shopify store. Metaobjects are used with metafields for the ultimate content creation system.
    Using metaobjects may seem confusing at first but our tutorial is here to walk you though the process. We'll show you how to create the metaobjects, assign them to the metafields and then update your theme to use the custom data. In our video, we'll use metaobjects to create a custom content section that displays the farm where our produce is grown. Take a look now.
    ⏱ Timestamps
    00:00 - Shopify Metaobjects
    00:44 - Creating the Metaobject
    03:19 - Adding entries
    05:10 - Assigning metaobject to metafields
    08:27 - Updating your theme with content
    09:32 - Using dynamic content
    Need help with your Shopify site? Contact our digital commerce experts here at Sunrise Integration. We build, optimize and accelerate your business
    www.sunriseintegration.com/
    / sunrise-integration
    / sun_integration
    / sunriseintegration
  • Наука та технологія

КОМЕНТАРІ • 54

  • @lilianarodriguez2886
    @lilianarodriguez2886 Рік тому +9

    After 300 videos, I finally found somebody that can explain! Thank you and thank you!

    • @sunriseintegration
      @sunriseintegration  Рік тому

      Thanks you, we're so happy that our video helped!

    • @m12652
      @m12652 3 місяці тому

      @@sunriseintegrationnow if only I could find someone who knows how to iterate over metaobjects in a collection 🙄👍

  • @germainmushi8977
    @germainmushi8977 3 місяці тому +1

    Great tutorial, simple and clear. thanks!

  • @devanshrana4564
    @devanshrana4564 4 місяці тому +2

    Most helpful video available on youtube for this query!

  • @Practicaleyes
    @Practicaleyes 11 місяців тому +3

    Brilliant! Simple, Clear and relevant. Thank you so much 👍

    • @sunriseintegration
      @sunriseintegration  11 місяців тому

      You're welcome and thanks for watching the video. Let us know if there are other Shopify features you want us to review.

  • @aloryaart-o.kenanyildirim7843
    @aloryaart-o.kenanyildirim7843 Рік тому +2

    Amazing thank you, most of the things i found on the internet were for really advanced users, even shopify`s help section was too much complicated. I understood it with your help. Thank you

    • @sunriseintegration
      @sunriseintegration  Рік тому +1

      That's so great to hear, we are super happy that our tutorial helped. We have a lot more Shopify videos coming soon so hopefully we can help with other features too.

  • @everluisacosta6362
    @everluisacosta6362 Рік тому +2

    This is an awesome feature thanks for the good explanation!

  • @alexrusin
    @alexrusin Рік тому +2

    This is very helpful! Thank you.

  • @TDyer
    @TDyer 4 місяці тому

    Thank you for your very detailed video!!!

  • @agiOverlord
    @agiOverlord 9 місяців тому +1

    This is very useful! Thank you

    • @sunriseintegration
      @sunriseintegration  9 місяців тому

      Glad to hear that! Let us know if you're looking for other tutorials.

  • @Purple-qi4hj
    @Purple-qi4hj Рік тому +1

    Wow. This is a huge feature update.

    • @sunriseintegration
      @sunriseintegration  Рік тому

      Ya, it's very helpful. We've already used it in many new projects.

  • @jefersonestebansanchezburi8380

    Excellent video, that is definitely powerful

  • @JThomasHenica
    @JThomasHenica 11 місяців тому +1

    Cracking Video thank you :)

  • @willowmcpherson8995
    @willowmcpherson8995 9 місяців тому

    Thank you!

  • @cyberspider78910
    @cyberspider78910 10 місяців тому +1

    Excellent....one problem.....is there a way to specify metafield directly while uploading product_template.csv? If so, please share.

    • @sunriseintegration
      @sunriseintegration  10 місяців тому

      We are not familiar of any way to add metafields via the native CSV. There may be some apps that support this. You would need to check the Shopify app store.

  • @EinsteinGuy
    @EinsteinGuy 8 місяців тому +1

    Thanks for the helpful info! We were able to build metaobject pages each showing information about our ingredients. And we were able to list the ingredients on each product page. However, I can't figure out how to show the products on each metaobject page. It doesn't seem possible, but also seems like a likely use case of this functionality. Do you have a tutorial on this?

    • @sunriseintegration
      @sunriseintegration  8 місяців тому

      Oddly, the Storefront API does provide the reference list, however you can call the Metaobject Admin API via GraphQL and get that reference list. You will just need to make the backend API call and do some custom section work. We don't have a tutorial, but that would be a good one for us to make.

  • @sashaadato3642
    @sashaadato3642 Рік тому +2

    Hello! Thanks for this awesome video, What about if one of my products doesn't have a metaobject, Would it appear empty? Is there a way of hiding that section when a metaobject is not associated with it?

    • @sunriseintegration
      @sunriseintegration  Рік тому +1

      If the metaobject has no data for that product then it will appear blank. You can however apply some conditional logic to the section to suppress the section if it is blank. This takes a little Liquid coding though.

  • @mateuszszymczyk2772
    @mateuszszymczyk2772 10 місяців тому +1

    Hi, great video! I have a problem with metaobjects. I created a metaobject for the "text with image" section, linked it to a specific product, but the "text with image" section is also visible in other products, only empty (without content). Will the metaobjects be visible on the product page for each product?

    • @sunriseintegration
      @sunriseintegration  10 місяців тому +1

      This is a common issue. You need to use Liquid to suppress the section if there isn't any data.

    • @cyberspider78910
      @cyberspider78910 10 місяців тому

      This should work. Use following code where in you need to replace namespace with metaobject name and key with which field you want to supress.
      {% if product.metafields.namespace.key != blank %}
      {{ product.metafields.namespace.key }}
      {% endif %}

  • @JeffLe-ht2nk
    @JeffLe-ht2nk 9 місяців тому

    How would you be able to add another variant option picker that features limited edition options? second from the first one

    • @sunriseintegration
      @sunriseintegration  9 місяців тому

      You can make a custom page that features two different products (one being the limited edition and the other being the normal one.) Sorry, not sure what you mean, so hopefully that helps.

  • @mujtabamalik338
    @mujtabamalik338 9 місяців тому

    I want to add different grid images for different products, is it possible with meta-objects?

    • @sunriseintegration
      @sunriseintegration  9 місяців тому

      The metaobjects are reusable blocks of content so if your goal is to use the new product grid across multiple items, then it makes sense to create a metaobject for this purpose.

  • @m12652
    @m12652 3 місяці тому

    Good stuff... but what if you have a list of objects to render for a category for example?

    • @sunriseintegration
      @sunriseintegration  3 місяці тому

      Sorry, not following your question. Are you talking about a Collection page?

    • @m12652
      @m12652 3 місяці тому

      @@sunriseintegration sorry, thats right. I added a list of metaobjects to collections, can't seem to access them in liquid

    • @sunriseintegration
      @sunriseintegration  3 місяці тому

      @@m12652 Have you tried using the theme editor to custom your collection page and add the metaobjects to the theme? Sounds like that should be what you need.

    • @m12652
      @m12652 3 місяці тому

      @@sunriseintegration thats right, I assign each product a parentCollection metaobject which is the content of a metafield in a collection object

  • @soggybottomboys2792
    @soggybottomboys2792 2 місяці тому

    Would it be possible to let a user with an account on my website fill in their clothing sizes on their profile and have the website show pricing for their size or preferred color and show if it’s in stock in the quick view for shopping?

    • @sunriseintegration
      @sunriseintegration  2 місяці тому

      If you have all your sizes and colors configured as variants, then yes, the user could select their option and see the price (and availability.)

  • @maibui5873
    @maibui5873 6 місяців тому

    Thank so much. Can you show how we can access a value of a metaobject? I've done everything but cant read the value, {{ product.metafields.custom.metaobject_farms.farm.name.value }} in editing code mode...

    • @sunriseintegration
      @sunriseintegration  6 місяців тому

      The metaobject value(s) are going to be an array (since you can add multiple entries for the definition.) You will need to loop through the metaobject to get the values for each. Take a look at this Shopify Community post: community.shopify.com/c/technical-q-a/metaobject-values-in-metafields/m-p/1939164

  • @daniel-11th
    @daniel-11th 8 місяців тому

    Is there also a way to use filters with metaobjects?

    • @sunriseintegration
      @sunriseintegration  8 місяців тому

      You can use metafields for filters but the metaobject values will not be filterable since they custom data object of multiple values.

    • @daniel-11th
      @daniel-11th 8 місяців тому

      @@sunriseintegration Ah oke. Hope they will add that in the future then. Also it would be golden if collections are automaticly created.

  • @sanjaymakwana8404
    @sanjaymakwana8404 Рік тому

    can you please share the liquid code ?

    • @sunriseintegration
      @sunriseintegration  Рік тому

      There is no custom Liquid for this implementation. Everything uses the native Shopify themes and sections.