Optional
getThe name of the brand of the garment
The garment in question
The link to the garments PDP.
The garment in question
The name of the garment
The garment in question
The price of the garment, in case no price is provided in the commerce provider. This acts as fallback.
The garment in question
Optional
getReturns the available sizes for a garment with the given ID.
Unique ID of the garment
Optional
isIf this methods is defined, it can be used to determine if a garment should be used in the expirience. If this methods returns false, that garment is removed from the garment selection AND all outfits that reference this garment are also removed and not available!
The garment in question
Optional
preAllows the provider to preload and batch load garment information.
The array of references that should be preloaded
The Garment Information Provider is used to retrieve detailed information about garments, such as their name, brand, availability, and more.
Remarks
To improve loading times, the
preLoad
function of the IGarmentInformationProvider will be called with a list of all required garments. This allows a custom implementation to fetch information for multiple garments in a single batch request from a remote system such as a server and cache the results for efficient reuse.