Alokai

ProductModifier

Product modifier model.

interface ProductModifier {
	config: ProductOptionConfig;
	display_name: string;
	id: number;
	name: string;
	product_id: number;
	required: boolean;
	sort_order: number;
	type: ProductModifierType;
}

Properties

NameRequiredTypeDescription
configRequiredProductOptionConfigThe values for option config can vary based on the Modifier created.
display_nameRequiredstringThe name of the option shown on the storefront.
idRequirednumberThe unique numeric ID of the modifier; increments sequentially.
nameRequiredstringThe unique option name. Auto-generated from the display name, a timestamp, and the product ID.
product_idRequirednumberThe unique numeric ID of the product to which the option belongs.
requiredRequiredbooleanWhether or not this modifer is required or not at checkout. Required in a /POST.
sort_orderRequirednumberThe order the modifiers display on the product detail page.
typeRequiredProductModifierTypeBigCommerce API, which determines how it will display on the storefront. Acceptable values: * date, * checkbox, * file, * text, * multi_line_text, * numbers_only_text, * radio_buttons, * rectangles, * dropdown, * product_list, * product_list_with_images, * swatch. Required in a /POST.

Referenced Types

On this page