Cart

const TAG = 'spz-custom-cart-coupon-code-utils'; class SpzCustomCartCouponCodeUtils extends SPZ.BaseElement { constructor(element) { super(element); } static deferredMount() { return false; } isLayoutSupported(layout) { return layout == SPZCore.Layout.LOGIC; } buildCallback() { this.action_ = SPZServices.actionServiceForDoc(this.element); this.registerAction('setSideBarHeight', this.setSideBarHeight_.bind(this)); window.addEventListener('resize', this.setSideBarHeight_.bind(this)); } setSideBarHeight_() { const $sideBar = document.querySelector('#cart-coupon-code-modal-md'); if (!$sideBar) return; const windowHeight = window.innerHeight; $sideBar.style.setProperty('max-height', windowHeight * 0.9 + 'px', 'important'); } } SPZ.defineElement(TAG, SpzCustomCartCouponCodeUtils);
Your shopping cart is empty
Continue shopping