Alokai

Category

Bigcommerce Category

interface Category$1 {
	custom_url?: CustomUrl;
	default_product_sort?: string;
	description?: string;
	id: number;
	image_url?: string;
	is_visible?: boolean;
	layout_file?: string;
	meta_description?: string;
	meta_keywords?: string[];
	name: string;
	page_title?: string;
	parent_id: number;
	search_keywords?: string;
	sort_order?: number;
	views?: number;
}

Properties

NameRequiredTypeDescription
custom_urlOptionalCustomUrlThe custom URL for the product on the storefront.
default_product_sortOptionalstringDetermines how the products are sorted on category page load.
descriptionOptionalstringThe product description, which can include HTML formatting.
idRequirednumberUnique ID of the Category. Increments sequentially
image_urlOptionalstringImage URL used for this category on the storefront. Images can be uploaded via form file post to /categories/{categoryId}/image, or by providing a publicly accessible URL in this field.
is_visibleOptionalbooleanFlag to determine whether the product should be displayed to customers browsing the store. If true, the category will be displayed. If false, the category will be hidden from view.
layout_fileOptionalstringA valid layout file. (Please refer to this article on creating category files.) This field is writable only for stores with a Blueprint theme applied.
meta_descriptionOptionalstringCustom meta description for the category page. If not defined, the store’s default meta description will be used.
meta_keywordsOptionalstring[]Custom meta keywords for the category page. If not defined, the store’s default keywords will be used. Must post as an array like: [“awesome”,“sauce”].
nameRequiredstringThe name displayed for the category. Name is unique with respect to the category’s siblings.
page_titleOptionalstringCustom title for the category page. If not defined, the category name will be used as the meta title.
parent_idRequirednumberThe unique numeric ID of the category’s parent. This field controls where the category sits in the tree of categories that organize the catalog. Required if creating a child category.
search_keywordsOptionalstringA comma-separated list of keywords that can be used to locate the category when searching the store.
sort_orderOptionalnumberPriority this category will be given when included in the menu and category pages. The lower the number, the closer to the top of the results the category will be.
viewsOptionalnumberNumber of views the category has on the storefront.

Referenced Types

On this page