Pricing & Availability
Item Prices and Availability
Pricing and availability for individual items and services are displayed in the Spectrum UI, with data provided by the spectrumItemPricesAndAvailabilityCallback
function. This function has one argument in the signature: skus
.
This callback should return a promise that resolves to an array of objects with the following properties:
Total Price
Displaying the total price for a customized product at runtime can be supported by exposing a global spectrumTotalPriceCallback
function. This ensures that ecommerce systems are the single source of truth pricing calculations and ensures that discounts, upcharges are accurate and consistent with how they appear at checkout.
This callback should return a promise that resolves into an object with the following properties:
Last updated