Get All Popular Products
Usage
Get All the site popular products
Example
window.FastSimonSDK.getAllPopularProducts().then(r => {
// handle here
});
or
window.FastSimonSDK.getAllPopularProducts({
callback: (result) => {
// handle here
}
});
Options
| Option | Type | Description |
|---|---|---|
| withAttributes | boolean | include product attributes |
| callback | (Response) => void (required when promised is not used) | Callback to handle the results |
Response
TypeScript Typing
type Response = Product[]