The getAvailableProducts() method returns an array with available products that can be loaded in the configurator.
JavaScript
getAvailableProducts()
Returns
|
Type |
Description |
|---|---|
|
|
An array of objects with the following structure: JavaScript
|
Example
JavaScript
JavaScript
let availableProducts = window.twikit.getAvailableProducts();
let availableProductKeys = availableProducts.map(product => product.id);