Các sản phẩm đã xem

 avatar
unknown
json
3 years ago
3.5 kB
8
Indexable
 {
    products(
        filter: {
           sku: {
                in: ["odoo_1651222438-1"] #Truyền array product sku vào đây
            }
        }
    ) {
        total_count
        page_info {
            current_page
            page_size
            total_pages
        }
        items {
            id
            name
            sku
            url_key #Product url
            special_price #Gia sale
            ionah_brand #Brand name
            odoo_610 #Model of product
            promotion_information1 #Tra gop 10%
            promotion_information2 # Giam 5.000.000
            promotion_information3
            promotion_information4
            promotion_information5
            general_feature1 #Inverter
            general_feature2 #2 cửa
            general_feature3 #2 Năm bảo hành
            general_feature4
            general_feature5
            general_feature6
            dynamicAttributes(fields: ["product_listing_info1","product_listing_info3"]) #Tpbank,VNpay...
            product_listing_info2
            free_ship
            special_info {
                percent # Phan tram giam gia
                amount # So tien giam
            }
            ionah_preferential_block #Bottom item (Uu dai 1.1 trieu khi mo the TPBANK EVO)
            rating_summary #Review star dạng %. Ví dụ giá trị trả về là 60 nghĩa là sp đó có đánh giá 60/100
            review_count #Total review
            thumbnail { # anh sp
                url
                label
            }
            swatch_image
            price_range {
                minimum_price {
                    regular_price {
                        value
                        currency
                    }
                    final_price {
                        value
                        currency
                    }
                }
                maximum_price {
                    regular_price {
                        value
                        currency
                    }
                    final_price {
                        value
                        currency
                    }
                }
            }
            price_tiers {
                quantity
                final_price {
                value
                currency
                }
            }
            ... on ConfigurableProduct {
                configurable_options {
                id
                attribute_id_v2
                label
                position
                use_default
                attribute_code
                values {
                    value_index
                    label
                }
                product_id
                }
                variants {
                product {
                    id
                    name
                    sku
                    attribute_set_id
                    ... on PhysicalProductInterface {
                    weight
                    }
                    price_range{
                    minimum_price{
                        regular_price{
                        value
                        currency
                        }
                    }
                    }
                }
                attributes {
                    uid
                    label
                    code
                    value_index
                }
                }
            }
        }
    }
} 
Editor is loading...