Newer Version Available

This content describes an older version of this product. View Latest

WebStoreTemplate

Represents a configuration for creating B2B Commerce stores using Lightning Experience. This type extends the Metadata metadata type and inherits its fullName field.

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

Important

File Suffix and Directory Location

WebStoreTemplate components have the suffix .webstoretemplate and are stored in the webstoretemplate folder.

Version

WebStoreTemplate components are available in API version 49.0 and later.

Special Access Rules

A B2B Commerce license and access to Commerce objects is required.

Fields

Field Name Field Type Description
checkoutTimeToLive int Amount of time in minutes that a checkout stays active and doesn’t expire. This field is available in API version 52.0 and later.
checkoutValidAfterDate dateTime A timestamp in the default server timezone (GMT). All checkouts that start before this date are considered expired. This field is available in API version 52.0 and later.
defaultCurrency string The template’s default currency setting for new records.
defaultLanguage string The template’s default language setting for new records.
description string The description of the template.
masterLabel string Required. The original (untranslated) name of a label. Each translated label is paired with its original untranslated version.
maxValuesPerFacet int Maximum number of values that can be added to a facet.
paginationSize int Amount of data per page.
pricingStrategy PricingStrategy​(enumeration of type string) Required. The price selected to display to buyers. Possible values include:
  • LowestPrice
  • Priority
The default value is LowestPrice.
productGrouping ProductGrouping​(enumeration of type string) Determines whether product variations are listed individually in search results or are represented by the parent product, which links to its children. Possible values are:
  • NoGrouping—Variations are listed individually in search results.
  • VariationParent—The parent product is returned in search results with a link to its children.
The default value is VariationParent. This field is available in API version 52.0 and later.
supportedCurrencies string Currencies supported for store template.
supportedLanguages string Required. Languages supported for store template.
type WebStoreType​(enumeration of type string) Required. The type of store configuration. The only value is B2B.

Declarative Metadata Sample Definition

The following is an example of a web store template component.

The following is an example package.xml that references the previous definition.

Wildcard Support in the Manifest File

This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.