WooCommerce Metafields & Data Mapping
Introduction
Metafields help you to customise the functionality and appearance of your WooCommerce store by letting you save specialised information that isn't usually captured in the WooCommerce admin. You can use metafields for internal tracking, or to display specialised information on your online store in a variety of ways.
In the context of SparkLayer, metafields are used to capture additional B2B data that you can then use in a variety of ways:
Type | Details |
|---|---|
Product metafields | Updating the Frontend Interfaces by adding configurations such as pack sizing, RRP prices, and more |
Customer attributes | Updating a customer's information by adding information such as credit limits |
Order metafields | Updating an order with invoicing information |
How to add metafields to WooCommerce
The easiest way to add metafields is to action this via the SparkLayer Dashboard. Simply go to Integrations > Platform Connection and click "Configure" under "Configure metafields". You can then select which of the SparkLayer Metafields you'd like to enable.
Important considerations
In order for SparkLayer to work with WooCommerce metafields, please note the following:
Product metafields Metafields are always added at the product variant level, even if the product only comes in a single variant.
JSON data Some SparkLayer settings require metafields to be set up as JSON strings. These will need to be carefully added, making sure the formatting is set correctly.
Advanced settings
To learn about more advanced settings, including customer-level product metafield settings, please see Product Settings