ChemPare Documentation - v0.0.0
    Preparing search index...

    Interface ShopifyProductVariant

    Represents a product variant in Shopify. Variants are specific combinations of product options that can be purchased.

    const variant: ShopifyProductVariant = {
    variant_id: "123456",
    sku: "CHEM-NACL-500G",
    barcode: "123456789012",
    price: 29.99,
    list_price: "34.99",
    taxable: "true",
    options: { Size: "500g", Purity: "99.9%" },
    available: "true",
    quantity_total: "100",
    link: "/products/sodium-chloride-500g"
    };
    interface ShopifyProductVariant {
        variant_id: string;
        sku: string;
        barcode: string;
        price: number;
        list_price: string;
        taxable: string;
        options: ProductOption;
        available: string;
        search_variant_metafields_data: string[];
        filter_variant_metafields_data: string[];
        image_link: string;
        image_alt: string;
        quantity_total: string;
        link: string;
    }
    Index

    Properties

    variant_id: string

    Unique identifier for the variant. Used in cart operations and variant selection.

    sku: string

    Stock Keeping Unit for the variant. Merchant-defined unique identifier.

    barcode: string

    Universal Product Code or similar barcode. Used for inventory tracking.

    price: number

    Current selling price of the variant. Numeric value without currency symbol.

    list_price: string

    Original or MSRP price before any discounts. String value that may include currency symbol.

    taxable: string

    Whether the variant is subject to tax calculations. String representation of boolean.

    options: ProductOption

    Set of options that define this variant. Key-value pairs of option names and values.

    available: string

    Whether the variant is currently available for purchase. String representation of boolean.

    search_variant_metafields_data: string[]

    Array of variant metafields used for search functionality. Contains additional variant data for search indexing.

    filter_variant_metafields_data: string[]

    Array of variant metafields used for filtering. Contains additional variant data for filter operations.

    image_link: string

    URL to the variant's primary image. Used in product listings and detail pages.

    image_alt: string

    Alternative text for the variant's image. Used for accessibility and SEO.

    quantity_total: string

    Total quantity available in inventory. String representation of numeric value.

    link: string

    URL path to the variant's detail page. Can be relative to the store's base URL.