Themes built on the Twig templating engine are now deprecated and require migration to Vitrin to ensure continued support and compatibility with Zid.
language
(string): Response language (en or ar)
attributeId
(string or number): The unique ID of the attributelanguage
(string): Response language (en or ar)
nameAr
(string): Attribute name in ArabicnameEn
(string): Attribute name in Englishlanguage
(string): Response language (en or ar)
attributeId
(string or number): The unique ID of the attributenameAr
(string, optional): Updated attribute name in ArabicnameEn
(string, optional): Updated attribute name in Englishlanguage
(string): Response language (en or ar)
attributeId
(string or number): The unique ID of the attribute to deletelanguage
(string): Response language (en or ar)
attributeId
(string or number): The unique ID of the attributelanguage
(string): Response language (en or ar)
attributeId
(string or number): The unique ID of the attributevalue
(object): Preset value in both languages {ar: "القيمة", en: "Value"}language
(string): Response language (en or ar)
attributeId
(string or number): The unique ID of the attributepresetId
(string): The unique ID of the preset valuevalue
(object): Updated preset value {ar: "القيمة", en: "Value"}language
(string): Response language (en or ar)
attributeId
(string or number): The unique ID of the attributepresetId
(string): The unique ID of the preset value to deletelanguage
(string): Response language (en or ar)
productId
(string): The unique ID of the productvariants
(array): Array of variant objects with:sku
(string): Variant SKUprice
(number): Variant pricequantity
(number): Available quantityis_infinite
(boolean): Whether stock is infiniteattributes
(array): Array of attribute objects {slug: "color", value: {ar: "أحمر", en: "Red"}}images
(array, optional): Array of image URLsweight
(object, optional): Variant weight {value: number, unit: "kg"}sale_price
(number, optional): Sale price for the variantlanguage
(string): Response language (en or ar)
productId
(string): The unique ID of the productlabel
(object): Option label {ar: "التسمية", en: "Label"}choices
(array): Array of choice objects {ar: "الخيار", en: "Choice", price: "10"}hint
(object, optional): Hint text {ar: "تلميح", en: "Hint"}language
(string): Response language (en or ar)
productId
(string): The unique ID of the producttype
(string): Input field type (text, number, dropdown)price
(string): Additional price for the optionlabel
(object): Field label {ar: "التسمية", en: "Label"}hint
(object, optional): Hint text {ar: "تلميح", en: "Hint"}language
(string): Response language (en or ar)
products
(array): Array of product IDs in desired ordercategory
(number, optional): Category ID for sorting within a specific categorylanguage
(string): Response language (en or ar)
language
(string): Response language (en or ar)
language
(string): Response language (en or ar)
Tool Name | Purpose/Use Case | Key Parameters |
---|---|---|
Get Product Attributes | List all product attributes | (none required) |
Get Product Attribute | Fetch details for specific attribute | attributeId |
Create Product Attribute | Add new product attribute | nameAr, nameEn |
Update Product Attribute | Modify existing attribute | attributeId, nameAr, nameEn |
Delete Product Attribute | Remove product attribute | attributeId |
Get Product Attribute Presets | List preset values for attribute | attributeId |
Create Product Attribute Preset | Add new preset value | attributeId, value |
Update Product Attribute Preset | Modify existing preset value | attributeId, presetId, value |
Delete Product Attribute Preset | Remove preset value | attributeId, presetId |
Add Product Variants | Add product variants with attributes | productId, variants array |
Add Product Custom Options | Add dropdown customization options | productId, label, choices |
Add Product Custom Input Field | Add text/number input fields | productId, type, price, label |
Set Manual Products Sorting | Set custom product order | products array, category |
Reset Manual Products Sorting | Reset to default sorting | (none required) |
List Product Metafields | List all product metafields | (none required) |