Skip to content

shippingSelected

shippingSelected is a DOM event that occurs whenever the shipping gets selected from the list.

Event body

none

Example

In this example we listen to shippingSelected event and perform an action whenever it's emitted.

useStorefront(async (storefront) => {
    storefront.eventBus.on('shippingSelected', () => {
        console.log('Shipping got selected');
    });
});