Zid Docs
Apps
ThemesPayments
Apps
ThemesPayments
Help Center
Slack
  1. Merchant APIs
  • ๐Ÿ—‚๏ธ Overview
  • ๐Ÿš€ Start Here
  • Create your First App
  • Responses
  • Rate Limiting
  • Authorization
  • Embedded Apps
  • StoreFront Events
  • Zid MUI
  • Zid SDKs
  • Our custom MCP server
  • Merchant APIs
    • Account
      • Me
        • Me
        • Profile
      • Store
        • Store
        • Branding
        • Localization
        • Social
        • Operations
        • Business
        • Upload Logo Image
        • Delete Logo Image
        • Upload Icon Image
        • Delete Icon Image
        • Upload Cover Image
        • Delete Cover Image
    • Orders
      • Validate Order Request
      • Create Order
      • Change Order Status
      • Add Order Comment
      • View Order
      • List Orders
      • List Custom Order Statuses
      • List Order Credit Notes
    • Reverse Orders
      • Create Reverse Orders
      • Create Reverse Orders Waybill
      • Add Reverse Order Reasons
      • List Reverse Reasons
      • Calculate Reverse Totals
      • Create refund for reverse order
      • Upload bank transfer receipt
      • Update return products
      • Order Details โ€“ View for Return
    • Abandoned Carts
      • List Carts
      • View Cart
    • Products
      • Managing Products
        • Create Product Types
        • Create Product
        • List Products
        • View Product
        • List Product Settings
        • Update Product
        • Bulk Update Products
        • Delete Product
      • Digital Vouchers
        • List Vouchers
        • Order Vouchers
        • Create Voucher
        • Import Vouchers
        • Export Vouchers
        • Update Voucher
        • Remove Voucher
      • Product Categories
        • List Categories
        • View Category
        • Create Category
        • Create Subcategory
        • Update Category
        • Assign Product to Category
        • Bulk Assign Products to Category
        • Publish Category
        • Detach Category from All Products
        • Remove Product from Category
      • Product Badge
        • List Badges
      • Product Attributes
        • List Attributes
        • View Attribute
        • Create Attribute
        • Update Attribute
        • Delete Attribute
      • Product Attribute Presets
        • List Presets
        • Create Preset
        • Update Preset
        • Delete Preset
      • Product Variants
        • Create Variants
        • Create Custom Option
        • Update Custom Option
        • Delete Custom Option Field
        • Create Custom Input Field
        • Update Custom Input Field
        • Delete Custom Input Field
      • Product Sorting
        • Set Manual Product Order
        • Reset Manual Product Order
      • Product Images
        • List Images
        • Upload Image
        • Update Image Order
        • Delete Image
      • Product Availability Notifications
        • Notification Stats
        • Noticiation Settings
        • List Notifications
        • Create Notification
        • Update Settings
        • Send Notification Email
        • Export Notifications
      • Product Export
        • Email All Products to Store Owner
        • Import Products via CSV or xlsx File
      • Product Stock
        • Retrieve Product Stock
        • List Product Stock Records
        • Create Product Stock
        • Update Product Stock
        • Bulk Update Product Stock Records
      • Product Questions & Answers
        • Retrieve Product Question
        • Retrieve Product Answer
        • List Product Questions
        • List Answers for Question
        • Create Product Question
        • Create Product Answer
        • Update Product Question
        • Update Product Answer
        • Delete Product Question
        • Delete Product Answer
      • Product Reviews
        • List Reviews
        • Count Reviews
      • Digital Products
        • Create Downloadable Product
        • Generate Upload URL
        • Upload File to S3
        • Create Product Downloadable
        • Get Product Downloadables
        • Delete Product Downloadable
        • List Store Downloadables
        • Create Store Downloadable
        • Delete Store Downloadable
    • Inventories
      • Create Location
      • Update Location
      • Update Product Stock for Location
      • List Locations
      • View Location
    • Shipping
      • List Store Shipping Methods
    • Marketing
      • Coupons
        • List Coupons
        • View Coupon
        • Create Coupon
        • Generate Bulk Coupons
        • Duplicate Coupon
        • Duplicate Bulk Coupons
        • Update Coupon Note
        • Update Coupon
        • Update Bulk Coupons
        • Update Coupon Status
        • Update Bulk Coupons Status
        • Delete Coupon
        • Delete Bulk Coupons
      • Bundle Offers
        • List Bundle Offers
        • View Bundle Offer
      • Loyalty Program
        • Loyalty Program Status
        • Loyalty Program Details
        • Loyalty Program Info
        • Customer Loyalty Summary
        • Customer Points History
        • Activate Loyalty Program
        • Set Points Expiration Rules
        • Update Cashback Rule
        • Create Points Redemption Method
        • Update Points Redemption Method
        • Delete Points Redemption Method
        • Adjust Customer Points
      • Discount Rules
        • List Discount Rules
        • View Discount Rule
        • Create Discount Rule
        • Update Discount Rule
    • Customers
      • Customer Tags
        • List Customer Tags
        • Add Customer Tag
        • ู’Update Customer Tag
        • Delete Customer Tag
      • List Customers
      • View Customer
      • Primary Customer List
      • FInd Customer By Phone Number
      • Customer Profile
      • Add Customer
      • Update Customer
      • Delete Customer
      • Add Bulk Customers
      • Import Customers
    • Store Settings
      • ๐Ÿ“„ User Roles and Permissions
      • Retrieve Store Manager Profile
      • Retrieve VAT Settings
      • List Payment Methods
      • List Store Operating Countries
      • OneSignal Store Settings
      • Create or Update OneSignal Store Settings
    • Countries and Cities
      • List Countries
      • List Cities for Country
    • Blogs
      • Settings
        • Create
        • List
      • Categories
        • Create
        • List
        • Bulk Activate
        • Bulk Deactivate
        • Bulk Delete
        • Retrieve
        • Destroy
        • Partial Update
        • Bulk Add To Posts
        • Bulk Remove From Posts
      • Posts
        • Media
          • List
          • Create
          • Destroy
        • Create
        • List
        • Retrieve
        • Partial Update
        • Destroy
        • Archive
        • Publish
        • Bulk Archive
        • Bulk Publish
        • Bulk Delete
        • Export Posts
        • Import Template
        • Import Posts
      • Tags
        • Create
        • List
        • Retrieve
        • Partial Update
        • Destroy
        • Bulk Delete Tags
        • Bulk Add To Posts
        • Bulk Remove From Posts
      • Storefront
        • Posts
          • List
          • Retrieve
        • Categories
          • List
          • Retrieve
        • Tags
          • List
  • Webhooks
    • Overview
    • Webhook Health Tracking
    • Events
      • Order
      • Product
      • Abandoned Cart
      • Customer
      • Product Category
    • APIs
      • Health Summary
      • Broken Webhooks
      • Recover Broken Webhooks
      • List Webhooks
      • Create Webhook
      • Delete Webhook
      • Delete Webhook By subscriber
  • App Management
    • Events
    • APIs
      • Subscription Details
      • Update Usage-Based Charges
  1. Merchant APIs

