WARNING: This product contains nicotine. Nicotine is an addictive chemical.

Element vape logo

Search results for: '_next/static/chunks/0o1u0j0g2qqin.js'

Products

Sorry, no results found. Refine your search or explore our full catalog.

NEWSLETTER

Get special offers and find out what's new in the store. Sign up for the EV newsletter.

Shopping Cart

+ subtotal.toFixed(2); if (totalEl) totalEl.innerText = 'Search results for: '_next/static/chunks/0o1u0j0g2qqin.js'

WARNING: This product contains nicotine. Nicotine is an addictive chemical.

Element vape logo

Search results for: '_next/static/chunks/0o1u0j0g2qqin.js'

Products

Sorry, no results found. Refine your search or explore our full catalog.

NEWSLETTER

Get special offers and find out what's new in the store. Sign up for the EV newsletter.
+ subtotal.toFixed(2); if (checkoutLink) { if (cart.length === 0) { checkoutLink.style.pointerEvents = 'none'; checkoutLink.style.opacity = '0.5'; } else { checkoutLink.style.pointerEvents = 'auto'; checkoutLink.style.opacity = '1'; } } if (!container) return; if (cart.length === 0) { container.innerHTML = '
' + '' + '' + '

Your cart is empty

' + '

Explore our categories to add products

' + '
'; return; } container.innerHTML = cart.map(item => { const optionsText = item.options ? Object.entries(item.options).map(([k, v]) => k + ': ' + v).join(' | ') : ''; return '
' + '' + item.name + '' + '
' + '
' + item.name + '
' + (optionsText ? '
' + optionsText + '
' : '') + '' + '
' + '
' + '' + '' + item.quantity + '' + '' + '
' + 'Search results for: '_next/static/chunks/0o1u0j0g2qqin.js'

WARNING: This product contains nicotine. Nicotine is an addictive chemical.

Search results for: '_next/static/chunks/0o1u0j0g2qqin.js'

Products

Sorry, no results found. Refine your search or explore our full catalog.

NEWSLETTER

Get special offers and find out what's new in the store. Sign up for the EV newsletter.
+ (item.price * item.quantity).toFixed(2) + '
' + '
' + '
' + '
'; }).join(''); container.querySelectorAll('.dec-btn').forEach(btn => { btn.addEventListener('click', () => updateQuantity(btn.getAttribute('data-id'), -1)); }); container.querySelectorAll('.inc-btn').forEach(btn => { btn.addEventListener('click', () => updateQuantity(btn.getAttribute('data-id'), 1)); }); container.querySelectorAll('.cart-item-remove').forEach(btn => { btn.addEventListener('click', () => removeFromCart(btn.getAttribute('data-id'))); }); } function openCart() { document.getElementById('cart-drawer')?.classList.add('active'); document.getElementById('cart-overlay')?.classList.add('active'); document.body.style.overflow = 'hidden'; } function closeCart() { document.getElementById('cart-drawer')?.classList.remove('active'); document.getElementById('cart-overlay')?.classList.remove('active'); document.body.style.overflow = 'auto'; } // Expose globally window.getCart = getCart; window.saveCart = saveCart; window.addToCart = addToCart; window.openCart = openCart; window.closeCart = closeCart; window.renderCart = renderCart; // Initialize events document.addEventListener('DOMContentLoaded', () => { document.getElementById('cart-close')?.addEventListener('click', closeCart); document.getElementById('cart-overlay')?.addEventListener('click', closeCart); // Add click listener for header cart trigger document.addEventListener('click', (e) => { const trigger = e.target.closest('.showcart, [data-block="minicart"], .minicart-wrapper a.action.showcart'); if (trigger) { e.preventDefault(); e.stopPropagation(); openCart(); } }, true); // Hijack the Add-To-Cart submit/click document.addEventListener('click', (e) => { const btn = e.target.closest('#product-addtocart-button'); if (btn) { // Magento form validation check const form = document.getElementById('product_addtocart_form'); if (form && typeof jQuery !== 'undefined' && jQuery(form).validation && !jQuery(form).validation('isValid')) { // Let Magento handle native validation bubble/errors return; } e.preventDefault(); e.stopPropagation(); // Scrape details const nameEl = document.querySelector('.page-title span, [itemprop="name"], .product-info-main .page-title'); const priceEl = document.querySelector('.price-box [data-price-type="finalPrice"] .price, .product-info-price .price'); // Find main image const imgEl = document.querySelector('.gallery-placeholder img, .product.media img, .fotorama__stage__frame.fotorama__active img, img.fotorama__img'); const name = nameEl ? nameEl.innerText.trim() : document.title.split('|')[0].trim(); const priceText = priceEl ? priceEl.innerText.trim() : '0.00'; const price = parseFloat(priceText.replace(/[^0-9.]/g, '')) || 0.00; const img = imgEl ? imgEl.src : ''; // Scrape options const options = {}; // Swatches document.querySelectorAll('.swatch-attribute').forEach(attr => { const label = attr.querySelector('.swatch-attribute-label')?.innerText.trim() || attr.getAttribute('data-attribute-code'); const selected = attr.querySelector('.swatch-option.selected, [aria-checked="true"]'); if (selected) { options[label] = selected.innerText.trim() || selected.getAttribute('data-option-label') || selected.getAttribute('title') || ''; } }); // Select attributes document.querySelectorAll('select.super-attribute-select').forEach(select => { const label = select.closest('.field')?.querySelector('.label span')?.innerText.trim() || select.name; const selectedOpt = select.options[select.selectedIndex]; if (selectedOpt && selectedOpt.value) { options[label] = selectedOpt.text.trim(); } }); const product = { name: name, brand: document.querySelector('.product-info-main .brand, .product-info-main .product-brand')?.innerText.trim() || 'Super Vape Shop', price: price * 1.53, img: img, link: window.location.pathname, options: Object.keys(options).length > 0 ? options : null }; console.log('Intercepted Add-To-Cart:', product); addToCart(product); } }, true); renderCart(); }); window.addEventListener('cart_updated', renderCart); window.addEventListener('storage', (e) => { if (e.key === 'ev_au_cart') renderCart(); }); })(); Search results for: '_next/static/chunks/0o1u0j0g2qqin.js'

WARNING: This product contains nicotine. Nicotine is an addictive chemical.

Element vape logo

Search results for: '_next/static/chunks/0o1u0j0g2qqin.js'

Products

Sorry, no results found. Refine your search or explore our full catalog.

NEWSLETTER

Get special offers and find out what's new in the store. Sign up for the EV newsletter.