Editing the Metafields - Custom Label 0, Custom Label 1,

anchorchief
New Member
1 0 1

Hi,

Ive got no coding skills but i want to be able to view the metafields - custom label 0, custom label 1 in my admin page. Ive seen its available in bulk editor using this link i found in a tutorial:

https://anchorchief.myshopify.com/admin/bulk?direction=next&edit=metafields.facebook.custom_label_0%...

This only allows me to edit products.

I'd like to be able to edit an entire collections custom label. 

Is this possible? How do you go about it? App?

Thank you

Alison6
Explorer
38 2 6

Hello,

 

My name is Alison, I'm the Customer Success Specialist for Ablestar apps.

 

If I understand correctly, you need to modify the metafield data for an entire collection at once.  If that's the case, you can use our Bulk Editor app (https://apps.shopify.com/bulk-product-editor) to modify the metafields.  It cannot create the metafields, but once they are created, you can filter for all products in a collection, and modify the metafield data for those products all at once.  The two documents below explain the process in a bit more detail. 

 

The app also has a free version that allows for 5 free in-app edits and 5 free spreadsheet edits a month, so you can try it our without incurring any costs.

 

https://support.ablestar.co/article/27-your-first-bulk-product-edit

https://support.ablestar.co/article/73-editing-metafields

 

Best,

Alison

 

0 Likes
Scott_Clark
Shopify Partner
14 0 1

Alison - did you find a good way to change custom labels by collection?

0 Likes
Superfunk
Shopify Partner
16 1 1

Hi, you can try the following, go here

https://example.myshopify.com/admin/bulk?resource_name=Collection&edit=metafields.global.shipping,me...

Where example.myshopify.com = your store URL

You'd probably find that helpful.

0 Likes
Scott_Clark
Shopify Partner
14 0 1
First of all I'm so appreciative you took time to answer.!!!

But I don't understand how this helps. I did look at it in our store.
We need a way to add promotion names to custom_label2 so it is useful in
both facebook and google product grouping filters.
0 Likes
Superfunk
Shopify Partner
16 1 1

Let's see...

Try with this one, please:

https://example.myshopify.com/admin/bulk?resource_name=Collection&edit=metafields.global.shipping,me...
OR
https://example.myshopify.com/admin/bulk?resource_name=Collection&edit=metafields.global.shipping,me...


Where example.myshopify.com = your store URL

Assign some values to one and other, and try to see if you can get the value you need on the end you need it.

0 Likes
Ouuzi
Tourist
9 0 1

Hi Can you do the same with products? I want to have some custom labels in Dynamic ads in Facebook.  I want to have the SKU in facebook carousels.

0 Likes
Superfunk
Shopify Partner
16 1 1

Hi Oouzi, in fact, this feature was designed for bulk product edition, not to edit metafields. I'll elaborate more on that later on.

Meanwhile let's talk about what you need.
Remember that when you have a certain product template that is currently at your published theme you could pick the template that you want to use?

Well, in the case of a client of mine, they needed two different product templates which are: one for "average" products, and another one for customisable products.

Several, and I mean up to 12 different products (of around 400 customisable products) were at some point choosing the wrong template to be displayed at the product page view instance of theirs.

Could you imagine to enter each and every one of these 400 products just to find 12 among all of them in order to find which ones of them hadn't the correct template?, well, me neither, that wasn't an option for me, because I had a lot of things to do. 

Instead of filtering by string at the back end, trying to list each product and then entering to each of those products one by one, I used the bulk customiser.

The first step is to login into the admin of the store you want to edit products from, then proceed to go to the following link: Link to the bulk customiser.

 

For the sake of illustrating the point I could tell you that you can narrow the result sets you get from that customizer by adding some other criteria to them.


The link to the bulk customiser as it was presented by a Shopify Staff member was:
https://shopify.com/admin/bulk?limit=250&resource_name=Product&order=title+asc&%2Ctemplate_suffix=&e...

In which the parameters are:

1. Limit
I strongly recommend not to try to go beyond the 250 items per page, wacky things happen if you try to go beyond that number.