Products

Product Attributes, Options, and Variants#

In this guide, we will explain the concepts of Product Attributes, Product Options, and Product Variants in Zid's system. These concepts are crucial in defining the different variations of a product and how they are displayed on the storefront.

Product Attributes#

A product attribute is a characteristic or feature of a product, such as its color, size, or material. Each product attribute has a name and a corresponding value. For example, a product attribute could be "Color" with a value of "Red".

Product Options#

A product option is a specific type of attribute that has a set of possible values. For instance, "Color" could be a product option with possible values of "Red", "Blue", and "Green". Each product can have multiple options, and the combination of these options defines the available variants of the product.
In the storefront, product options are displayed as dropdowns or selectors, allowing customers to choose their preferred variant based on their preferred values for each option.

Product Variants#

A product variant is a specific combination of product attributes that defines a unique variant of a product. If a product has multiple options (like color and size), then each combination of values for these options (like "Red, Large" or "Blue, Small") would be a distinct variant of the product.
Here's an example of a product with a set of options and variants:
{
  "options": [
    {
      "name": {"en": "Color", "ar": "ุงู„ู„ูˆู†"},
      "slug": "color",
      "values": {"en": ["Red", "Blue"], "ar": ["ุฃุญู…ุฑ", "ุฃุฒุฑู‚"]}
    },
    {
      "name": {"en": "Size", "ar": "ุงู„ุญุฌู…"},
      "slug": "size",
      "values": {"en": ["Small", "Medium", "Large"], "ar": ["ุตุบูŠุฑ", "ู…ุชูˆุณุท", "ูƒุจูŠุฑ"]}
    }
  ],
  "variants": [
    {
      "attributes": [
        {
          "name": {"en": "Color", "ar": "ุงู„ู„ูˆู†"},
          "slug": "color",
          "value": {"en": "Red", "ar": "ุฃุญู…ุฑ"}
        },
        {
          "name": {"en": "Size", "ar": "ุงู„ุญุฌู…"},
          "slug": "size",
          "value": {"en": "Small", "ar": "ุตุบูŠุฑ"}
        }
      ]
    },
    {
      "attributes": [
        {
          "name": {"en": "Color", "ar": "ุงู„ู„ูˆู†"},
          "slug": "color",
          "value": {"en": "Blue", "ar": "ุฃุฒุฑู‚"}
        },
        {
          "name": {"en": "Size", "ar": "ุงู„ุญุฌู…"},
          "slug": "size",
          "value": {"en": "Medium", "ar": "ู…ุชูˆุณุท"}
        }
      ]
    }
  ]
}
In the above example, the product has two options:
Color, with possible values of "Red" and "Blue"
Size, with possible values of "Small" and "Medium".
Furthermore, these options combine to form two variants - one with a "Red" color and "Small" size, and another with a "Blue" color and "Medium" size.
Modified atย 2024-08-27 21:17:46
Previous
View Cart
Next
Managing Products
Built with