All things Shopify and commerce
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!
To create a metafield with the information you've mentioned, you can follow these steps:
Go to your Shopify store's admin panel and click on "Settings" in the bottom left corner.
From the dropdown menu, select "Metafields".
Click on the "Create Metafield" button in the top right corner.
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.
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.
In the "Value Type" field, choose "String" if you want to store text-based information, or "Integer" if you want to store numbers.
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.
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".
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
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?)
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?
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:
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:
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!
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024