Zid Docs
Merchant APIApp APIThemes
Merchant APIApp APIThemes
Help Center
Slack
  1. Marketing
  • 🚨 Important Update: Zid Themes
  • Landing Page Development
  • Getting Started with Zid Themes
    • Introduction to Theme Development
    • Manage your Themes
    • Building Themes in Zid
    • Theme File Structure
    • Twig Syntax and Features
    • Zid Theme Packager
  • Templates
    • Layout
    • Home Page
    • Products
    • Cart
    • Store Language and Currency
  • Settings Schema
    • Text
    • Number
    • Text-Area
    • Select
    • Radio Buttons
    • Checkbox
    • Range
    • Color
    • Image
    • Product
    • Category
    • List
    • Fieldset
  • Code Snippets
    • Apple Pay Quick Checkout
    • Custom CSS Injection
    • Displaying the Store's Business Center Logo
    • Customizing Copyright Text
    • Store's Main Navigation Menu
    • Customer Wishlist
    • Products
      • Products Badges
      • Product Ratings
      • Remaining Product Stock
      • Sold Items Count
      • Product Filtration by Attributes
      • Grouped Products
      • Product Questions & Answers
      • Product Restock Notfication
    • SEO
      • Images alt text
      • Themes SEO Marketing Tags
    • Marketing
      • Metafields
      • Gift Feature
      • Loyalty Program
  • Zid Themes Library: API Integration
    • Products
    • Product Categories
    • Cart
    • Blog
    • Customer
    • Store Settings
  • Data Reference
    • Locals
    • Store
    • Cart
    • Product
    • Products List
    • Category
    • Categories List
    • Session
    • FAQs
    • Customer
    • Blogs
    • Page
    • Main Menu
    • Main Navigation Menu
    • Request
    • Orders
    • Addresses
    • Store Payment Methods
    • Store Shipping Methods
    • Store Banks
    • Asset URL
    • Header Meta Tags
    • Loyalty pogram Wallet
  • Themes CLI
    • CLI Authentication
    • Theme Create
    • Theme Package
    • Theme Update
    • Themes List
    • Theme Preview
  1. Marketing

Metafields

Metafields are a powerful tool for Zid store owners who want to add extra functionality and customize the look and feel of their online store. They allow you to store specialized information that isn't normally available in the Zid admin panel. This information can be used for internal tracking purposes or displayed on your storefront in various ways.

Common Use Cases for Metafields#

Candle Seller: Display burn time for candles on product pages.
Grocery Store: Show expiration dates for canned goods.
Food Store: Display calorie information on product pages.
Fashion Store: Add extra images and videos on product or category pages.
Shoe Store: Display a size chart on product pages.
Metafields Can Be Used In:
Products
Categories
Pages
Supported Data Types:
Text (ar/en)
Rich Text (HTML) (ar/en)
Number
Date
Time
Image
File (pdf, txt, mp4, mp3, css, ppt, pptx, doc, docx, xls, xlsx, csv, json)
Table
JSON

Activation Steps for Merchants#

1. Define Metafields:#

Go to the "Metafields Definition" section in your Zid admin panel.
Select the model you want to add the metafield to (e.g., Product, Category, Page).
Click "Add New Metafield" ("إضافة حقول مخصصة").
metafields1.png
Anakin.ai is an all-in-one AI application platform.
Provide a name (ar/en), slug (a unique identifier for code), and data type.
Check the "Storefront" checkbox if you want the information to be displayed on your website.
metafields2.png
Anakin.ai is an all-in-one AI application platform.

2. Fill Metafields:#

On the product or category page editing screen, look for the "Custom Fields" section ("الحقول المخصصة").
Enter the relevant value for the metafield you created and save the page.
metafields3.png
Anakin.ai is an all-in-one AI application platform.

3. View Your Metafields in Action:#

Save your changes and view the product, category, or page in your storefront.
The system will display the new metafield with the information you entered.
metafields4.png
Anakin.ai is an all-in-one AI application platform.

Code Snippet Integration for Theme Partners#

As a theme developer, you can display Metafields in your theme using two methods:

1-Using Theme Templates:#

Product Page (product.twig):
Category Page (category.twig):
Blog Page (blog.twig):

2-Using the Metafields Object:#

The Metafields object will be attached to each product, category, and blog object, allowing you to access and display metafields directly within your templates.
Modified at 2025-01-06 17:29:34
Previous
Themes SEO Marketing Tags
Next
Gift Feature
Built with