OVIRO LogoOVIRO
Quản lý nhóm sản phẩmBộ sưu tập sản phẩm

ProductCollection Object Schema

Đối tượng đại diện cho một bộ sưu tập sản phẩm (Product Collection), có thể là danh sách thủ công hoặc tự động.

JSON Schema

Trường (Field)Kiểu (Type)Mô tả (Description)
company_idintID công ty
creator_idintID người tạo
idintID bộ sưu tập
typeintLoại bộ sưu tập
namestringTên bộ sưu tập
descriptionstringMô tả
external_idstringID tham chiếu ngoài
auto_ruleobjectCác quy tắc tự động (nếu là loại Auto). Xem cấu trúc bên dưới.
product_id_listarrayDanh sách ID sản phẩm (nếu là loại Manual)
avatar_file_id_listarrayDanh sách ID ảnh đại diện
avatar_file_listarrayDanh sách đối tượng File ảnh đại diện
statusintTrạng thái
seo_urlstringURL SEO
seo_titlestringTiêu đề SEO
seo_meta_descriptionstringMô tả SEO
seo_meta_keywordstringTừ khóa SEO
seo_graph_file_idintID ảnh SEO Graph
seo_graph_fileobjectĐối tượng File SEO Graph
seo_canonicalstringURL Canonical
seo_optionsobjectCác tùy chọn SEO bổ sung
date_createdintThời gian tạo (Unix timestamp)
date_modifiedintThời gian sửa đổi (Unix timestamp)

Cấu trúc auto_rule

Dùng cho bộ sưu tập tự động (Type = 1).

{
    "match_all": 1, // 1: AND (Thỏa mãn tất cả), 0: OR (Thỏa mãn một trong các điều kiện)
    "conditions": [
        {
            "field": "productname", // Trường dữ liệu: productname, productid, tag, categoryid, brandid, price
            "operand": "contain", // Toán tử: equal, notequal, in, notin, greaterthan, lessthan, contain, startwith, endwith...
            "value": "Samsung" // Giá trị so sánh
        }
    ]
}

Các bảng mã giá trị (Enums)

Trạng thái (Status)

Giá trịKeyMô tả
1STATUS_ENABLEKích hoạt
3STATUS_DISABLEVô hiệu hóa

Loại bộ sưu tập (Type)

Giá trịKeyMô tả
1TYPE_AUTOTự động (Dựa trên rule)
3TYPE_MANUALThủ công (Chọn từng sản phẩm)

On this page