Docs 05
Metafields
Partline reads five product metafields. All are optional. Create the definitions once and every product gets a field to fill in.
The metafields
| Metafield | Type | Used by |
|---|---|---|
custom.specs |
Multi-line text | Specifications block, compare table |
custom.documents |
Multi-line text | Manuals and guides block |
custom.part_number |
Single line text | Part number block, product cards, compare (falls back to the SKU) |
custom.warranty |
Single line text | Part number block, for example "2 years" |
reviews.rating |
Rating | Stars on the title block and on cards; written by review apps |
Create the definitions
- Go to Settings > Custom data > Products and select Add definition.
- Enter the name, for example Specs. Shopify suggests the namespace and key
custom.specs. Check it matches the table above exactly. - Choose the type (for specs and documents: Multi-line text; for part number and warranty: Single line text).
- Save. Repeat for each metafield you want.
Partline reads these keys directly, so there is nothing to connect in the theme editor. The field shows up at the bottom of each product's page in the admin.
Specs: one Label | Value per line
Compound | Organic resin
Backing plate | Steel
Pad shape | Type B, 2-piston
Thickness | 4.0 mm including plate
Each line becomes a row of the spec table. The text before the first | is the label; everything after it is the value. Blank lines are skipped. Use the same labels across similar products so the compare table lines rows up.
Documents: one Title | URL per line
Fitting guide | https://cdn.shopify.com/s/files/.../fitting-guide.pdf
Torque chart | https://cdn.shopify.com/s/files/.../torque.pdf
Upload files in Content > Files and copy their links.
Part number and warranty
custom.part_number is for when your manufacturer part number differs from your SKU. When it is empty, Partline shows the variant SKU. The part number is shown in the mono font on cards, product pages, the cart and compare.
custom.warranty is shown as a cell in the part number row, for example "2 years" or "Lifetime".
Ratings from review apps
Most review apps (Judge.me, Shopify Product Reviews, Okendo, Yotpo and others) can write the standard reviews.rating and reviews.rating_count metafields. Turn this on in the app's settings. Then turn on Show rating on the Title block and, for cards, Theme settings > Product cards > Show rating.
Using other metafields
The Specifications and Manuals and guides blocks have text boxes. Select the Connect dynamic source icon next to the box to connect any multi-line text metafield instead, for example one your PIM app already fills.
Bulk editing
Add the metafield columns to the Products list with Bulk edit, or include them in a product CSV import. Line breaks in a CSV cell are kept when the cell is in double quotes.
Still stuck? Contact support. We reply by email within two working days.