What are BigCommerce custom fields?
BigCommerce custom fields are name-and-value pairs added to a product to show data that has no field of its own, such as a book's ISBN, a shirt's fabric or a wine's vintage. They are created in the control panel, by CSV or through the API, up to 200 per product, and the store's theme decides where they appear on the product page.
Key takeaways
- A custom field is a name-value pair meant to be seen: the name and the value show up in the store, in orders and elsewhere.
- According to the API, each product takes 200, each field 250 characters, and every name-value pair must be unique within the product.
- The theme decides where they show: Cornerstone renders them in the product page's details list or in a tab of their own, and does not put them in its JSON-LD.
- On Scale plans or higher with product filtering, a custom field can become a category filter.
- For data that should not be visible on the product page, BigCommerce has metafields, with permissions that decide who can read them.
When you edit a product in BigCommerce, below the price and the images there is a section called Custom fields: a list of name-and-value pairs you fill in by hand. "Fabric: washed linen." "Fit: straight." They are not purchase options or product variants, because the customer chooses nothing with them, and they are not Shopify's metafields either, although the two are often compared. They are the spec sheet the platform lets you write without touching the theme. They matter to you because that is where the product attributes that both your customers and search engines look for tend to end up, and because data being on the product does not mean it is on the page.
How it works
BigCommerce's help center presents them as additional product information that appears on the product page, with examples like a book's ISBN, a movie's release date or a wine's vintage. They display as name-and-value pairs, separate from the description, and show up on their own in the product details if they are defined. Exactly where depends on the theme: some give them a tab of their own.[1]BigCommerce, help center. Custom Fields
There are three ways to create them: in the control panel, from the product page, in the Custom fields section; in bulk, by importing a CSV; or through the API.[1]BigCommerce, help center. Custom Fields The Catalog API creates them with a POST request to /v3/catalog/products/{product_id}/custom-fields, and its rules are these:[2]BigCommerce API Reference. Create Product Custom Field
- Two required fields,
nameandvalue. Both show up in the store, in orders and elsewhere, according to the reference itself. - Each name-value pair must be unique within the product.
- At most 200 custom fields per product and 250 characters per field.
The help center says 255 characters per field.[1]BigCommerce, help center. Custom Fields BigCommerce's catalog API course gives 250 as the limit for values that feed filter search,[3]BigCommerce Developer Learning. Images, Videos, and Custom Fields so 250 is the safe number.
The value accepts HTML, CSS and JavaScript, to format text or embed images and video; the name does not. BigCommerce warns of one consequence: anyone who can edit custom fields can add scripts to the value, even without the permission to manage scripts.[1]BigCommerce, help center. Custom Fields
Three uses beyond the product page, each with its condition:[1]BigCommerce, help center. Custom Fields
- Filters. On Scale plans or higher with product filtering turned on, each custom field can serve as a filter on category, brand and search results pages. The filter is created automatically, but it does not appear until you mark it visible. If the name matches a product option's name, it does not show as a filter; if it matches a default filter, such as brand, price or category, BigCommerce throws the error "Failed to save filters. Duplicate usage of facet."
- Channels. Google and Meta ask for data that does not always have a field of its own in BigCommerce, and depending on the connector you use you can supply it as custom fields. With Feedonomics, some of them, such as age and gender, are mapped automatically.
- Languages. In stores with several storefronts, the GraphQL Admin API lets you translate a custom field for each channel's language. It is only available to Enterprise stores and partner sandboxes.[4]BigCommerce Dev Center. Product custom fields (International Enhancements for Multi-Storefront)
BigCommerce itself uses this slot in its catalog enrichment tool, Catalog Enrichment: of the seven fields it generates, four overwrite default data (name, description, meta description and SEO title) and three are added as custom fields, intended for answer engines, and its documentation says whether they are displayed depends on the theme.[5]BigCommerce Dev Center. Fields in an enrichment
In a store
Fictional example. Harbor Linen, an invented BigCommerce store, adds the fabric to its linen shirt (product 112) through the API:
{
"name": "Fabric",
"value": "washed linen"
}
What happens next depends on the theme. In Cornerstone, BigCommerce's default theme, the template that renders custom fields in version 6.22.0 is this:[6]BigCommerce on GitHub. Cornerstone, the default Stencil theme (release 6.22.0)
{{#each product.custom_fields}}
<dt class="productView-info-name">{{name}}:</dt>
<dd class="productView-info-value">{{{value}}}</dd>
{{/each}}
It loops over the product's list and writes each pair as a term and its definition. The three curly braces in {{{value}}} let the value through unescaped, which is what allows the HTML the help center talks about. Cornerstone calls that template from the product page, in the details list, unless the theme setting show_custom_fields_tabs is on: then it renders them in a tab alongside the description.[6]BigCommerce on GitHub. Cornerstone, the default Stencil theme (release 6.22.0) In the HTML of product page 112, <dt class="productView-info-name">Fabric:</dt> would appear, followed by its value.
And an absence worth knowing about: Cornerstone 6.22.0's Product JSON-LD block includes no custom field at all. It carries the name, the SKU, the MPN, the GTIN, the brand, the description, the image, the offer and, if the store shows them, the ratings, but not the fabric.[6]BigCommerce on GitHub. Cornerstone, the default Stencil theme (release 6.22.0) The data is on the page for whoever reads it, and it is not in its structured data.
What people often get wrong
Believing a custom field is on the page because it is on the product. Whether it shows is up to the theme: BigCommerce says its position depends on the theme,[1]BigCommerce, help center. Custom Fields and its own Stencil course teaches how to hide one by name with a condition in the product page template.[7]BigCommerce Developer Learning. Mini Use Case: Create a Customized Field A modified theme, or one from another vendor, may not render all of them, and data that is not in the HTML cannot be read on the page, by a customer or by a crawler.
How to check it
- Open the product in the control panel and look at the custom fields section: how many there are and what they are called. If they are getting close to 200, or a value goes over 250 characters, you need to split them up.[2]BigCommerce API Reference. Create Product Custom Field
- Open the published product page and its source code (Ctrl+U in Chrome) and search for the exact value of one of them. If it does not appear, the theme is not rendering it.
- Search for
application/ld+jsonin the same source and check whether the data is in the markup. In Cornerstone, out of the box, it will not be.[6]BigCommerce on GitHub. Cornerstone, the default Stencil theme (release 6.22.0) - Review the names before using them as filters: none should match a product option or the default brand, price or category filters.[1]BigCommerce, help center. Custom Fields
- Read the values that carry code. Anyone with permission to edit them may have added a script.[1]BigCommerce, help center. Custom Fields
Related concept: metafields
BigCommerce also has metafields, and the difference is audience. A metafield is a key-and-value pair defined by a developer, which can be attached to products, variants, categories, brands, orders, customers and other objects, and each one carries a permission: private to the app that created it, readable or editable by other apps, or also accessible from the storefront. They are managed through the API and, to show them in the store, read with the GraphQL Storefront API.[8]BigCommerce Dev Center. Metafields A custom field, by contrast, is born to be seen on the product page.[2]BigCommerce API Reference. Create Product Custom Field What the customer should read goes in a custom field; what an app needs to store goes in a metafield. The entry on metafields explains how they work on Shopify.
To go further, the entry on Stencil explains the theme engine that decides what gets rendered, and the publishing by platform reading path orders the rest of the terms.
Synonyms
- English
- product custom fields, BigCommerce custom fields
- Español
- campos personalizados de producto
Sources
- [1] BigCommerce, help center. Custom Fields. Accessed . ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
- [2] BigCommerce API Reference. Create Product Custom Field. Accessed . ↑ ↑ ↑
- [3] BigCommerce Developer Learning. Images, Videos, and Custom Fields. Accessed . ↑
- [4] BigCommerce Dev Center. Product custom fields (International Enhancements for Multi-Storefront). Accessed . ↑
- [5] BigCommerce Dev Center. Fields in an enrichment. Accessed . ↑
- [6] BigCommerce on GitHub. Cornerstone, the default Stencil theme (release 6.22.0). Accessed . ↑ ↑ ↑ ↑
- [7] BigCommerce Developer Learning. Mini Use Case: Create a Customized Field. Accessed . ↑
- [8] BigCommerce Dev Center. Metafields. Accessed . ↑
Change history
- First English version.
This definition is published under CC BY 4.0. Reuse this definition freely, crediting Clione with a link to this page.
Related terms
Stencil
What Stencil is, BigCommerce's theme engine: server-side Handlebars, Cornerstone, regions for widgets and how it differs from Catalyst.
BigCommerce widget
What a BigCommerce widget is, how template, region and placement combine in the Widgets API, and how to check it shows up in your store's HTML.
Metafields
What Shopify metafields are, what parts they have, how they get from the admin to the product page's HTML and how to check your theme publishes them.
Product attributes
What product attributes are, where they are stored, how filters, Merchant Center and schema.org read them, and which attributes create variants.
Catalog API
What an online store's catalog API is, how it separates reading from writing in Shopify and BigCommerce, and the minimum permissions to give each app.
Field overwrite
Field overwrite: an app, a PIM or a sync overwriting a product value another system wrote, how it happens and how to catch it.
Make your catalog easy for bots to read
Clione fills every product page with what bots read best: the JSON-LD graph with its structured data, the meta description and the FAQs. You review and press Push; then we check your live store so it all stays published.