getIsVatEu(): boolean¶
The getIsVatEu
method allows to retrieve the information about whether the current order has obligations regarding the eu vat or not. You can read more about it here.
Returned value¶
A returned value has a type of boolean
representing whether the current order has eu vat or not.
Example¶
In this example we make a basketOverallApi
call to retrieve whether the current order has eu vat or not.
useStorefront(async (storefront) => {
const basketOverallApi = storefront.getApiSync('basketOverallApi');
const isVatEu = basketOverallApi.getIsVatEu();
console.log('current value of eu vat: '. isVatEu);
});
Basket Overall API methods reference¶
- getActions
- selectActions$
- getId
- selectId$
- getComment
- selectComment$
- selectIsVatEu$
- getDelivery
- selectDelivery$
- getSum
- selectSum$
- getSumWithoutPaymentAndShipping
- selectSumWithoutPaymentAndShipping$
- cleanBasket
- setComment
- getInvalidSections
- selectInvalidSections$
- getSectionValidation
- selectSectionValidation$