How can I automate metafields for product additions?

Hi there, I am just exploring the 2.0 themes and I am learning to use the metafields. I add lots of products every week and I would like to avoid adding the same information to metafields every single time. Let me share an example.

Let’s assume I have dozens of mobile phones in my stores. What I would like is this: every time I add a Samsung phone, the Samsung logo + a description of the company + the name will appear on the product page. I know I can use e.g. the “image with text” block. I can add the “vendor” meta field but what about the rest? I would like to create a page “samsung-description” and “samsung-logo” that would appear because the Vendor is “Samsung”. So almost like the “if” function in Excel, haha. Is this possible?

So, next time I add an Apple iPhone, it will automatically pull up the vendor, Apple logo and Apple company description.

Again, I know I could create metafields for the logo and the company description, but I just want to avoid adding these every time I create a new products because I create so many.

I hope there is an easy solution to this.

Thanks in advance for your support.

1 Like

@czernym

Welcome to Shopify Community.
Here is an Video tutorial, From where you can learn to create metafields.
https://www.youtube.com/watch?v=UnHf57_YwPA

or hire a Developer to create,
Let me know if you need any more help,.
Thank you.

Hi, thanks for the tip.

I watched this video and many more. I am afraid, however, that it does not answer my question. Thanks!

@czernym
Then hire a Developer or Agency to Get achieved what are you looking,
Let me know if you are looking for help from us.

Thank you

In the Dawn theme you can add a Custom Liquid block to your product page under Product Information in the theme customizer. You could add code like this to the Custom liquid block:

{% if product.vendor == 'Samsung' %}

Add your samsung description here 

{% elsif product.vendor == 'Apple' %}

Add your Apple description here 

{% elsif product.vendor == 'Huawei' %}

Add your Huawei description here

{% endif %}

Just add a list of all your vendor descriptions in the code and position the block where you like it.