Products Array

This describes the common items model used in various events

Copy

/* PRODUCTS ARRAY */
[
    {
        item_id: '<mandatory - item_id>',
        item_name: '<mandatory - name of item>',
        item_sku: '<mandatory - style id of item>',
        variant_id: '<optional - variant_id>',
        index: 0, // order of item in array 0,1,2,3...
        // price - mandatory - float price - DO NOT MULTIPLY with quantity. 
        // price - set value after discount
        price: 123.33,
        discount: 12, // optional - set the discount value for item
        quantity: 2, // quantity of item
        item_brand: '<optional - brand>', // if not available leave undefined
        item_category: '<optional - category>', // if not available leave undefined
        options: {
             // optional - options can be used to provide any additional product attributes
        }
    }
]

Last updated