๐Ÿ’Š Stay on Track - โœจ7-Day Medication Organizer - For Effortless Health Management! ๐Ÿ“…

$23.99
๐Ÿ’Š Stay on Track with Our 7-Day Medication Organizer! ๐Ÿ“…:  ๐Ÿ”ฅ Green
Quantity
const TAG = "spz-custom-product-automatic"; class SpzCustomProductAutomatic extends SPZ.BaseElement { constructor(element) { super(element); this.variant_id = 'e619bd13-cb76-4622-964e-7a83a1df28f6'; this.isRTL = SPZ.win.document.dir === 'rtl'; this.isAddingToCart_ = false; // ๅŠ ่ดญไธญ็Šถๆ€ } static deferredMount() { return false; } buildCallback() { this.action_ = SPZServices.actionServiceForDoc(this.element); this.templates_ = SPZServices.templatesForDoc(this.element); this.xhr_ = SPZServices.xhrFor(this.win); this.setupAction_(); this.viewport_ = this.getViewport(); } mountCallback() { this.init(); // ็›‘ๅฌไบ‹ไปถ this.bindEvent_(); } async init() { this.handleFitTheme(); const data = await this.getDiscountList(); this.renderApiData_(data); } async getDiscountList() { const productId = '4c066d6d-98d4-46d0-96be-4a6b954d5d16'; const variantId = this.variant_id; const productType = 'default'; const reqBody = { product_id: productId, variant_id: variantId, discount_method: "DM_AUTOMATIC", customer: { customer_id: window.C_SETTINGS.customer.customer_id, email: window.C_SETTINGS.customer.customer_email }, product_type: productType } const url = `/api/storefront/promotion/display_setting/text/list`; const data = await this.xhr_.fetchJson(url, { method: "post", body: reqBody }).then(res => { return res; }).catch(err => { this.setContainerDisabled(false); }) return data; } async renderDiscountList() { this.setContainerDisabled(true); const data = await this.getDiscountList(); this.setContainerDisabled(false); // ้‡ๆ–ฐๆธฒๆŸ“ ๆŠ–ๅŠจ้—ฎ้ข˜ๅค„็† this.renderApiData_(data); } clearDom() { const children = this.element.querySelector('*:not(template)'); children && SPZCore.Dom.removeElement(children); } async renderApiData_(data) { const parentDiv = document.querySelector('.automatic_discount_container'); const newTplDom = await this.getRenderTemplate(data); if (parentDiv) { parentDiv.innerHTML = ''; parentDiv.appendChild(newTplDom); } else { console.log('automatic_discount_container is null'); } } doRender_(data) { const renderData = data || {}; return this.templates_ .findAndRenderTemplate(this.element, renderData) .then((el) => { this.clearDom(); this.element.appendChild(el); }); } async getRenderTemplate(data) { const renderData = data || {}; return this.templates_ .findAndRenderTemplate(this.element, { ...renderData, isRTL: this.isRTL }) .then((el) => { this.clearDom(); return el; }); } setContainerDisabled(isDisable) { const automaticDiscountEl = document.querySelector('.automatic_discount_container_outer'); if(isDisable) { automaticDiscountEl.setAttribute('disabled', ''); } else { automaticDiscountEl.removeAttribute('disabled'); } } // ็ป‘ๅฎšไบ‹ไปถ bindEvent_() { window.addEventListener('click', (e) => { let containerNodes = document.querySelectorAll(".automatic-container .panel"); let bool; Array.from(containerNodes).forEach((node) => { if(node.contains(e.target)){ bool = true; } }) // ๆ˜ฏๅฆpopover้ขๆฟ็‚นๅ‡ป่Œƒๅ›ด if (bool) { return; } if(e.target.classList.contains('drowdown-icon') || e.target.parentNode.classList.contains('drowdown-icon')){ return; } const nodes = document.querySelectorAll('.automatic-container'); Array.from(nodes).forEach((node) => { node.classList.remove('open-dropdown'); }) // ๅ…ผๅฎนไธป้ข˜ this.toggleProductSticky(true); }) // ็›‘ๅฌๅ˜ไฝ“ๅ˜ๅŒ– document.addEventListener('dj.variantChange', async(event) => { // ้‡ๆ–ฐๆธฒๆŸ“ const variant = event.detail.selected; if (variant.product_id == '4c066d6d-98d4-46d0-96be-4a6b954d5d16' && variant.id != this.variant_id) { this.variant_id = variant.id; this.renderDiscountList(); } }); } // ๅ…ผๅฎนไธป้ข˜ handleFitTheme() { // top ๅฑžๆ€งๅฝฑๅ“ๆŠ–ๅŠจ let productInfoEl = null; if (window.SHOPLAZZA.theme.merchant_theme_name === 'Wind' || window.SHOPLAZZA.theme.merchant_theme_name === 'Flash') { productInfoEl = document.querySelector('.product-info-body .product-sticky-container'); } else if (window.SHOPLAZZA.theme.merchant_theme_name === 'Hero') { productInfoEl = document.querySelector('.product__info-wrapper .properties-content'); } if(productInfoEl){ productInfoEl.classList.add('force-top-auto'); } } // ๅ…ผๅฎน wind/flash /hero ไธป้ข˜ (stickyๅฑžๆ€งๅฝฑๅ“ popover ๅฑ‚็บงๅฑ•็คบ, ไผš่ขซๅ…ถไป–ๅ…ƒ็ด ่ฆ†็›–) toggleProductSticky(isSticky) { let productInfoEl = null; if (window.SHOPLAZZA.theme.merchant_theme_name === 'Wind' || window.SHOPLAZZA.theme.merchant_theme_name === 'Flash') { productInfoEl = document.querySelector('.product-info-body .product-sticky-container'); } else if (window.SHOPLAZZA.theme.merchant_theme_name === 'Hero') { productInfoEl = document.querySelector('.product__info-wrapper .properties-content'); } if(productInfoEl){ if(isSticky) { // ่ฟ˜ๅŽŸ่ฏฅไธป้ข˜ๅŽŸๆœ‰็š„stickyๅฑžๆ€งๅ€ผ productInfoEl.classList.remove('force-position-static'); return; } productInfoEl.classList.toggle('force-position-static'); } } setupAction_() { this.registerAction('handleDropdown', (invocation) => { const discount_id = invocation.args.discount_id; const nodes = document.querySelectorAll('.automatic-container'); Array.from(nodes).forEach((node) => { if(node.getAttribute('id') != `automatic-${discount_id}`) { node.classList.remove('open-dropdown'); } }) const $discount_item = document.querySelector(`#automatic-${discount_id}`); $discount_item && $discount_item.classList.toggle('open-dropdown'); // ๅ…ผๅฎนไธป้ข˜ this.toggleProductSticky(); }); // ๅŠ ่ดญไบ‹ไปถ this.registerAction('handleAddToCart', (invocation) => { // ้˜ปๆญขไบ‹ไปถๅ†’ๆณก const event = invocation.event; if (event) { event.stopPropagation(); event.preventDefault(); } // ๅฆ‚ๆžœๆญฃๅœจๅŠ ่ดญไธญ๏ผŒ็›ดๆŽฅ่ฟ”ๅ›ž if (this.isAddingToCart_) { return; } const quantity = invocation.args.quantity || 1; this.addToCart(quantity); }); } // ๅŠ ่ดญๆ–นๆณ• async addToCart(quantity) { // ่ฎพ็ฝฎๅŠ ่ดญไธญ็Šถๆ€ this.isAddingToCart_ = true; const productId = '4c066d6d-98d4-46d0-96be-4a6b954d5d16'; const variantId = this.variant_id; const url = '/api/cart'; const reqBody = { product_id: productId, variant_id: variantId, quantity: quantity }; try { const data = await this.xhr_.fetchJson(url, { method: 'POST', body: reqBody }); // ่งฆๅ‘ๅŠ ่ดญๆˆๅŠŸๆ็คบ this.triggerAddToCartToast_(); return data; } catch (error) { error.then(err=>{ this.showToast_(err?.message || err?.errors?.[0] || 'Unknown error'); }) } finally { // ๆ— ่ฎบๆˆๅŠŸๅคฑ่ดฅ๏ผŒ้ƒฝ้‡็ฝฎๅŠ ่ดญ็Šถๆ€ this.isAddingToCart_ = false; } } showToast_(message) { const toastEl = document.querySelector("#apps-match-drawer-add_to_cart_toast"); if (toastEl) { SPZ.whenApiDefined(toastEl).then((apis) => { apis.showToast(message); }); } } // ่งฆๅ‘ๅŠ ่ดญๆˆๅŠŸๆ็คบ triggerAddToCartToast_() { // ๅฆ‚ๆžœไธป้ข˜ๆœ‰่‡ชๅทฑ็š„ๅŠ ่ดญๆ็คบ๏ผŒๅˆ™ไธๆ˜พ็คบ const themeAddToCartToastEl = document.querySelector('#add-cart-event-proxy'); if (themeAddToCartToastEl) return; // ๆ˜พ็คบๅบ”็”จ็š„ๅŠ ่ดญๆˆๅŠŸๆ็คบ this.showToast_("Added successfully"); } triggerEvent_(name, data) { const event = SPZUtils.Event.create(this.win, `${ TAG }.${ name }`, data || {}); this.action_.trigger(this.element, name, event); } isLayoutSupported(layout) { return layout == SPZCore.Layout.CONTAINER; } } SPZ.defineElement(TAG, SpzCustomProductAutomatic);
class SpzCustomDiscountBundle extends SPZ.BaseElement { constructor(element) { super(element); } isLayoutSupported(layout) { return layout == SPZCore.Layout.LOGIC; } mountCallback() {} unmountCallback() {} setupAction_() { this.registerAction('showAddToCartToast', () => { const themeAddToCartToastEl = document.querySelector('#add-cart-event-proxy') if(themeAddToCartToastEl) return const toastEl = document.querySelector('#apps-match-drawer-add_to_cart_toast') SPZ.whenApiDefined(toastEl).then((apis) => { apis.showToast("Added successfully"); }); }); } buildCallback() { this.setupAction_(); }; } SPZ.defineElement('spz-custom-discount-toast', SpzCustomDiscountBundle);

Description

๐ŸŽ๐Ÿ’Don't forget to get some for your family and friends as it's a unique gift idea.

This week's special event:ย Randomly selectedย 20 lucky customersย to get double the order product every day. We will send you an email, please remember to check, thanks for your supportโค๏ธโค๏ธ

โœ…ย Guaranteed!ย GoogleTrusted Store!
๐Ÿ›’ย Payments Viaย PayPalยฎย andย CreditCard

๐Ÿ”ฅ๐Ÿ”ฅLast 2 Days๏ผHurry Up๏ผ๏ผ๐Ÿ’ฅ๐Ÿ’ฅ

๐Ÿ”ฅ8653 sold in last 24 hours๐Ÿ”ฅ
๐Ÿ”ฅ99.5% of Reviewers Recommends This Product.๐Ÿ”ฅ

Our goods are authentic, with genuine patents, counterfeit must be investigated! Customers please identify our products!

๐Ÿ“…ย Stay Organized, Stay Healthy with Our 7-Day Medication Organizer! ๐Ÿ’Š

โœจย Are you tired of juggling multiple pill bottles or forgetting your daily medication? Weโ€™ve got the perfect solution for you! Introducing the 7-Day Medication Organizer โ€” your ultimate tool to keep your meds neatly organized and easily accessible. ๐Ÿ”‘

๐Ÿ’ก Why Youโ€™ll Love It:

  • ๐ŸŒŸ Spacious & Convenient: With ample compartments, this organizer accommodates a variety of pills for the entire week, helping you stay on track with your health goals. ๐Ÿ’Š

  • ๐Ÿ›ก๏ธ Durable & Reliable: Made from high-quality ABS and PC materials, this organizer is built to last, ensuring it can handle everyday wear and tear while keeping your medications safe and secure. ๐Ÿ”’

  • ๐Ÿ‘œ Perfect for Home & Travel: Its lightweight, compact design makes it the ideal companion for your home or on-the-go. Whether at home or traveling, your meds are always within reach. ๐ŸŒ

  • โœ”๏ธ Effortless Organization: Segmented into seven compartments, one for each day of the week, itโ€™s the easiest way to manage your medications and stay consistent with your treatment. ๐Ÿ“…

  • ๐Ÿ”“ Simple & Secure: Each compartment opens and closes with ease, giving you quick and secure access to your daily medication with zero hassle. ๐Ÿšช

๐ŸŽฏ Your Health, Your Scheduleย ๐ŸŽฏ

๐Ÿ•“ Never miss a dose again! Our 7-Day Medication Organizer is designed to simplify your life and ensure you stick to your prescribed treatment schedule with confidence. ๐Ÿ’ช

๐ŸŒŸ Key Features at a Glance:

  • Large Capacityย for storing a variety of pills ๐Ÿ’Š
  • Sturdy Materialsย for long-lasting use ๐Ÿ› ๏ธ
  • Portable Designย for home and travel use โœˆ๏ธ
  • Daily Compartmentsย for easy medication management ๐Ÿ—“๏ธ
  • Simple Accessย with secure, easy-to-use compartments ๐Ÿ”“

๐ŸŒˆ Order Today and Experience the Convenience!ย ๐ŸŒˆ

๐Ÿ’š Donโ€™t let your medications get disorganized. Take control of your health and enjoy the peace of mind that comes with knowing your daily pills are always right where you need them. Click Add to Cart and start your journey to a more organized, healthier you! โœจ

โšกClick theย ADD TO CARTย button before we sell out.ย 

๐Ÿ’WHY USโ“

We work directly with manufacturers all over the world to ensure the best quality of our products. We have a Quality Control department which helps us to keep our promise!

๐Ÿ”ฅPriceย is alwaysย competitive.

๐Ÿ˜ŠAwesomeย Customer Service.

๐Ÿ†Amazing products along withย High Quality.

๐ŸŒŽWorldwide Shippingโœˆย ย 

Please note that shipping is insured. However, you may receive your items earlier. Tracking Numbers will ALWAYS be sent so you can track it every step of the way! Cool things are worth waiting for! ๐Ÿ˜‰

Our Warehouse

We will ship from the warehouse closest to you. We're proud to offer worldwide shipping

Thank you for being one of our valued customers.๐ŸŽ‰