Home > widget-integration > TEMPLATE_MAPPING

TEMPLATE_MAPPING variable

Template identifier mapping for filter widget components.

Maps template keys to their corresponding template IDs in the template system. Used by FilterHelper.getTemplate() to retrieve the correct HTML template.

Signature:

TEMPLATE_MAPPING: {
	readonly refineByTemplate: "refineBy";
	readonly filterOptionListTemplate: "filterOptionListItem";
	readonly filterOptionBoxTemplate: "filterOptionBoxItem";
	readonly filterOptionSwatchTemplate: "filterOptionSwatchItem";
	readonly filterOptionMultiLevelCollection: "filterOptionMultiLevelCollectionItem";
	readonly filterOptionMultiLevelTagTemplate: "filterOptionMultiLevelTagItem";
	readonly filterOptionRatingTemplate: "filterOptionRatingItem";
	readonly cartTemplate: "cart";
	readonly productPriceTemplate: "productPrice";
	readonly searchTabCollectionsTemplate: "searchTabCollectionsContent";
	readonly searchTabPagesTemplate: "searchTabPagesContent";
	readonly searchTabPaginationTemplate: "searchTabCollectionsContentPagination";
	readonly preOrderTemplate: "preOrder";
}

Remarks

Technical Support teams can reference these template names when customizing filter widget rendering or when overriding templates for specific shops.