ChemPal Documentation - v1.7.0
    Preparing search index...

    Interface ShopifyVariantNode

    Represents a product variant node from the Shopify GraphQL Storefront API.

    const variant: ShopifyVariantNode = {
    id: "gid://shopify/ProductVariant/36127200805031",
    title: "Default Title",
    sku: "CHEM-001-500G",
    availableForSale: true,
    weight: 3.0,
    weightUnit: "OUNCES",
    price: { amount: "29.99", currencyCode: "USD" },
    compareAtPrice: null,
    selectedOptions: [{ name: "Title", value: "Default Title" }],
    };
    interface ShopifyVariantNode {
        id: string;
        title: string;
        sku: null | string;
        availableForSale: boolean;
        weight: number;
        weightUnit: "POUNDS" | "OUNCES" | "GRAMS" | "KILOGRAMS";
        price: ShopifyMoney;
        compareAtPrice: null | ShopifyMoney;
        selectedOptions: { name: string; value: string }[];
        currentlyNotInStock: boolean;
    }
    Index

    Properties

    id: string

    Globally unique variant id, e.g. "gid://shopify/ProductVariant/36127200805031"

    title: string

    Display title of the variant (e.g. "Default Title", "500g Bottle")

    sku: null | string

    Stock Keeping Unit identifier

    availableForSale: boolean

    Whether the variant is currently available for purchase

    weight: number

    Numeric weight value

    weightUnit: "POUNDS" | "OUNCES" | "GRAMS" | "KILOGRAMS"

    Unit of weight measurement

    Selling price

    compareAtPrice: null | ShopifyMoney

    Compare-at (list) price, or null when not on sale

    selectedOptions: { name: string; value: string }[]

    The option values selected for this variant

    currentlyNotInStock: boolean

    Whether the variant is currently in stock