Accentuate Custom Fields
  • Welcome!
  • Introduction
    • Getting started with ACF
    • Field scopes
    • How to show fields in your storefront
  • Dashboard
    • Reference Manager
      • Creating a new reference within Reference Manager
    • Filter & Group
      • Filter editor
      • Filter usage
    • Activity log
    • App settings
  • Field Definitions
    • Fields & Sections
    • Deciding on a field type
    • ACF Field types
      • Text
      • Markdown text
      • HTML
      • Checkbox
      • Selection
      • Tags
      • Number
      • Date
      • Color
      • Media v1 (legacy)
      • Media v2
      • Custom Object (JSON)
      • Multi-language Text
      • Reference fields
      • References to Global fields
    • Shopify Field types
      • Shopify » Single line text
      • Shopify » Multi-line text
      • Shopify » Boolean
      • Shopify » Color
      • Shopify » Custom objects (JSON)
      • Shopify » URL
      • Shopify » Date
      • Shopify » Date and Time
      • Shopify » Integer
      • Shopify » Decimal
      • Shopify » Weight
      • Shopify » Volume
      • Shopify » Dimensions
      • Shopify » Reference fields
    • Automatic tagging
    • Large sets
    • Field contexts
    • Field context filters
    • Copy and paste fields
    • Change field name and type
    • Import existing fields
    • Linking multiple stores
  • The Editor
    • Using the editor
    • Promote fields to sidebar
    • Layouts
    • Hide from search
    • Repeatable fields
    • Version control
    • Update value on order creation
  • Bulk Import & Export
    • Export custom field values
    • Import custom field values
    • Metaobject export / import
  • METAOBJECTS
    • What are Metaobjects?
    • Metaobject Definitions
    • Metaobject instances / values
    • Displaying Metaobjects on your storefront
    • Metaobject export / import
  • THEME EXTENSIONS
    • SEO keywords
    • Sticky promo bar
    • Products promotion
  • Liquid Guides
    • Learning Liquid
    • Resize & crop images
    • Check for empty values
    • Access field definitions
    • Order notifications
    • Allow customers to change their field values
  • OTHER
    • Webhooks
    • API
      • Access to custom fields
      • Endpoints
  • Help
    • FAQ
      • Why are one of my products no longer showing in my reference field?
      • I have multiple products/variants with the same name
      • How do I make changes to my field values in bulk?
      • I added a new field definition but it is not showing in my storefront
      • How do I copy my field setup to another store?
      • My fields are still showing after I have deleted their field definition
      • Why are none of my fields showing in the editor?
      • My newly created object in Shopify is not available in ACF
      • Reference lists are empty?
      • Why am I seeing a "value cannot exceed 100,000 characters" error when saving?
      • Why can't I name my field "first", "last" or "size"?
    • Need help?
  • Product
    • Changelog
    • Feedback & Suggestions
Powered by GitBook
On this page
  1. Field Definitions

Automatic tagging

PreviousShopify » Reference fieldsNextLarge sets

Last updated 10 months ago

ACF supports automatic tagging (and untagging) for products, articles, customers, and orders when entering or importing values for these object types (including product variants). Automatic tagging of e.g. products will allow you to filter collections by custom field values on your storefront using either or You can enable this in the field definition for the following field types

  • Text fields

  • Checkboxes

  • Tags

  • Selections

  • Number fields

  • Number ranges

  • Colors

  • Reference fields

Tags are applied in the form of the field's label (e.g. "Brand") followed by either a "pipe" symbol ("|"), an underscore ("_") or a colon (":") and the value of the field.

To use underscores ("_") or colons (":") for the split character in the automatically applied tags, select this under "Settings" from the ACF's main dashboard

A tag in Shopify (here: label and value combined) cannot be longer than 40 characters

For fields that can hold multiple values, like repeatable fields or fields that allow for multiple selections, multiple tags may be created and applied to the product as a result of the automatic tagging. Tags for checked checkboxes, where the value resolves to "true", only hold the field's label e.g. "New look", "Backordered" etc. Tags for reference fields will contain the referenced object's handle Automatic tagging occurs whenever you change a value using the editor. This also means that if you enable automatic tagging on a custom field, the tags won't be updated unless you save the custom field with a changed value. To fix tags for existing values, export the objects and import the exported file unchanged. This will synchronize the tags with the existing values. ACF also offers an API endpoint to trigger the automatic tagging process

Example

You have a selection list of brands as a product custom field with available options like "Hugo Boss", "Tommy Hilfiger", "SuperDry" etc. with automatic tagging enabled. You then select one of these brands in the dropdown for a given product (or variant) and the constructed value "Brand|Hugo Boss" is applied as a tag to the product (or variant's product) when the custom fields are saved. If you later select another brand, the old tag is removed, and a new one is applied. Tags can then be used for collection filtering in Shopify when you 'handleize' the value, so this URL will filter a collection for Hugo Boss branded products: https://my-store.myshopify.com/collections/all-brands/brand-hugo-boss

Automated Collections
Shopify's built-in tag filtering