Have your say in Community Polls: What was/is your greatest motivation to start your own business?

How can I create a custom metafield with specific product information?

svdam
Visitor
3 0 0

Hello, I would like help in creating a metafield which has the follow information in it: Vendor, Product Name, Product Category and Product Colors (Option1 Value). See image below for how I would like the information to show.
All help appreciated!
Thanks!

Replies 4 (4)

clickrapt
Shopify Partner
31 3 8

To create a metafield with the information you've mentioned, you can follow these steps:

  1. Go to your Shopify store's admin panel and click on "Settings" in the bottom left corner.

  2. From the dropdown menu, select "Metafields".

  3. Click on the "Create Metafield" button in the top right corner.

  4. In the "Namespace" field, enter a name for your metafield. This can be anything you want, but it's a good idea to choose a descriptive name that helps you remember what the metafield is for. For example, you could use "Product Info" as the namespace.

  5. In the "Key" field, enter a name for the specific piece of information you want to store. For example, you could use "Vendor" or "Product Name" as the key.

  6. In the "Value Type" field, choose "String" if you want to store text-based information, or "Integer" if you want to store numbers.

  7. In the "Value" field, enter the actual value you want to store. For example, if you chose "Vendor" as the key, you would enter the name of the vendor in this field.

  8. Repeat steps 5-7 for each piece of information you want to store. For example, you would create a separate metafield for "Product Category" and "Product Colors".

  9. Once you've created all of the metafields you need, you can use liquid code to display them on your product pages. For example, you could use the following code to display the vendor:

    {{ product.metafields.product_info.vendor }}

    You can replace "product_info" with whatever you chose as the namespace, and "vendor" with the key you used for the specific piece of information.

Hope this helps

If you find my reply useful kindly like it and If your problem is solved by my solution please mark as solved.
svdam
Visitor
3 0 0

Hi! Thanks for getting back to me 🙂
I tried to follow the steps you laid out and i'm just gonna go through them with you - 
I went to settings > custom data > metafields and selected products ( is selecting products correct?) 

 

svdam_1-1678345310770.png

I then went and wrote the name of the metafield (Ebay Title) and wrote > vendor > selected single line text - Not sure I am doing this correctly? 

 

svdam_0-1678345267479.png

To give a more clear picture - I have installed the EBAY app on my store and the EBAY app pulls the name of each of our products, see image below:

svdam_2-1678345497838.png

And this is the name of the product on our store, but what i noticed was that a lot of similar vendors which sell the same products have a lot more information in the name of the product, see image below:

svdam_3-1678345568706.png

 

So from what the EBAY app people told us was that we had to create a metafield in Shopify which isn't viewable on the storefront but from which the EBAY app can pull the necessary information. 
So, to sum up, i'm trying to create a (singular?) metafield that can I can then connect to the EBAY app. Can this be done with one metafield or do I need multiple metafields? And could you give me an example of the metafield I am trying to create so I can try and replicate it?
Thanks again so much!

evpllinks
New Member
4 0 0

You can see example at https://moolwan.com/home-decor 

Moolwan

evpllinks
New Member
4 0 0

We have done it - https://homekitchenindia.in/ 

Moolwan