let freeShippingRestTimer = null; async function showFreeShippingRest(e) { const
freeShippingRest = document.querySelector('.layout-floating-cart__free-shipping--rest'); if
(freeShippingRest) { if (freeShippingRestTimer) { clearTimeout(freeShippingRestTimer); }
freeShippingRest.classList.add('flex'); freeShippingRestTimer = setTimeout(function() {
freeShippingRest.classList.remove('flex'); freeShippingRestTimer = null; }, 6000); } }
document.addEventListener('dj.cartItemChange', showFreeShippingRest);
document.addEventListener('dj.cartItemDelete', showFreeShippingRest);
shipping policy
- Free Standard Shipping (Except Taiwan) with all items. It takes 7-28 business days to arrives in most of the countries/areas.
- Express Shipping is available and the shipping fee is $30 (Except Taiwan Express Shipping is $20.) It usually takes 4-7 business days to arrive in most of the countries/areas.
- English shipping address needed when select "Express Shipping".
- Please note that these are estimated delivery times only, This website is not guaranteeing delivery dates.
class SpzCustomFreeShippingRest extends SPZ.BaseElement {
constructor(element) {
super(element);
this.freeShippingRestTimer = null;
}
isLayoutSupported(layout) {
return layout == SPZCore.Layout.LOGIC;
}
buildCallback() {
this.registerAction('showTips', () => {
this.showTips_();
});
}
showTips_(e) {
const freeShippingRest = document.querySelector(
'.layout-floating-cart__free-shipping--rest'
);
if (freeShippingRest) {
if (this.freeShippingRestTimer) {
clearTimeout(this.freeShippingRestTimer);
}
freeShippingRest.classList.add('flex');
this.freeShippingRestTimer = setTimeout(function () {
freeShippingRest.classList.remove('flex');
this.freeShippingRestTimer = null;
}, 6000);
}
}
}
SPZ.defineElement('spz-custom-free-shipping-rest', SpzCustomFreeShippingRest);