Home > widget-integration > PredictiveBundleService > getPredictiveBundles
PredictiveBundleService.getPredictiveBundles() method
Proxies predictive bundle loading to the API layer.
Signature:
getPredictiveBundles(productId: number): Promise<PredictiveBundleData[]>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
productId |
number |
Product id used to load bundle recommendations. |
Returns:
Promise<PredictiveBundleData[]>
Predictive bundles for the product, or an empty array when unavailable.