get(): BasketShipping[]¶
The get
method allows to retrieve all basket shipping options.
Returned value¶
A returned value has a type of BasketShipping[]
where BasketShipping
represents the BasketShipping model.
Example¶
In this example we make a basketShippingsApi
call to retrieve all basket shipping options.
useStorefront(async ({ eventBus, getApi }) => {
eventBus.on('basket.initialized', async () => {
const basketShippingsApi = await getApi('basketShippingsApi');
const basketShippingOptions = basketShippingsApi.get();
});
});
Basket Address API methods reference¶
- select
- setShipping
- setPickupPoint
- getSelectedShipping
- selectSelectedShipping
- getAvailableShippingCountries
- selectAvailableShippingCountries
- getSelectedShippingCountry
- selectSelectedShippingCountry
- setCountry
- getPaymentCostForActiveShippingByPaymentId
- selectPaymentCostForActiveShippingByPaymentId
- isEveryAvailablePaymentFree
- selectIsEveryAvailablePaymentFree
- getSectionValidation
- selectSectionValidation
- addMap
- showPickupPointMap
- shouldDisplayRemainingBasketValueForFreeShippingMessage
- addShippingInfo
- getShippingInfo