Copying Prefixed Tags to Metafields
It was common practice to use prefixed tags, like brand:Ablestar to store additional product data in Shopify. With Shopify's focus on metafields, and the new Search & Discovery app, you may need to move the data from these prefixed tags into metafields.
For example, you may need to set a 'Brand' metafield to be the value of whatever comes after the 'brand=' part of a tag.
In this article we will show you how to set these metafields using Ablestar Bulk Product Editor:
Creating a New Metafield Definition
If you haven't already, you'll need to create a new metafield definition in the Shopify admin. This is the name of the metafield where you'll store the value from the prefixed tags. To create a new metafield definition:
- Open up the settings section of the Shopify Admin and click on Custom Data
- Click on Products to view your product metafield definitions
- Click on Add definition to create a new definition
- Specify the field options and then click (+) Select Type button
- Choose 'Single Line Text'
- Click on Save to create your new metafield definition
Refresh the metafield definitions in Ablestar Bulk Product Editor
- Click Settings from the navigation menu
- Select the Metafields tab
- Click on the Refresh button
- Wait a second until the new metafield definitions appear
Edit the Metafield using a Prefixed Tag
Return to the dashboard of the app and search for the products you want to edit. Once you have them selected:
- Click on Edit Products at the top right of the screen
- Click on the button underneath 'Field to Edit' and choose the metafield that you want to set
- Specify the 'How to edit' field
- Click Add dynamic value and select Tag Suffix from the dropdown
- Enter the part of the tag like 'Size=' that you want to look for and click on Add dynamic field
- Verify that the products look accurate in the preview and click on Run Edit
(07.187)