Parts list changes
const lastHash = null;
configurator.ui.callbacks.onPartListUpdate = (partList, hash) => {
const parts = partList.fullList;
if (lastHash === hash) {
return;
}
lastHash = hash;
const priceSum = veryExpensivePriceCalculation(parts);
const shippingCosts = 30;
// Tell the Roomle Configurator to show the current price
configurator.ui.setPrice('€', priceSum + shippingCosts);
};Last updated