fbpx

Custom Product Feature

Step 1: Access Metafield Definitions

  1. Log in to your Shopify Admin.
  2. Navigate to Settings > Custom data.
  3. Under the Custom data section, select Products.

Step 2: Add a New Metafield

  1. Click “Add definition” to create a new metafield.
  2. Name your metafield: Give it a descriptive name, like Product Features.
  3. Namespace and Key: Use a namespace like custom and a key like features. For example: custom.features.
  4. Description (optional): Add a description to explain the purpose of the metafield, e.g., “Displays product features on the product page.”

Step 3: Choose Content Type

  1. Select the type of content you want for the metafield. For a product feature block, consider:
    • Single-line text: For a brief feature or headline.
    • Multi-line text: For detailed product features or a list.
    • List of values: To allow multiple entries like bullet points.
    • Rich text: If you want formatted text (bold, italics, etc.).
  2. Set any validation rules (e.g., character limit or required field) if necessary.

Step 4: Save the Metafield Definition

  1. Click Save to add the metafield to your product settings.

Step 5: Add Metafield Values to Products

  1. Go to the Products section in your Shopify Admin.
  2. Select a product you want to add the metafield value to.
  3. Scroll down to the Metafields section in the product editor.
  4. Locate your newly created Product Features metafield.
  5. Enter the feature(s) for this product. For example:
    • “Durable stainless steel construction”
    • “Eco-friendly materials”
  6. Click Save.

Step 6: Connect Metafield to the Block

  • Inside each Product Feature Block input field, link the corresponding metafield by entering the namespace and key like"{{ product.metafields.custom.location }}"
What are your feelings
Scroll to Top