@combeenation/custom-code-sdk
    Preparing search index...

    Type Alias ShopifyFinishJson

    type ShopifyFinishJson = {
        products: {
            accessories?: { productId: string; quantity: number }[];
            main: {
                categoryId?: number;
                customFields?: ProductCustomFields[];
                imageUrl?: string;
                price: number;
                productId: string;
                productText?: string;
                quantity: number;
                title?: string;
                weight?: number;
                weightUnit?: string;
            };
        }[];
    }
    Index

    Properties

    Properties

    products: {
        accessories?: { productId: string; quantity: number }[];
        main: {
            categoryId?: number;
            customFields?: ProductCustomFields[];
            imageUrl?: string;
            price: number;
            productId: string;
            productText?: string;
            quantity: number;
            title?: string;
            weight?: number;
            weightUnit?: string;
        };
    }[]

    Type Declaration

    • Optionalaccessories?: { productId: string; quantity: number }[]

      Additional predefined Shopify products which will be added to the cart (no custom price/image/title)

    • main: {
          categoryId?: number;
          customFields?: ProductCustomFields[];
          imageUrl?: string;
          price: number;
          productId: string;
          productText?: string;
          quantity: number;
          title?: string;
          weight?: number;
          weightUnit?: string;
      }
      • OptionalcategoryId?: number

        Category id of the new product. A list of all ids can be found here:
        https://help.shopify.com/txt/product_taxonomy/en.txt

      • OptionalcustomFields?: ProductCustomFields[]
      • OptionalimageUrl?: string

        Url to the image which will be used in the cart

      • price: number

        Gross price of the configured product WITHOUT accessories

      • productId: string

        SKU id from your shop system

      • OptionalproductText?: string

        New description of your product

      • quantity: number
      • Optionaltitle?: string

        New title of the product

      • Optionalweight?: number

        Weight of the main product

      • OptionalweightUnit?: string

        Supported weight unit values: KG, G, OZ, LB.