Automatic product tagging

ACF supports automatic tagging (and untagging) of products when entering or importing values for either a product or variant custom field. Automatic product tagging will allow you to filter collections by custom field values on your storefront using either Automated Collections or Shopify's built-in tag filtering

You can enable this in the field definition for the following field types

– Text fields
– Checkboxes
– Tags
– Selections
– Number fields
– Number ranges
– Colors

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

To use underscores in the automatically applied tags requires to you select this under "Settings" from the ACF's main dashboard.

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 holds the field's label e.g. "New look", "Backordered" etc.

Example

You have a selection list of brands as a 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 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

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us