2. Resource name
This is the entity you are targeting, in this case you are trying to get all the different "objects" that are recognised by Shopify's standard environment as products.

3. Order
This is the order you need the resources be presented to you, in this case is alphabetical ascendant order, which means that the order is A to Z, regarding the resource (product) property called title.

Then interesting stuff happens, if you see there, there is a "%2C", which is a plain comma character "," under URL encoding under UTF-8 LF (Unix) standard.

When you put a comma in that instruction (think of it as if it was some kind of query into Shopify I/O data interface, because it is precisely that, just that the platform also enables a fully elaborated GUI for bulk edition to whatever entity (resource, in this case product) you desire).

Sorry about that, but it was needed to be said, when you put a comma into the query, you are telling the parser, alright, enough of narrowing things down, from here I will tell you what property I want to deal with in the customiser, and so it begins...

4. Direct name of the resource attribute
In this case "template_suffix", you invoke it to establish a direct manipulation of that asset (resouce attribute, product property or whatever you want to call it)

5. What you want to do with that resource attribute
In this case equals to edit or "edit=template_suffix", you want to be able to edit the template suffix that you already indicated that you needed to be available for being edited.

It all comes down to: list all products alphabetically in ascendant order while, at the same time, allow me to edit the value for template_suffix.
The values are displayed on a select box, and it depends on the amount of product templates located at the published theme, specifically at:

Your theme/templates/product.suffix1.liquid,
Your theme/templates/product.suffix2.liquid,
Your theme/templates/product.suffix3.liquid,
Your theme/templates/product.suffixn.liquid

At this point you probably are wondering, why all the explanation?, why all the background?, and see, this is because that's going to help you with what you need, once you have the proper environment.

Then I could further answer to Scott Clark and indirectly, to you Ouuzi.

The first example I gave Scott was the following:
Remember, you must be logged into the store, and then if you have several users or several stores, the web environment will let you pick "where you want to land" in order to edit any entity you need to manipulate whatsoever.

https://shopify.com/admin/bulk?resource_name=Collection&edit=metafields.global.shipping,metafields.c...

Where resource_name is collection, so you are trying to list collections instead of products.
Also, where you want to edit the global shipping metafields, while manipulating the value of the metafield whose handle is custom_label2 that belongs at a collection level into each listed collection into the general metafields environment.

When I first specified the following:
https://shopify.com/admin/bulk?resource_name=Collection&edit=metafields.global.shipping,metafields.g...

I was trying to say to the bulk editor to handle collections, while being able to edit the global shipping metafields, by manipulating the value of the metafield whose handle is keyword_tag that belongs at a collection level into each listed collection into the general metafields environment.

Then, when I gave a second option, I was trying to create alternatives so in the case the syntax was indeed wrong, it could be managed by Scott in another way:

https://shopify.com/admin/bulk?resource_name=Collection&edit=metafields.global.shipping,metafields.c...

Because I didn't knew how to get the full scope of the available metafields to be edited (and unfortunately, still didn't know about it, so if somebody could provide some further enlightenment about this it will be very much appreciated).

Take into account this, you can create metafields through an app, but also, you can create metafields right inside your theme, as it's explained here:
Using Metafields in your Shopify Theme.

This bulk editor doesn't allow you to create metafields on the fly (it does, but if you mess up in the slightest the scope or the handler, or the data type, all your work go to waste), it allows you to manipulate the values for metafields whose handlers are already declared within the global environment.

More information about Metafields + Bulk Editor here: Shopify Metafield Bulk Editor.

And just one more example to use the bulk editor to edit more "mundane" things, such as tags:
https://shopify.com/admin/bulk?limit=250&resource_name=Product&tag=super_cool_tag&order=title+asc&%2...

There you are telling the bulk editor, buddy, bring me all the products in pages of 250 of them, which are tagged with "super_cool_tag", order them alphabetically by ascending order, then the comma ("%2C") happens and you are telling enough of narrowing resultsets, make sure that the property tags is available for me, and then you finally say, allow me to edit the tags property for such products.

And that's it.

Hope it helps, be well.