Skip to main content

Get All Popular Products

Usage

Get All the site popular products

Example

window.FastSimonSDK.getAllPopularProducts({
callback: (result) => {
// handle here
}
});

or

window.FastSimonSDK.getAllPopularProducts().then(r => {
// handle here
});

Options

OptionTypeDescription
withAttributesbooleaninclude product attributes
callback(Response) => void (required when promised is not used)Callback to handle the results

Response

TypeScript Typing
type Response = Product[]