Category
:root {
–brand:#000000;–brand-hover:#222222;–brand-light:#f0f0f0;
–accent:#e63946;–bg:#f5f6fa;–white:#ffffff;–border:#e2e4ea;–wl-color:#e63946;–wl-color-light:#fff0f0;–wl-color-mid:#ffe0e0;–wl-color-border:#fbb;
–text:#1a1d2e;–muted:#6b7280;–radius:10px;–sidebar-w:255px;–transition:.2s ease;
}
/* ══════════════════════════════════════
QUICK VIEW THEME
Scoped to the Quick View panel, the “View Full Details” modal, and their
QR/checkout popups only — the rest of the shop (grid, filters, sidebar)
keeps its own black/white theme untouched.
══════════════════════════════════════ */
.mxm-qv-panel, .mh-overlay, .qr-modal-overlay{
–brand:#FFD800;
–brand-hover:#E6C200;
–brand-light:#FFF6CC;
–text:#161616;
–muted:#5b5b5f;
–white:#ffffff;
–bg:#F5F5F7;
–border:#e7e7ea;
–radius:10px;
–qv-price-accent:#B38600;
–qv-extra-accent:#FF9800;
–qv-card-radius:14px;
font-family:’Inter’,-apple-system,sans-serif;
}
.mxm-qv-panel .qv-name, #qvPanelTitle, .mh-title, .mh-brand{
font-family:’Poppins’,-apple-system,sans-serif;
}
/* Price text reads as muted gold, not the bright CTA yellow */
.mxm-qv-panel .qv-price{color:var(–qv-price-accent)}
.mxm-qv-panel .atc-addon-price{color:var(–qv-price-accent)}
/* Solid yellow buttons/badges need dark ink for contrast, not white */
.mxm-qv-panel .qv-btn-buy,
.mxm-qv-panel .qvg-btn-buy,
.mxm-qv-panel .qvg-btn-buy:hover,
.mh-footer .qvg-btn-buy,
.mh-footer .qvg-btn-buy:hover,
.mxm-qv-panel .qv-price-off.style-flat{
color:var(–text)!important;
}
/* Selected-pill state used the site’s default blue tint — swap for the
panel’s own brand-light yellow tint so it matches the new theme */
.mxm-qv-panel .atc-pill.active{
background:var(–brand-light);color:var(–text);border-color:var(–brand);
}
/* “Cart section” boxes in the Add to Cart step — 14px radius vs the 10px base */
.mxm-qv-panel .atc-section{
background:var(–bg);border:1px solid var(–border);
border-radius:var(–qv-card-radius);padding:12px 14px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font-family:’Segoe UI’,system-ui,-apple-system,sans-serif;background:var(–bg);color:var(–text);min-height:100vh}
.shop-layout{display:flex!important;gap:24px;width:100%;padding:24px 20px;align-items:flex-start;box-sizing:border-box}
.filter-sidebar{width:var(–sidebar-w);min-width:var(–sidebar-w);flex-shrink:0;background:var(–white);border-radius:var(–radius);border:1px solid var(–border);overflow:hidden;position:sticky;top:80px;box-shadow:0 2px 8px rgba(0,0,0,.05)}
.sidebar-header{padding:14px 18px;font-weight:700;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(–muted);border-bottom:1px solid var(–border);display:flex!important;align-items:center;justify-content:space-between;background:var(–white)}
.clear-all-btn{font-size:11px;font-weight:600;color:var(–brand);background:none;border:none;cursor:pointer;padding:0;display:none;font-family:inherit;text-transform:none;letter-spacing:0;transition:color var(–transition)}
.clear-all-btn:hover{color:var(–accent);text-decoration:underline}
.clear-all-btn.visible{display:block!important}
.filter-section{border-bottom:1px solid var(–border)}
.filter-section:last-child{border-bottom:none}
.section-toggle{width:100%;background:none!important;border:none!important;padding:13px 18px;display:flex!important;align-items:center;justify-content:space-between;cursor:pointer;font-size:13px;font-weight:600;color:var(–text)!important;font-family:inherit;transition:background var(–transition);text-align:left;box-shadow:none!important;border-radius:0!important;line-height:1.4}
.section-toggle:hover{background:var(–bg)!important}
.chevron{display:inline-block;width:12px;height:12px;border-right:2px solid var(–muted);border-bottom:2px solid var(–muted);transform:rotate(45deg);transition:transform var(–transition);flex-shrink:0;margin-left:8px}
.section-toggle.collapsed .chevron{transform:rotate(-45deg)}
.section-body{padding:6px 18px 14px;max-height:600px;overflow-y:auto;overflow-x:hidden;opacity:1;transition:max-height .3s ease,opacity .2s ease,padding .3s ease}
.section-body::-webkit-scrollbar{width:4px}
.section-body::-webkit-scrollbar-thumb{background:var(–border);border-radius:4px}
.section-body.collapsed{max-height:0!important;opacity:0!important;padding-top:0!important;padding-bottom:0!important;overflow:hidden!important}
.section-body.two-col{display:grid;grid-template-columns:1fr 1fr;gap:2px 6px}
.section-body.single-col{display:block}
.brand-search{width:100%;padding:6px 10px;font-size:12px;border:1px solid var(–border);border-radius:6px;margin-bottom:8px;font-family:inherit;outline:none;color:var(–text)}
.brand-search:focus{border-color:var(–brand)}
.filter-item{display:flex!important;align-items:center;gap:7px;cursor:pointer;padding:4px 2px;user-select:none;border-radius:4px;transition:background var(–transition)}
.filter-item:hover{background:var(–bg)}
.filter-item input[type=”checkbox”]{width:14px!important;height:14px!important;accent-color:var(–brand);cursor:pointer;flex-shrink:0;margin:0!important}
.filter-item span{font-size:12px;color:var(–text);line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.filter-item input[type=”checkbox”]:checked+span{color:var(–brand);font-weight:600}
.filter-item.brand-hidden{display:none!important}
.filter-loading{font-size:12px;color:var(–muted);padding:4px 0}
.filter-error{font-size:12px;color:var(–accent);padding:4px 0}
.price-slider-wrap{padding:6px 4px 16px}
.price-track-wrap{position:relative;height:20px;margin:28px 4px 10px;display:flex;align-items:center}
.price-track{position:absolute;top:50%;left:0;right:0;height:6px;background:var(–border);border-radius:3px;transform:translateY(-50%)}
.price-range-fill{position:absolute;top:50%;height:6px;background:var(–brand);border-radius:3px;transform:translateY(-50%)}
.price-thumb{position:absolute;top:50%;transform:translate(-50%,-50%);width:18px;height:18px;border-radius:50%;background:var(–brand);border:2px solid var(–white);box-shadow:0 1px 4px rgba(0,0,0,.4);cursor:pointer;z-index:2;transition:box-shadow .15s}
.price-thumb:hover,.price-thumb:active{box-shadow:0 0 0 6px rgba(0,0,0,.15)}
.price-inputs{display:flex;align-items:center;gap:8px;margin-top:12px}
.price-input-box{flex:1;display:flex;align-items:center;gap:4px;background:var(–bg);border:1px solid var(–border);border-radius:6px;padding:5px 8px}
.price-input-box span{font-size:11px;color:var(–muted)}
.price-input-box input{width:100%;border:none;background:none;font-size:12px;color:var(–text);outline:none;font-family:inherit;min-width:0}
.price-sep{font-size:11px;color:var(–muted)}
.price-apply-btn{display:none}
.shop-main{flex:1;min-width:0}
.results-bar{display:flex!important;align-items:center;justify-content:space-between;margin-bottom:16px;flex-wrap:wrap;gap:8px}
.results-count{font-size:13px;color:var(–muted)}
.results-count strong{color:var(–text)}
.active-tags{display:flex!important;gap:5px;flex-wrap:wrap;align-items:center}
.active-tag{display:inline-flex!important;align-items:center;gap:4px;font-size:11px;font-weight:500;background:var(–brand-light);color:var(–brand)!important;border-radius:20px;padding:3px 10px 3px 12px;cursor:pointer;border:1px solid #c0c0c0;white-space:nowrap;text-decoration:none!important;transition:background var(–transition)}
.active-tag:hover{background:#e0e0e0;border-color:var(–brand)}
.active-tag .x{font-size:14px;line-height:1;font-weight:400;opacity:.7}
.sort-select{font-size:12px;border:1px solid var(–border)!important;border-radius:6px;padding:6px 10px;background:var(–white);color:var(–text);cursor:pointer;font-family:inherit;outline:none;box-shadow:none!important}
/* ── Desktop price filter button + dropdown ── */
.desk-price-wrap{position:relative;display:inline-block}
.desk-price-btn{
display:inline-flex;align-items:center;gap:5px;
padding:6px 12px;border-radius:6px;
border:1px solid var(–border);background:var(–white);
color:var(–text);font-size:12px;font-weight:600;
cursor:pointer;font-family:inherit;
transition:border-color .15s,color .15s;
white-space:nowrap;
}
.desk-price-btn:hover{border-color:var(–brand);color:var(–brand)}
.desk-price-btn.active{border-color:var(–brand);color:var(–brand);background:#eff6ff}
.desk-price-arrow{font-size:10px;transition:transform .2s}
.desk-price-btn.open .desk-price-arrow{transform:rotate(180deg)}
.desk-price-panel{
display:none;
position:absolute;right:0;top:calc(100% + 6px);
width:256px;background:var(–white);
border:1.5px solid var(–border);border-radius:10px;
box-shadow:0 6px 24px rgba(0,0,0,.12);
z-index:300;
max-height:320px;
overflow:hidden;
}
.desk-price-panel.open{display:block}
.desk-price-panel-inner{padding:14px;max-height:320px;overflow-y:auto}
.desk-preset-label{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(–muted);margin-bottom:8px}
.desk-price-presets{display:flex;flex-direction:column;gap:1px;margin-bottom:10px}
.desk-preset-item{
display:flex;align-items:center;gap:8px;
padding:6px 8px;border-radius:6px;cursor:pointer;
transition:background .12s;
}
.desk-preset-item:hover{background:#f5f7fa}
.desk-preset-item input[type=checkbox]{width:14px;height:14px;accent-color:var(–brand);cursor:pointer;flex-shrink:0}
.desk-preset-item label{font-size:12px;color:var(–text);cursor:pointer;flex:1}
.desk-divider{
display:flex;align-items:center;gap:6px;margin-bottom:10px;
font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(–muted);
}
.desk-divider::before,.desk-divider::after{content:”;flex:1;height:1px;background:var(–border)}
.desk-price-apply{
flex:1;padding:7px;background:var(–brand);color:#fff;
border:none;border-radius:6px;font-size:12px;font-weight:700;
cursor:pointer;font-family:inherit;transition:background .15s;
}
.desk-price-apply:hover{background:var(–brand-hover)}
.desk-price-clear{
padding:7px 12px;background:transparent;color:var(–muted);
border:1.5px solid var(–border);border-radius:6px;font-size:12px;font-weight:600;
cursor:pointer;font-family:inherit;transition:all .15s;
}
.desk-price-clear:hover{border-color:var(–accent);color:var(–accent)}
/* Hide desk price on mobile — REMOVED: price button now shows on mobile too */
@media(max-width:768px){
/* Center the panel in the viewport instead of pinning it to the button’s
scroll-time position — with position:fixed and no explicit top, the
browser freezes it at wherever the button happened to be when opened,
so scrolling the page visually strands the panel (the button scrolls
away underneath it while the panel stays put). Centering keeps it
correctly placed regardless of scroll position. */
.desk-price-panel{
width:calc(100vw – 32px);
max-width:360px;
right:auto;
left:50%;
top:50%;
transform:translate(-50%,-50%);
position:fixed;
max-height:80vh;
z-index:1000;
}
.desk-price-wrap{position:static}
}
.product-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.product-card{background:var(–white);border-radius:var(–radius);border:1px solid var(–border);overflow:hidden;cursor:pointer;position:relative;transition:box-shadow var(–transition),transform var(–transition),border-color var(–transition);text-decoration:none!important;display:block!important;color:var(–text)!important}
.product-card:hover{box-shadow:0 8px 24px rgba(0,0,0,.13)!important;transform:translateY(-3px);border-color:#c0c0c0}
.card-badge{position:absolute;top:8px;right:8px;font-size:10px;font-weight:700;letter-spacing:.06em;padding:3px 8px;border-radius:4px;text-transform:uppercase;z-index:2;line-height:1.2}
.badge-sale{background:#e63946!important;color:#fff!important}
.badge-new{background:#059669!important;color:#fff!important}
.card-img{width:100%;aspect-ratio:4/4.5;background:#f8f9fb;display:flex!important;align-items:center;justify-content:center;padding:0;overflow:hidden}
.card-img img{max-width:100%;max-height:240px;object-fit:contain;transition:transform .3s ease;display:block}
.product-card:hover .card-img img{transform:scale(1.05)}
/* ══════════════════════════════════════
PRODUCT GRID INLINE BANNERS
══════════════════════════════════════ */
.grid-banner{
grid-column: span 2;
border-radius:var(–radius);
overflow:hidden;
position:relative;
min-height:160px;
display:flex;
align-items:flex-end;
text-decoration:none!important;
cursor:pointer;
transition:transform .2s,box-shadow .2s;
background:#0a2540;
}
.grid-banner:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(0,0,0,.22)}
.grid-banner-bg{
position:absolute;inset:0;
background-size:cover;background-position:center;
transition:transform .4s ease;
}
.grid-banner:hover .grid-banner-bg{transform:scale(1.03)}
.grid-banner-overlay{
position:absolute;inset:0;
background:linear-gradient(135deg,rgba(0,0,0,.55) 0%,rgba(0,0,0,.1) 100%);
}
.grid-banner-body{
position:relative;z-index:2;
padding:18px 20px;
display:flex;flex-direction:column;gap:4px;
width:100%;
}
.grid-banner-label{
font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
opacity:.85;margin-bottom:2px;
}
.grid-banner-title{
font-size:18px;font-weight:800;line-height:1.2;
}
.grid-banner-sub{
font-size:12px;opacity:.8;line-height:1.4;margin-top:2px;max-width:280px;
}
.grid-banner-cta{
display:inline-flex;align-items:center;gap:5px;
margin-top:10px;padding:7px 16px;border-radius:20px;
font-size:12px;font-weight:700;border:none;cursor:pointer;
transition:opacity .15s,transform .15s;align-self:flex-start;
text-decoration:none!important;
}
.grid-banner-cta:hover{opacity:.9;transform:scale(1.03)}
.grid-banner-cta svg{flex-shrink:0}
@media(min-width:900px){
.grid-banner{min-height:180px}
.grid-banner-title{font-size:22px}
.grid-banner-sub{font-size:13px}
}
@media(max-width:480px){
.grid-banner{min-height:130px;grid-column:span 2}
.grid-banner-title{font-size:15px}
.grid-banner-body{padding:14px 14px}
}
.card-body{padding:10px 12px 14px}
.card-brand{font-size:10px;font-weight:700;color:var(–text);text-transform:uppercase;letter-spacing:.06em;margin-bottom:2px}
.card-name{font-size:12px;font-weight:400;line-height:1.35;color:var(–text);margin-bottom:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-sku{font-size:10px;color:var(–muted);margin-bottom:5px;display:inline-block;text-decoration:none;cursor:pointer}
.card-sku:hover{text-decoration:underline;color:var(–brand)}
.card-installment{font-size:10px;color:var(–muted);margin-bottom:5px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-shopwith{font-size:10px;color:var(–muted)}
.price-current{font-size:17px;font-weight:800;color:var(–text);line-height:1.15;letter-spacing:-.2px}
.card-pricing{display:flex!important;flex-direction:column;gap:2px}
.card-pricing-row{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}
.card-pricing-was{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.card-pricing-now{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.price-label{font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(–muted);min-width:24px}
.price-label.now{color:var(–brand)}
.price-original{font-size:12px;color:var(–muted);text-decoration:line-through;text-decoration-thickness:1.3px;font-weight:500;opacity:.85}
.price-off,.wl-price-off{font-size:10px;font-weight:700;color:#7a5a10;background:#fdf1da;border-radius:5px;padding:2px 6px;white-space:nowrap}
.price-off.style-percent,.wl-price-off.style-percent{background:#222;color:#fff}
.price-off.style-flat,.wl-price-off.style-flat{background:var(–brand);color:#fff}
.campaign-countdown{display:inline-flex;align-items:center;gap:3px;font-size:9.5px;font-weight:700;color:#b3410a;background:#ffe9d9;border-radius:5px;padding:2px 6px;margin-top:4px;white-space:nowrap}
/* ── Abenson-style image overlay discount badge ── */
.disc-overlay{position:absolute;top:8px;left:8px;z-index:3;background:#e63946;color:#fff;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:38px;padding:4px 6px;line-height:1;box-shadow:0 2px 6px rgba(230,57,70,.35);pointer-events:none}
.disc-overlay-pct{font-size:14px;font-weight:800;letter-spacing:-.5px}
.disc-overlay-off{font-size:8px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin-top:1px;opacity:.9}
.disc-overlay.style-flat{flex-direction:row;gap:2px;padding:5px 7px}
.disc-overlay.style-flat .disc-overlay-pct{font-size:11px;font-weight:800;letter-spacing:0}
.disc-overlay.style-flat .disc-overlay-off{font-size:11px;font-weight:800;margin-top:0;opacity:1}
.new-arrival-toggle-wrap{padding:10px 14px 12px}
.new-arrival-toggle{
display:flex;align-items:center;gap:10px;
padding:9px 12px;border-radius:8px;cursor:pointer;
background:var(–surface2);border:1.5px solid var(–border);
transition:all .18s;width:100%;text-align:left;font-family:inherit;
}
.new-arrival-toggle:hover{border-color:var(–brand);background:#eff6ff}
.new-arrival-toggle.active{background:#ecfdf5;border-color:#059669;color:#059669}
.new-arrival-toggle .na-icon{font-size:15px;flex-shrink:0}
.new-arrival-toggle .na-label{font-size:12px;font-weight:700;flex:1}
.new-arrival-toggle .na-badge{font-size:10px;font-weight:700;padding:2px 7px;border-radius:10px;background:#059669;color:#fff;flex-shrink:0}
.new-arrival-toggle:not(.active) .na-badge{display:none}
.sheet-new-arrival-wrap{padding:0 0 8px}
.sheet-new-arrival-btn{
display:flex;align-items:center;gap:8px;width:100%;
padding:10px 14px;background:var(–surface2);
border:1.5px solid var(–border);border-radius:8px;
cursor:pointer;font-family:inherit;text-align:left;transition:all .18s;
}
.sheet-new-arrival-btn:hover{border-color:var(–brand)}
.sheet-new-arrival-btn.active{background:#ecfdf5;border-color:#059669;color:#059669}
.sheet-new-arrival-btn .na-label{font-size:12px;font-weight:700;flex:1}
.sheet-new-arrival-btn .na-badge{font-size:10px;font-weight:700;padding:2px 7px;border-radius:10px;background:#059669;color:#fff;flex-shrink:0}
.sheet-new-arrival-btn:not(.active) .na-badge{display:none}
.no-results{grid-column:1/-1;text-align:center;padding:60px 20px;color:var(–muted);font-size:14px}
.no-results strong{display:block;font-size:18px;color:var(–text);margin-bottom:6px}
.api-error{grid-column:1/-1;text-align:center;padding:56px 24px;border-radius:var(–radius);background:#fff;border:1px solid var(–border)}
.api-error-icon{font-size:48px;margin-bottom:16px;line-height:1}
.api-error strong{display:block;font-size:18px;font-weight:700;color:var(–text);margin-bottom:8px}
.api-error p{font-size:13px;color:var(–muted);margin:0 auto;max-width:320px;line-height:1.6}
.api-error small{display:block;margin-top:6px;color:#bbb;font-size:11px}
.retry-btn{margin-top:12px;padding:8px 20px;background:var(–brand);color:#fff;border:none;border-radius:6px;font-size:13px;cursor:pointer;font-family:inherit}
.retry-btn:hover{background:var(–brand-hover)}
/* ── AI Enabled badge overlay on card image ── */
.card-ai-badge{
position:absolute;
top:6px;left:6px;
width:32px;height:32px;
z-index:3;
pointer-events:none;
}
.card-ai-badge img{
width:32px;height:32px;
object-fit:contain;
display:block;
}
.card-right-icon-badge{
position:absolute;
top:44px;right:6px;
width:32px;height:32px;
z-index:3;
pointer-events:none;
}
.card-right-icon-badge img{
width:32px;height:32px;
object-fit:contain;
display:block;
}
.load-more-wrap{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:28px}.load-more-btn{padding:11px 36px;background:var(–white);border:1.5px solid var(–border);border-radius:30px;font-size:14px;font-weight:600;color:var(–text);cursor:pointer;font-family:inherit;transition:all .18s;min-width:180px}.load-more-btn:hover{border-color:var(–brand);color:var(–brand)}.load-more-btn:disabled{opacity:.4;cursor:not-allowed}.load-more-info{font-size:12px;color:var(–muted)}
/* ── Default BG skeleton ── */
.default-bg-skeleton{
width:100%;display:block;
background:linear-gradient(90deg,#e8eaf0 25%,#f0f2f7 50%,#e8eaf0 75%);
background-size:600px 100%;
animation:shimmer 1.4s infinite linear;
}
.default-bg-video{width:100%;display:block;object-fit:cover}
.default-bg-img{width:100%;display:block;object-fit:cover}
/* ── Per-category banner skeleton (shown briefly while switching categories) ── */
.category-banner-skeleton{
position:absolute;inset:0;z-index:50;
background:linear-gradient(90deg,#e8eaf0 25%,#f0f2f7 50%,#e8eaf0 75%);
background-size:600px 100%;
animation:shimmer 1.4s infinite linear;
display:none;
}
.category-banner-skeleton.active{display:block}
@keyframes shimmer{0%{background-position:-600px 0}100%{background-position:600px 0}}
.skeleton{background:linear-gradient(90deg,#e8eaf0 25%,#f0f2f7 50%,#e8eaf0 75%);background-size:600px 100%;animation:shimmer 1.4s infinite linear;border-radius:6px}
.atc-skel-wrap{display:flex;flex-direction:column;gap:10px;padding-top:4px}
.atc-skel-row{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.atc-skel-label{height:10px;display:block;margin-top:6px}
.atc-skel-options{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.skeleton-card{background:var(–white);border-radius:var(–radius);border:1px solid var(–border);overflow:hidden}
.skeleton-img{width:100%;aspect-ratio:1/1}
.skeleton-body{padding:10px 12px 14px;display:flex;flex-direction:column;gap:8px}
.skeleton-brand{height:10px;width:40%}
.skeleton-name1{height:12px;width:90%}
.skeleton-name2{height:12px;width:65%}
.skeleton-price{height:15px;width:45%;margin-top:2px}
.mobile-filter-btn{display:none;width:100%;margin-bottom:14px;padding:11px 16px;background:var(–white);border:1px solid var(–border);border-radius:var(–radius);font-size:13px;font-weight:600;color:var(–text);cursor:pointer;font-family:inherit;text-align:left;justify-content:space-between;align-items:center}
.mobile-filter-btn .filter-cnt{background:var(–brand);color:#fff;font-size:11px;border-radius:20px;padding:2px 8px;margin-left:6px;display:none}
.mobile-filter-btn .filter-cnt.show{display:inline}
.sheet-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:999;transition:opacity .3s ease}
.sheet-overlay.visible{display:block}
.filter-sheet{position:fixed;bottom:0;left:0;right:0;z-index:1000;background:var(–white);border-radius:16px 16px 0 0;max-height:72vh;display:flex;flex-direction:column;transform:translateY(100%);transition:transform .35s cubic-bezier(.32,.72,0,1);box-shadow:0 -4px 30px rgba(0,0,0,.15)}
.filter-sheet.open{transform:translateY(0)}
.sheet-drag-handle{width:28px;height:3px;background:var(–border);border-radius:2px;margin:8px auto 0;flex-shrink:0}
.sheet-header{padding:8px 14px 10px;font-weight:700;font-size:13px;color:var(–text);border-bottom:1px solid var(–border);display:flex;align-items:center;justify-content:space-between;flex-shrink:0}
.sheet-close-btn{background:none;border:none;font-size:18px;color:var(–muted);cursor:pointer;line-height:1;padding:0 4px}
.sheet-body{overflow-y:auto;flex:1;-webkit-overflow-scrolling:touch;font-size:12px}
.sheet-footer{padding:10px 14px;border-top:1px solid var(–border);flex-shrink:0}
.sheet-show-btn{width:100%;padding:11px;background:var(–brand);color:#fff;border:none;border-radius:24px;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit;transition:background var(–transition)}
.sheet-show-btn:hover{background:var(–brand-hover)}
/* ── Sheet section label ── */
.sheet-section-label{
font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
color:var(–muted);padding:14px 16px 6px;
}
/* ── Sheet category tabs ── */
.sheet-cat-tabs{
display:flex;overflow-x:auto;overflow-y:hidden;
-webkit-overflow-scrolling:touch;scrollbar-width:none;
padding:0 10px 0;border-bottom:1px solid var(–border);
gap:0;
}
.sheet-cat-tabs::-webkit-scrollbar{display:none}
.sheet-cat-tab{
display:inline-flex;align-items:center;justify-content:center;
flex-shrink:0;padding:9px 14px;
border:none;border-bottom:2.5px solid transparent;
background:transparent;color:var(–muted);
font-size:12px;font-weight:500;cursor:pointer;
white-space:nowrap;font-family:inherit;outline:none;
transition:color .15s,border-color .15s;
}
.sheet-cat-tab:hover{color:var(–text)}
.sheet-cat-tab.active{color:var(–text);font-weight:700;border-bottom-color:var(–text)}
/* ── Sheet brand tabs ── */
.sheet-brand-tabs{
display:flex;overflow-x:auto;overflow-y:hidden;
-webkit-overflow-scrolling:touch;scrollbar-width:none;
padding:8px 10px;gap:6px;
border-bottom:1px solid var(–border);
}
.sheet-brand-tabs::-webkit-scrollbar{display:none}
.sheet-brand-chip{
display:inline-flex;align-items:center;flex-shrink:0;
padding:5px 14px;border-radius:20px;
border:1.5px solid var(–border);
background:var(–white);color:var(–text);
font-size:11px;font-weight:600;cursor:pointer;
font-family:inherit;white-space:nowrap;
transition:all .15s;
}
.sheet-brand-chip:hover{border-color:var(–brand);color:var(–brand)}
.sheet-brand-chip.active{background:var(–brand);color:#fff;border-color:var(–brand)}
/* ── Sheet price presets ── */
.sheet-price-wrap{padding:10px 16px 14px}
.sheet-price-quick-label{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(–muted);margin-bottom:6px}
.sheet-price-presets{display:flex;flex-direction:column;gap:2px;margin-bottom:14px}
.sheet-preset-item{
display:flex;align-items:center;gap:10px;
padding:8px 10px;border-radius:7px;cursor:pointer;
transition:background .12s;
}
.sheet-preset-item:hover{background:#f5f7fa}
.sheet-preset-item input[type=checkbox]{
width:16px;height:16px;accent-color:var(–brand);
flex-shrink:0;cursor:pointer;
}
.sheet-preset-item label{font-size:12.5px;color:var(–text);cursor:pointer;flex:1}
.sheet-price-divider{
display:flex;align-items:center;gap:8px;margin-bottom:12px;
font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(–muted);
}
.sheet-price-divider::before,.sheet-price-divider::after{content:”;flex:1;height:1px;background:var(–border)}
.sheet-price-actions{display:flex;gap:8px;margin-top:14px}
.sheet-price-apply-btn{flex:1;padding:11px;background:#111;color:#fff;border:none;border-radius:24px;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit;transition:background .15s}
.sheet-price-apply-btn:hover{background:#333}
.sheet-price-clear-btn{padding:11px 20px;background:transparent;color:var(–text);border:1.5px solid var(–border);border-radius:24px;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;transition:border-color .15s,color .15s}
.sheet-price-clear-btn:hover{border-color:var(–accent);color:var(–accent)}
@media(min-width:769px){
.filter-sheet{bottom:auto;left:50%;right:auto;top:50%;transform:translate(-50%,-50%) scale(.96);width:420px;max-height:85vh;border-radius:16px;opacity:0;pointer-events:none;transition:transform .25s cubic-bezier(.32,.72,0,1),opacity .2s ease}
.filter-sheet.open{transform:translate(-50%,-50%) scale(1);opacity:1;pointer-events:auto}
.sheet-drag-handle{display:none}
.filter-sidebar{display:block!important}
.mobile-filter-btn{display:none!important}
}
@media(min-width:1025px){
.product-grid{grid-template-columns:repeat(6,1fr)!important;gap:12px}
/* Sub-menu chip row (Sharp/Samsung/Xiaomi/…) — same adaptive wrap as the
brand row above it: 1 line when few items, wraps to 2+ lines when many.
Desktop only — tablet (769–1024px) and mobile keep the existing
horizontal-scroll behavior untouched. */
.brand-tabbar-row.row-series{
flex-wrap:wrap;
overflow:visible;
}
}
@media(min-width:769px) and (max-width:1024px){
:root{–sidebar-w:200px}
.shop-layout{padding:16px 12px;gap:14px}
.filter-sidebar{width:var(–sidebar-w);min-width:var(–sidebar-w)}
.shop-main{flex:1;min-width:0;width:100%}
.product-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))!important;gap:12px}
.section-body.two-col{grid-template-columns:1fr 1fr!important}
.filter-item span{font-size:11.5px}
.section-toggle{font-size:12.5px;padding:10px 14px}
.mxm-cg-flexwrap{ margin:0 12px; } /* matches .shop-layout tablet side margin (16px 12px) */
}
@media(max-width:768px){
.shop-layout{flex-direction:column!important;gap:8px;padding:10px 8px;width:100%}
.filter-sidebar{display:none!important}
.mobile-filter-btn{display:flex!important;width:100%}
.shop-main{width:100%;min-width:0;flex:1}
.product-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))!important;gap:8px;width:100%}
.section-body.two-col{grid-template-columns:1fr 1fr 1fr!important}
.filter-sheet .section-toggle{padding:10px 14px;font-size:12px}
.filter-sheet .section-body{padding:4px 14px 10px}
.filter-sheet .filter-item span{font-size:11px}
.filter-sheet .filter-item{padding:3px 2px}
.filter-sheet .sidebar-header{padding:10px 14px;font-size:10px}
}
.confirm-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:1100;align-items:center;justify-content:center;padding:20px}
.confirm-overlay.visible{display:flex!important}
.confirm-modal{background:var(–white);border-radius:16px;padding:28px 24px 24px;max-width:340px;width:100%;box-shadow:0 20px 60px rgba(0,0,0,.2);text-align:center;animation:popIn .22s cubic-bezier(.34,1.56,.64,1)}
@keyframes popIn{from{opacity:0;transform:scale(.88)}to{opacity:1;transform:scale(1)}}
.confirm-icon{font-size:36px;margin-bottom:12px;line-height:1}
.confirm-title{font-size:16px;font-weight:700;color:var(–text);margin-bottom:8px}
.confirm-msg{font-size:13px;color:var(–muted);line-height:1.55;margin-bottom:22px}
.confirm-actions{display:flex;gap:10px}
.confirm-btn{flex:1;padding:11px 10px;border:none;border-radius:10px;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;transition:all .15s}
.confirm-no{background:var(–bg);color:var(–text);border:1px solid var(–border)}
.confirm-no:hover{background:var(–border)}
.confirm-yes{background:var(–accent);color:#fff}
.confirm-yes:hover{background:#c0303c}
/* ══════════════════════════════════════
QUICK VIEW — card trigger + sidebar
══════════════════════════════════════ */
.qv-trigger{
position:absolute;bottom:0;left:0;right:0;
background:rgba(0,0,0,.72);
color:#fff;
font-size:11px;font-weight:600;letter-spacing:.04em;
text-align:center;padding:7px 10px;
opacity:0;transform:translateY(4px);
transition:opacity .18s ease,transform .18s ease;
pointer-events:none;
z-index:4;cursor:pointer;
border:none;width:100%;font-family:inherit;
}
.product-card:hover .qv-trigger{opacity:1;transform:translateY(0);pointer-events:auto}
/* ══════════════════════════════════════
WISHLIST — heart button on card + panel
══════════════════════════════════════ */
.wl-heart-btn{
position:absolute;bottom:10px;right:10px;
width:30px;height:30px;border-radius:50%;
background:#fff;
border:1.5px solid var(–wl-color-border);
cursor:pointer;
display:flex;align-items:center;justify-content:center;
font-size:16px;line-height:1;
opacity:0;transform:scale(.85);
transition:opacity .18s ease,transform .18s ease,background .15s,border-color .15s;
pointer-events:none;z-index:5;
box-shadow:0 1px 4px rgba(0,0,0,.1);
}
.product-card:hover .wl-heart-btn{opacity:1;transform:scale(1);pointer-events:auto}
.wl-heart-btn.wishlisted{opacity:1;transform:scale(1);pointer-events:auto;background:var(–wl-color-light);border-color:var(–wl-color)}
.wl-heart-btn svg{pointer-events:none}
.wl-heart-btn.wishlisted svg path{fill:var(–wl-color);stroke:var(–wl-color)}
/* Wishlist FAB counter bubble */
.wl-fab{
position:fixed;bottom:80px;right:18px;
height:40px;border-radius:20px;
padding:0 14px 0 10px;
background:var(–wl-color);color:#fff;
border:none;cursor:pointer;
display:none;align-items:center;justify-content:center;
gap:6px;
font-size:13px;font-weight:700;letter-spacing:.01em;
z-index:1100;
box-shadow:0 3px 12px rgba(0,0,0,.28);
transition:transform .15s,box-shadow .15s;
white-space:nowrap;
}
.wl-fab:hover{transform:translateY(-1px);box-shadow:0 5px 16px rgba(0,0,0,.32)}
.wl-fab .wl-fab-icon{font-size:16px;line-height:1}
.wl-fab .wl-fab-label{font-size:13px;font-weight:700}
.wl-fab .wl-fab-count{
background:rgba(255,255,255,.25);color:#fff;
font-size:11px;font-weight:800;
min-width:18px;height:18px;border-radius:9px;
padding:0 4px;
display:flex;align-items:center;justify-content:center;
}
/* Wishlist panel (mirrors qv-panel) */
.wl-overlay{
display:none;position:fixed;inset:0;
background:rgba(0,0,0,.45);z-index:1200;
transition:opacity .25s ease;opacity:0;
}
.wl-overlay.open{display:block;opacity:1}
.wl-panel{
position:fixed;top:0;right:0;bottom:0;
width:min(420px,100vw);
background:#fff;z-index:1201;
display:flex;flex-direction:column;
transform:translateX(100%);
transition:transform .28s cubic-bezier(.4,0,.2,1);
box-shadow:-4px 0 24px rgba(0,0,0,.12);
}
.wl-panel.open{transform:translateX(0)}
.wl-panel-head{
display:flex;align-items:center;justify-content:space-between;
padding:15px 18px;border-bottom:1px solid #eee;
font-weight:700;font-size:15px;flex-shrink:0;
}
.wl-panel-head .wl-panel-title{display:flex;align-items:center;gap:8px}
.wl-close{background:none;border:none;cursor:pointer;font-size:18px;color:#888;padding:4px}
.wl-close:hover{color:#333}
.wl-body{flex:1;overflow-y:auto;padding:12px 16px;display:flex;flex-direction:column;gap:10px}
.wl-empty{
flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
color:#aaa;font-size:14px;gap:10px;padding:40px 20px;text-align:center;
}
.wl-empty svg{opacity:.35}
.wl-item{
display:flex;gap:12px;align-items:flex-start;
padding:10px;border:1px solid #eee;border-radius:10px;
position:relative;background:#fafafa;
}
.wl-item-img{
width:64px;height:64px;object-fit:contain;border-radius:8px;
background:#f4f4f4;flex-shrink:0;
}
.wl-item-img-placeholder{
width:64px;height:64px;border-radius:8px;
background:#eee;display:flex;align-items:center;justify-content:center;
color:#bbb;font-size:10px;flex-shrink:0;
}
.wl-item-info{flex:1;min-width:0}
.wl-item-brand{font-size:11px;color:#888;font-weight:600;text-transform:uppercase;letter-spacing:.03em}
.wl-item-name{font-size:13px;font-weight:600;color:#222;line-height:1.35;margin:2px 0 5px}
.wl-item-price{font-size:14px;font-weight:700;color:var(–wl-color)}
.wl-item-price-orig{font-size:11px;color:#aaa;text-decoration:line-through;margin-left:5px}
.wl-item-actions{display:flex;gap:6px;margin-top:8px}
.wl-btn-buy{
flex:1;background:var(–wl-color);color:#fff;border:none;
border-radius:6px;padding:6px 10px;font-size:12px;font-weight:600;
cursor:pointer;text-align:center;text-decoration:none;display:block;
}
.wl-btn-buy:hover{background:var(–wl-color);opacity:.85;color:#fff}
.wl-btn-qv{
background:#f2f2f2;color:#444;border:none;
border-radius:6px;padding:6px 10px;font-size:12px;font-weight:600;cursor:pointer;
}
.wl-btn-qv:hover{background:#e0e0e0}
.wl-item-remove{
position:absolute;top:6px;right:6px;
background:none;border:none;cursor:pointer;
color:#ccc;font-size:15px;line-height:1;padding:2px;
}
.wl-item-remove:hover{color:var(–wl-color)}
.wl-footer{
padding:12px 16px;border-top:1px solid #eee;
display:flex;gap:8px;flex-shrink:0;
}
.wl-clear-btn{
flex:1;background:#f2f2f2;color:#888;border:none;
border-radius:8px;padding:10px;font-size:13px;font-weight:600;cursor:pointer;
}
.wl-clear-btn:hover{background:var(–wl-color-mid);color:var(–wl-color)}
.wl-share-btn{
background:var(–wl-color);color:#fff;border:none;
border-radius:8px;padding:10px 16px;font-size:13px;font-weight:600;cursor:pointer;
display:flex;align-items:center;gap:6px;
}
.wl-share-btn:hover{background:var(–wl-color);opacity:.85}
/* Overlay */
.qv-overlay{
display:none;position:fixed;inset:0;
background:rgba(0,0,0,.45);z-index:2147483646;
transition:opacity .25s ease;opacity:0;
}
.qv-overlay.open{display:block!important;opacity:1!important; z-index: 999998;}
/* Sidebar panel */
.mxm-qv-panel{
position:fixed;top:var(–qv-panel-margin-top,0);right:0;bottom:var(–qv-panel-margin-bottom,0);
width:var(–qv-panel-w,360px);max-width:100vw;
background:var(–white);
z-index:var(–qv-panel-z,2147483647);
box-shadow:-4px 0 30px rgba(0,0,0,.18);
display:flex;flex-direction:column;
transform:translateX(100%);
transition:transform .3s cubic-bezier(.32,.72,0,1);
overflow:hidden;
}
.mxm-qv-panel.open{transform:translateX(0)}
/* ══════════════════════════════════════
QUICK PANEL — NEW STYLE 1 (glass + card morph)
Only applies when admin “Quick Panel Style” = New Style 1
(panel gets .qv-s1, overlay gets .qv-s1-ov). Default style untouched.
══════════════════════════════════════ */
@keyframes s1Ambient{ 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(25px,-35px) scale(1.1)} }
.qv-overlay.qv-s1-ov{ background:rgba(255,255,255,.55); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); overflow:hidden; }
.qv-overlay.qv-s1-ov::before, .qv-overlay.qv-s1-ov::after{
content:”; position:absolute; border-radius:50%; filter:blur(48px); pointer-events:none;
animation:s1Ambient 10s infinite ease-in-out;
}
.qv-overlay.qv-s1-ov::before{ width:320px; height:320px; background:rgba(252,211,77,.8); left:calc(50% – 200px); top:calc(50% – 240px); }
.qv-overlay.qv-s1-ov::after{ width:300px; height:300px; background:rgba(253,224,71,.8); left:calc(50% – 40px); top:calc(50% + 10px); animation-delay:2s; }
.mxm-qv-panel.qv-s1{
–s1-w:min(calc(100vw – 32px), calc((100vh – 32px) * 14 / 19));
–s1-h:calc(var(–s1-w) * 19 / 14);
position:fixed;
left:calc(50vw – var(–s1-w) / 2); top:calc(50vh – var(–s1-h) / 2);
right:auto !important; bottom:auto;
width:var(–s1-w); height:var(–s1-h); max-width:none;
padding:22px 20px 18px; border-radius:3rem;
background:rgba(255,255,255,.45);
backdrop-filter:blur(28px); -webkit-backdrop-filter:blur(28px);
box-shadow:0 25px 60px -15px rgba(0,0,0,.08), 0 10px 25px -10px rgba(0,0,0,.04);
transform:none; transition:none; overflow:hidden;
font-family:’Inter’,-apple-system,sans-serif;
}
.mxm-qv-panel.qv-s1:not(.open){ visibility:hidden; pointer-events:none; }
.qv-s1 .qv-panel-head{ display:none !important; }
.qv-s1 .qv-body{ flex:1; min-height:0; padding:0; background:transparent; overflow-x:hidden; overflow-y:auto; }
.qv-s1 .qv-actions{ background:transparent; border:none; box-shadow:none; padding:12px 0 0; }
.s1-close{ display:none; }
.qv-s1 .s1-close{
display:flex; align-items:center; justify-content:center;
position:absolute; top:22px; right:20px; z-index:5; width:44px; height:44px;
border:none; border-radius:50%; cursor:pointer; font-size:17px; font-weight:800; color:#fff;
background:#ef4444;
box-shadow:0 10px 24px -6px rgba(239,68,68,.55);
transition:background .2s, transform .2s;
}
.qv-s1 .s1-close:hover{ background:#dc2626; }
.qv-s1 .s1-close:active{ transform:scale(.92); }
/* fade-out on close (morph only on open) */
.qv-overlay.open.qv-s1-fading{ opacity:0!important; transition:opacity .25s ease; }
/* Buy Now panel shown inside the glass container */
.qv-s1 .qv-body:has(.atc-back){ background:rgba(255,255,255,.88); border-radius:2rem; padding:56px 16px 8px; }
.s1-wrap{ height:100%; display:flex; flex-direction:column; }
.s1-nav{
position:relative; flex:0 0 auto; margin:0 54px 8px 0; padding:6px; border-radius:9999px;
display:flex; align-items:center; justify-content:space-between; gap:4px;
background:rgba(255,255,255,.65); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
box-shadow:0 12px 35px -8px rgba(0,0,0,.07);
}
.s1-pill{
position:absolute; top:6px; bottom:6px; left:0; width:0; border-radius:9999px; pointer-events:none;
background:#FACC15; box-shadow:0 6px 20px rgba(250,204,21,.45); transition:all .3s ease-out;
}
.s1-tab{
position:relative; z-index:1; flex:1; padding:12px 8px; border:none; border-radius:9999px; background:transparent;
display:flex; align-items:center; justify-content:center; gap:6px; cursor:pointer;
font:600 12px/1 ‘Inter’,sans-serif; letter-spacing:.05em; color:#475569; transition:all .3s;
}
.s1-tab.active{ color:#020617; font-weight:700; }
.s1-tab svg{ width:13px; height:13px; flex:0 0 auto; }
.s1-card{
flex:1; min-height:0; position:relative; margin:8px 0; padding:24px; border-radius:2rem; overflow:hidden;
display:flex; flex-direction:column;
background:rgba(255,255,255,.55); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
box-shadow:inset 0 2px 10px rgba(255,255,255,.8);
}
.s1-pane{ display:flex; flex-direction:column; justify-content:space-between; height:100%; min-height:0; opacity:1; transition:opacity .3s; }
.s1-pane.s1-fade{ opacity:0; }
.s1-pane.s1-hidden{ display:none; }
.s1-headrow{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.s1-badge{
display:inline-block; padding:4px 12px; border-radius:9999px; background:rgba(253,224,71,.8);
font:800 10px/1.4 ‘Inter’,sans-serif; letter-spacing:.05em; color:#0f172a; text-transform:uppercase;
}
.s1-title{ margin:8px 0 0; font:900 30px/1.15 ‘Inter’,sans-serif; color:#0f172a; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.s1-h2{ margin:8px 0 0; font:900 20px/1.3 ‘Inter’,sans-serif; color:#0f172a; }
.s1-sub{ margin:8px 0 0; font:500 12px/1.6 ‘Inter’,sans-serif; color:#475569; }
.s1-thumb{ flex:0 0 auto; width:84px; height:84px; border-radius:1.25rem; object-fit:contain; background:#fff; box-shadow:0 8px 24px -8px rgba(0,0,0,.15); }
.s1-qrwrap{ margin:auto 0; padding:16px 0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.s1-qrbox{
padding:16px; border-radius:1.5rem; background:#fff; border:1px solid #fef9c3;
box-shadow:0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
display:flex; flex-direction:column; align-items:center; transition:transform .3s;
}
.s1-qrbox:hover{ transform:scale(1.05); }
.s1-qrbox img{ width:144px; height:144px; display:block; }
.s1-scan{ margin-top:8px; display:flex; align-items:center; gap:4px; font:900 10px/1 ‘Inter’,sans-serif; letter-spacing:.1em; color:#1e293b; }
.s1-scan svg{ width:10px; height:10px; color:#f59e0b; }
.s1-pricerow{ display:flex; align-items:baseline; justify-content:space-between; padding:0 4px; margin-bottom:12px; }
.s1-price{ font:900 30px/1 ‘Inter’,sans-serif; color:#0f172a; }
.s1-old{ margin-left:8px; font:400 12px ‘Inter’,sans-serif; color:#94a3b8; text-decoration:line-through; }
.s1-chip{ font:700 10px/1 ‘Inter’,sans-serif; color:#0f172a; background:#fde047; padding:6px 10px; border-radius:9999px; }
.s1-btn{
width:100%; padding:14px; border:none; border-radius:1rem; cursor:pointer;
display:flex; align-items:center; justify-content:center; gap:8px;
background:#FACC15; color:#020617; box-shadow:0 8px 24px -4px rgba(250,204,21,.5);
font:900 12px/1 ‘Inter’,sans-serif; letter-spacing:.05em; text-transform:uppercase;
transition:all .3s cubic-bezier(.4,0,.2,1);
}
.s1-btn:hover{ background:#EAB308; transform:translateY(-2px); box-shadow:0 12px 28px -4px rgba(234,179,8,.6); }
.s1-btn:active{ transform:scale(.95); }
.s1-btn svg{ width:15px; height:15px; }
.s1-minirow{ display:flex; gap:8px; margin-top:10px; }
.s1-mini{
flex:1; padding:11px 8px; border:none; border-radius:1rem; cursor:pointer;
display:flex; align-items:center; justify-content:center; gap:6px;
background:rgba(255,255,255,.7); color:#0f172a; box-shadow:0 6px 18px -8px rgba(0,0,0,.12);
font:700 11px/1 ‘Inter’,sans-serif; letter-spacing:.03em;
}
.s1-mini svg{ width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2; }
.s1-mini.in-wl{ color:var(–wl-color,#e63946); }
.s1-scroll{ flex:1; min-height:0; overflow-y:auto; margin:12px 0; }
.s1-dlabel{ margin:12px 0 6px; font:700 11px/1 ‘Inter’,sans-serif; letter-spacing:.06em; text-transform:uppercase; color:#64748b; }
.s1-drow{ padding:12px; border-radius:1rem; background:rgba(255,255,255,.6); font:500 12px/1.6 ‘Inter’,sans-serif; color:#0f172a; }
.qv-panel-head{
display:flex;align-items:center;justify-content:space-between;
padding:14px 16px;
border-bottom:1px solid var(–border);
flex-shrink:0;
}
.qv-panel-head span{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(–muted)}
.qv-close{background:none;border:none;cursor:pointer;color:var(–muted);font-size:20px;line-height:1;padding:0 4px;transition:color .15s}
.qv-close:hover{color:var(–text)}
/* Quick View promo banner — admin-toggleable, sits above the panel head.
Default size 547×118 (matches default qvPanelWidth). Config: _adminCfg.qvPromoBanner */
.qv-promo-banner{width:100%;height:118px;flex-shrink:0;overflow:hidden;position:relative;display:none}
.qv-promo-banner.qvpb-show{display:block}
.qv-promo-banner a{display:block;width:100%;height:100%}
.qv-promo-banner img{width:100%;height:100%;object-fit:cover;display:block;user-select:none;-webkit-user-drag:none}
.qv-promo-banner .qvpb-css{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:10px 16px;box-sizing:border-box}
.qv-body{flex:1;overflow-y:auto;padding:0 0 20px;min-height:0}
.qv-body::-webkit-scrollbar{width:4px}
.qv-body::-webkit-scrollbar-thumb{background:var(–border);border-radius:4px}
/* Image area — main image + left thumbnail rail */
.qv-img-outer{
width:100%;aspect-ratio:4/4;
background:#f8f9fb;
display:flex;position:relative;overflow:hidden;
}
.qv-thumb-rail{
flex:0 0 67px;width:67px;
display:flex;flex-direction:column;align-items:center;gap:7px;
padding:10px 7px 10px 12px;
z-index:6;
}
.qv-thumb-list{
flex:1;min-height:0;width:100%;
display:flex;flex-direction:column;gap:10px;
align-items:center;
padding:3px 0;
overflow:hidden;
}
.qv-thumb-nav-btn{
flex:0 0 auto;width:36px;height:22px;
display:flex;align-items:center;justify-content:center;
background:#fff;border:1.5px solid var(–border);border-radius:6px;
cursor:pointer;color:var(–muted);padding:0;
transition:opacity .15s,border-color .15s,color .15s;
}
.qv-thumb-nav-btn svg{width:11px;height:11px;display:block;pointer-events:none}
.qv-thumb-nav-btn:hover{border-color:var(–brand);color:var(–brand)}
.qv-thumb-nav-btn:disabled{opacity:0;pointer-events:none}
.qv-thumb{
width:53px;height:53px;flex-shrink:0;
border-radius:7px;border:1.5px solid var(–border);
background:#fff;cursor:pointer;overflow:hidden;padding:0;
transition:border-color .15s;
}
.qv-thumb img{width:100%;height:100%;object-fit:contain;display:block}
.qv-thumb.active{border-color:var(–brand)}
.qv-img-wrap{
flex:1;min-width:0;
display:flex;align-items:center;justify-content:center;
padding:24px;position:relative;
overflow:hidden;
}
.qv-img-wrap img{max-width:100%;max-height:260px;object-fit:contain;user-select:none;-webkit-user-drag:none}
/* Desktop-only product image height override — config: qvImgHeightDesktop (default 350px) */
@media (min-width:1025px){
.qv-img-outer{height:var(–qv-img-h-desktop,350px);aspect-ratio:unset}
}
/* Tablet (≤768px) product image height — same fixed height as desktop */
@media (max-width:768px){
.qv-img-outer{height:var(–qv-img-h-desktop,350px);aspect-ratio:unset}
}
/* Quick View Promo Banner — responsive height on mobile & tablet, overrides
whatever height is baked from the admin’s QV Promo Banner panel.
Config: qvPromoBannerHeightMobile (default 50px) */
@media (max-width:1024px){
.qv-promo-banner{height:var(–qv-promo-h-mobile,50px) !important}
}
/* Swipeable image gallery (Quick View only) */
.qv-gallery-track{
display:flex;width:100%;height:100%;
transition:transform .28s cubic-bezier(.22,.61,.36,1);
touch-action:pan-y;
will-change:transform;
}
.qv-gallery-track.dragging{transition:none}
.qv-gallery-slide{
flex:0 0 100%;width:100%;height:100%;
display:flex;align-items:center;justify-content:center;
padding:24px;box-sizing:border-box;
}
.qv-gallery-dots{
position:absolute;bottom:10px;left:0;right:0;
display:flex;justify-content:center;gap:6px;
pointer-events:none;
}
.qv-gallery-dot{
width:6px;height:6px;border-radius:50%;
background:var(–border,#d8dade);
transition:background .15s,transform .15s;
pointer-events:auto;cursor:pointer;
}
.qv-gallery-dot.active{background:var(–text,#0a0a0a);transform:scale(1.25)}
/* Info area */
.qv-info{padding:16px 18px 0;position:relative;z-index:5}
.qv-badge-row{display:flex;gap:6px;margin-bottom:8px;flex-wrap:wrap}
.qv-badge{font-size:10px;font-weight:700;letter-spacing:.06em;padding:3px 8px;border-radius:4px;text-transform:uppercase}
.qv-badge-sale{background:#e63946;color:#fff}
.qv-badge-new{background:#059669;color:#fff}
.qv-name{font-size:25px;font-weight:700;line-height:1.3;color:var(–text);margin-bottom:6px}
.qv-brand{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(–muted);margin-bottom:10px}
.qv-price-row{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.qv-installment-check-btn{display:inline-flex;align-items:center;gap:6px;margin:-8px 0 14px 2px;padding:0;background:none;border:none;color:var(–brand);font-size:12px;font-weight:700;cursor:pointer;font-family:inherit;text-decoration:underline;text-underline-offset:2px}
.qv-installment-check-btn:hover{color:var(–brand-hover)}
.qv-price{font-size:20px;font-weight:700;color:var(–brand)}
.qv-price-original{font-size:13px;color:var(–muted);text-decoration:line-through}
.qv-price-off{font-size:11px;font-weight:700;color:#fff;background:#222;border-radius:6px;padding:3px 8px;white-space:nowrap}
.qv-price-off.style-flat{background:var(–brand)}
.qv-campaign-countdown{margin-top:0;margin-left:2px}
.qv-installment{font-size:11px;color:var(–muted);line-height:1.5;margin-bottom:14px;padding:8px 10px;background:#f8f9fb;border-radius:6px;border-left:3px solid var(–border)}
.qv-payment-carousel{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;padding:4px 2px 14px;margin-bottom:2px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.qv-payment-carousel::-webkit-scrollbar{height:5px}
.qv-payment-carousel::-webkit-scrollbar-thumb{background:rgba(0,0,0,.15);border-radius:3px}
.qv-pay-card{flex:0 0 auto;scroll-snap-align:start;width:88px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px 8px;border-radius:14px;background:rgba(255,255,255,.55);backdrop-filter:blur(14px) saturate(160%);-webkit-backdrop-filter:blur(14px) saturate(160%);border:1px solid rgba(255,255,255,.6);box-shadow:0 4px 16px rgba(20,20,40,.08),inset 0 1px 0 rgba(255,255,255,.6);transition:transform .15s ease,box-shadow .15s ease}
.qv-pay-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(20,20,40,.12),inset 0 1px 0 rgba(255,255,255,.6)}
.qv-pay-icon{width:26px;height:26px;display:flex;align-items:center;justify-content:center;color:#F5B700}
.qv-pay-icon svg{width:100%;height:100%;stroke:#F5B700}
.qv-pay-icon img{width:100%;height:100%;object-fit:contain}
.qv-pay-label{font-size:10.5px;font-weight:600;color:#333;text-align:center;line-height:1.25;letter-spacing:.01em}
@media (max-width:480px){.qv-pay-card{width:76px;padding:10px 6px}.qv-pay-icon{width:22px;height:22px}.qv-pay-label{font-size:10px}}
.qv-divider{height:1px;background:var(–border);margin:14px 0}
.qv-spec-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(–muted);margin-bottom:8px}
/* Product description block */
.qv-desc{
font-size:12px;line-height:1.65;color:var(–text);
max-height:none;
word-wrap:break-word;
}
.qv-desc p{margin:0 0 10px}
.qv-desc p:last-child{margin-bottom:0}
.qv-desc ul,.qv-desc ol{margin:0 0 10px 18px;padding:0}
.qv-desc li{margin-bottom:4px}
.qv-desc strong,.qv-desc b{color:var(–text)}
.qv-desc a{color:var(–brand);text-decoration:underline}
.qv-desc img{max-width:100%;border-radius:6px;margin:8px 0}
.qv-desc table{width:100%;border-collapse:collapse;font-size:11px;margin:8px 0}
.qv-desc table td,.qv-desc table th{border:1px solid var(–border);padding:4px 6px}
.qv-desc h1,.qv-desc h2,.qv-desc h3,.qv-desc h4{font-size:13px;font-weight:700;margin:10px 0 6px;color:var(–text)}
.qv-desc h1:first-child,.qv-desc h2:first-child,.qv-desc h3:first-child{margin-top:0}
/* Description: no clamp/expand button, no slide-up drawer, no internal scroll —
panel simply grows with content and the whole qv-body scrolls instead */
.qv-desc-scroll{
border:1px solid var(–border);
border-radius:8px;
padding:12px;
background:var(–white);
}
/* CTA buttons */
.qv-actions{padding:12px 18px 16px;display:flex;flex-direction:column;gap:8px;flex-shrink:0;border-top:1px solid var(–border);background:var(–white)}
.qv-actions-row{display:flex;gap:8px}
.qv-actions-row .qv-btn-buy,.qv-actions-row .qv-btn-cart{flex:1}
.qv-btn-cart{
width:100%;padding:13px;
background:var(–white);color:var(–brand);
border:1.5px solid var(–brand);border-radius:8px;
font-size:13px;font-weight:700;
cursor:pointer;font-family:inherit;
transition:background .15s,color .15s;
text-decoration:none;display:block;text-align:center;
}
.qv-btn-cart:hover{background:var(–brand);color:#fff}
/* ── Quick View action row (gemini-code button set) ── */
.qvg-row{
display:grid;
grid-template-columns:auto auto 1fr 1fr;
gap:10px;
align-items:center;
}
.qvg-btn{
height:48px;
border-radius:10px;
border:1px solid var(–border);
background-color:var(–white);
color:var(–text);
font-family:inherit;
font-size:13px;
font-weight:600;
cursor:pointer;
display:inline-flex;
align-items:center;
justify-content:center;
text-decoration:none;
white-space:nowrap;
overflow:hidden;
transition:all .25s cubic-bezier(.4,0,.2,1);
}
.qvg-btn svg{width:20px;height:20px;flex-shrink:0;fill:currentColor}
.qvg-btn-expandable{
padding:0 14px;width:48px;
background-color:var(–bg);
color:var(–text);
border-color:transparent;
}
.qvg-btn-expandable .qvg-text{
max-width:0;opacity:0;margin-left:0;
transition:max-width .3s ease,opacity .2s ease,margin-left .2s ease;
}
.qvg-btn-expandable:hover{
width:auto;padding:0 16px;
background-color:var(–white);
border-color:var(–border);
box-shadow:0 2px 8px rgba(0,0,0,.05);
}
.qvg-btn-expandable:hover .qvg-text{max-width:140px;opacity:1;margin-left:8px}
.qvg-btn-wishlist:hover svg{fill:#e53935}
.qvg-btn-wishlist.in-wl svg{fill:#e53935}
.qvg-btn-buy{
background-color:var(–brand);
color:#fff;border:none;font-weight:700;
}
.qvg-btn-buy:hover{background-color:var(–brand-hover);color:#fff}
.qvg-btn-details{
background-color:var(–white);
color:var(–muted);
border-color:var(–border);
}
.qvg-btn-details:hover{color:var(–text);border-color:var(–muted);background-color:var(–bg)}
.qvg-btn:active{transform:scale(.97)}
/* ── Add to Cart sub-panel ── */
.atc-back{
display:flex;align-items:center;gap:6px;
padding:0 18px 4px;margin-top:14px;
background:none;border:none;cursor:pointer;
font-size:12px;font-weight:600;color:var(–muted);
font-family:inherit;transition:color .15s;
}
.atc-back:hover{color:var(–brand)}
.atc-sku{font-size:11px;color:var(–muted);margin-bottom:6px}
.atc-section{margin-bottom:16px}
.atc-section-label{
font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;
color:var(–text);margin-bottom:8px;display:flex;align-items:center;gap:6px;
}
.atc-section-label .atc-selected-val{
font-weight:500;text-transform:none;letter-spacing:0;color:var(–muted);font-size:11px;
}
/* Color swatches */
.atc-swatches{display:flex;gap:8px;flex-wrap:wrap}
.atc-swatch{
width:34px;height:34px;border-radius:50%;
border:2px solid var(–border);cursor:pointer;
position:relative;flex-shrink:0;
background-size:cover;background-position:center;
transition:border-color .15s,transform .1s;
}
.atc-swatch:hover{transform:scale(1.06)}
.atc-swatch.active{border-color:var(–brand);box-shadow:0 0 0 2px #fff inset}
.atc-swatch.unavailable{opacity:.35;cursor:not-allowed}
.atc-swatch-label{
display:flex;flex-direction:column;align-items:center;gap:4px;
}
.atc-swatch-name{font-size:9px;color:var(–muted);text-align:center;max-width:50px;line-height:1.2}
/* Generic option pills (storage, etc) */
.atc-pills{display:flex;gap:8px;flex-wrap:wrap}
.atc-pill{
padding:8px 16px;border-radius:8px;
border:1.5px solid var(–border);background:var(–white);
font-size:12px;font-weight:600;color:var(–text);
cursor:pointer;font-family:inherit;
transition:all .15s;white-space:nowrap;
}
.atc-pill:hover{border-color:var(–brand)}
.atc-pill.active{border-color:var(–brand);background:#eff6ff;color:var(–brand)}
.atc-pill.unavailable{opacity:.4;cursor:not-allowed;text-decoration:line-through}
/* Quantity selector */
.atc-qty-row{display:flex;align-items:center;gap:10px}
.atc-qty-btn{
width:32px;height:32px;border-radius:6px;
border:1.5px solid var(–border);background:var(–white);
font-size:16px;font-weight:700;color:var(–text);
cursor:pointer;font-family:inherit;
display:flex;align-items:center;justify-content:center;
transition:border-color .15s;
}
.atc-qty-btn:hover{border-color:var(–brand);color:var(–brand)}
.atc-qty-val{
width:44px;text-align:center;font-size:14px;font-weight:700;
border:1.5px solid var(–border);border-radius:6px;padding:6px 4px;
font-family:inherit;color:var(–text);
}
/* PPOM / addon fields */
.atc-addon{margin-bottom:12px}
.atc-addon-label{font-size:12px;font-weight:600;color:var(–text);margin-bottom:6px;display:flex;justify-content:space-between}
.atc-addon-price{color:var(–brand);font-weight:700;font-size:11px}
.atc-addon select,.atc-addon input[type=text],.atc-addon textarea{
width:100%;padding:8px 10px;border:1.5px solid var(–border);
border-radius:7px;font-size:12px;color:var(–text);
font-family:inherit;outline:none;background:var(–white);
}
.atc-addon select:focus,.atc-addon input:focus,.atc-addon textarea:focus{border-color:var(–brand)}
.atc-addon-radio,.atc-addon-checkbox{display:flex;flex-direction:column;gap:6px}
.atc-addon-radio label,.atc-addon-checkbox label{
display:flex;align-items:center;gap:8px;font-size:12px;color:var(–text);cursor:pointer;
}
/* Stock status */
.atc-stock{font-size:11px;font-weight:700;padding:3px 8px;border-radius:4px;display:inline-block;margin-top:6px}
.atc-stock.in{background:#d1fae5;color:#065f46}
.atc-stock.out{background:#fee2e2;color:#991b1b}
/* Variation loading */
.atc-loading{
display:flex;align-items:center;justify-content:center;
padding:30px;color:var(–muted);font-size:12px;gap:8px;
}
.atc-spinner{
width:16px;height:16px;border:2px solid var(–border);
border-top-color:var(–brand);border-radius:50%;
animation:atc-spin .7s linear infinite;
}
@keyframes atc-spin{to{transform:rotate(360deg)}}
.qv-btn-buy{
width:100%;padding:13px;
background:var(–brand);color:#fff;
border:none;border-radius:8px;
font-size:13px;font-weight:700;
cursor:pointer;font-family:inherit;
transition:background .15s;
text-decoration:none;display:block;text-align:center;
}
.qv-btn-buy:hover{background:var(–brand-hover)}
.qv-btn-view{
width:100%;padding:12px;
background:var(–white);color:var(–text);
border:1.5px solid var(–border);border-radius:8px;
font-size:13px;font-weight:600;
cursor:pointer;font-family:inherit;
transition:border-color .15s,color .15s;
text-decoration:none;display:block;text-align:center;
}
.qv-btn-view:hover{border-color:var(–brand);color:var(–brand)}
/* ── Buy Now “Scan to View” QR modal ── */
.qr-modal-overlay{
display:none;position:fixed;inset:0;
background:rgba(0,0,0,.6);z-index:1000000010;
align-items:center;justify-content:center;padding:20px;
}
.qr-modal-overlay.open{display:flex}
.qr-modal{
background:#fff;border-radius:16px;padding:24px;
max-width:300px;width:100%;text-align:center;
box-shadow:0 20px 60px rgba(0,0,0,.25);
animation:popIn .22s cubic-bezier(.34,1.56,.64,1);
}
.qr-modal-title{font-size:14px;font-weight:700;color:var(–text);margin-bottom:4px}
.qr-modal-sub{font-size:11px;color:var(–muted);margin-bottom:14px}
.qr-modal img{width:220px;height:220px;border:1px solid var(–border);border-radius:10px;padding:8px;background:#fff}
.qr-modal-close{
margin-top:14px;width:100%;padding:10px;
background:var(–bg);color:var(–text);border:1px solid var(–border);
border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;
}
.qr-modal-close:hover{background:var(–border)}
/* ── Modal Highlight — “View Full Details” showcase (Apple-style) ── */
.mh-overlay{
display:none;position:fixed;inset:0;
background:rgba(0,0,0,.65);z-index:2147483000;
align-items:center;justify-content:center;padding:24px;
}
.mh-overlay.open{display:flex}
.mh-modal{
background:#fff;border-radius:20px;
width:100%;max-width:920px;max-height:88vh;
display:flex;flex-direction:column;
box-shadow:0 24px 70px rgba(0,0,0,.35);
animation:popIn .25s cubic-bezier(.34,1.56,.64,1);
overflow:hidden;position:relative;
}
.mh-close{
position:absolute;top:14px;right:14px;z-index:2;
width:32px;height:32px;border-radius:50%;
background:rgba(0,0,0,.06);border:none;cursor:pointer;
display:flex;align-items:center;justify-content:center;
color:var(–text);transition:background .15s,transform .15s;
flex-shrink:0;
}
.mh-close:hover{background:rgba(0,0,0,.12);transform:scale(1.06)}
.mh-header{padding:22px 56px 16px 28px;border-bottom:1px solid var(–border);flex-shrink:0}
.mh-brand{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(–muted);margin-bottom:4px}
.mh-title{font-size:19px;font-weight:800;color:var(–text);line-height:1.3;word-break:break-word}
.mh-body{flex:1;overflow-y:auto;overflow-x:hidden;padding:24px 28px 32px;width:100%;box-sizing:border-box}
.mh-body::-webkit-scrollbar{width:6px}
.mh-body::-webkit-scrollbar-thumb{background:var(–border);border-radius:4px}
.mh-content{font-size:13.5px;line-height:1.75;color:var(–text);max-width:100%;overflow-wrap:break-word;word-wrap:break-word}
/* Neutralize fixed pixel widths that often come baked into raw
WooCommerce short-description HTML (page-builder markup, inline
width= attributes, etc.) so the showcase never overflows/scrolls
sideways on any screen size — and (width, not just max-width) so a
narrower fixed-width wrapper (e.g. a brand’s page-builder container)
can’t leave blank space beside it either; the modal always fills edge
to edge. */
.mh-content,
.mh-content *{box-sizing:border-box}
.mh-content div,
.mh-content section,
.mh-content span,
.mh-content p,
.mh-content figure{width:100%!important;max-width:100%!important}
.mh-content img,
.mh-content video,
.mh-content iframe{
max-width:100%!important;height:auto!important;
display:block;margin:0 auto;border-radius:6px;
}
/* Rich HTML description embeds — brand “product story” pages (e.g. OPPO’s
custom description iframe) ship with no height attribute at all, so the
height:auto rule above falls back to the browser’s ~150px default.
Give any height-less iframe a tall default instead, using the modal’s
own scroll to show the whole thing (adjust –mh-story-h per-product via
an inline style on the description HTML if a particular page needs a
different height). Iframes that DO specify a height (YouTube, etc.)
are untouched. */
.mh-content iframe:not([height]){
height:var(–mh-story-h,3200px)!important;
border:0;
}
.mh-content .parent-container{width:100%;overflow:hidden;margin:0 auto}
/* Third-party async rich-content embeds (e.g. Samsung/Flixmedia loader
script) inject their own markup once that script tag actually runs —
see setModalHighlightHTML() below, which re-creates script tags so
they execute (innerHTML-inserted scripts never run natively). */
.mh-content script{display:none}
.mh-content table{
display:block;width:100%!important;max-width:100%!important;
overflow-x:auto;-webkit-overflow-scrolling:touch;
border-collapse:collapse;font-size:12.5px;
}
.mh-content table td,.mh-content table th{border:1px solid var(–border);padding:6px 8px}
.mh-content ul,.mh-content ol{margin:0 0 10px 18px;padding:0}
.mh-content a{color:var(–brand);word-break:break-word}
/* Image+text tiles — built by buildTiledDescriptionHTML() for plain
(non-embed) Short Descriptions. Single full-width column (image above
text) at every screen size — no more alternating 2-column layout. */
.mh-tiles{display:flex;flex-direction:column;gap:32px}
.mh-tile{display:grid;grid-template-columns:1fr;gap:14px;align-items:center}
.mh-tile-img img{width:100%!important;height:auto!important;border-radius:10px;display:block;margin:0}
.mh-tile-text{display:flex;flex-direction:column;justify-content:center}
.mh-tile-text h1,.mh-tile-text h2,.mh-tile-text h3,.mh-tile-text h4,.mh-tile-text h5,.mh-tile-text h6{
margin:0 0 10px;font-size:19px;font-weight:800;color:var(–text);line-height:1.25;
}
.mh-tile-text p{margin:0 0 8px;font-size:13.5px;line-height:1.7;color:var(–muted)}
.mh-tile-text p:last-child{margin-bottom:0}
.mh-tile-text ul,.mh-tile-text ol{margin:0 0 8px 18px;padding:0}
@media(max-width:640px){
.mh-tiles{gap:22px}
.mh-tile{gap:14px}
.mh-tile-text h1,.mh-tile-text h2,.mh-tile-text h3,.mh-tile-text h4,.mh-tile-text h5,.mh-tile-text h6{font-size:16px}
}
.mh-empty{padding:60px 20px;text-align:center;color:var(–muted);font-size:13px}
/* Action footer (Add to Cart / Wishlist / Buy Now) — mobile & tablet only.
Desktop keeps the modal focused on the description; those actions are
already reachable there from the Quick View panel underneath. */
.mh-footer{
display:none;
padding:16px 28px;
border-top:1px solid var(–border);
background:var(–white);
flex-shrink:0;
}
.mh-footer .qvg-row{grid-template-columns:auto auto 1fr}
@media(max-width:1024px){
.mh-footer{display:block}
}
@media(max-width:640px){
.mh-overlay{padding:0}
.mh-modal{max-width:100%;max-height:100%;height:100%;border-radius:0}
.mh-header{padding:16px 48px 14px 16px}
.mh-title{font-size:16px}
.mh-body{padding:16px}
.mh-content{font-size:13px}
.mh-footer{padding:14px 16px}
}
@media(max-width:400px){
.mh-header{padding:14px 44px 12px 14px}
.mh-body{padding:14px}
.mh-footer{padding:12px 14px}
}
/* Wishlist button inside QV actions */
.qv-btn-wl{
width:100%;padding:11px;
background:var(–wl-color-light);color:var(–wl-color);
border:1.5px solid var(–wl-color-border);border-radius:8px;
font-size:13px;font-weight:600;cursor:pointer;
display:flex;align-items:center;justify-content:center;gap:7px;
font-family:inherit;transition:background .15s,border-color .15s;
}
.qv-btn-wl:hover{background:var(–wl-color-mid);border-color:var(–wl-color)}
.qv-btn-wl.in-wl{background:var(–wl-color-mid);border-color:var(–wl-color)}
/* Heart pop animation on toggle */
@keyframes wl-heart-pop{0%{transform:scale(1)}40%{transform:scale(1.45)}70%{transform:scale(.9)}100%{transform:scale(1)}}
@keyframes wlSkel{0%{background-position:200% 0}100%{background-position:-200% 0}}
.wl-heart-btn.pop{animation:wl-heart-pop .35s ease forwards}
/* Wishlist toast */
.wl-toast{
position:fixed;bottom:28px;left:50%;transform:translateX(-50%) translateY(12px);
background:#222;color:#fff;
padding:9px 18px;border-radius:20px;
font-size:13px;font-weight:500;
opacity:0;transition:opacity .2s,transform .2s;
pointer-events:none;z-index:1500;white-space:nowrap;
}
.wl-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
/* Quick View panel width/full-screen behavior on mobile/tablet is now
admin-configurable — see QV_PANEL_WIDTH/QV_FULL_MOBILE/QV_FULL_TABLET
dynamic injection near the Quick View JS below. */
/* ══════════════════════════════════════
BRAND TAB BAR — Samsung underline style
══════════════════════════════════════ */
.brand-tabbar-wrap{
width:100%;
background:var(–white);
border:1px solid var(–border);
border-radius:var(–radius);
position:relative;
margin-bottom:16px;
overflow:visible;
}
/* Wraps onto multiple rows — all chips visible, no horizontal scroll */
.brand-tabbar{
display:flex;
flex-wrap:wrap;
align-items:stretch;
overflow:visible;
padding:0 8px;
gap:0;
}
/* Individual tab */
.brand-tab{
display:inline-flex;align-items:center;justify-content:center;
gap:7px;
flex-shrink:0;
height:48px;
padding:0 18px;
border:none;
border-bottom:2.5px solid transparent;
background:transparent;
color:var(–muted);
font-size:13px;font-weight:500;
cursor:pointer;white-space:nowrap;
font-family:inherit;outline:none;
transition:color .18s ease, border-color .18s ease;
position:relative;
}
.brand-tab:hover{color:var(–text)}
.brand-tab.active{
color:var(–text);
font-weight:700;
border-bottom-color:var(–text);
}
/* Brand logo inside tab */
.brand-tab .chip-logo{
width:22px;height:22px;
display:flex;align-items:center;justify-content:center;
flex-shrink:0;
overflow:hidden;
background:none;border-radius:0;
}
.brand-tab .chip-logo img{width:20px;height:20px;object-fit:contain;display:block;filter:grayscale(1);opacity:.55;transition:filter .18s,opacity .18s}
.brand-tab:hover .chip-logo img,
.brand-tab.active .chip-logo img{filter:grayscale(0);opacity:1}
.brand-tab .chip-initial{font-size:11px;font-weight:800;color:var(–muted)}
.brand-tab.active .chip-initial{color:var(–text)}
.brand-tab .chip-label{line-height:1}
/* “All” tab — no logo */
.brand-tab.tab-all{padding:0 20px;gap:0}
/* Bottom border divider under the whole bar */
.brand-tabbar-wrap::before{
content:”;
position:absolute;bottom:0;left:0;right:0;
height:1px;
background:var(–border);
pointer-events:none;
}
/* (Right-fade scroll hint removed — chips now wrap instead of scrolling) */
/* Skeleton loading */
.brand-tabbar-loading{display:flex;align-items:center;gap:0;padding:0 8px;height:48px}
.brand-tab-skeleton{height:14px;border-radius:4px;flex-shrink:0;margin:0 10px}
/* Toast message inside tab bar */
.brand-tab-toast{
display:none;
position:absolute;left:0;right:0;top:0;
background:var(–brand);color:#fff;
font-size:12px;font-weight:600;
text-align:center;padding:8px 16px;
animation:toastIn .18s ease,toastOut .3s ease 2.2s forwards;
z-index:10;
}
@keyframes toastIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
@keyframes toastOut{to{opacity:0;transform:translateY(-4px)}}
.brand-tab-toast.show{display:block}
/* Desktop only — hide on mobile */
@media(max-width:768px){
.brand-tabbar-wrap{display:none!important}
}
/* Mobile + tablet: hide the whole brand-pills carousel once a SPECIFIC
brand chip is picked — only stays visible while “All” (All Brands) is
the active chip. body.brand-carousel-specific-active is toggled from
refreshBrandTabBar()/buildMobileBrandTabbar() in the script below.
Desktop (>1024px) always keeps the carousel visible, regardless. */
@media(max-width:1024px){
body.brand-carousel-specific-active .brand-tabbar-wrap,
body.brand-carousel-specific-active .mobile-brand-tabbar-wrap{
display:none!important;
}
}
/* ══════════════════════════════════════
BRAND CHIP — PILL / CARD CAROUSEL SKIN
(tablet only, 769–1024px; desktop keeps the
classic underline-tab bar above. Toggled by
body.brand-chip-pill — see BRAND_CHIP_CAROUSEL_STYLE)
══════════════════════════════════════ */
@media(min-width:769px) and (max-width:1024px){
body.brand-chip-pill .brand-tabbar-wrap{
border:none;
background:transparent;
}
body.brand-chip-pill .brand-tabbar-wrap::before{ display:none }
body.brand-chip-pill .brand-tabbar-inner{
height:auto!important;
overflow:visible;
}
body.brand-chip-pill .brand-tabbar-row.row-brands{
flex-wrap:nowrap;
overflow-x:auto;
overflow-y:hidden;
scroll-snap-type:x mandatory;
scroll-behavior:smooth;
-webkit-overflow-scrolling:touch;
scrollbar-width:none;
gap:10px;
padding:4px 4px 14px;
}
body.brand-chip-pill .brand-tabbar-row.row-brands::-webkit-scrollbar{ display:none }
/* Filter-chip style unified to match .mob-cat-chip (the category grid
chip, e.g. “Mobile”) exactly — same padding/radius/border/font so
brand chips and category chips look identical on tablet. */
body.brand-chip-pill .brand-tab{
flex:0 0 auto;
scroll-snap-align:start;
display:inline-flex;align-items:center;
height:auto;
padding:6px 14px;
border-radius:20px;
background:var(–white);
border:1.5px solid var(–border);
color:var(–text);
font-size:12px;font-weight:600;
line-height:1;
transition:all .18s ease;
}
body.brand-chip-pill .brand-tab:hover{ border-color:var(–brand);color:var(–brand) }
body.brand-chip-pill .brand-tab.active{
background:var(–brand);
border-color:var(–brand);
color:#fff;
}
/* Gemini reference is a plain text pill (no logo) — hide the chip icon
for the same clean minimalist-outline look on tablet */
body.brand-chip-pill .brand-tab .chip-logo{ display:none }
body.brand-chip-pill .brand-tab.tab-all{ padding:6px 14px;gap:0 }
}
/* ══════════════════════════════════════
SAMSUNG SUB-NAV — series tabs
══════════════════════════════════════ */
.brand-tabbar-inner{
position:relative;
overflow:hidden;
height:48px;
transition:height .25s ease;
}
/* Both rows live inside .brand-tabbar-inner */
.brand-tabbar-row{
display:flex;
align-items:stretch;
overflow-x:auto;overflow-y:hidden;
scroll-behavior:smooth;
-webkit-overflow-scrolling:touch;
scrollbar-width:none;
padding:0 8px;
gap:0;
width:100%;
transition:transform .32s cubic-bezier(.4,0,.2,1), opacity .28s ease;
will-change:transform,opacity;
}
.brand-tabbar-row::-webkit-scrollbar{display:none}
/* row-brands is the default visible row — wraps onto multiple lines
instead of horizontal-scrolling, so all brand chips are visible at once */
.brand-tabbar-row.row-brands{
transform:translateX(0);
opacity:1;
flex-wrap:wrap;
overflow:visible;
}
/* row-series slides in from the right */
.brand-tabbar-row.row-series{
position:absolute;
top:0;left:0;right:0;bottom:0;
height:100%;
transform:translateX(100%);
opacity:0;
pointer-events:none;
}
/* Active state: slide brands left, series in */
.brand-tabbar-inner.show-series .row-brands{
transform:translateX(-40px);
opacity:0;
pointer-events:none;
}
.brand-tabbar-inner.show-series .row-series{
transform:translateX(0);
opacity:1;
pointer-events:auto;
position:absolute;
transition:transform .32s cubic-bezier(.4,0,.2,1), opacity .32s cubic-bezier(.4,0,.2,1);
}
/* Series tab style — same height/look as brand tabs */
.series-tab{
display:inline-flex;align-items:center;justify-content:center;
flex-shrink:0;
height:48px;
padding:0 18px;
border:none;
border-bottom:2.5px solid transparent;
background:transparent;
color:var(–muted);
font-size:13px;font-weight:500;
cursor:pointer;white-space:nowrap;
font-family:inherit;outline:none;
transition:color .18s ease, border-color .18s ease;
}
.series-tab:hover{color:var(–text)}
.series-tab.active{
color:var(–text);font-weight:700;
border-bottom-color:var(–text);
}
/* Samsung brand label pinned at start of series row */
.series-brand-pin{
display:inline-flex;align-items:center;
height:48px;
padding:0 14px 0 10px;
font-size:13px;font-weight:700;
color:var(–text);
white-space:nowrap;
border-bottom:2.5px solid var(–text);
gap:6px;
flex-shrink:0;
}
.series-brand-pin .chip-logo{
width:22px;height:22px;
display:flex;align-items:center;justify-content:center;
}
.series-brand-pin .chip-logo img{
width:20px;height:20px;
object-fit:contain;display:block;
}
/* Divider arrow between pin and series tabs */
.series-divider{
display:inline-flex;align-items:center;
height:48px;padding:0 4px;
color:var(–muted);
font-size:16px;
flex-shrink:0;
}
/* Back button */
.series-back-tab{
display:inline-flex;align-items:center;justify-content:center;
flex-shrink:0;
height:34px;
padding:0 14px 0 10px;
border:2px solid var(–text);
border-radius:24px;
background:var(–text);
color:#fff;
font-size:12px;font-weight:700;
cursor:pointer;white-space:nowrap;
font-family:inherit;outline:none;
transition:background .18s ease,border-color .18s ease,color .18s ease;
gap:6px;
margin-left:auto;
align-self:center;
letter-spacing:.01em;
}
.series-back-tab:hover{background:var(–accent);border-color:var(–accent);color:#fff}
/* ── Category Dropdown ── */
.cat-dropdown-wrap{
position:relative;
}
.cat-dropdown-btn{
width:100%;display:flex;align-items:center;justify-content:space-between;
padding:9px 12px;
background:var(–bg);
border:1.5px solid var(–border);
border-radius:8px;
font-size:13px;font-weight:600;color:var(–text);
cursor:pointer;font-family:inherit;outline:none;
transition:border-color .15s,background .15s;
text-align:left;
}
.cat-dropdown-btn:hover{border-color:var(–brand);background:var(–white)}
.cat-dropdown-btn.open{border-color:var(–brand);border-bottom-left-radius:0;border-bottom-right-radius:0;background:var(–white)}
.cat-dropdown-btn .cat-dd-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cat-dd-arrow{
width:18px;height:18px;flex-shrink:0;margin-left:6px;
transition:transform .22s cubic-bezier(.4,0,.2,1);
color:var(–muted);
}
.cat-dropdown-btn.open .cat-dd-arrow{transform:rotate(180deg);color:var(–brand)}
.cat-selected-badge{
display:inline-block;background:var(–brand);color:#fff;
font-size:10px;font-weight:700;border-radius:20px;
padding:1px 7px;margin-left:6px;flex-shrink:0;
line-height:1.5;
}
/* The dropdown panel */
.cat-dropdown-panel{
position:absolute;left:0;right:0;top:calc(100% – 10px);
background:var(–white);
border:1.5px solid var(–brand);
border-top:none;
border-radius:0 0 8px 8px;
z-index:200;
overflow:hidden;
max-height:0;
opacity:0;
transition:max-height .28s cubic-bezier(.4,0,.2,1),opacity .18s ease;
box-shadow:0 8px 24px rgba(0,0,0,.1);
}
.cat-dropdown-panel.open{
max-height:340px;
opacity:1;
}
.cat-dropdown-inner{
overflow-y:auto;
max-height:340px;
padding:6px 4px 8px;
}
.cat-dropdown-inner::-webkit-scrollbar{width:4px}
.cat-dropdown-inner::-webkit-scrollbar-thumb{background:var(–border);border-radius:4px}
.cat-dd-item{
display:flex;align-items:center;gap:8px;
padding:7px 12px;border-radius:6px;cursor:pointer;
font-size:12.5px;color:var(–text);
transition:background .12s;user-select:none;
}
.cat-dd-item:hover{background:var(–bg)}
.cat-dd-item input[type=radio]{
width:15px!important;height:15px!important;
accent-color:var(–brand);cursor:pointer;flex-shrink:0;margin:0!important;
}
.cat-dd-item.active-item{
background:var(–brand-light);
}
.cat-dd-item.active-item span{color:var(–brand);font-weight:700}
/* ── Banner system ── */
.shop-banner{width:100%;display:block;overflow:hidden;margin-bottom:0;position:relative}
.shop-banner img{width:100%;height:auto;display:block;object-fit:cover}
.shop-banner .banner-desktop{display:block}
.shop-banner .banner-mobile{display:none}
@media(max-width:768px){
.shop-banner .banner-desktop{display:none}
.shop-banner .banner-mobile{display:block}
}
/* ── CSS Banner (Appliances + future) ── */
.css-banner{
display:none;width:100%;position:relative;overflow:hidden;
background:#f0f4f8;margin-bottom:0;
}
.css-banner.active{display:flex;align-items:center}
.shop-banner.css-mode img#shopBannerImg{display:none}
/* CSS Banner’s own image layer — positioned via Fine-Tune (Top/Left/Width/Height/Scale),
same mechanism as the Image Banner. Sits behind the text overlay. */
.dyn-banner-img{
position:absolute;inset:0;width:100%;height:100%;
object-fit:cover;object-position:center center;
z-index:1;
}
/* Dynamic CSS banner responsive */
#cssDynamicBanner .dyn-banner-text{
position:relative;z-index:2;
}
@media(max-width:900px){
#cssDynamicBanner{min-height:220px !important;background-position:right center !important}
#cssDynamicBanner .dyn-banner-text{padding:32px 5% 32px 6% !important;max-width:58% !important}
}
@media(max-width:600px){
#cssDynamicBanner{min-height:180px !important;background-position:80% center !important;align-items:flex-end;padding-bottom:0}
#cssDynamicBanner .dyn-banner-text{padding:20px 18px 22px !important;max-width:100% !important;width:100%}
#cssDynamicBanner .dyn-banner-category{font-size:clamp(26px,7vw,36px) !important}
#cssDynamicBanner .dyn-banner-tagline{font-size:13px !important}
}
/* Appliances CSS banner */
.css-banner.appliances-banner{
min-height:320px;
background-color:#f5f7fb;
background-size:cover;
background-position:center center;
background-repeat:no-repeat;
font-family:’SF Pro Display’,’Samsung One’,’Helvetica Neue’,Arial,sans-serif;
}
.appliances-banner .banner-text{
position:relative;z-index:2;
padding:48px 6% 48px 14%;
max-width:54%;
}
.appliances-banner .banner-category{
font-size:clamp(34px,4.5vw,64px);
font-weight:700;
color:#0a0a0a;
letter-spacing:-0.03em;
line-height:1.05;
margin:0 0 14px;
}
.appliances-banner .banner-tagline{
font-size:clamp(13px,1.4vw,20px);
font-weight:400;
color:#3a3a3c;
letter-spacing:0.01em;
line-height:1.5;
margin:0;
}
/* Tablet */
@media(max-width:900px){
.css-banner.appliances-banner{min-height:220px;background-position:right center}
.appliances-banner .banner-text{padding:32px 5% 32px 6%;max-width:58%}
}
/* Mobile */
@media(max-width:600px){
.css-banner.appliances-banner{
min-height:180px;
background-size:cover;
background-position:80% center;
align-items:flex-end;
padding-bottom:0;
}
.appliances-banner .banner-text{
padding:20px 18px 22px;
max-width:100%;
background:none;
width:100%;
}
.appliances-banner .banner-category{font-size:clamp(26px,7vw,36px)}
.appliances-banner .banner-tagline{font-size:13px}
}
/* ══════════════════════════════════════
MOBILE BANNER — constrained height
══════════════════════════════════════ */
@media(max-width:768px){
.shop-banner img{
max-height:180px;
object-fit:cover;
object-position:center top;
}
}
/* ══════════════════════════════════════
MOBILE + TABLET CATEGORY CHIP STRIP
Visible ≤1024px (mobile + tablet), hidden on desktop.
Toggled fully on/off (any viewport) via body.cat-chips-strip-disabled
— see CATEGORY_CHIPS_STRIP_ENABLED in the script below.
══════════════════════════════════════ */
.mobile-cat-chips{
display:none !important;
}
@media(max-width:1024px){
.mobile-cat-chips{
display:flex !important;
align-items:center;
gap:8px;
overflow-x:auto;
overflow-y:hidden;
-webkit-overflow-scrolling:touch;
scrollbar-width:none;
padding:10px 10px 6px;
background:var(–white);
border-bottom:1px solid var(–border);
flex-shrink:0;
position:-webkit-sticky;
position:sticky;
top:0;
z-index:120;
}
.mobile-cat-chips::-webkit-scrollbar{display:none}
.mob-cat-chip{
display:inline-flex;align-items:center;
flex-shrink:0;
padding:6px 14px;
border-radius:20px;
border:1.5px solid var(–border);
background:var(–white);
font-size:12px;font-weight:600;
color:var(–text);
white-space:nowrap;
cursor:pointer;
font-family:inherit;
transition:all .18s ease;
line-height:1;
}
.mob-cat-chip:hover{border-color:var(–brand);color:var(–brand)}
.mob-cat-chip.active{
background:var(–brand);
color:#fff;
border-color:var(–brand);
}
}
/* Enable/disable override — beats the media-query rule above via specificity,
works at any viewport width (mobile or tablet). */
body.cat-chips-strip-disabled .mobile-cat-chips{ display:none !important; }
/* Category Grid mode already has its own brand-chip reveal row
(#mxmCgBrandRow) — hide the older mobile-brand-tabbar so brand pills
don’t render twice on the page (see initMxmCategoryGrid()). */
@media(max-width:1024px){
body.mxm-cg-mode .mobile-brand-tabbar-wrap,
body.mxm-cg-mode .mobile-carousel-indicator{ display:none !important; }
}
/* ══════════════════════════════════════
MOBILE BRAND TABBAR
(shows below cat chips, hides .brand-tabbar-wrap on mobile)
══════════════════════════════════════ */
.mobile-brand-tabbar-wrap{
display:none !important;
}
@media(max-width:768px){
.mobile-brand-tabbar-wrap{
display:block !important;
background:var(–white);
border-bottom:1px solid var(–border);
margin-bottom:0;
overflow:hidden;
position:-webkit-sticky;
position:sticky;
top:43px;
z-index:110;
}
/* Set by buildMobileBrandTabbar() when there are no tabs for the current
category, or when a sidebar Brand filter is active (see
refreshBrandTabBar()’s activeSidebarBrand guard) — overrides the
!important display:block above. */
.mobile-brand-tabbar-wrap[data-has-tabs=”false”]{
display:none !important;
}
.mobile-brand-tabbar{
display:flex;
align-items:stretch;
overflow-x:auto;overflow-y:hidden;
scroll-behavior:smooth;
-webkit-overflow-scrolling:touch;
scrollbar-width:none;
padding:0 6px;
gap:0;
height:42px;
}
.mobile-brand-tabbar::-webkit-scrollbar{display:none}
.mob-brand-tab{
display:inline-flex;align-items:center;justify-content:center;
flex-shrink:0;
height:42px;
padding:0 14px;
border:none;
border-bottom:2.5px solid transparent;
background:transparent;
color:var(–muted);
font-size:12px;font-weight:500;
cursor:pointer;white-space:nowrap;
font-family:inherit;outline:none;
transition:color .18s ease,border-color .18s ease;
}
.mob-brand-tab:hover{color:var(–text)}
.mob-brand-tab.active{
color:var(–text);
font-weight:700;
border-bottom-color:var(–text);
}
/* fade hint on right */
.mobile-brand-tabbar-wrap::after{
content:”;position:absolute;right:0;top:0;bottom:0;width:32px;
background:linear-gradient(to left,var(–white) 20%,transparent);
pointer-events:none;
}
/* ── PILL / CARD CAROUSEL SKIN — mobile ──
Toggled by body.brand-chip-pill, see BRAND_CHIP_CAROUSEL_STYLE */
body.brand-chip-pill .mobile-brand-tabbar-wrap{
border-bottom:none;
}
body.brand-chip-pill .mobile-brand-tabbar-wrap::after{ display:none }
body.brand-chip-pill .mobile-brand-tabbar{
height:auto;
gap:8px;
padding:8px 10px 12px;
scroll-snap-type:x mandatory;
}
/* Filter-chip style unified to match .mob-cat-chip (the category grid
chip, e.g. “Mobile”) exactly — same padding/radius/border/font so
brand chips and category chips look identical on mobile. */
body.brand-chip-pill .mob-brand-tab{
flex:0 0 auto;
scroll-snap-align:start;
display:inline-flex;align-items:center;
height:auto;
padding:6px 14px;
border-radius:20px;
background:var(–white);
border:1.5px solid var(–border);
color:var(–text);
font-size:12px;font-weight:600;
line-height:1;
transition:all .18s ease;
}
body.brand-chip-pill .mob-brand-tab:hover{ border-color:var(–brand);color:var(–brand) }
body.brand-chip-pill .mob-brand-tab.active{
background:var(–brand);
border-color:var(–brand);
color:#fff;
}
}
/* ══════════════════════════════════════
MOBILE SUB-MENU TABBAR
(slides in below brand chips when a brand with subs is selected)
══════════════════════════════════════ */
.mobile-sub-tabbar-wrap{
display:none !important;
}
@media(max-width:768px){
.mobile-sub-tabbar-wrap{
display:block !important;
background:var(–surface2);
border-bottom:1px solid var(–border);
overflow:hidden;
max-height:0;
transition:max-height .25s ease, opacity .2s ease;
opacity:0;
position:-webkit-sticky;
position:sticky;
top:85px;
z-index:109;
}
.mobile-sub-tabbar-wrap.open{
max-height:44px;
opacity:1;
}
.mobile-sub-tabbar{
display:flex;
align-items:stretch;
overflow-x:auto;overflow-y:hidden;
scroll-behavior:smooth;
-webkit-overflow-scrolling:touch;
scrollbar-width:none;
padding:0 6px;
gap:0;
height:42px;
}
.mobile-sub-tabbar::-webkit-scrollbar{display:none}
.mob-sub-tab{
display:inline-flex;align-items:center;justify-content:center;
flex-shrink:0;
height:42px;
padding:0 14px;
border:none;
border-bottom:2.5px solid transparent;
background:transparent;
color:var(–muted);
font-size:12px;font-weight:500;
cursor:pointer;white-space:nowrap;
font-family:inherit;outline:none;
transition:color .18s ease,border-color .18s ease;
}
.mob-sub-tab:hover{color:var(–text)}
.mob-sub-tab.active{
color:var(–text);
font-weight:700;
border-bottom-color:var(–brand);
}
/* fade fade on right */
.mobile-sub-tabbar-wrap::after{
content:”;position:absolute;right:0;top:0;bottom:0;width:32px;
background:linear-gradient(to left,var(–surface2) 20%,transparent);
pointer-events:none;
}
}
/* ══════════════════════════════════════
MOBILE CAROUSEL INDICATOR
Dots below brand chip bar and sub-menu bar on mobile
══════════════════════════════════════ */
.mobile-carousel-indicator{
display:none;
}
@media(max-width:768px){
.mobile-carousel-indicator{
display:flex;
align-items:center;justify-content:center;
gap:4px;
padding:4px 0 5px;
background:var(–white);
border-bottom:1px solid var(–border);
}
.mobile-carousel-indicator.for-sub{
background:var(–surface2);
}
.mci-dot{
width:5px;height:5px;
border-radius:50%;
background:var(–border);
transition:all .2s ease;
flex-shrink:0;
}
.mci-dot.active{
width:14px;
border-radius:3px;
background:var(–brand);
}
}
/* ══════════════════════════════════════
MOBILE — Load More bottom margin
══════════════════════════════════════ */
@media(max-width:768px){
.load-more-wrap{
margin-bottom:40px;
}
}
/* ══════════════════════════════════════
MOBILE — Price filter bottom margin
══════════════════════════════════════ */
@media(max-width:768px){
.desk-price-btn{
margin-bottom:0;
}
.desk-price-dropdown{
margin-bottom:40px;
}
}
@media(max-width:768px){
.results-bar{
flex-wrap:nowrap!important;
align-items:center!important;
padding:8px 0 6px!important;
margin-bottom:8px!important;
gap:6px!important;
}
.results-count{font-size:11px!important}
/* hide active tags on mobile to keep bar clean */
.active-tags{display:none!important}
.sort-select{
font-size:11px!important;
padding:5px 8px!important;
max-width:130px;
}
}
/* ══════════════════════════════════════
MOBILE FLOATING FILTER BUTTON
══════════════════════════════════════ */
.mobile-filter-btn{display:none}
.float-filter-btn{display:none}
@media(max-width:768px){
.mobile-filter-btn{display:none!important}
.float-filter-btn{
display:flex;
align-items:center;gap:6px;
position:fixed;
bottom:20px;right:16px;
z-index:900;
background:var(–brand);
color:#fff;
border:none;
border-radius:24px;
padding:10px 18px;
font-size:13px;font-weight:700;
font-family:inherit;
cursor:pointer;
box-shadow:0 4px 16px rgba(0,0,0,.28);
transition:background .15s,transform .15s;
line-height:1;
}
.float-filter-btn:active{transform:scale(.96)}
.float-filter-btn svg{flex-shrink:0}
.float-filter-cnt{
background:#fff;
color:var(–brand);
font-size:10px;font-weight:800;
border-radius:20px;
padding:1px 6px;
display:none;
line-height:1.4;
}
.float-filter-cnt.show{display:inline}
}
/* ── Loading lockout: dim + block clicks on brand/category filter controls
while a product fetch is in flight, so rapid taps can’t race each other ── */
body.products-loading .cat-dd-item,
body.products-loading .brand-tab,
body.products-loading .series-tab,
body.products-loading .mob-brand-tab,
body.products-loading .mob-sub-tab,
body.products-loading .sheet-cat-tab,
body.products-loading .sheet-brand-chip,
body.products-loading .sheet-new-arrival-btn{
opacity:.5;
pointer-events:none;
cursor:not-allowed;
}
/* ═══════════════════════════════════════════
MXM CATEGORY GRID — 2×4 icon-grid quick-nav
Mobile & Tablet only (config: _adminCfg.categoryGrid)
═══════════════════════════════════════════ */
#mxmCategoryGrid{
width:100%;
padding:10px 0 4px;
background:var(–white);
}
.mxm-cg-track{
display:flex;
overflow-x:auto;
scroll-snap-type:x mandatory;
scrollbar-width:none;
-ms-overflow-style:none;
scroll-behavior:smooth;
}
.mxm-cg-track::-webkit-scrollbar{display:none}
.mxm-cg-page{
flex:0 0 100%;
width:100%;
scroll-snap-align:start;
display:grid;
grid-template-columns:repeat(4,1fr);
grid-template-rows:repeat(2,auto);
gap:8px;
padding:0 12px;
box-sizing:border-box;
}
.mxm-cg-card{
background:var(–white);
border-radius:10px;
padding:10px 4px;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
text-align:center;
text-decoration:none;
box-shadow:0 2px 5px rgba(0,0,0,.05);
border:1px solid var(–border);
position:relative;
transition:transform .15s ease;
min-height:80px;
outline:none;
cursor:pointer;
-webkit-tap-highlight-color:transparent;
-webkit-touch-callout:none;
}
.mxm-cg-card:focus,.mxm-cg-card:focus-visible{outline:none}
.mxm-cg-card:active{transform:scale(.95);background-color:var(–bg)}
.mxm-cg-card.mxm-cg-empty{background:transparent;box-shadow:none;border:none;pointer-events:none}
.mxm-cg-icon{
width:26px;height:26px;margin-bottom:5px;
display:flex;align-items:center;justify-content:center;
}
.mxm-cg-icon img{width:100%;height:100%;object-fit:contain}
.mxm-cg-label{font-size:10px;font-weight:600;color:var(–text);line-height:1.15}
.mxm-cg-card.mxm-cg-allbrands .mxm-cg-label{font-weight:800}
.mxm-cg-card.mxm-cg-active{border:1px solid #FFD800;box-shadow:0 2px 5px rgba(0,0,0,.05)}
.mxm-cg-dots{
display:flex;justify-content:center;align-items:center;gap:6px;margin-top:10px;
}
.mxm-cg-dot{
width:6px;height:6px;border-radius:50%;background-color:var(–border);
transition:all .3s ease;cursor:pointer;
}
.mxm-cg-dot.active{width:18px;border-radius:4px;background-color:var(–accent)}
/* Mobile view: category-grid active dot uses the brand yellow instead of the red accent */
@media(max-width:768px){
.mxm-cg-dot.active{ background-color:#FFD800; }
}
/* Flex Carousel mode — one continuous scrolling strip instead of fixed
8-item pages (config: categoryGrid.flexCarouselEnabled), so the next
card peeks off the edge of the screen as a scroll hint. */
.mxm-cg-flexwrap{display:flex;align-items:center;position:relative;margin:0 8px} /* side margin matching .shop-layout mobile (10px 8px) — shifts the whole track+arrows block inward without touching the track’s own padding, so arrow peek/scroll math is untouched */
.mxm-cg-track.mxm-cg-flex{
display:flex;flex-wrap:nowrap;width:100%;min-width:0;
scroll-snap-type:x proximity;gap:10px;padding:0 12px;
}
/* When nav arrows are on, the track sits inside .mxm-cg-flexwrap — widen
its edge padding so the floating 32px arrow has its own gutter and
never overlaps/covers the first or last card underneath it. */
.mxm-cg-flexwrap .mxm-cg-track.mxm-cg-flex{ padding:4px 2px; }
/* Gemini reference card size/shape (92×96, 14px radius, 36px icon) —
bigger and roomier than the old 74×80/10px/26px compact cards. */
.mxm-cg-track.mxm-cg-flex .mxm-cg-card{
flex:0 0 92px;width:92px;height:96px;min-height:96px;
border-radius:14px;padding:8px 6px;
box-shadow:0 1px 3px rgba(0,0,0,.05);
scroll-snap-align:start;
}
.mxm-cg-track.mxm-cg-flex .mxm-cg-icon{ width:36px;height:36px;margin-bottom:6px; }
.mxm-cg-track.mxm-cg-flex .mxm-cg-label{ font-size:11px; }
/* Desktop mouse-drag-to-scroll (Gemini reference’s click-and-drag) */
.mxm-cg-track.mxm-cg-flex{ cursor:grab; }
.mxm-cg-track.mxm-cg-flex.mxm-cg-dragging{ cursor:grabbing; scroll-behavior:auto; }
/* Gemini-style floating nav arrows — white circle, drop shadow, floats
in its own edge gutter (see padding rule above) and fades in/out
instead of display:none/flex so it never causes reflow. */
.mxm-cg-flexwrap .mxm-cg-brandnavbtn.mxm-cg-navleft,
.mxm-cg-flexwrap .mxm-cg-brandnavbtn.mxm-cg-navright{
position:absolute;top:50%;transform:translateY(-50%);
width:32px;height:32px;border-radius:50%;
background:var(–white);border:1px solid var(–border);
box-shadow:0 4px 10px rgba(0,0,0,.12);
display:flex;align-items:center;justify-content:center;
font-size:12px;color:var(–text);z-index:5;
opacity:1;transition:opacity .25s ease,transform .2s ease;
}
.mxm-cg-flexwrap .mxm-cg-brandnavbtn.mxm-cg-navleft:active,
.mxm-cg-flexwrap .mxm-cg-brandnavbtn.mxm-cg-navright:active{
transform:translateY(-50%) scale(.9);
}
.mxm-cg-flexwrap .mxm-cg-brandnavbtn.mxm-cg-navleft{ left:-6px; }
.mxm-cg-flexwrap .mxm-cg-brandnavbtn.mxm-cg-navright{ right:-6px; }
.mxm-cg-flexwrap .mxm-cg-brandnavbtn.mxm-cg-navleft.mxm-cg-hidden,
.mxm-cg-flexwrap .mxm-cg-brandnavbtn.mxm-cg-navright.mxm-cg-hidden{
opacity:0;pointer-events:none;
}
/* All-Brands chip reveal */
.mxm-cg-brandwrap{
max-height:0;overflow:hidden;transition:max-height .3s ease;padding:0 12px;
}
.mxm-cg-brandwrap.open{max-height:220px;padding:10px 12px 10px}
.mxm-cg-brandrow{
display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;overflow-y:hidden;
-webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.mxm-cg-brandrow::-webkit-scrollbar{display:none}
/* Filter-chip style unified to match .mob-cat-chip (the category grid
chip, e.g. “Mobile”) exactly — same padding/radius/border/font. */
.mxm-cg-brand-chip{
display:inline-flex;align-items:center;
flex:0 0 auto;padding:6px 14px;border-radius:20px;border:1.5px solid var(–border);
background:var(–white);color:var(–text);font-size:12px;font-weight:600;
line-height:1;cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent;
transition:all .18s ease;
}
.mxm-cg-brand-chip:hover{ border-color:var(–brand);color:var(–brand) }
/* Bottom nav bar — progress track + circular ‹ › buttons
(Gemini “Pills Navigation” reference) */
.mxm-cg-brandnav{
display:none;align-items:center;
gap:10px;
margin-top:8px;
}
.mxm-cg-brandtrack{
flex:1;height:2px;background:var(–border);border-radius:2px;
overflow:hidden;position:relative;
}
.mxm-cg-brandthumb{
height:100%;width:25%;background:var(–brand);
position:absolute;left:0;top:0;
transition:transform .1s linear,width .15s ease;
}
.mxm-cg-brandnavbtns{ display:flex;gap:6px;flex-shrink:0 }
.mxm-cg-brandnavbtn{
width:26px;height:26px;border-radius:50%;
border:1px solid var(–border);background:var(–white);color:var(–text);
font-size:11px;display:flex;align-items:center;justify-content:center;
cursor:pointer;transition:all .18s ease;padding:0;
}
.mxm-cg-brandnavbtn:hover{ background:var(–bg);border-color:var(–muted) }
.mxm-cg-brandnavbtn:active{ transform:scale(.95) }
/* Nav arrows are inline SVG chevrons (not text glyphs) so they render identically on every device font */
.mxm-cg-brandnavbtn svg{ width:12px;height:12px;display:block;pointer-events:none;flex-shrink:0 }
.mxm-cg-flexwrap .mxm-cg-brandnavbtn svg{ width:16px;height:16px }
.mxm-cg-brand-chip.active{background:var(–brand);color:#fff;border-color:var(–brand)}
/* Mobile + Tablet only — hidden on desktop (matches breakpoints used elsewhere) */
@media (min-width:1025px){
#mxmCategoryGrid{display:none !important}
}
/* ── MXM FREEBIES: glassy overlay + Quick View line ── */
.mxm-fb-glass{
position:absolute;right:6px;bottom:6px;z-index:4;
display:flex;flex-direction:column;align-items:center;gap:5px;
padding:5px;border-radius:14px;
background:linear-gradient(145deg,rgba(255,255,255,.58),rgba(255,255,255,.2));
-webkit-backdrop-filter:blur(12px) saturate(1.6);backdrop-filter:blur(12px) saturate(1.6);
border:1px solid rgba(255,255,255,.75);
box-shadow:0 6px 18px rgba(31,38,135,.16),inset 0 1px 0 rgba(255,255,255,.9);
pointer-events:none;
–mxm-fb-size:36px;
}
.mxm-fb-glass.mxm-fb-qv{right:12px;bottom:14px;–mxm-fb-size:48px;gap:6px;padding:6px;border-radius:16px}
.mxm-fb-glass .mxm-fb-item{display:flex;flex-direction:column;align-items:center;gap:2px;width:var(–mxm-fb-size)}
.mxm-fb-glass .mxm-fb-item img{
width:var(–mxm-fb-size)!important;height:var(–mxm-fb-size)!important;
max-width:none!important;max-height:none!important;object-fit:contain!important;
border-radius:10px;background:rgba(255,255,255,.72);padding:2px;
transform:none!important;transition:none!important;box-shadow:0 1px 3px rgba(0,0,0,.08);
}
.mxm-fb-glass .mxm-fb-tag{
display:block;width:100%;text-align:center;
font-size:calc(var(–mxm-fb-size) * .2);line-height:1;font-weight:800;letter-spacing:.06em;
color:#fff;background:#38a8e0;border-radius:999px;padding:2px 0;
}
.mxm-fb-glass .mxm-fb-more{font-size:calc(var(–mxm-fb-size) * .28);font-weight:800;color:#1a1a2e;line-height:1}
.product-card:hover .card-img .mxm-fb-glass img{transform:none!important}
.mxm-fb-glass .mxm-fb-item{position:relative}
.mxm-fb-glass .mxm-fb-qty{position:absolute;top:-6px;right:-6px;z-index:2;min-width:18px;padding:1px 4px;border-radius:999px;background:#1a1a2e;color:#fff;font-size:10px;font-weight:800;line-height:1.35;text-align:center;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.mxm-fb-line{margin:8px 0 10px;padding:8px 10px;border-radius:12px;background:linear-gradient(135deg,rgba(255,216,0,.16),rgba(255,255,255,.7));border:1px solid rgba(0,0,0,.06)}
.mxm-fb-line-lbl{display:block;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#8a6a00;margin-bottom:6px}
.mxm-fb-chips{display:flex;flex-wrap:wrap;gap:6px}
.mxm-fb-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 10px 3px 4px;border-radius:999px;background:#fff;border:1px solid rgba(0,0,0,.08);font-size:12px;font-weight:600;color:#1a1a2e;max-width:100%}
.mxm-fb-chip img{width:24px!important;height:24px!important;max-width:none!important;max-height:none!important;border-radius:50%;object-fit:contain;background:#f4f5f7;flex:0 0 auto}
.mxm-fb-chip b{font-weight:600;overflow:hidden;text-overflow:ellipsis}
@media (min-width:900px){ .mxm-fb-glass:not(.mxm-fb-qv){–mxm-fb-size:42px} }
.khp-nav,.brand-nav-btn,.mxm-cg-brandnavbtn{font-family:Arial,sans-serif!important;text-indent:0!important;letter-spacing:0!important;line-height:1!important;padding:0!important;}.khp-nav::before,.khp-nav::after,.brand-nav-btn::before,.brand-nav-btn::after,.mxm-cg-brandnavbtn::before,.mxm-cg-brandnavbtn::after{content:none!important;display:none!important;}.khp-nav .mxm-nav-icon,.brand-nav-btn .mxm-nav-icon,.mxm-cg-brandnavbtn .mxm-nav-icon{display:block!important;visibility:visible!important;opacity:1!important;width:18px!important;height:18px!important;min-width:18px!important;flex-shrink:0!important;margin:auto!important;pointer-events:none!important;fill:none!important;stroke:currentColor!important;}.mxm-nav-icon polyline{fill:none!important;stroke:currentColor!important;stroke-width:2.6!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
.khp-bcard .khp-btext h3,.khp-bcard .khp-btext p{color:inherit!important;}
/* Only reveal the “Load Config” debug button to a logged-in WordPress
backend user (Admin/Editor/Shop Manager) — never to guests or
customers. Detected via WordPress’s own admin bar, which WooCommerce
hides for the “customer” role by default.
NOTE: this is a client-side visibility check only (view-source / devtools
could still reveal the button). It’s meant to keep the debug tool out of
normal shoppers’ way, not as a security boundary — for that, the real
enforcement belongs server-side (e.g. a PHP current_user_can() check
around this whole block, if this page is ever rendered via PHP). */
(function () {
var isWpBackendUser = !!document.getElementById(‘wpadminbar’) ||
document.body.classList.contains(‘admin-bar’);
if (isWpBackendUser) {
var btn = document.getElementById(‘loadConfigBtn’);
if (btn) btn.style.display = ”;
}
})();
/* ── WooCommerce connection — PROXIED via WPCode snippet ──
CK/CS are no longer present in this file at all. All product/category/
tag reads go through a custom REST route (mxm/v1/wc/*) registered by a
WPCode PHP snippet on mxmemoxpress.com, which attaches the
consumer key/secret server-side before forwarding to wc/v3. See the
“MXM WC Proxy” WPCode snippet for the server half of this. */
const SITE = ‘https://mxmemoxpress.com’;
const MXM_PROXY_BASE = SITE + ‘/wp-json/mxm/v1/wc’;
/* ── Hardcoded category IDs (authoritative) ── */
/* ═══════════════════════════════════
ADMIN CONFIG — reads from localStorage (set by mxm-admin.html)
Falls back to hardcoded defaults if no saved config found.
═══════════════════════════════════ */
const ADMIN_LS_KEY = ‘mxm_shop_config’;
const DEFAULT_CAT_IDS = {
“AI Enabled”: 1413,
“Tablets”: 1485,
“Adapters & Cables”: 208,
“Headphones”: 1486,
“PC Peripherals”: 1487,
“Printers”: 856,
“Gaming”: 1488,
“Wearables”: 1489,
“Appliances”: 304,
“Security”: 1482,
“Powerbanks”: 232,
“Lifestyle”: 272,
“Battery”: 900,
“Speaker”: 802,
“Sim & Load Cards”: 892,
“Accessories”: 46,
};
const DEFAULT_FIXED_CATEGORIES = [
“AI Enabled”,”Smartphones”,”Tablets”,”Laptop”,”Adapters & Cables”,”Headphones”,”PC Peripherals”,”Printers”,”Gaming”,”Wearables”,”Appliances”,”Security”,”Powerbanks”,”Lifestyle”,”Battery”,”Speaker”,”Sim & Load Cards”,”Accessories”,
];
/* Load admin config from localStorage, merge into runtime vars */
function loadAdminConfig() {
try {
const raw = localStorage.getItem(ADMIN_LS_KEY);
if (raw) return JSON.parse(raw);
} catch(e) {}
return null;
}
const _adminCfg = {“firebase”:{“apiKey”:”AIzaSyA1IOJbG5mg1ZbEyGNZIuvO00vQ_O5auCw”,”appId”:”1:836765248855:web:7495e82e3fb1ca5ecea212″,”authDomain”:”mx-work-a3e54.firebaseapp.com”,”databaseURL”:”https://mx-work-a3e54-default-rtdb.asia-southeast1.firebasedatabase.app”,”messagingSenderId”:”836765248855″,”projectId”:”mx-work-a3e54″,”storageBucket”:”mx-work-a3e54.firebasestorage.app”},”liveFirebase”:true,”showOutOfStock”:false,”categories”:[{“filterMode”:”category”,”id”:1262,”name”:”Mobiles”,”tagId”:null},{“filterMode”:”category”,”id”:140,”name”:”Tablets”,”tagId”:null},{“filterMode”:”category”,”id”:562,”name”:”Laptop”,”tagId”:null},{“filterMode”:”category”,”id”:34,”name”:”Adapter & Cables”,”tagId”:null},{“filterMode”:”category”,”id”:194,”name”:”Headphones”,”tagId”:null},{“filterMode”:”category”,”id”:66,”name”:”PC Peripherals”,”tagId”:null},{“filterMode”:”category”,”id”:484,”name”:”Printers”},{“filterMode”:”category”,”id”:1288,”name”:”Gaming”},{“filterMode”:”category”,”id”:1301,”name”:”Watch”,”tagId”:null},{“filterMode”:”tag”,”id”:0,”name”:”Appliances”,”tagId”:584},{“filterMode”:”category”,”id”:133,”name”:”Camera”},{“filterMode”:”category”,”id”:268,”name”:”Security”},{“filterMode”:”tag”,”id”:0,”name”:”Powerbank”,”tagId”:1216},{“filterMode”:”category”,”id”:157,”name”:”Lifestyle”,”tagId”:null},{“filterMode”:”tag”,”id”:0,”name”:”Speaker”,”tagId”:1215},{“filterMode”:”category”,”id”:1219,”name”:”Sim & Load Cards”,”tagId”:null},{“filterMode”:”category”,”id”:30,”name”:”Accessories”,”tagId”:null}],”brandTabs”:{“Adapter & Cables”:[{“name”:”Apple”,”slug”:””,”catId”:465,”catSlug”:”apple-charger”,”tagId”:null,”brandId”:null},{“name”:”Denmen”,”slug”:”denmen-adapter-cables”,”catId”:1339,”catSlug”:”denmen-adapter-cables”,”tagId”:null,”brandId”:null},{“name”:”Golf”,”slug”:”golf-adapter-cables”,”catId”:1342,”catSlug”:”golf-adapter-cables”,”tagId”:null,”brandId”:null},{“name”:”Onda”,”slug”:”onda-adapter-cables”,”catId”:1335,”catSlug”:”onda-adapter-cables”,”tagId”:null,”brandId”:null},{“name”:”Vention”,”slug”:”vention-adapter-cables”,”catId”:1324,”catSlug”:”vention-adapter-cables”,”tagId”:null,”brandId”:null},{“name”:”Vidvie”,”slug”:”vidvie-adapter-cables”,”catId”:1337,”catSlug”:”vidvie-adapter-cables”,”tagId”:null,”brandId”:null},{“name”:”XO”,”slug”:”xo-adapter-cables”,”catId”:1333,”catSlug”:”xo-adapter-cables”,”tagId”:null,”brandId”:null}],”Appliances”:[{“name”:”Air Purifier”,”slug”:”Air Purifier”,”catId”:330,”catSlug”:”air-purifier-humidifier”,”tagId”:null,”brandId”:null},{“name”:”Aircon”,”slug”:”Aircon”,”catId”:602,”catSlug”:”aircon-and-aircooler”,”tagId”:null,”brandId”:null},{“name”:”Microwave Oven”,”slug”:”Microwave Oven”,”catId”:1225,”catSlug”:”sharp-microwave-oven”,”tagId”:null,”brandId”:null},{“name”:”Refrigerator”,”slug”:”refrigerator”,”catId”:588,”catSlug”:”refrigerator”,”tagId”:null,”brandId”:null},{“name”:”Smart TV”,”slug”:”Smart TV”,”catId”:313,”catSlug”:”smart-tv”,”tagId”:null,”brandId”:null},{“name”:”Vacuum”,”slug”:”Vacuum”,”catId”:725,”catSlug”:”xiaomi-vacuum”,”tagId”:null,”brandId”:null},{“name”:”Washing Machine”,”slug”:”Washing Machine”,”catId”:594,”catSlug”:”washing-machine”,”tagId”:null,”brandId”:null},{“name”:”Electric Kettle”,”slug”:”Electric kettle”,”catId”:332,”catSlug”:”kettle”,”tagId”:null,”brandId”:null},{“name”:”Blender & Mixer”,”slug”:”Blender & Mixer”,”catId”:1266,”catSlug”:”grinder-mixer”,”tagId”:null,”brandId”:null},{“name”:”Induction & Rice Cooker”,”slug”:”Induction & Rice Cooker”,”catId”:386,”catSlug”:”induction-rice-cooker”,”tagId”:null,”brandId”:null},{“name”:”Sandwich & Waffle Maker”,”slug”:”Sandwich & Waffle Maker”,”catId”:107,”catSlug”:”waffle-sandwich-maker”,”tagId”:null,”brandId”:null},{“name”:”Steamer”,”slug”:”steamer”,”catId”:1439,”catSlug”:”steamer”,”tagId”:null,”brandId”:null}],”Camera”:[{“catId”:1211,”catSlug”:”akaso”,”name”:”Akaso”,”slug”:”akaso”}],”Gaming”:[{“catId”:238,”catSlug”:””,”name”:”Nintendo Switch”,”slug”:”nintendo-switch”},{“catId”:240,”catSlug”:””,”name”:”Consoles”,”slug”:”consoles”},{“catId”:1256,”catSlug”:””,”name”:”Games”,”slug”:”nintendo-games”},{“catId”:1257,”catSlug”:””,”name”:”Nintendo Accessories”,”slug”:”nintendo-accessories”}],”Headphones”:[{“name”:”Apple Airpod”,”slug”:”apple-airpod”,”catId”:1303,”catSlug”:”apple-airpod”,”tagId”:null,”brandId”:null},{“name”:”Aula”,”slug”:”aula-headphone”,”catId”:1302,”catSlug”:”aula-headphone”,”tagId”:null,”brandId”:null},{“name”:”Edifier”,”slug”:”edifier-headphone”,”catId”:1313,”catSlug”:”edifier-headphone”,”tagId”:null,”brandId”:null},{“name”:”Langsdom”,”slug”:”langsdom-headphone”,”catId”:1321,”catSlug”:”langsdom-headphone”,”tagId”:null,”brandId”:null},{“name”:”Redmi”,”slug”:”redmi-headphone”,”catId”:1306,”catSlug”:”redmi-headphone”,”tagId”:null,”brandId”:null},{“name”:”Earbuds”,”slug”:”earbuds”,”catId”:1167,”catSlug”:”earbuds”,”tagId”:null,”brandId”:null},{“name”:”Earphones”,”slug”:”earphone”,”catId”:195,”catSlug”:”earphone”,”tagId”:null,”brandId”:null}],”Laptop”:[{“name”:”Asus Laptop”,”slug”:”asus-laptop”,”catId”:563,”catSlug”:”asus-laptop”,”tagId”:null,”brandId”:null},{“name”:”Macbook”,”slug”:”macbook”,”catId”:434,”catSlug”:”macbook”,”tagId”:null,”brandId”:null},{“name”:”Acer Laptop”,”slug”:”acer-laptop”,”catId”:614,”catSlug”:”acer-laptop”,”tagId”:null,”brandId”:null},{“name”:”HP laptop”,”slug”:”hp”,”catId”:1265,”catSlug”:”hp-laptop”,”tagId”:null,”brandId”:null},{“name”:”Tecno Laptop”,”slug”:”tecno-laptop”,”catId”:1365,”catSlug”:”tecno-laptop”,”tagId”:null,”brandId”:null},{“name”:”Lenovo Laptop”,”slug”:”lenovo-laptop”,”catId”:1409,”catSlug”:”lenovo-laptop”,”tagId”:null,”brandId”:null}],”Lifestyle”:[{“name”:”Bags”,”slug”:”Bags”,”catId”:628,”catSlug”:”bag-laptop-sleeve”,”tagId”:null,”brandId”:null},{“name”:”Glasses”,”slug”:”Glasses”,”catId”:1359,”catSlug”:”action”,”tagId”:null,”brandId”:null},{“name”:”Action Camera”,”slug”:”Action Camera”,”catId”:1412,”catSlug”:”action-camera”,”tagId”:null,”brandId”:null},{“name”:”Ring”,”slug”:”Ring”,”catId”:871,”catSlug”:”ringconn”,”tagId”:null,”brandId”:null},{“name”:”Massager”,”slug”:”Massager”,”catId”:841,”catSlug”:”massager”,”tagId”:null,”brandId”:null},{“name”:”Beauty”,”slug”:”Beauty”,”catId”:291,”catSlug”:”beauty-tools”,”tagId”:null,”brandId”:null},{“name”:”Printer”,”slug”:”Printer”,”catId”:856,”catSlug”:”printers”,”tagId”:null,”brandId”:null},{“name”:”Meeting Tools”,”slug”:”Meeting Tools”,”catId”:480,”catSlug”:”tools-home-improvement”,”tagId”:null,”brandId”:null}],”Mobiles”:[{“name”:”Apple”,”slug”:”iphone”,”catId”:1261,”catSlug”:”iphone”,”tagId”:null,”brandId”:null},{“name”:”Samsung”,”slug”:”samsung-mobiles”,”catId”:322,”catSlug”:”samsung-mobiles”,”tagId”:null,”brandId”:null},{“name”:”Huawei”,”slug”:”huawei”,”catId”:609,”catSlug”:”huawei-smartphone”,”tagId”:null,”brandId”:null},{“name”:”Nubia”,”slug”:”nubia-mobiles”,”catId”:1330,”catSlug”:”nubia-mobiles”,”tagId”:null,”brandId”:null},{“name”:”Honor”,”slug”:”honor-mobile”,”catId”:457,”catSlug”:”honor-mobile”,”tagId”:null,”brandId”:null},{“name”:”vivo”,”slug”:”vivo”,”catId”:462,”catSlug”:”vivo”,”tagId”:null,”brandId”:null},{“name”:”Tecno”,”slug”:”tecno-mobile”,”catId”:598,”catSlug”:”tecno-mobile”,”tagId”:null,”brandId”:null},{“name”:”Realme”,”slug”:”realme”,”catId”:59,”catSlug”:”realme-smartphone”,”tagId”:null,”brandId”:null},{“name”:”Xiaomi”,”slug”:”xiaomi”,”catId”:545,”catSlug”:”xiaomi-mobiles”,”tagId”:null,”brandId”:null},{“name”:”Oppo”,”slug”:”oppo-mobiles”,”catId”:1316,”catSlug”:”oppo-mobiles”,”tagId”:null,”brandId”:null},{“name”:”Redmagic”,”slug”:”redmagic”,”catId”:851,”catSlug”:”redmagic”,”tagId”:null,”brandId”:null}],”PC Peripherals”:[{“name”:”Monitor”,”slug”:”Monitor”,”catId”:618,”catSlug”:”monitor”,”tagId”:null,”brandId”:null},{“name”:”Keyboards”,”slug”:”keyboards”,”catId”:90,”catSlug”:”keyboards”,”tagId”:null,”brandId”:null},{“name”:”Mouse”,”slug”:”Mouse”,”catId”:1237,”catSlug”:”mouse”,”tagId”:null,”brandId”:null},{“name”:”All in 1 PC”,”slug”:”All in 1 PC”,”catId”:68,”catSlug”:”computer-pc-peripherals”,”tagId”:null,”brandId”:null},{“name”:”Computer”,”slug”:”computer”,”catId”:67,”catSlug”:”computer”,”tagId”:null,”brandId”:null},{“name”:”PC Case”,”slug”:”PC Case”,”catId”:1220,”catSlug”:”computer-case-and-drives”,”tagId”:null,”brandId”:null},{“name”:”Other PC Accessories”,”slug”:”Other PC Accessories”,”catId”:1221,”catSlug”:”computer-hardware”,”tagId”:null,”brandId”:null}],”Powerbank”:[{“name”:”BWOO”,”slug”:”BWOO”,”catId”:1035,”catSlug”:”bwoo-power-bank”,”tagId”:null,”brandId”:null},{“name”:”Yoobao”,”slug”:”yoobao-speaker”,”catId”:1399,”catSlug”:”yoobao-speaker”,”tagId”:null,”brandId”:null},{“name”:”Golf”,”slug”:”golf-powerbank”,”catId”:1404,”catSlug”:”golf-powerbank”,”tagId”:null,”brandId”:null},{“name”:”Vention”,”slug”:”Vention”,”catId”:1317,”catSlug”:”vention-powerbank”,”tagId”:null,”brandId”:null},{“name”:”Xiaomi”,”slug”:”Xiaomi”,”catId”:1318,”catSlug”:”xiaomi-powerbank”,”tagId”:null,”brandId”:null},{“name”:”Promate”,”slug”:”promate”,”catId”:1411,”catSlug”:”promate-powerbank”,”tagId”:null,”brandId”:null},{“name”:”Jaguar”,”slug”:”Jaguar”,”catId”:749,”catSlug”:”jaguar-powerbank”,”tagId”:null,”brandId”:null},{“name”:”Havit”,”slug”:”Havit”,”catId”:1097,”catSlug”:”havit-powerbank”,”tagId”:null,”brandId”:null},{“name”:”Yoobao”,”slug”:”Yoobao”,”catId”:1320,”catSlug”:”yoobao”,”tagId”:null,”brandId”:null},{“name”:”BlackShark”,”slug”:”BlackShark”,”catId”:898,”catSlug”:”black-shark-powerbank”,”tagId”:null,”brandId”:null},{“name”:”Other Powerbank”,”slug”:”Other Powerbank”,”catId”:1322,”catSlug”:”other-powerbank”,”tagId”:null,”brandId”:null},{“name”:”Battery”,”slug”:”battery”,”catId”:1325,”catSlug”:”battery”,”tagId”:null,”brandId”:null}],”Printers”:[{“catId”:484,”catSlug”:”printers”,”name”:”HP”,”slug”:”HP”},{“catId”:1276,”catSlug”:”canon-printer”,”name”:”Canon Printer”,”slug”:”canon-printer”}],”Security”:[{“catId”:737,”catSlug”:”xiaomi-home-security”,”name”:”Xiaomi”,”slug”:”Xiaomi”},{“catId”:1292,”catSlug”:”Erviz”,”name”:”Erviz”,”slug”:”Erviz”}],”Sim & Load Cards”:[{“name”:”Sim & Load Cards”,”slug”:”sim-load-cards”,”catId”:1219,”catSlug”:”sim-load-cards”,”tagId”:null,”brandId”:null}],”Speaker”:[{“name”:”Yoobao”,”slug”:”yoobao-speaker”,”catId”:1399,”catSlug”:”yoobao-speaker”,”tagId”:null,”brandId”:null},{“name”:”Edifier”,”slug”:”Edifier”,”catId”:1357,”catSlug”:”edifier-speaker”,”tagId”:null,”brandId”:null},{“name”:”Aula”,”slug”:”Aula”,”catId”:1303,”catSlug”:”aula-speaker”,”tagId”:null,”brandId”:null},{“name”:”Xiaomi”,”slug”:”Xiaomi”,”catId”:724,”catSlug”:”smart-speakers”,”tagId”:null,”brandId”:null},{“name”:”Havit”,”slug”:”Havit”,”catId”:1099,”catSlug”:”havit-speaker”,”tagId”:null,”brandId”:null},{“name”:”BWOO”,”slug”:”BWOO”,”catId”:1038,”catSlug”:”bwoo-speaker”,”tagId”:null,”brandId”:null},{“name”:”Promate”,”slug”:”Promate”,”catId”:715,”catSlug”:”promate-audio”,”tagId”:null,”brandId”:null},{“name”:”XTRIKE ME”,”slug”:”XTRIKE ME”,”catId”:745,”catSlug”:”xtrike-me-speaker”,”tagId”:null,”brandId”:null},{“name”:”Sembrandt Soundbar”,”slug”:”sembrandt-soundbar”,”catId”:1440,”catSlug”:”sembrandt-soundbar”,”tagId”:null,”brandId”:null}],”Tablets”:[{“name”:”Apple”,”slug”:”Apple”,”catId”:417,”catSlug”:”ipad”,”tagId”:null,”brandId”:null},{“name”:”Samsung”,”slug”:”samsung”,”catId”:141,”catSlug”:”samsung-tablets”,”tagId”:null,”brandId”:null},{“name”:”Lenovo”,”slug”:”lenovo”,”catId”:455,”catSlug”:”lenovo-tablet”,”tagId”:null,”brandId”:null},{“name”:”Honor”,”slug”:”honor”,”catId”:567,”catSlug”:”honor-pad”,”tagId”:null,”brandId”:null},{“name”:”Xiaomi”,”slug”:”xiaomi”,”catId”:416,”catSlug”:”xiaomi-tablets”,”tagId”:null,”brandId”:null},{“name”:”Huawei”,”slug”:”huawei”,”catId”:27,”catSlug”:”huawei-tablet”,”tagId”:null,”brandId”:null},{“name”:”Tecno”,”slug”:”tecno”,”catId”:630,”catSlug”:”tecno-tablet”,”tagId”:null,”brandId”:null}],”Accessories”:[],”Watch”:[{“name”:”Apple Watch”,”slug”:”apple”,”catId”:55,”catSlug”:”iwatch”,”tagId”:null,”brandId”:null},{“name”:”Huawei Watch”,”slug”:”huawei-watch”,”catId”:401,”catSlug”:”huawei-watch”,”tagId”:null,”brandId”:null},{“name”:”Samsung Watch”,”slug”:”samsung-watch”,”catId”:1299,”catSlug”:”samsung-watch”,”tagId”:null,”brandId”:null},{“name”:”Xiaomi Watch”,”slug”:”xiaomi-watch”,”catId”:295,”catSlug”:”xiaomi-watch”,”tagId”:null,”brandId”:null},{“name”:”Promate Watch”,”slug”:”promate-watch”,”catId”:1448,”catSlug”:”promate-watch”,”tagId”:null,”brandId”:null}]},”subMenus”:{“Appliances”:{“smart-tv”:[{“catId”:807,”filterMode”:”category”,”label”:”Sharp”,”slug”:”sharp-tv”},{“catId”:247,”filterMode”:”category”,”label”:”Xiaomi”,”slug”:”xiaomi-tv”},{“catId”:1265,”filterMode”:”category”,”label”:”SKYWORTH”,”slug”:”skyworth-tv”}]},”Lifestyle”:{“Action Camera”:[{“catId”:1211,”filterMode”:”category”,”label”:”Akaso”,”slug”:”akaso”}]},”Mobiles”:{},”Tablets”:{},”Laptop”:{},”Accessories”:{},”Speaker”:{},”Sim & Load Cards”:{},”PC Peripherals”:{},”Adapter & Cables”:{},”Headphones”:{},”Watch”:{},”Powerbank”:{}},”banners”:{“Accessories”:”https://mxmemoxpress.com/wp-content/uploads/2026/08/Accessories-PNG-1.png”,”Adapter & Cables”:”https://mxmemoxpress.com/wp-content/uploads/2026/08/Cable-and-Adapter-PNG-1.png”,”Appliances”:”https://mxmemoxpress.com/wp-content/uploads/2026/08/Appliances-PNG-1.png”,”Camera”:”https://mxmemoxpress.com/wp-content/uploads/2026/08/Camera.png”,”Gaming”:”https://mxmemoxpress.com/wp-content/uploads/2026/08/Gaming-PNG-1.png”,”Headphones”:”https://mxmemoxpress.com/wp-content/uploads/2026/08/Headphones-PNG-1.png”,”Laptop”:”https://mxmemoxpress.com/wp-content/uploads/2026/08/Laptop-PNG-1.png”,”Lifestyle”:”https://mxmemoxpress.com/wp-content/uploads/2026/08/LifeStyle-PNG-1.png”,”Mobiles”:”https://mxmemoxpress.com/wp-content/uploads/2026/11/AI-Enabled-1-PNG.png”,”PC Peripherals”:”https://mxmemoxpress.com/wp-content/uploads/2026/08/Peripherals-PNG-1.png”,”Powerbank”:”https://mxmemoxpress.com/wp-content/uploads/2026/08/PowerBank-PNG-1.png”,”Printers”:”https://mxmemoxpress.com/wp-content/uploads/2026/08/printer-PNG-1.png”,”Security”:”https://mxmemoxpress.com/wp-content/uploads/2026/08/Security-PNG-1.png”,”Sim & Load Cards”:”https://mxmemoxpress.com/wp-content/uploads/2026/08/Simcard-PNG-1.png”,”Speaker”:”https://mxmemoxpress.com/wp-content/uploads/2026/08/Speaker-PNG-1.png”,”Tablets”:”https://mxmemoxpress.com/wp-content/uploads/2026/08/Tablet-PNG-1.png”,”Watch”:”https://mxmemoxpress.com/wp-content/uploads/2026/08/Wearables-PNG-1.png”},”taglines”:{“Accessories”:”Your Device , Our Passion”,”Adapter & Cables”:”Bridging the gap between your favorite devices.”,”Appliances”:”The future of the home, available today.”,”Camera”:”Reliable everyday power, and long-lasting energy”,”Gaming”:”Play. Connect. Conquer.”,”Headphones”:”Sound without compromise.”,”Laptop”:”Work Anywhere. Play Everywhere.”,”Lifestyle”:”Smarter living, one gadget at a time.”,”Mobiles”:”Powering your limitless potential”,”PC Peripherals”:”Power your setup”,”Powerbank”:”Pocket-Sized Power, Limitless Potential.”,”Printers”:”Where ink meets imagination.”,”Security”:”When protection meets peace of mind.”,”Sim & Load Cards”:”connectivity, reliability & affordability”,”Speaker”:”Sound that moves you.”,”Tablets”:”Laptop Performance, Tablet Portability”,”Watch”:”Smarter Tracking. Real Results.”},”defaultBg”:{“url”:””,”type”:”image”,”skeletonEnabled”:true,”skeletonW”:”100%”,”skeletonH”:”554px”},”cssBanners”:{“Accessories”:{“skeletonEnabled”:true,”skeletonW”:”100%”,”skeletonH”:”556px”,”imgPosDesktopTop”:0,”imgPosDesktopLeft”:0,”imgPosDesktopWidth”:100,”imgPosDesktopHeight”:100,”imgPosDesktopScale”:1,”imgPosTabletTop”:0,”imgPosTabletLeft”:5,”imgPosTabletWidth”:100,”imgPosTabletHeight”:100,”imgPosTabletScale”:1,”imgPosMobileTop”:0,”imgPosMobileLeft”:5,”imgPosMobileWidth”:100,”imgPosMobileHeight”:100,”imgPosMobileScale”:1,”imgZIndex”:0,”taglineTop”:””,”taglineLeft”:””,”taglineBottom”:””,”taglineRight”:””,”taglineZIndex”:3,”enabled”:true,”bgColor”:”#f5f7fb”,”bgMedia”:””,”bgZIndex”:0,”textColor”:”#0a0a0a”,”taglineColor”:”#3a3a3c”,”textAlign”:”left”},”Adapter & Cables”:{“skeletonEnabled”:true,”skeletonW”:”100%”,”skeletonH”:”556px”,”imgPosDesktopTop”:0,”imgPosDesktopLeft”:0,”imgPosDesktopWidth”:100,”imgPosDesktopHeight”:100,”imgPosDesktopScale”:1,”imgPosTabletTop”:0,”imgPosTabletLeft”:5,”imgPosTabletWidth”:100,”imgPosTabletHeight”:100,”imgPosTabletScale”:1,”imgPosMobileTop”:0,”imgPosMobileLeft”:5,”imgPosMobileWidth”:100,”imgPosMobileHeight”:100,”imgPosMobileScale”:1,”imgZIndex”:0,”taglineTop”:””,”taglineLeft”:””,”taglineBottom”:””,”taglineRight”:””,”taglineZIndex”:3,”enabled”:true,”bgColor”:”#f5f7fb”,”bgMedia”:””,”bgZIndex”:0,”textColor”:”#0a0a0a”,”taglineColor”:”#3a3a3c”,”textAlign”:”left”},”Appliances”:{“skeletonEnabled”:true,”skeletonW”:”100%”,”skeletonH”:”556px”,”imgPosDesktopTop”:0,”imgPosDesktopLeft”:0,”imgPosDesktopWidth”:100,”imgPosDesktopHeight”:100,”imgPosDesktopScale”:1,”imgPosTabletTop”:0,”imgPosTabletLeft”:-5,”imgPosTabletWidth”:100,”imgPosTabletHeight”:100,”imgPosTabletScale”:1,”imgPosMobileTop”:0,”imgPosMobileLeft”:-5,”imgPosMobileWidth”:100,”imgPosMobileHeight”:100,”imgPosMobileScale”:1,”imgZIndex”:0,”taglineTop”:””,”taglineLeft”:””,”taglineBottom”:””,”taglineRight”:””,”taglineZIndex”:3,”enabled”:true,”bgColor”:”#f5f7fb”,”bgMedia”:””,”bgZIndex”:0,”textColor”:”#0a0a0a”,”taglineColor”:”#3a3a3c”,”textAlign”:”left”},”Camera”:{“bgColor”:”#f5f7fb”,”bgMedia”:””,”bgZIndex”:0,”enabled”:true,”imgPosDesktopHeight”:100,”imgPosDesktopLeft”:0,”imgPosDesktopScale”:1,”imgPosDesktopTop”:0,”imgPosDesktopWidth”:100,”imgPosMobileHeight”:100,”imgPosMobileLeft”:5,”imgPosMobileScale”:1,”imgPosMobileTop”:0,”imgPosMobileWidth”:100,”imgPosTabletHeight”:100,”imgPosTabletLeft”:5,”imgPosTabletScale”:1,”imgPosTabletTop”:0,”imgPosTabletWidth”:100,”imgZIndex”:0,”skeletonEnabled”:true,”skeletonH”:”556px”,”skeletonW”:”100%”,”taglineBottom”:””,”taglineColor”:”#3a3a3c”,”taglineLeft”:””,”taglineRight”:””,”taglineTop”:””,”taglineZIndex”:3,”textAlign”:”left”,”textColor”:”#0a0a0a”},”Gaming”:{“bgColor”:”#f5f7fb”,”bgMedia”:””,”bgZIndex”:0,”enabled”:true,”imgPosDesktopHeight”:100,”imgPosDesktopLeft”:0,”imgPosDesktopScale”:1,”imgPosDesktopTop”:0,”imgPosDesktopWidth”:100,”imgPosMobileHeight”:100,”imgPosMobileLeft”:5,”imgPosMobileScale”:1,”imgPosMobileTop”:0,”imgPosMobileWidth”:100,”imgPosTabletHeight”:100,”imgPosTabletLeft”:5,”imgPosTabletScale”:1,”imgPosTabletTop”:0,”imgPosTabletWidth”:100,”imgZIndex”:0,”skeletonEnabled”:true,”skeletonH”:”556px”,”skeletonW”:”100%”,”taglineBottom”:””,”taglineColor”:”#3a3a3c”,”taglineLeft”:””,”taglineRight”:””,”taglineTop”:””,”taglineZIndex”:3,”textAlign”:”left”,”textColor”:”#0a0a0a”},”Headphones”:{“skeletonEnabled”:true,”skeletonW”:”100%”,”skeletonH”:”556px”,”imgPosDesktopTop”:0,”imgPosDesktopLeft”:0,”imgPosDesktopWidth”:100,”imgPosDesktopHeight”:100,”imgPosDesktopScale”:1,”imgPosTabletTop”:0,”imgPosTabletLeft”:5,”imgPosTabletWidth”:100,”imgPosTabletHeight”:100,”imgPosTabletScale”:1,”imgPosMobileTop”:0,”imgPosMobileLeft”:5,”imgPosMobileWidth”:100,”imgPosMobileHeight”:100,”imgPosMobileScale”:1,”imgZIndex”:0,”taglineTop”:””,”taglineLeft”:””,”taglineBottom”:””,”taglineRight”:””,”taglineZIndex”:3,”enabled”:true,”bgColor”:”#f5f7fb”,”bgMedia”:””,”bgZIndex”:0,”textColor”:”#0a0a0a”,”taglineColor”:”#3a3a3c”,”textAlign”:”left”},”Laptop”:{“skeletonEnabled”:true,”skeletonW”:”100%”,”skeletonH”:”556px”,”imgPosDesktopTop”:0,”imgPosDesktopLeft”:0,”imgPosDesktopWidth”:100,”imgPosDesktopHeight”:100,”imgPosDesktopScale”:1,”imgPosTabletTop”:0,”imgPosTabletLeft”:5,”imgPosTabletWidth”:100,”imgPosTabletHeight”:100,”imgPosTabletScale”:1,”imgPosMobileTop”:0,”imgPosMobileLeft”:5,”imgPosMobileWidth”:100,”imgPosMobileHeight”:100,”imgPosMobileScale”:1,”imgZIndex”:0,”taglineTop”:””,”taglineLeft”:””,”taglineBottom”:””,”taglineRight”:””,”taglineZIndex”:3,”enabled”:true,”bgColor”:”#f5f7fb”,”bgMedia”:””,”bgZIndex”:0,”textColor”:”#0a0a0a”,”taglineColor”:”#3a3a3c”,”textAlign”:”left”},”Lifestyle”:{“skeletonEnabled”:true,”skeletonW”:”100%”,”skeletonH”:”556px”,”imgPosDesktopTop”:0,”imgPosDesktopLeft”:0,”imgPosDesktopWidth”:100,”imgPosDesktopHeight”:100,”imgPosDesktopScale”:1,”imgPosTabletTop”:0,”imgPosTabletLeft”:5,”imgPosTabletWidth”:100,”imgPosTabletHeight”:100,”imgPosTabletScale”:1,”imgPosMobileTop”:0,”imgPosMobileLeft”:5,”imgPosMobileWidth”:100,”imgPosMobileHeight”:100,”imgPosMobileScale”:1,”imgZIndex”:0,”taglineTop”:””,”taglineLeft”:””,”taglineBottom”:””,”taglineRight”:””,”taglineZIndex”:3,”enabled”:true,”bgColor”:”#f5f7fb”,”bgMedia”:””,”bgZIndex”:0,”textColor”:”#0a0a0a”,”taglineColor”:”#3a3a3c”,”textAlign”:”left”},”Mobiles”:{“skeletonEnabled”:true,”skeletonW”:”100%”,”skeletonH”:”556px”,”imgPosDesktopTop”:0,”imgPosDesktopLeft”:0,”imgPosDesktopWidth”:100,”imgPosDesktopHeight”:100,”imgPosDesktopScale”:1,”imgPosTabletTop”:0,”imgPosTabletLeft”:5,”imgPosTabletWidth”:100,”imgPosTabletHeight”:100,”imgPosTabletScale”:1,”imgPosMobileTop”:0,”imgPosMobileLeft”:5,”imgPosMobileWidth”:100,”imgPosMobileHeight”:100,”imgPosMobileScale”:0.8,”imgZIndex”:0,”taglineTop”:””,”taglineLeft”:””,”taglineBottom”:””,”taglineRight”:””,”taglineZIndex”:3,”enabled”:true,”bgColor”:”#f5f7fb”,”bgMedia”:””,”bgZIndex”:0,”textColor”:”#0a0a0a”,”taglineColor”:”#3a3a3c”,”textAlign”:”left”},”PC Peripherals”:{“skeletonEnabled”:true,”skeletonW”:”100%”,”skeletonH”:”556px”,”imgPosDesktopTop”:0,”imgPosDesktopLeft”:0,”imgPosDesktopWidth”:100,”imgPosDesktopHeight”:100,”imgPosDesktopScale”:1,”imgPosTabletTop”:0,”imgPosTabletLeft”:5,”imgPosTabletWidth”:100,”imgPosTabletHeight”:100,”imgPosTabletScale”:1,”imgPosMobileTop”:0,”imgPosMobileLeft”:5,”imgPosMobileWidth”:100,”imgPosMobileHeight”:100,”imgPosMobileScale”:1,”imgZIndex”:0,”taglineTop”:””,”taglineLeft”:””,”taglineBottom”:””,”taglineRight”:””,”taglineZIndex”:3,”enabled”:true,”bgColor”:”#f5f7fb”,”bgMedia”:””,”bgZIndex”:0,”textColor”:”#0a0a0a”,”taglineColor”:”#3a3a3c”,”textAlign”:”left”},”Powerbank”:{“skeletonEnabled”:true,”skeletonW”:”100%”,”skeletonH”:”556px”,”imgPosDesktopTop”:0,”imgPosDesktopLeft”:0,”imgPosDesktopWidth”:100,”imgPosDesktopHeight”:100,”imgPosDesktopScale”:1,”imgPosTabletTop”:0,”imgPosTabletLeft”:5,”imgPosTabletWidth”:100,”imgPosTabletHeight”:100,”imgPosTabletScale”:1,”imgPosMobileTop”:0,”imgPosMobileLeft”:5,”imgPosMobileWidth”:100,”imgPosMobileHeight”:100,”imgPosMobileScale”:1,”imgZIndex”:0,”taglineTop”:””,”taglineLeft”:””,”taglineBottom”:””,”taglineRight”:””,”taglineZIndex”:3,”enabled”:true,”bgColor”:”#f5f7fb”,”bgMedia”:””,”bgZIndex”:0,”textColor”:”#0a0a0a”,”taglineColor”:”#3a3a3c”,”textAlign”:”left”},”Printers”:{“bgColor”:”#f5f7fb”,”bgMedia”:””,”bgZIndex”:0,”enabled”:true,”imgPosDesktopHeight”:100,”imgPosDesktopLeft”:0,”imgPosDesktopScale”:1,”imgPosDesktopTop”:0,”imgPosDesktopWidth”:100,”imgPosMobileHeight”:100,”imgPosMobileLeft”:5,”imgPosMobileScale”:1,”imgPosMobileTop”:0,”imgPosMobileWidth”:100,”imgPosTabletHeight”:100,”imgPosTabletLeft”:5,”imgPosTabletScale”:1,”imgPosTabletTop”:0,”imgPosTabletWidth”:100,”imgZIndex”:0,”skeletonEnabled”:true,”skeletonH”:”556px”,”skeletonW”:”100%”,”taglineBottom”:””,”taglineColor”:”#3a3a3c”,”taglineLeft”:””,”taglineRight”:””,”taglineTop”:””,”taglineZIndex”:3,”textAlign”:”left”,”textColor”:”#0a0a0a”},”Security”:{“bgColor”:”#f5f7fb”,”bgMedia”:””,”bgZIndex”:0,”enabled”:true,”imgPosDesktopHeight”:100,”imgPosDesktopLeft”:0,”imgPosDesktopScale”:1,”imgPosDesktopTop”:0,”imgPosDesktopWidth”:100,”imgPosMobileHeight”:100,”imgPosMobileLeft”:5,”imgPosMobileScale”:1,”imgPosMobileTop”:0,”imgPosMobileWidth”:100,”imgPosTabletHeight”:100,”imgPosTabletLeft”:5,”imgPosTabletScale”:1,”imgPosTabletTop”:0,”imgPosTabletWidth”:100,”imgZIndex”:0,”skeletonEnabled”:true,”skeletonH”:”556px”,”skeletonW”:”100%”,”taglineBottom”:””,”taglineColor”:”#3a3a3c”,”taglineLeft”:””,”taglineRight”:””,”taglineTop”:””,”taglineZIndex”:3,”textAlign”:”left”,”textColor”:”#0a0a0a”},”Sim & Load Cards”:{“skeletonEnabled”:true,”skeletonW”:”100%”,”skeletonH”:”556px”,”imgPosDesktopTop”:0,”imgPosDesktopLeft”:0,”imgPosDesktopWidth”:100,”imgPosDesktopHeight”:100,”imgPosDesktopScale”:1,”imgPosTabletTop”:0,”imgPosTabletLeft”:5,”imgPosTabletWidth”:100,”imgPosTabletHeight”:100,”imgPosTabletScale”:1,”imgPosMobileTop”:0,”imgPosMobileLeft”:5,”imgPosMobileWidth”:100,”imgPosMobileHeight”:100,”imgPosMobileScale”:1,”imgZIndex”:0,”taglineTop”:””,”taglineLeft”:””,”taglineBottom”:””,”taglineRight”:””,”taglineZIndex”:3,”enabled”:true,”bgColor”:”#f5f7fb”,”bgMedia”:””,”bgZIndex”:0,”textColor”:”#0a0a0a”,”taglineColor”:”#3a3a3c”,”textAlign”:”left”},”Speaker”:{“skeletonEnabled”:true,”skeletonW”:”100%”,”skeletonH”:”556px”,”imgPosDesktopTop”:0,”imgPosDesktopLeft”:0,”imgPosDesktopWidth”:100,”imgPosDesktopHeight”:100,”imgPosDesktopScale”:1,”imgPosTabletTop”:0,”imgPosTabletLeft”:5,”imgPosTabletWidth”:100,”imgPosTabletHeight”:100,”imgPosTabletScale”:1,”imgPosMobileTop”:0,”imgPosMobileLeft”:5,”imgPosMobileWidth”:100,”imgPosMobileHeight”:100,”imgPosMobileScale”:1,”imgZIndex”:0,”taglineTop”:””,”taglineLeft”:””,”taglineBottom”:””,”taglineRight”:””,”taglineZIndex”:3,”enabled”:true,”bgColor”:”#f5f7fb”,”bgMedia”:””,”bgZIndex”:0,”textColor”:”#0a0a0a”,”taglineColor”:”#3a3a3c”,”textAlign”:”left”},”Tablets”:{“skeletonEnabled”:true,”skeletonW”:”100%”,”skeletonH”:”556px”,”imgPosDesktopTop”:0,”imgPosDesktopLeft”:0,”imgPosDesktopWidth”:100,”imgPosDesktopHeight”:100,”imgPosDesktopScale”:1,”imgPosTabletTop”:0,”imgPosTabletLeft”:5,”imgPosTabletWidth”:100,”imgPosTabletHeight”:100,”imgPosTabletScale”:1,”imgPosMobileTop”:0,”imgPosMobileLeft”:5,”imgPosMobileWidth”:100,”imgPosMobileHeight”:100,”imgPosMobileScale”:1,”imgZIndex”:0,”taglineTop”:””,”taglineLeft”:””,”taglineBottom”:””,”taglineRight”:””,”taglineZIndex”:3,”enabled”:true,”bgColor”:”#f5f7fb”,”bgMedia”:””,”bgZIndex”:0,”textColor”:”#0a0a0a”,”taglineColor”:”#3a3a3c”,”textAlign”:”left”},”Watch”:{“skeletonEnabled”:true,”skeletonW”:”100%”,”skeletonH”:”556px”,”imgPosDesktopTop”:0,”imgPosDesktopLeft”:0,”imgPosDesktopWidth”:100,”imgPosDesktopHeight”:100,”imgPosDesktopScale”:1,”imgPosTabletTop”:0,”imgPosTabletLeft”:5,”imgPosTabletWidth”:100,”imgPosTabletHeight”:100,”imgPosTabletScale”:1,”imgPosMobileTop”:0,”imgPosMobileLeft”:5,”imgPosMobileWidth”:100,”imgPosMobileHeight”:100,”imgPosMobileScale”:1,”imgZIndex”:0,”taglineTop”:””,”taglineLeft”:””,”taglineBottom”:””,”taglineRight”:””,”taglineZIndex”:3,”enabled”:true,”bgColor”:”#f5f7fb”,”bgMedia”:””,”bgZIndex”:0,”textColor”:”#0a0a0a”,”taglineColor”:”#3a3a3c”,”textAlign”:”left”}},”filterSections”:[{“banner”:””,”catId”:””,”catSlug”:””,”enabled”:false,”id”:”custom_1789701691280″,”label”:”PRE-ORDER”,”productIds”:[33202,34084,34100,34118,36037],”productNames”:[“PRE-ORDER: Honor 600s 5G”,”PRE-ORDER: Xiaomi Redmi Note 17″,”PRE-ORDER: Xiaomi Redmi Note 17 5G”,”PRE-ORDER: Xiaomi Redmi Note 17 Pro”,”PRE-ORDER: Vivo V80 Lite 5G (Downpayment)”],”productSource”:”products”,”tagId”:””,”tagSlug”:””,”type”:”custom”},{“enabled”:true,”id”:”category”,”label”:”Category”,”type”:”fixed”},{“enabled”:true,”id”:”brand”,”label”:”Brand”,”type”:”fixed”}],”filterBrands”:[{“banner”:”https://mxmemoxpress.com/wp-content/uploads/2026/09/Samsung-Banner.jpg”,”brandId”:139,”catId”:139,”catSlug”:””,”name”:”Samsung”,”slug”:”Samsung”,”tagId”:””,”tagSlug”:””},{“banner”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/09/Apple.jpg”,”brandId”:58,”catId”:58,”catSlug”:””,”name”:”Apple”,”slug”:”Apple”,”tagId”:””,”tagSlug”:””},{“banner”:”https://mxmemoxpress.com/wp-content/uploads/2026/09/Huawei-Banner.png”,”brandId”:29,”catId”:””,”catSlug”:””,”name”:”Huawei”,”slug”:”Huawei”,”tagId”:””,”tagSlug”:””},{“banner”:”https://mxmemoxpress.com/wp-content/uploads/2026/09/Vivo-Banner.jpg”,”brandId”:464,”catId”:””,”catSlug”:””,”name”:”Vivo”,”slug”:”Vivo”,”tagId”:””,”tagSlug”:””},{“banner”:”https://mxmemoxpress.com/wp-content/uploads/2026/09/Oppo-Banner.jpg”,”brandId”:481,”catId”:””,”catSlug”:””,”name”:”Oppo”,”slug”:”Oppo”,”tagId”:””,”tagSlug”:””},{“banner”:”https://mxmemoxpress.com/wp-content/uploads/2026/09/Xiaomi-Banner-1.png”,”brandId”:296,”catId”:””,”catSlug”:””,”name”:”Xiaomi”,”slug”:”Xiaomi”,”tagId”:””,”tagSlug”:””},{“banner”:”https://mxmemoxpress.com/wp-content/uploads/2026/09/Acer-Banner.png”,”brandId”:616,”catId”:””,”catSlug”:””,”name”:”Acer”,”slug”:”Acer”,”tagId”:””,”tagSlug”:””},{“banner”:”https://mxmemoxpress.com/wp-content/uploads/2026/09/Realme-Banner.png”,”brandId”:61,”catId”:””,”catSlug”:””,”name”:”Realme”,”slug”:”Realme”,”tagId”:””,”tagSlug”:””},{“banner”:”https://mxmemoxpress.com/wp-content/uploads/2026/09/Lenovo-Banner.png”,”brandId”:901,”catId”:””,”catSlug”:””,”name”:”Lenovo”,”slug”:”Lenovo”,”tagId”:””,”tagSlug”:””},{“banner”:”https://mxmemoxpress.com/wp-content/uploads/2026/09/Akaso-Banner.png”,”brandId”:1263,”catId”:””,”catSlug”:””,”name”:”Akaso”,”slug”:”Akaso”,”tagId”:””,”tagSlug”:””},{“brandId”:459,”catId”:””,”catSlug”:””,”name”:”Honor”,”slug”:”Honor”,”tagId”:””,”tagSlug”:””},{“brandId”:494,”catId”:””,”catSlug”:””,”name”:”HP”,”slug”:”HP”,”tagId”:””,”tagSlug”:””},{“brandId”:1287,”catId”:””,”catSlug”:””,”name”:”Gamedias”,”slug”:”Gamedias”,”tagId”:””,”tagSlug”:””},{“brandId”:1231,”catId”:””,”catSlug”:””,”name”:”Redmagic”,”slug”:”Redmagic”,”tagId”:””,”tagSlug”:””},{“brandId”:1293,”catId”:””,”catSlug”:””,”name”:”Nintendo”,”slug”:”Nintendo”,”tagId”:””,”tagSlug”:””},{“brandId”:1290,”catId”:””,”catSlug”:””,”name”:”Erviz”,”slug”:”Erviz”,”tagId”:””,”tagSlug”:””},{“brandId”:1274,”catId”:””,”catSlug”:””,”name”:”Aula”,”slug”:”Aula”,”tagId”:””,”tagSlug”:””},{“brandId”:1318,”name”:”ASRock”,”slug”:”asrock”},{“brandId”:1275,”name”:”Canon”,”slug”:”canon”},{“brandId”:1340,”name”:”Denmen”,”slug”:”denmen”},{“brandId”:1341,”name”:”Golf”,”slug”:”golf”},{“brandId”:1320,”name”:”Langsdom”,”slug”:”langsdom”},{“brandId”:1327,”name”:”LG”,”slug”:”lg”},{“brandId”:1331,”name”:”Nubia”,”slug”:”nubia”},{“brandId”:587,”name”:”Sharp”,”slug”:”sharp”},{“brandId”:1319,”name”:”Smart”,”slug”:”smart”},{“brandId”:859,”name”:”Vention”,”slug”:”vention”},{“brandId”:1338,”name”:”Vidvie”,”slug”:”vidvie”},{“brandId”:1334,”name”:”XO”,”slug”:”xo”},{“brandId”:601,”name”:”Tecno”,”slug”:”tecno”},{“brandId”:1410,”name”:”Awei”,”slug”:”awei”},{“brandId”:1364,”name”:”Ace”,”slug”:”ace”},{“brandId”:1423,”name”:”Anbernic”,”slug”:”anbernic”},{“brandId”:564,”name”:”Asus”,”slug”:”asus”},{“brandId”:634,”name”:”Black Shark”,”slug”:”black-shark”},{“brandId”:1271,”name”:”Edifier”,”slug”:”edifier”},{“brandId”:1346,”name”:”Logitech”,”slug”:”logitech”},{“brandId”:232,”name”:”Nokia”,”slug”:”nokia”},{“brandId”:1336,”name”:”Onda”,”slug”:”onda”},{“brandId”:1412,”name”:”Promate”,”slug”:”promate”},{“brandId”:1350,”name”:”Ringconn”,”slug”:”ringconn”},{“brandId”:1328,”name”:”Sony”,”slug”:”sony”},{“brandId”:1430,”name”:”Supremo”,”slug”:”supremo”},{“brandId”:591,”name”:”Techlife”,”slug”:”techlife”},{“brandId”:1417,”name”:”Wekome”,”slug”:”wekome”},{“brandId”:1407,”name”:”Xipin”,”slug”:”xipin”},{“brandId”:1400,”name”:”Yoobao”,”slug”:”yoobao”},{“name”:”Sembrandt”,”slug”:”sembrandt”,”brandId”:1441}],”quickView”:true,”qvPanelWidth”:672,”qvFullMobile”:true,”qvFullTablet”:true,”qvStyle”:”style1″,”qvStyleTargets”:{“shop”:false,”kiosk”:false,”kiosk1419″:true},”qvImgHeightDesktop”:350,”qvPromoBannerHeightMobile”:50,”qvPanelMarginTop”:0,”qvPanelMarginBottom”:0,”qvPanelZIndex”:9999999,”mhZIndexDesktop”:2147483000,”mhZIndexTablet”:2147483000,”mhZIndexMobile”:2147483000,”qvButtons”:{“buyNow”:{“width”:””,”height”:””,”marginTop”:0,”marginBottom”:0,”zIndex”:””,”bgColor”:””,”textColor”:””,”label”:”Buy Now”},”addToCart”:{“width”:””,”height”:””,”marginTop”:0,”marginBottom”:0,”zIndex”:””,”bgColor”:””,”textColor”:””,”label”:”Add to Cart”},”wishlist”:{“width”:””,”height”:””,”marginTop”:0,”marginBottom”:0,”zIndex”:””,”bgColor”:”#ffffff”,”textColor”:”#000000″,”label”:”Add to Wishlist”},”viewDetails”:{“width”:””,”height”:””,”marginTop”:0,”marginBottom”:0,”zIndex”:””,”bgColor”:”#ffffff”,”textColor”:”#000000″,”label”:”View Full Details”}},”wishlist”:true,”wishlistColor”:”#e63946″,”pricePresets”:[{“label”:”Below ₱10,000″,”max”:10000,”min”:0},{“label”:”₱10,000 – ₱26,999″,”max”:26999,”min”:10000},{“label”:”₱27,000 – ₱49,999″,”max”:49999,”min”:27000},{“label”:”₱50,000 – ₱99,999″,”max”:99999,”min”:50000},{“label”:”Above ₱100,000″,”max”:999999,”min”:100000}],”discountDisplay”:{“enabled”:true,”style”:”percent”,”minPct”:0,”badgePos”:”inline”},”analytics”:{“enabled”:true,”excludeStaff”:true,”respectDnt”:true},”installment”:{“enabled”:true,”provider”:”bdo”,”rate”:1.13,”months”:12,”cardTemplate”:”As low as ₱{amount} / {months} months with Easy Financing via Skyro.”,”qvTemplate”:”As low as ₱{amount}/mo for {months} months with Easy Financing via Skyro.”,”quickPanelEnabled”:false},”productBanners”:[],”carouselIndicator”:false,”perPage”:12,”shopUrl”:”https://mxmemoxpress.com/category”,”cardBadges”:{“leftBadge”:{“catIcons”:{“AI Enabled”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/Ai-logo.png”},”categories”:[“AI Enabled”],”enabled”:true,”iconUrl”:””},”newArrival”:{“bgColor”:”#059669″,”categories”:[“Appliances”,”Home Appliances”],”color”:”#ffffff”,”enabled”:true,”iconUrl”:””,”text”:”MX Fresh”},”rightBadge”:{“enabled”:false,”iconUrl”:””},”sale”:{“bgColor”:”#e63946″,”color”:”#ffffff”,”enabled”:true,”iconUrl”:””,”text”:”MXciting Deals”}},”sideBanner”:{“bannerImage”:””,”bannerLink”:””,”bannerLinkTarget”:”_blank”,”body”:””,”bodyColor”:”#d0e8ff”,”bodyFontSize”:13,”ctaBgColor”:”#ffffff”,”ctaLink”:””,”ctaLinkTarget”:”_blank”,”ctaText”:””,”ctaTextColor”:”#0a2540″,”enabled”:false,”heading”:””,”headingColor”:”#ffffff”,”headingFontSize”:18,”mode”:”image”,”panelBgColor”:”#0a2540″,”panelBgImage”:””,”panelWidth”:320,”tabBgColor”:”#1a73e8″,”tabFontSize”:13,”tabLabel”:”Registration”,”tabOffsetTop”:”40%”,”tabPosition”:”left”,”tabTextColor”:”#ffffff”,”tabWidth”:32},”categoryGrid”:{“activeBorderColor”:”#ffffff”,”activeBorderWidth”:2,”allBrandsBg”:”linear-gradient(135deg, #FFD800, #FFD800)”,”allBrandsLabel”:”All Brands”,”allBrandsTextColor”:”#030303″,”enabled”:true,”flexCarouselEnabled”:true,”images”:{“Accessories”:{“image”:”https://mxmemoxpress.com/wp-content/uploads/2026/09/Accessories.jpg”},”Adapter & Cables”:{“image”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/ADAPTER-CABLES-ICON.webp”},”Appliances”:{“image”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/APPLIANCES-ICON.webp”},”Camera”:{“image”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/camera-1.webp”},”Gaming”:{“image”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/GAMEPAD-ICON.webp”},”Headphones”:{“image”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/HEADSET-ICON.webp”},”Laptop”:{“image”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/LAPTOP-ICON.webp”},”Lifestyle”:{“image”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/BAGS-ICON.webp”},”Mobiles”:{“image”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/AI-ENABLE-ICON.webp”},”PC Peripherals”:{“image”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/PC-ICON.webp”},”Powerbank”:{“image”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/POWEBANK-ICON.webp”},”Printers”:{“image”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/PRINTER-ICON.webp”},”Security”:{“image”:” https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/CAMERA-ICON.webp”},”Sim & Load Cards”:{“image”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/SIM-ICON.webp”},”Speaker”:{“image”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/SPEAKER-ICON.webp”},”Tablets”:{“image”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/TABLET-ICON.webp”},”Wearables”:{“image”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/WEARABLE-ICON.webp”}},”navArrowsEnabled”:true,”kioskAllBrandsEnabled”:true,”kioskAllBrandsPosition”:”first”,”kioskBrandTiles”:[{“name”:”Samsung”,”slug”:”samsung”,”enabled”:true,”logo”:”data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNDAgODAiPjx0ZXh0IHg9IjEyMCIgeT0iNTIiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZvbnQtZmFtaWx5PSJBcmlhbCxzYW5zLXNlcmlmIiBmb250LXNpemU9IjM2IiBmb250LXdlaWdodD0iNzAwIiBmaWxsPSIjMTQyOGEwIj5TYW1zdW5nPC90ZXh0Pjwvc3ZnPg==”},{“name”:”Apple”,”slug”:”apple”,”enabled”:true,”logo”:”data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNDAgODAiPjx0ZXh0IHg9IjEyMCIgeT0iNTIiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZvbnQtZmFtaWx5PSJBcmlhbCxzYW5zLXNlcmlmIiBmb250LXNpemU9IjM2IiBmb250LXdlaWdodD0iNzAwIiBmaWxsPSIjMTExMTExIj5BcHBsZTwvdGV4dD48L3N2Zz4=”},{“name”:”Huawei”,”slug”:”huawei”,”enabled”:true,”logo”:”data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNDAgODAiPjx0ZXh0IHg9IjEyMCIgeT0iNTIiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZvbnQtZmFtaWx5PSJBcmlhbCxzYW5zLXNlcmlmIiBmb250LXNpemU9IjM2IiBmb250LXdlaWdodD0iNzAwIiBmaWxsPSIjY2YwYTJjIj5IdWF3ZWk8L3RleHQ+PC9zdmc+”},{“name”:”Vivo”,”slug”:”vivo”,”enabled”:true,”logo”:”data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNDAgODAiPjx0ZXh0IHg9IjEyMCIgeT0iNTIiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZvbnQtZmFtaWx5PSJBcmlhbCxzYW5zLXNlcmlmIiBmb250LXNpemU9IjM2IiBmb250LXdlaWdodD0iNzAwIiBmaWxsPSIjMTc1NWRmIj5WaXZvPC90ZXh0Pjwvc3ZnPg==”},{“name”:”OPPO”,”slug”:”oppo”,”enabled”:true,”logo”:”data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNDAgODAiPjx0ZXh0IHg9IjEyMCIgeT0iNTIiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZvbnQtZmFtaWx5PSJBcmlhbCxzYW5zLXNlcmlmIiBmb250LXNpemU9IjM2IiBmb250LXdlaWdodD0iNzAwIiBmaWxsPSIjMDg3YzRjIj5PUFBPPC90ZXh0Pjwvc3ZnPg==”},{“name”:”Xiaomi”,”slug”:”xiaomi”,”enabled”:true,”logo”:”data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNDAgODAiPjx0ZXh0IHg9IjEyMCIgeT0iNTIiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZvbnQtZmFtaWx5PSJBcmlhbCxzYW5zLXNlcmlmIiBmb250LXNpemU9IjM2IiBmb250LXdlaWdodD0iNzAwIiBmaWxsPSIjZmY2OTAwIj5YaWFvbWk8L3RleHQ+PC9zdmc+”},{“name”:”Sony”,”slug”:”sony”,”enabled”:true,”logo”:”data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNDAgODAiPjx0ZXh0IHg9IjEyMCIgeT0iNTIiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZvbnQtZmFtaWx5PSJBcmlhbCxzYW5zLXNlcmlmIiBmb250LXNpemU9IjM2IiBmb250LXdlaWdodD0iNzAwIiBmaWxsPSIjMTExMTExIj5Tb255PC90ZXh0Pjwvc3ZnPg==”},{“name”:”realme”,”slug”:”realme”,”enabled”:true,”logo”:”data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNDAgODAiPjx0ZXh0IHg9IjEyMCIgeT0iNTIiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZvbnQtZmFtaWx5PSJBcmlhbCxzYW5zLXNlcmlmIiBmb250LXNpemU9IjM2IiBmb250LXdlaWdodD0iNzAwIiBmaWxsPSIjZDRhNTAwIj5yZWFsbWU8L3RleHQ+PC9zdmc+”},{“name”:”Lenovo”,”slug”:”lenovo”,”enabled”:true,”logo”:”data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNDAgODAiPjx0ZXh0IHg9IjEyMCIgeT0iNTIiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZvbnQtZmFtaWx5PSJBcmlhbCxzYW5zLXNlcmlmIiBmb250LXNpemU9IjM2IiBmb250LXdlaWdodD0iNzAwIiBmaWxsPSIjZTIyMzFhIj5MZW5vdm88L3RleHQ+PC9zdmc+”}],”allBrandsHome”:{“enabled”:true,”bgColor”:”#f5f5f7″,”limit”:8,”brands”:{}},”allBrandsEnabled”:false},”freebies”:{“enabled”:true,”items”:[{“categories”:[“Tablets”,”Mobiles”],”enabled”:true,”id”:”fb_muw9vyxw91l”,”imageUrl”:”https://mxmemoxpress.com/wp-content/uploads/2026/11/TNT-5G-LTE-SAYA-SIM-1.png”,”name”:”Free TNT 5G SIM”,”skus”:””,”brandsByCat”:{“Tablets”:[“Apple”,”Lenovo”,”Honor”,”Xiaomi”,”Huawei”,”Tecno”],”Mobiles”:[“Apple”,”Huawei”,”Nubia”,”Honor”,”vivo”,”Tecno”,”Realme”,”Xiaomi”,”Oppo”,”Redmagic”]},”catQty”:{}},{“id”:”fb_mw6as4dzkgs”,”name”:”Free Globe 5G Sim”,”imageUrl”:”https://mxmemoxpress.com/wp-content/uploads/2026/11/Free-Globe-Go50-SIM-Pack-with-Free-Badge.webp”,”enabled”:true,”categories”:[“Tablets”,”Mobiles”],”qty”:1,”catQty”:{},”products”:[],”skus”:””,”brandsByCat”:{“Tablets”:[“Samsung”],”Mobiles”:[“Samsung”]}}],”showInQv”:true,”showOnCard”:true},”qvPromoBanner”:{“bannerImage”:””,”bannerLink”:””,”bannerLinkTarget”:”_blank”,”body”:””,”bodyColor”:”#ffffff”,”bodyFontSize”:13,”cssBg”:”#e63946″,”cssBgImage”:””,”enabled”:false,”heading”:””,”headingColor”:”#ffffff”,”headingFontSize”:18,”height”:118,”mode”:”image”,”width”:547},”paymentOptions”:{“enabled”:false,”items”:[{“enabled”:true,”icon”:”wallet”,”iconUrl”:””,”id”:”card”,”label”:”Debit/Credit”},{“enabled”:true,”icon”:”digital”,”iconUrl”:””,”id”:”digital”,”label”:”Digital Pay”},{“enabled”:true,”icon”:”financing”,”iconUrl”:””,”id”:”financing”,”label”:”Financing”}]},”kioskHome”:{“enabled”:true,”placement”:”home”,”bgColor”:”#f5f5f7″,”homeLabel”:”Home”,”homeIdleSec”:”60″,”hero”:{“enabled”:true,”ratio”:”14 / 9″,”autoplaySec”:”4″,”slides”:[{“type”:”image”,”url”:”https://mxmemoxpress.com/wp-content/uploads/2026/10/Vivo-V80-Lite-Layered.jpg”,”title”:””,”subtitle”:””,”ctaText”:””,”link”:”cat:Mobiles”,”align”:”left”,”textColor”:”#ffffff”,”productRef”:””,”titleSize”:””,”subtitleSize”:””,”qrUrl”:””},{“type”:”image”,”url”:”https://mxmemoxpress.com/wp-content/uploads/2026/10/iPhone-Duo-Layered.jpg”,”title”:””,”subtitle”:””,”ctaText”:””,”link”:”cat:Mobiles”,”align”:”left”,”textColor”:”#ffffff”,”productRef”:””,”titleSize”:””,”subtitleSize”:””,”qrUrl”:””},{“type”:”image”,”url”:”https://mxmemoxpress.com/wp-content/uploads/2026/10/iPhone-18-Pro-Max-Layered.jpg”,”title”:””,”subtitle”:””,”ctaText”:””,”link”:”cat:Mobiles”,”align”:”left”,”textColor”:”#ffffff”,”productRef”:””,”titleSize”:””,”subtitleSize”:””,”qrUrl”:””},{“type”:”image”,”url”:”https://mxmemoxpress.com/wp-content/uploads/2026/10/Redeem-Your-MX-Points-for-XPRESSO-1.jpg”,”title”:””,”subtitle”:””,”ctaText”:””,”link”:””,”align”:”left”,”textColor”:”#ffffff”,”productRef”:””,”qrUrl”:”https://mxmemoxpress.com/”,”titleSize”:””,”subtitleSize”:””}]},”sections”:[{“enabled”:true,”title”:””,”subtitle”:””,”theme”:”light”,”bgColor”:”#122b59″,”source”:{“mode”:”sale”,”value”:””,”onSale”:false},”limit”:”10″,”banner”:{“position”:”card”,”type”:”image”,”url”:”data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22600%22%20height%3D%22814%22%20viewBox%3D%220%200%20600%20814%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20×2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23122b59%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23075ca1%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22600%22%20height%3D%22814%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Ccircle%20cx%3D%22500%22%20cy%3D%22650%22%20r%3D%22275%22%20fill%3D%22white%22%20opacity%3D%22.06%22%2F%3E%3Ccircle%20cx%3D%2280%22%20cy%3D%22800%22%20r%3D%22260%22%20fill%3D%22white%22%20opacity%3D%22.04%22%2F%3E%3Cg%20transform%3D%22translate%28-35.5%20-15.5%29%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%228%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%22.8%22%3E%3Cpath%20d%3D%22M230%20365h145l66%2066-145%20145-66-66z%22%2F%3E%3Ccircle%20cx%3D%22270%22%20cy%3D%22405%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22m300%20465%2080%200m-40-40v80%22%2F%3E%3C%2Fg%3E%3Ctext%20x%3D%2242%22%20y%3D%22745%22%20fill%3D%22white%22%20opacity%3D%22.8%22%20font-family%3D%22Arial%2Csans-serif%22%20font-size%3D%2220%22%20letter-spacing%3D%223%22%3EDISCOVER%20MORE%20%E2%86%92%3C%2Ftext%3E%3C%2Fsvg%3E”,”productRef”:””,”title”:”MXCITING DEALS”,”subtitle”:”Big finds. Bigger savings.”,”ctaText”:””,”link”:””,”textColor”:”#ffffff”,”ratio”:”14 / 19″,”align”:”left”,”light”:false,”titleSize”:””,”subtitleSize”:””,”qrUrl”:””},”titleSize”:””,”subtitleSize”:””},{“enabled”:true,”title”:””,”subtitle”:””,”theme”:”light”,”bgColor”:”#03685b”,”source”:{“mode”:”newest”,”value”:””,”onSale”:false},”limit”:”10″,”banner”:{“position”:”card”,”type”:”image”,”url”:”data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22600%22%20height%3D%22814%22%20viewBox%3D%220%200%20600%20814%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20×2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%2303685b%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2310a5a0%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22600%22%20height%3D%22814%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Ccircle%20cx%3D%22500%22%20cy%3D%22650%22%20r%3D%22275%22%20fill%3D%22white%22%20opacity%3D%22.06%22%2F%3E%3Ccircle%20cx%3D%2280%22%20cy%3D%22800%22%20r%3D%22260%22%20fill%3D%22white%22%20opacity%3D%22.04%22%2F%3E%3Cg%20transform%3D%22translate%28-68.5%2015%29%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%228%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%22.8%22%3E%3Crect%20x%3D%22252%22%20y%3D%22340%22%20width%3D%22145%22%20height%3D%22230%22%20rx%3D%2225%22%2F%3E%3Cpath%20d%3D%22M305%20365h40m-30%20175h20M415%20350l15-40%2015%2040%2040%2015-40%2015-15%2040-15-40-40-15z%22%2F%3E%3C%2Fg%3E%3Ctext%20x%3D%2242%22%20y%3D%22745%22%20fill%3D%22white%22%20opacity%3D%22.8%22%20font-family%3D%22Arial%2Csans-serif%22%20font-size%3D%2220%22%20letter-spacing%3D%223%22%3EDISCOVER%20MORE%20%E2%86%92%3C%2Ftext%3E%3C%2Fsvg%3E”,”productRef”:””,”title”:”MXFRESH”,”subtitle”:”Fresh arrivals. Your next upgrade.”,”ctaText”:””,”link”:””,”textColor”:”#ffffff”,”ratio”:”14 / 19″,”align”:”left”,”light”:false,”titleSize”:””,”subtitleSize”:””,”qrUrl”:””},”titleSize”:””,”subtitleSize”:””},{“enabled”:true,”title”:””,”subtitle”:””,”theme”:”light”,”bgColor”:”#292050″,”source”:{“mode”:”category”,”value”:”562″,”onSale”:false},”limit”:”10″,”banner”:{“position”:”card”,”type”:”image”,”url”:”data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22600%22%20height%3D%22814%22%20viewBox%3D%220%200%20600%20814%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20×2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23292050%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%235353af%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22600%22%20height%3D%22814%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Ccircle%20cx%3D%22500%22%20cy%3D%22650%22%20r%3D%22275%22%20fill%3D%22white%22%20opacity%3D%22.06%22%2F%3E%3Ccircle%20cx%3D%2280%22%20cy%3D%22800%22%20r%3D%22260%22%20fill%3D%22white%22%20opacity%3D%22.04%22%2F%3E%3Cg%20transform%3D%22translate%28-30%20-12.5%29%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%228%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%22.8%22%3E%3Crect%20x%3D%22190%22%20y%3D%22350%22%20width%3D%22280%22%20height%3D%22180%22%20rx%3D%2218%22%2F%3E%3Cpath%20d%3D%22m165%20550%20330%200-25%2035H190zM280%20565h100%22%2F%3E%3C%2Fg%3E%3Ctext%20x%3D%2242%22%20y%3D%22745%22%20fill%3D%22white%22%20opacity%3D%22.8%22%20font-family%3D%22Arial%2Csans-serif%22%20font-size%3D%2220%22%20letter-spacing%3D%223%22%3EDISCOVER%20MORE%20%E2%86%92%3C%2Ftext%3E%3C%2Fsvg%3E”,”productRef”:””,”title”:”LAPTOP BEST DEALS”,”subtitle”:”Power your hustle. Upgrade for less.”,”ctaText”:””,”link”:”cat:Laptop”,”textColor”:”#ffffff”,”ratio”:”14 / 19″,”align”:”left”,”light”:false,”titleSize”:””,”subtitleSize”:””,”qrUrl”:””},”titleSize”:””,”subtitleSize”:””},{“enabled”:true,”title”:””,”subtitle”:””,”theme”:”light”,”bgColor”:”#662353″,”source”:{“mode”:”category”,”value”:”30,1300″,”onSale”:false},”limit”:”10″,”banner”:{“position”:”card”,”type”:”image”,”url”:”data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22600%22%20height%3D%22814%22%20viewBox%3D%220%200%20600%20814%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20×2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23662353%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23c85a6c%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22600%22%20height%3D%22814%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Ccircle%20cx%3D%22500%22%20cy%3D%22650%22%20r%3D%22275%22%20fill%3D%22white%22%20opacity%3D%22.06%22%2F%3E%3Ccircle%20cx%3D%2280%22%20cy%3D%22800%22%20r%3D%22260%22%20fill%3D%22white%22%20opacity%3D%22.04%22%2F%3E%3Cg%20transform%3D%22translate%2826%20-5%29%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%228%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%22.8%22%3E%3Ccircle%20cx%3D%22330%22%20cy%3D%22460%22%20r%3D%2268%22%2F%3E%3Cpath%20d%3D%22M300%20390v-65h60v65m-60%20140v65h60v-65m-210-60v-40a60%2060%200%200%201%20120%200v40m-120-25h22v55h-22zm120%200h-22v55h22z%22%2F%3E%3C%2Fg%3E%3Ctext%20x%3D%2242%22%20y%3D%22745%22%20fill%3D%22white%22%20opacity%3D%22.8%22%20font-family%3D%22Arial%2Csans-serif%22%20font-size%3D%2220%22%20letter-spacing%3D%223%22%3EDISCOVER%20MORE%20%E2%86%92%3C%2Ftext%3E%3C%2Fsvg%3E”,”productRef”:””,”title”:”MX EXPRESSION”,”subtitle”:”Accessorize. Wear it. Make it yours.”,”ctaText”:””,”link”:”cat:Accessories”,”textColor”:”#ffffff”,”ratio”:”14 / 19″,”align”:”left”,”light”:false,”titleSize”:””,”subtitleSize”:””,”qrUrl”:””},”titleSize”:””,”subtitleSize”:””},{“enabled”:true,”title”:””,”subtitle”:””,”theme”:”light”,”bgColor”:”#103e63″,”source”:{“mode”:”tag”,”value”:”584″,”onSale”:false},”limit”:”10″,”banner”:{“position”:”card”,”type”:”image”,”url”:”data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22600%22%20height%3D%22814%22%20viewBox%3D%220%200%20600%20814%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20×2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23103e63%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%232783a4%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22600%22%20height%3D%22814%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Ccircle%20cx%3D%22500%22%20cy%3D%22650%22%20r%3D%22275%22%20fill%3D%22white%22%20opacity%3D%22.06%22%2F%3E%3Ccircle%20cx%3D%2280%22%20cy%3D%22800%22%20r%3D%22260%22%20fill%3D%22white%22%20opacity%3D%22.04%22%2F%3E%3Cg%20transform%3D%22translate%28-92.5%20-5%29%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%228%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%22.8%22%3E%3Crect%20x%3D%22250%22%20y%3D%22325%22%20width%3D%22170%22%20height%3D%22270%22%20rx%3D%2216%22%2F%3E%3Cpath%20d%3D%22M250%20430h170m-140-65v35m0%2060v50m165-175h90v45h-90%22%2F%3E%3C%2Fg%3E%3Ctext%20x%3D%2242%22%20y%3D%22745%22%20fill%3D%22white%22%20opacity%3D%22.8%22%20font-family%3D%22Arial%2Csans-serif%22%20font-size%3D%2220%22%20letter-spacing%3D%223%22%3EDISCOVER%20MORE%20%E2%86%92%3C%2Ftext%3E%3C%2Fsvg%3E”,”productRef”:””,”title”:”MX APPLIANCES”,”subtitle”:”Smart comforts for every home.”,”ctaText”:””,”link”:”cat:Appliances”,”textColor”:”#ffffff”,”ratio”:”14 / 19″,”align”:”left”,”light”:false,”titleSize”:””,”subtitleSize”:””,”qrUrl”:””},”titleSize”:””,”subtitleSize”:””}]},”ppomGroups”:[null,[null,{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:””,”elements”:”Enter you Unpacked Voucher Discount”,”operators”:”any”}],”visibility”:”Show”},”data_name”:”do_you_have_unpacked_voucher_”,”description”:””,”error_message”:””,”first_option”:””,”options”:[{“id”:”yes”,”option”:”Yes”,”price”:””,”stock”:””,”weight”:””},{“id”:”no”,”option”:”No”,”price”:””,”stock”:””,”weight”:””}],”ppom_id”:”1″,”required”:”on”,”selected”:””,”status”:”on”,”title”:”Do you have Unpacked Voucher?”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”Any”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”Yes”,”elements”:”do_you_have_unpacked_voucher_”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”Enter you Unpacked Voucher Discount”,”default_value”:””,”description”:””,”error_message”:””,”input_mask”:””,”logic”:”on”,”maxlength”:”12″,”minlength”:”1″,”placeholder”:”Voucher Discount”,”ppom_id”:”1″,”price”:””,”status”:”on”,”title”:”Enter you Unpacked Voucher Discount”,”type”:”text”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”Yes”,”elements”:”do_you_have_unpacked_voucher_”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”Galaxy Unpacked”,”description”:””,”error_message”:””,”first_option”:””,”logic”:”on”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”galaxy_tab_a11_wifi_4gb_64gb___gray__srp____7_990_”,”option”:”Galaxy Tab A11 WiFi 4GB+64GB – Gray [SRP – ₱7,990]”,”price”:”2990″,”stock”:””,”weight”:””},{“id”:”galaxy_tab_a11_lte_4gb_64gb___gray__srp____10_990_”,”option”:”Galaxy Tab A11 LTE 4GB+64GB – Gray [SRP – ₱10,990]”,”price”:”5990″,”stock”:””,”weight”:””},{“id”:”galaxy_tab_s10_lite_wi_fi_6gb_128gb___gray__srp____19_990_”,”option”:”Galaxy Tab S10 Lite Wi-Fi 6GB+128GB – Gray [SRP – ₱19,990]”,”price”:”14990″,”stock”:””,”weight”:””},{“id”:”galaxy_tab_s10_fe_wifi_8gb_128gb___gray__srp____26_990_”,”option”:”Galaxy Tab S10 FE WiFi 8GB+128GB – Gray [SRP – ₱26,990]”,”price”:”21990″,”stock”:””,”weight”:””},{“id”:”galaxy_tab_s10_fe_5g_8gb_128gb___gray__srp____31_990_”,”option”:”Galaxy Tab S10 FE 5G 8GB+128GB – Gray [SRP – ₱31,990]”,”price”:”26990″,”stock”:””,”weight”:””},{“id”:”galaxy_tab_s10_fe__5g_8gb_128gb___gray__srp____39_990_”,”option”:”Galaxy Tab S10 FE+ 5G 8GB+128GB – Gray [SRP – ₱39,990]”,”price”:”34990″,”stock”:””,”weight”:””},{“id”:”galaxy_tab_s11_wi_fi_12gb_256gb___gray__srp____52_990_”,”option”:”Galaxy Tab S11 Wi-Fi 12GB+256GB – Gray [SRP – ₱52,990]”,”price”:”47990″,”stock”:””,”weight”:””},{“id”:”galaxy_tab_s11_5g_12gb_256gb___gray__srp____61_990_”,”option”:”Galaxy Tab S11 5G 12GB+256GB – Gray [SRP – ₱61,990]”,”price”:”56990″,”stock”:””,”weight”:””},{“id”:”galaxy_tab_s10__wi_fi_12gb_256gb___silver__srp____68_990_”,”option”:”Galaxy Tab S10+ Wi-Fi 12GB+256GB – Silver [SRP – ₱68,990]”,”price”:”63990″,”stock”:””,”weight”:””},{“id”:”galaxy_tab_s10__5g_12gb_256gb___gray__srp____76_990_”,”option”:”Galaxy Tab S10+ 5G 12GB+256GB – Gray [SRP – ₱76,990]”,”price”:”71990″,”stock”:””,”weight”:””}],”ppom_id”:”1″,”required”:”on”,”selected”:””,”status”:”on”,”title”:”Choose the item you want to use your ₱5,000 Galaxy Unpacked Discount”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”Yes”,”elements”:”do_you_have_unpacked_voucher_”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_cross_sell”,”description”:””,”error_message”:””,”first_option”:””,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”_30__off__galaxy_buds_core___black__srp____2_690_”,”option”:”[30% OFF] Galaxy Buds Core – Black [SRP – ₱2,690]”,”price”:”1883″,”stock”:””,”weight”:””},{“id”:”_30__off__galaxy_buds_core___white__srp____2_690_”,”option”:”[30% OFF] Galaxy Buds Core – White [SRP – ₱2,690]”,”price”:”1883″,”stock”:””,”weight”:””},{“id”:”_30__off__galaxy_buds_fe___graphite__srp____5_490_”,”option”:”[30% OFF] Galaxy Buds FE – Graphite [SRP – ₱5,490]”,”price”:”3843″,”stock”:””,”weight”:””},{“id”:”_30__off__galaxy_buds_3___silver__srp____8_990_”,”option”:”[30% OFF] Galaxy Buds 3 – Silver [SRP – ₱8,990]”,”price”:”6293″,”stock”:””,”weight”:””},{“id”:”_30__off__galaxy_buds_3___white__srp____8_990_”,”option”:”[30% OFF] Galaxy Buds 3 – White [SRP – ₱8,990]”,”price”:”6293″,”stock”:””,”weight”:””},{“id”:”_30__off__galaxy_buds_3_pro___silver__srp____14_990_”,”option”:”[30% OFF] Galaxy Buds 3 Pro – Silver [SRP – ₱14,990]”,”price”:”10493″,”stock”:””,”weight”:””},{“id”:”_30__off__galaxy_buds_4___black__srp____11_490_”,”option”:”[30% OFF] Galaxy Buds 4 – Black [SRP – ₱11,490]”,”price”:”8043″,”stock”:””,”weight”:””},{“id”:”_30__off__galaxy_buds_4___white__srp____11_490_”,”option”:”[30% OFF] Galaxy Buds 4 – White [SRP – ₱11,490]”,”price”:”8043″,”stock”:””,”weight”:””},{“id”:”_30__off__galaxy_buds_4_pro___black__srp____14_990_”,”option”:”[30% OFF] Galaxy Buds 4 Pro – Black [SRP – ₱14,990]”,”price”:”10493″,”stock”:””,”weight”:””},{“id”:”_30__off__galaxy_buds_4_pro___white__srp____14_990_”,”option”:”[30% OFF] Galaxy Buds 4 Pro – White [SRP – ₱14,990]”,”price”:”10493″,”stock”:””,”weight”:””},{“id”:”_30__off__galaxy_buds_4_pro___gold__srp____14_990_”,”option”:”[30% OFF] Galaxy Buds 4 Pro – Gold [SRP – ₱14,990]”,”price”:”10493″,”stock”:””,”weight”:””}],”ppom_id”:”1″,”required”:”on”,”selected”:””,”status”:”on”,”title”:”Choose your cross-sell for Galaxy Buds”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”Yes”,”elements”:”do_you_have_unpacked_voucher_”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_cross_sell_copy_1″,”description”:””,”error_message”:””,”first_option”:””,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”_30__off__galaxy_fit_3___gray__srp____3_490_”,”option”:”[30% OFF] Galaxy Fit 3 – Gray [SRP – ₱3,490]”,”price”:”2443″,”stock”:””,”weight”:””},{“id”:”_30__off__galaxy_watch8_40mm_bt___silver__srp____20_990_”,”option”:”[30% OFF] Galaxy Watch8 40MM BT – Silver [SRP – ₱20,990]”,”price”:”14693″,”stock”:””,”weight”:””},{“id”:”_30__off__galaxy_watch8_40mm_bt___graphite__srp____20_990_”,”option”:”[30% OFF] Galaxy Watch8 40MM BT – Graphite [SRP – ₱20,990]”,”price”:”14693″,”stock”:””,”weight”:””},{“id”:”_30__off__galaxy_watch8_44mm_bt___silver__srp____22_990_”,”option”:”[30% OFF] Galaxy Watch8 44MM BT – Silver [SRP – ₱22,990]”,”price”:”16093″,”stock”:””,”weight”:””},{“id”:”_30__off__galaxy_watch8_44mm_bt___graphite__srp____22_990_”,”option”:”[30% OFF] Galaxy Watch8 44MM BT – Graphite [SRP – ₱22,990]”,”price”:”16093″,”stock”:””,”weight”:””},{“id”:”_30__off__galaxy_watch8_classic_bt___black__srp____29_990_”,”option”:”[30% OFF] Galaxy Watch8 Classic BT – Black [SRP – ₱29,990]”,”price”:”20993″,”stock”:””,”weight”:””},{“id”:”_30__off__galaxy_watch8_classic_bt___white__srp____29_990_”,”option”:”[30% OFF] Galaxy Watch8 Classic BT – White [SRP – ₱29,990]”,”price”:”20993″,”stock”:””,”weight”:””},{“id”:”_30__off__galaxy_ultra___titanium_silver__srp____40_990_”,”option”:”[30% OFF] Galaxy Ultra – Titanium Silver [SRP – ₱40,990]”,”price”:”28693″,”stock”:””,”weight”:””},{“id”:”_30__off__galaxy_ultra___titanium_gray__srp____40_990_”,”option”:”[30% OFF] Galaxy Ultra – Titanium Gray [SRP – ₱40,990]”,”price”:”28693″,”stock”:””,”weight”:””},{“id”:”_30__off__galaxy_ultra___titanium_white__srp____40_990_”,”option”:”[30% OFF] Galaxy Ultra – Titanium White [SRP – ₱40,990]”,”price”:”28693″,”stock”:””,”weight”:””}],”ppom_id”:”1″,”required”:”on”,”selected”:””,”status”:”on”,”title”:”Choose your cross-sell for Galaxy Watch”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”No Thanks”,”elements”:”choose_your_cross_sell”,”operators”:”not”}],”visibility”:”Show”},”data_name”:”Discount Voucher”,”description”:””,”error_message”:””,”first_option”:””,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”on_your_galaxy_unpacked_item”,”option”:”On your Galaxy Unpacked item”,”price”:”-1000″,”stock”:””,”weight”:””},{“id”:”on_your_cross_sell_item”,”option”:”On your Cross-sell item”,”price”:”-1000″,”stock”:””,”weight”:””},{“id”:”samsung_galaxy_a06_5g_4gb_128gb__srp____6_390_”,”option”:”SAMSUNG GALAXY A06 5G 4GB/128GB [SRP – ₱6,390]”,”price”:”5390″,”stock”:””,”weight”:””}],”ppom_id”:”1″,”selected”:””,”status”:”off”,”title”:”Select where you would like to use your ₱1,000 Additional Discount Voucher”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″}],[null,{“class”:”mxuredeviceprotection”,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”No Thanks”,”elements”:”choose_your_mx_line_bundle”,”operators”:”any”}],”visibility”:”Show”},”data_name”:”mxure__device_protection_”,”description”:”
\r\nWith MXURE you can now protect your phone from inevitable accidents, water damages and more.
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”accidental_and_liquid_damage___1_year”,”option”:”Accidental and Liquid Damage – 1 Year”,”price”:”9%”,”stock”:””,”weight”:””}],”ppom_id”:”2″,”required”:”on”,”selected”:”No Thanks”,”status”:”on”,”title”:”MXURE (Device Protection)”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”No Thanks”,”elements”:”mxure__device_protection_”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_mx_line_bundle”,”description”:”
\r\n
\r\n
Select your SIM card and load bundle below:\r\n
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”gomo_sim_with_30gb_no_expiry”,”option”:”GOMO SIM with 30GB No Expiry”,”price”:”399″,”stock”:””,”weight”:””},{“id”:”smart_rocket_sim_with_87gb__24gb___2gb_day_for_30_days_”,”option”:”Smart Rocket Sim with 87GB (24GB + 2GB/DAY FOR 30 DAYS)”,”price”:”549″,”stock”:””,”weight”:””},{“id”:”globe_lte_tri_cut_simcard”,”option”:”Globe LTE Tri cut Simcard”,”price”:”59″,”stock”:””,”weight”:””},{“id”:”tm_lte_sim”,”option”:”TM LTE Sim”,”price”:”49″,”stock”:””,”weight”:””},{“id”:”smart_lte_sim”,”option”:”Smart LTE Sim”,”price”:”55″,”stock”:””,”weight”:””},{“id”:”talkntext_lte_sim”,”option”:”TalknText LTE Sim”,”price”:”45″,”stock”:””,”weight”:””},{“id”:”dito_5g_simcard_no_expiration”,”option”:”Dito 5G Simcard No Expiration”,”price”:”49″,”stock”:””,”weight”:””}],”ppom_id”:”2″,”required”:”on”,”selected”:”No Thanks”,”status”:”on”,”title”:”Connect to your preferred network”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”No Thanks”,”elements”:”mxure__device_protection_”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_protector_”,”description”:”
\r\n — \r\nPut a virtual forcefield on your phone’s screen with Kaizen’screen protector that not only protects your phone screens from scratches but also retains the visual quality of it. Learn more
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”screen_protector___clear”,”option”:”Screen Protector – Clear”,”price”:”390″,”stock”:””,”weight”:””},{“id”:”screen_protector___anti_blue_light”,”option”:”Screen Protector – Anti Blue Light”,”price”:”590″,”stock”:””,”weight”:””},{“id”:”screen_protector___privacy_matte”,”option”:”Screen Protector – Privacy Matte”,”price”:”790″,”stock”:””,”weight”:””}],”ppom_id”:”2″,”required”:”on”,”selected”:””,”status”:”off”,”title”:”Choose your Protector”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″}],[null,{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“elements”:”any_text_input”,”operators”:”is”},{“elements”:”any_text_input”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”any_text_input”,”default_value”:””,”description”:”It’s a test field”,”error_message”:””,”input_mask”:””,”maxlength”:””,”minlength”:””,”placeholder”:””,”ppom_id”:”3″,”price”:””,”status”:”off”,”title”:”Any text input”,”type”:”text”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“elements”:”any_text_input”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”test_options”,”description”:””,”error_message”:””,”first_option”:””,”options”:[{“id”:”option_a”,”option”:”Option A”,”price”:”5″,”stock”:””,”weight”:””},{“id”:”option_b”,”option”:”Option B”,”price”:”6″,”stock”:””,”weight”:””},{“id”:”option_c”,”option”:”Option C”,”price”:”7″,”stock”:””,”weight”:””}],”ppom_id”:”3″,”selected”:””,”status”:”off”,”title”:”Test Options”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“checked”:””,”class”:””,”conditions”:{“bound”:”All”,”rules”:[{“element_values”:”Option B”,”elements”:”test_options”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”conditional_field”,”description”:”Shown when Option B is selected”,”error_message”:””,”logic”:”on”,”max_checked”:””,”min_checked”:””,”options”:[{“discount”:””,”id”:”test_checkbox”,”option”:”Test Checkbox”,”price”:””,”stock”:””,”tooltip”:””,”weight”:””}],”ppom_id”:”3″,”status”:”off”,”title”:”Conditional Field”,”type”:”checkbox”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“elements”:”any_text_input”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_cross_sell”,”description”:””,”error_message”:””,”first_option”:””,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”50__off__galaxy_buds_2_black__5_490_”,”option”:”50% OFF! Galaxy Buds 2 Black [5,490]”,”price”:”3495″,”stock”:””,”weight”:””},{“id”:”50__off__galaxy_buds_2_white__5_490_”,”option”:”50% OFF! Galaxy Buds 2 White [5,490]”,”price”:”3495″,”stock”:””,”weight”:””},{“id”:”30__off__galaxy_buds_2_fe_black__5_490_”,”option”:”30% OFF! Galaxy Buds 2 FE Black [5,490]”,”price”:”3843″,”stock”:””,”weight”:””},{“id”:”30__off__galaxy_buds_2_fe_white__5_490_”,”option”:”30% OFF! Galaxy Buds 2 FE White [5,490]”,”price”:”3843″,”stock”:””,”weight”:””},{“id”:”50__off__galaxy_buds_2_pro_bora_purple__12_990_”,”option”:”50% OFF! Galaxy Buds 2 Pro Bora Purple [12,990]”,”price”:”6495″,”stock”:””,”weight”:””},{“id”:”30__off__galaxy_watch6_gold_40mm_lte_16_990_”,”option”:”30% OFF! Galaxy Watch6 Gold 40MM LTE[16,990]”,”price”:”11893″,”stock”:””,”weight”:””},{“id”:”30__off__galaxy_watch6_silver_44mm_lte_16_990_”,”option”:”30% OFF! Galaxy Watch6 Silver 44MM LTE[16,990]”,”price”:”13293″,”stock”:””,”weight”:””}],”ppom_id”:”3″,”selected”:””,”status”:”on”,”title”:”Choose your cross-sell”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″}],[null,{“class”:”mxuredeviceprotection”,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”No Thanks”,”elements”:”mxure__device_protection”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”mxure__device_protection_”,”description”:”
\r\n — \r\nWith MXURE you can now protect your phone from inevitable accidents, water damages and more.
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”accidental_and_liquid_damage___1_year”,”option”:”Accidental and Liquid Damage – 1 Year”,”price”:”9%”,”stock”:””,”weight”:””}],”ppom_id”:”4″,”required”:”on”,”selected”:””,”status”:”on”,”title”:”MXURE (Device Protection)”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”No Thanks”,”elements”:”mxure__device_protection”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_mx_line_bundle”,”description”:”
\r\n
\r\n
Select your SIM card and load bundle below:\r\n
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”gomo_sim_with_30gb_no_expiry___399_00_”,”option”:”GOMO SIM with 30GB No Expiry [₱399.00]”,”price”:”369″,”stock”:””,”weight”:””},{“id”:”smart_rocket_sim_with_87gb__24gb___2gb_day_for_30_days_”,”option”:”Smart Rocket Sim with 87GB (24GB + 2GB/DAY FOR 30 DAYS)”,”price”:”549″,”stock”:””,”weight”:””},{“id”:”globe_lte_tri_cut_simcard”,”option”:”Globe LTE Tri cut Simcard”,”price”:”59″,”stock”:””,”weight”:””},{“id”:”tm_lte_sim”,”option”:”TM LTE Sim”,”price”:”49″,”stock”:””,”weight”:””},{“id”:”smart_lte_sim”,”option”:”Smart LTE Sim”,”price”:”49″,”stock”:””,”weight”:””},{“id”:”talkntext_lte_sim”,”option”:”TalknText LTE Sim”,”price”:”39″,”stock”:””,”weight”:””},{“id”:”dito_5g_simcard_no_expiration”,”option”:”Dito 5G Simcard No Expiration”,”price”:”49″,”stock”:””,”weight”:””}],”ppom_id”:”4″,”required”:”on”,”selected”:””,”status”:”on”,”title”:”Connect to your preferred network”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:””,”elements”:””,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_protector_”,”description”:”
\r\n — \r\nPut a virtual forcefield on your phone’s screen with Kaizen’screen protector that not only protects your phone screens from scratches but also retains the visual quality of it. Learn more
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”screen_protector___clear”,”option”:”Screen Protector – Clear”,”price”:”390″,”stock”:””,”weight”:””},{“id”:”screen_protector___anti_blue_light”,”option”:”Screen Protector – Anti Blue Light”,”price”:”590″,”stock”:””,”weight”:””},{“id”:”screen_protector___privacy_matte”,”option”:”Screen Protector – Privacy Matte”,”price”:”790″,”stock”:””,”weight”:””}],”ppom_id”:”4″,”required”:”on”,”selected”:””,”status”:”off”,”title”:”Choose your Protector”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:””,”elements”:””,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_cross_sell_offer”,”description”:”
\r\n — \r\nBuy this Cross sell offer and get FREE SHIPPING Voucher.\r\n
\r\n
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”samsung_galaxy_watch_6_40mm___graphite___16_990_00_”,”option”:”Samsung Galaxy Watch 6 40MM – Graphite [₱16,990.00]”,”price”:”11990″,”stock”:””,”weight”:””},{“id”:”samsung_galaxy_watch_6_44mm___black___18_990_00_”,”option”:”Samsung Galaxy Watch 6 44MM – Black [₱18,990.00]”,”price”:”13990″,”stock”:””,”weight”:””},{“id”:”samsung_galaxy_watch_6_44mm___silver___18_990_00_”,”option”:”Samsung Galaxy Watch 6 44MM – Silver [₱18,990.00]”,”price”:”13990″,”stock”:””,”weight”:””},{“id”:”samsung_galaxy_watch_6_classic_43mm___graphite___22_990_00_”,”option”:”Samsung Galaxy Watch 6 Classic 43MM – Graphite [₱22,990.00]”,”price”:”16990″,”stock”:””,”weight”:””},{“id”:”samsung_galaxy_watch_6_classic_43mm___silver___22_990_00_”,”option”:”Samsung Galaxy Watch 6 Classic 43MM – Silver [₱22,990.00]”,”price”:”16990″,”stock”:””,”weight”:””},{“id”:”samsung_galaxy_watch_6_classic_47mm___graphite___24_990_00_”,”option”:”Samsung Galaxy Watch 6 Classic 47MM – Graphite [₱24,990.00]”,”price”:”17990″,”stock”:””,”weight”:””},{“id”:”samsung_galaxy_watch_6_classic_47mm___silver___24_990_00_”,”option”:”Samsung Galaxy Watch 6 Classic 47MM – Silver [₱24,990.00]”,”price”:”17990″,”stock”:””,”weight”:””}],”ppom_id”:”4″,”required”:”on”,”selected”:””,”status”:”off”,”title”:”Choose your Cross sell Offer”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″}],[null,{“class”:”mxuredeviceprotection”,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”No Thanks”,”elements”:””,”operators”:”is”}],”visibility”:”Show”},”data_name”:”mxure__device_protection_”,”description”:”
\r\n — \r\nWith MXURE you can now protect your phone from inevitable accidents, water damages and more.
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”accidental_and_liquid_damage___1_year”,”option”:”Accidental and Liquid Damage – 1 Year”,”price”:”9%”,”stock”:””,”weight”:””}],”ppom_id”:”5″,”required”:”on”,”selected”:””,”status”:”on”,”title”:”MXURE (Device Protection)”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”No Thanks”,”elements”:””,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_mx_line_bundle”,”description”:”
\r\n
\r\n
Select your SIM card and load bundle below:\r\n
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”gomo_sim_with_30gb_no_expiry”,”option”:”GOMO SIM with 30GB No Expiry”,”price”:”399″,”stock”:””,”weight”:””},{“id”:”smart_rocket_sim_with_87gb__24gb___2gb_day_for_30_days_”,”option”:”Smart Rocket Sim with 87GB (24GB + 2GB/DAY FOR 30 DAYS)”,”price”:”549″,”stock”:””,”weight”:””},{“id”:”globe_lte_tri_cut_simcard”,”option”:”Globe LTE Tri cut Simcard”,”price”:”59″,”stock”:””,”weight”:””},{“id”:”tm_lte_sim”,”option”:”TM LTE Sim”,”price”:”49″,”stock”:””,”weight”:””},{“id”:”smart_lte_sim”,”option”:”Smart LTE Sim”,”price”:”49″,”stock”:””,”weight”:””},{“id”:”talkntext_lte_sim”,”option”:”TalknText LTE Sim”,”price”:”39″,”stock”:””,”weight”:””},{“id”:”dito_5g_simcard_no_expiration”,”option”:”Dito 5G Simcard No Expiration”,”price”:”49″,”stock”:””,”weight”:””}],”ppom_id”:”5″,”required”:”on”,”selected”:””,”status”:”on”,”title”:”Connect to your preferred network”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”No Thanks”,”elements”:”mxure__device_protection_”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_protector_”,”description”:”
\r\n — \r\nPut a virtual forcefield on your phone’s screen with Kaizen’screen protector that not only protects your phone screens from scratches but also retains the visual quality of it. Learn more
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”screen_protector___clear”,”option”:”Screen Protector – Clear”,”price”:”390″,”stock”:””,”weight”:””},{“id”:”screen_protector___anti_blue_light”,”option”:”Screen Protector – Anti Blue Light”,”price”:”590″,”stock”:””,”weight”:””},{“id”:”screen_protector___privacy_matte”,”option”:”Screen Protector – Privacy Matte”,”price”:”790″,”stock”:””,”weight”:””}],”ppom_id”:”5″,”required”:”on”,”selected”:””,”status”:”off”,”title”:”Choose your Protector”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”No Thanks”,”elements”:”mxure__device_protection_”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_cross_sell_offer”,”description”:”
\r\n — \r\nBuy this Cross sell offer and get FREE SHIPPING Voucher.\r\n
\r\n
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”samsung_galaxy_watch_6_40mm___graphite___16_990_00_”,”option”:”Samsung Galaxy Watch 6 40MM – Graphite [₱16,990.00]”,”price”:”13990″,”stock”:””,”weight”:””},{“id”:”samsung_galaxy_watch_6_44mm___black___18_990_00_”,”option”:”Samsung Galaxy Watch 6 44MM – Black [₱18,990.00]”,”price”:”15990″,”stock”:””,”weight”:””},{“id”:”samsung_galaxy_watch_6_44mm___silver___18_990_00_”,”option”:”Samsung Galaxy Watch 6 44MM – Silver [₱18,990.00]”,”price”:”15990″,”stock”:””,”weight”:””},{“id”:”samsung_galaxy_watch_6_classic_43mm___graphite___22_990_00_”,”option”:”Samsung Galaxy Watch 6 Classic 43MM – Graphite [₱22,990.00]”,”price”:”19990″,”stock”:””,”weight”:””},{“id”:”samsung_galaxy_watch_6_classic_43mm___silver___22_990_00_”,”option”:”Samsung Galaxy Watch 6 Classic 43MM – Silver [₱22,990.00]”,”price”:”19990″,”stock”:””,”weight”:””},{“id”:”samsung_galaxy_watch_6_classic_47mm___graphite___24_990_00_”,”option”:”Samsung Galaxy Watch 6 Classic 47MM – Graphite [₱24,990.00]”,”price”:”20990″,”stock”:””,”weight”:””},{“id”:”samsung_galaxy_watch_6_classic_47mm___silver___24_990_00_”,”option”:”Samsung Galaxy Watch 6 Classic 47MM – Silver [₱24,990.00]”,”price”:”20990″,”stock”:””,”weight”:””}],”ppom_id”:”5″,”required”:”on”,”selected”:””,”status”:”off”,”title”:”Choose your Cross sell Offer”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″}],[null,{“class”:”mxuredeviceprotection”,”conditions”:{“bound”:”All”,”rules”:[{“element_values”:”No Thanks”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”mxure__device_protection_”,”description”:”
\r\n — \r\nWith MXURE you can now protect your Buds or Watch from inevitable accidents, water damages and more.
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”accidental_and_liquid_damage___1_year”,”option”:”Accidental and Liquid Damage – 1 Year”,”price”:”9%”,”stock”:””,”weight”:””}],”ppom_id”:”6″,”required”:”on”,”selected”:””,”status”:”on”,”title”:”MXURE (Device Protection)”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″}],null,[null,{“class”:”mxuredeviceprotection”,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”No Thanks”,”elements”:””,”operators”:”is”}],”visibility”:”Show”},”data_name”:”mxure__device_protection_”,”description”:”
\r\n — \r\nWith MXURE you can now protect your phone from inevitable accidents, water damages and more.
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”accidental_and_liquid_damage___1_year”,”option”:”Accidental and Liquid Damage – 1 Year”,”price”:”9%”,”stock”:””,”weight”:””}],”ppom_id”:”8″,”required”:”on”,”selected”:””,”status”:”on”,”title”:”MXURE (Device Protection)”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”No Thanks”,”elements”:””,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_mx_line_bundle”,”description”:”
\r\n
\r\n
Select your SIM card and load bundle below:\r\n
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”gomo_sim_with_30gb_no_expiry”,”option”:”GOMO SIM with 30GB No Expiry”,”price”:”399″,”stock”:””,”weight”:””},{“id”:”smart_rocket_sim_with_87gb__24gb___2gb_day_for_30_days_”,”option”:”Smart Rocket Sim with 87GB (24GB + 2GB/DAY FOR 30 DAYS)”,”price”:”549″,”stock”:””,”weight”:””},{“id”:”globe_lte_tri_cut_simcard”,”option”:”Globe LTE Tri cut Simcard”,”price”:”59″,”stock”:””,”weight”:””},{“id”:”tm_lte_sim”,”option”:”TM LTE Sim”,”price”:”49″,”stock”:””,”weight”:””},{“id”:”smart_lte_sim”,”option”:”Smart LTE Sim”,”price”:”49″,”stock”:””,”weight”:””},{“id”:”talkntext_lte_sim”,”option”:”TalknText LTE Sim”,”price”:”39″,”stock”:””,”weight”:””},{“id”:”dito_5g_simcard_no_expiration”,”option”:”Dito 5G Simcard No Expiration”,”price”:”49″,”stock”:””,”weight”:””}],”ppom_id”:”8″,”required”:”on”,”selected”:””,”status”:”on”,”title”:”Connect to your preferred network”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”No Thanks”,”elements”:”mxure__device_protection_”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_protector_”,”description”:”
\r\n — \r\nPut a virtual forcefield on your phone’s screen with Kaizen’screen protector that not only protects your phone screens from scratches but also retains the visual quality of it. Learn more
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”screen_protector___clear”,”option”:”Screen Protector – Clear”,”price”:”390″,”stock”:””,”weight”:””},{“id”:”screen_protector___anti_blue_light”,”option”:”Screen Protector – Anti Blue Light”,”price”:”590″,”stock”:””,”weight”:””},{“id”:”screen_protector___privacy_matte”,”option”:”Screen Protector – Privacy Matte”,”price”:”790″,”stock”:””,”weight”:””}],”ppom_id”:”8″,”required”:”on”,”selected”:””,”status”:”off”,”title”:”Choose your Protector”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”No Thanks”,”elements”:”mxure__device_protection_”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_cross_sell_offer”,”description”:”
\r\n — \r\nApple Watches. Take your pick.\r\n
\r\n
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”apple_watch_se_gps_40mm___starlight_aluminum_case_with_starlight_sport_band”,”option”:”Apple Watch SE GPS 40MM – Starlight Aluminum Case with Starlight Sport Band”,”price”:”14490″,”stock”:””,”weight”:””},{“id”:”apple_watch_series_9_gps_41mm___starlight_aluminum_case_with_starlight_sport_band”,”option”:”Apple Watch Series 9 GPS 41MM – Starlight Aluminum Case with Starlight Sport Band”,”price”:”26490″,”stock”:””,”weight”:””},{“id”:”apple_watch_series_9_gps_41mm___midnight_aluminum_case_with_midnight_sport_band”,”option”:”Apple Watch Series 9 GPS 41MM – Midnight Aluminum Case with Midnight Sport Band”,”price”:”26490″,”stock”:””,”weight”:””},{“id”:”apple_watch_series_9_gps_41mm___pink_aluminum_case_with_pink_sport_band”,”option”:”Apple Watch Series 9 GPS 41MM – Pink Aluminum Case with Pink Sport Band”,”price”:”26490″,”stock”:””,”weight”:””},{“id”:”apple_watch_series_9_gps_45mm___starlight_aluminum_case_with_starlight_sport_band”,”option”:”Apple Watch Series 9 GPS 45MM – Starlight Aluminum Case with Starlight Sport Band”,”price”:”28490″,”stock”:””,”weight”:””},{“id”:”apple_watch_series_9_gps_45mm___midnight_aluminum_case_with_midnight_sport_band”,”option”:”Apple Watch Series 9 GPS 45MM – Midnight Aluminum Case with Midnight Sport Band”,”price”:”28490″,”stock”:””,”weight”:””}],”ppom_id”:”8″,”required”:”on”,”selected”:””,”status”:”off”,”title”:”Choose your Cross sell Offer”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″}],[null,{“class”:”mxuredeviceprotection”,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”No Thanks”,”elements”:””,”operators”:”is”}],”visibility”:”Show”},”data_name”:”mxure__device_protection_”,”description”:”
\r\n — \r\nWith MXURE you can now protect your phone from inevitable accidents, water damages and more.
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”accidental_and_liquid_damage___1_year”,”option”:”Accidental and Liquid Damage – 1 Year”,”price”:”9%”,”stock”:””,”weight”:””}],”ppom_id”:”9″,”required”:”on”,”selected”:””,”status”:”on”,”title”:”MXURE (Device Protection)”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”No Thanks”,”elements”:””,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_mx_line_bundle”,”description”:”
\r\n — \r\n
\r\n
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”gomo_sim_with_30gb_no_expiry”,”option”:”GOMO SIM with 30GB No Expiry”,”price”:”399″,”stock”:””,”weight”:””},{“id”:”smart_rocket_sim_with_87gb__24gb___2gb_day_for_30_days_”,”option”:”Smart Rocket Sim with 87GB (24GB + 2GB/DAY FOR 30 DAYS)”,”price”:”549″,”stock”:””,”weight”:””},{“id”:”globe_lte_tri_cut_simcard”,”option”:”Globe LTE Tri cut Simcard”,”price”:”59″,”stock”:””,”weight”:””},{“id”:”tm_lte_sim”,”option”:”TM LTE Sim”,”price”:”49″,”stock”:””,”weight”:””},{“id”:”smart_lte_sim”,”option”:”Smart LTE Sim”,”price”:”49″,”stock”:””,”weight”:””},{“id”:”talkntext_lte_sim”,”option”:”TalknText LTE Sim”,”price”:”39″,”stock”:””,”weight”:””},{“id”:”dito_5g_simcard_no_expiration”,”option”:”Dito 5G Simcard No Expiration”,”price”:”49″,”stock”:””,”weight”:””}],”ppom_id”:”9″,”required”:”on”,”selected”:””,”status”:”on”,”title”:”Choose your MX Line Bundle”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”No Thanks”,”elements”:”mxure__device_protection_”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_cross_sell_offer”,”description”:”
\r\n — \r\nApple Watches. Take your pick.\r\n
\r\n
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”apple_watch_se_gps_40mm___starlight_aluminum_case_with_starlight_sport_band”,”option”:”Apple Watch SE GPS 40MM – Starlight Aluminum Case with Starlight Sport Band”,”price”:”14490″,”stock”:””,”weight”:””},{“id”:”apple_watch_series_9_gps_41mm___starlight_aluminum_case_with_starlight_sport_band”,”option”:”Apple Watch Series 9 GPS 41MM – Starlight Aluminum Case with Starlight Sport Band”,”price”:”26490″,”stock”:””,”weight”:””},{“id”:”apple_watch_series_9_gps_41mm___midnight_aluminum_case_with_midnight_sport_band”,”option”:”Apple Watch Series 9 GPS 41MM – Midnight Aluminum Case with Midnight Sport Band”,”price”:”26490″,”stock”:””,”weight”:””},{“id”:”apple_watch_series_9_gps_41mm___pink_aluminum_case_with_pink_sport_band”,”option”:”Apple Watch Series 9 GPS 41MM – Pink Aluminum Case with Pink Sport Band”,”price”:”26490″,”stock”:””,”weight”:””},{“id”:”apple_watch_series_9_gps_45mm___starlight_aluminum_case_with_starlight_sport_band”,”option”:”Apple Watch Series 9 GPS 45MM – Starlight Aluminum Case with Starlight Sport Band”,”price”:”28490″,”stock”:””,”weight”:””},{“id”:”apple_watch_series_9_gps_45mm___midnight_aluminum_case_with_midnight_sport_band”,”option”:”Apple Watch Series 9 GPS 45MM – Midnight Aluminum Case with Midnight Sport Band”,”price”:”28490″,”stock”:””,”weight”:””}],”ppom_id”:”9″,”required”:”on”,”selected”:””,”status”:”off”,”title”:”Choose your Cross sell Offer”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″}],[null,{“class”:”mxuredeviceprotection”,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”No Thanks”,”elements”:”mxure__device_protection”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”mxure__device_protection_”,”description”:”
\r\n — \r\nWith MXURE you can now protect your phone from inevitable accidents, water damages and more.
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”accidental_and_liquid_damage___1_year”,”option”:”Accidental and Liquid Damage – 1 Year”,”price”:”9%”,”stock”:””,”weight”:””}],”ppom_id”:”10″,”required”:”on”,”selected”:””,”status”:”off”,”title”:”MXURE (Device Protection)”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”No Thanks”,”elements”:”mxure__device_protection”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_mx_line_bundle”,”description”:”
\r\n — \r\n
\r\n
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”gomo_sim_with_30gb_no_expiry”,”option”:”GOMO SIM with 30GB No Expiry”,”price”:”399″,”stock”:””,”weight”:””},{“id”:”smart_rocket_sim_with_87gb__24gb___2gb_day_for_30_days_”,”option”:”Smart Rocket Sim with 87GB (24GB + 2GB/DAY FOR 30 DAYS)”,”price”:”549″,”stock”:””,”weight”:””},{“id”:”globe_lte_tri_cut_simcard”,”option”:”Globe LTE Tri cut Simcard”,”price”:”59″,”stock”:””,”weight”:””},{“id”:”tm_lte_sim”,”option”:”TM LTE Sim”,”price”:”49″,”stock”:””,”weight”:””},{“id”:”smart_lte_sim”,”option”:”Smart LTE Sim”,”price”:”49″,”stock”:””,”weight”:””},{“id”:”talkntext_lte_sim”,”option”:”TalknText LTE Sim”,”price”:”39″,”stock”:””,”weight”:””},{“id”:”dito_5g_simcard_no_expiration”,”option”:”Dito 5G Simcard No Expiration”,”price”:”49″,”stock”:””,”weight”:””}],”ppom_id”:”10″,”required”:”on”,”selected”:””,”status”:”off”,”title”:”Choose your MX Line Bundle”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:””,”elements”:””,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_protector_”,”description”:”
\r\n — \r\nPut a virtual forcefield on your phone’s screen with Kaizen’screen protector that not only protects your phone screens from scratches but also retains the visual quality of it. Learn more
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”screen_protector___clear”,”option”:”Screen Protector – Clear”,”price”:”390″,”stock”:””,”weight”:””},{“id”:”screen_protector___anti_blue_light”,”option”:”Screen Protector – Anti Blue Light”,”price”:”590″,”stock”:””,”weight”:””},{“id”:”screen_protector___privacy_matte”,”option”:”Screen Protector – Privacy Matte”,”price”:”790″,”stock”:””,”weight”:””}],”ppom_id”:”10″,”required”:”on”,”selected”:””,”status”:”off”,”title”:”Choose your Protector”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″}],[null,{“class”:”mxuredeviceprotection”,”conditions”:{“bound”:”All”,”rules”:[{“element_values”:”Accidental and Liquid Damage – 1 Year”,”elements”:”mxure__device_protection_”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”mxure__device_protection_”,”description”:”
\r\n — \r\nWith MXURE you can now protect your phone from inevitable accidents, water damages and more.
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”accidental_and_liquid_damage___1_year”,”option”:”Accidental and Liquid Damage – 1 Year”,”price”:”9%”,”stock”:””,”weight”:””}],”ppom_id”:”11″,”required”:”on”,”selected”:””,”status”:”off”,”title”:”MXURE (Device Protection)”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“element_values”:”Accidental and Liquid Damage – 1 Year”,”elements”:”mxure__device_protection_”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_mx_line_bundle”,”description”:”
\r\n — \r\n
\r\n
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”gomo_sim_with_30gb_no_expiry”,”option”:”GOMO SIM with 30GB No Expiry”,”price”:”399″,”stock”:””,”weight”:””},{“id”:”smart_rocket_sim_with_87gb__24gb___2gb_day_for_30_days_”,”option”:”Smart Rocket Sim with 87GB (24GB + 2GB/DAY FOR 30 DAYS)”,”price”:”549″,”stock”:””,”weight”:””},{“id”:”globe_lte_tri_cut_simcard”,”option”:”Globe LTE Tri cut Simcard”,”price”:”59″,”stock”:””,”weight”:””},{“id”:”tm_lte_sim”,”option”:”TM LTE Sim”,”price”:”49″,”stock”:””,”weight”:””},{“id”:”smart_lte_sim”,”option”:”Smart LTE Sim”,”price”:”49″,”stock”:””,”weight”:””},{“id”:”talkntext_lte_sim”,”option”:”TalknText LTE Sim”,”price”:”39″,”stock”:””,”weight”:””},{“id”:”dito_5g_simcard_no_expiration”,”option”:”Dito 5G Simcard No Expiration”,”price”:”49″,”stock”:””,”weight”:””}],”ppom_id”:”11″,”required”:”on”,”selected”:””,”status”:”off”,”title”:”Choose your MX Line Bundle”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“element_values”:”Accidental and Liquid Damage – 1 Year”,”elements”:”mxure__device_protection_”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_protector_”,”description”:”
\r\n — \r\nPut a virtual forcefield on your phone’s screen with Kaizen’screen protector that not only protects your phone screens from scratches but also retains the visual quality of it. Learn more
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”screen_protector___clear”,”option”:”Screen Protector – Clear”,”price”:”390″,”stock”:””,”weight”:””},{“id”:”screen_protector___anti_blue_light”,”option”:”Screen Protector – Anti Blue Light”,”price”:”590″,”stock”:””,”weight”:””},{“id”:”screen_protector___privacy_matte”,”option”:”Screen Protector – Privacy Matte”,”price”:”790″,”stock”:””,”weight”:””}],”ppom_id”:”11″,”required”:”on”,”selected”:””,”status”:”off”,”title”:”Choose your Protector”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“element_values”:”Accidental and Liquid Damage – 1 Year”,”elements”:”mxure__device_protection_”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”check_your_trade_in_value”,”default_value”:””,”description”:”
\r\n — \r\nTry trading in your current phone and get an instant discount
save up to ₱40,000
\r\n
but if you have trade-in value, just enter your trade-in ID
“,”error_message”:””,”input_mask”:””,”maxlength”:””,”minlength”:””,”placeholder”:”Enter your Trade-in ID”,”ppom_id”:”11″,”price”:””,”status”:”on”,”title”:”Check your Trade-in value”,”type”:”text”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″}],[null,{“class”:”mxuredeviceprotection”,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:””,”elements”:””,”operators”:”any”}],”visibility”:”Show”},”data_name”:”mxure__device_protection_”,”description”:”
\r\n — \r\nWith MXURE you can now protect your phone from inevitable accidents, water damages and more.
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”accidental_and_liquid_damage___1_year”,”option”:”Accidental and Liquid Damage – 1 Year”,”price”:”9%”,”stock”:””,”weight”:””}],”ppom_id”:”12″,”required”:”on”,”selected”:”No Thanks”,”status”:”on”,”title”:”MXURE (Device Protection)”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:””,”elements”:””,”operators”:”any”}],”visibility”:”Show”},”data_name”:”choose_your_mx_line_bundle”,”description”:”
\r\n
\r\n
Select your SIM card and load bundle below:\r\n
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”gomo_sim_with_30gb_no_expiry”,”option”:”GOMO SIM with 30GB No Expiry”,”price”:”399″,”stock”:””,”weight”:””},{“id”:”smart_rocket_sim_with_87gb__24gb___2gb_day_for_30_days_”,”option”:”Smart Rocket Sim with 87GB (24GB + 2GB/DAY FOR 30 DAYS)”,”price”:”549″,”stock”:””,”weight”:””},{“id”:”globe_lte_tri_cut_simcard”,”option”:”Globe LTE Tri cut Simcard”,”price”:”59″,”stock”:””,”weight”:””},{“id”:”tm_lte_sim”,”option”:”TM LTE Sim”,”price”:”49″,”stock”:””,”weight”:””},{“id”:”smart_lte_sim”,”option”:”Smart LTE Sim”,”price”:”49″,”stock”:””,”weight”:””},{“id”:”talkntext_lte_sim”,”option”:”TalknText LTE Sim”,”price”:”39″,”stock”:””,”weight”:””},{“id”:”dito_5g_simcard_no_expiration”,”option”:”Dito 5G Simcard No Expiration”,”price”:”49″,”stock”:””,”weight”:””}],”ppom_id”:”12″,”required”:”on”,”selected”:”No Thanks”,”status”:”on”,”title”:”Connect to your preferred network”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”No Thanks”,”elements”:”mxure__device_protection_”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_protector_”,”description”:”
\r\n — \r\nPut a virtual forcefield on your phone’s screen with Kaizen’screen protector that not only protects your phone screens from scratches but also retains the visual quality of it. Learn more
“,”error_message”:””,”first_option”:”Choose an option”,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”screen_protector___clear”,”option”:”Screen Protector – Clear”,”price”:”390″,”stock”:””,”weight”:””},{“id”:”screen_protector___anti_blue_light”,”option”:”Screen Protector – Anti Blue Light”,”price”:”590″,”stock”:””,”weight”:””},{“id”:”screen_protector___privacy_matte”,”option”:”Screen Protector – Privacy Matte”,”price”:”790″,”stock”:””,”weight”:””}],”ppom_id”:”12″,”required”:”on”,”selected”:””,”status”:”off”,”title”:”Choose your Protector”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″}],[null,{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”operators”:”any”},{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”operators”:”any”}],”visibility”:”Show”},”data_name”:”any_text_input”,”default_value”:””,”description”:”It’s a test field”,”error_message”:””,”input_mask”:””,”maxlength”:””,”minlength”:””,”placeholder”:””,”ppom_id”:”13″,”price”:””,”status”:”off”,”title”:”Any text input”,”type”:”text”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”elements”:”any_text_input”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”test_options”,”description”:””,”error_message”:””,”first_option”:””,”options”:[{“id”:”option_a”,”option”:”Option A”,”price”:”5″,”stock”:””,”weight”:””},{“id”:”option_b”,”option”:”Option B”,”price”:”6″,”stock”:””,”weight”:””},{“id”:”option_c”,”option”:”Option C”,”price”:”7″,”stock”:””,”weight”:””}],”ppom_id”:”13″,”selected”:””,”status”:”off”,”title”:”Test Options”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“checked”:””,”class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”element_values”:”Option B”,”elements”:”test_options”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”conditional_field”,”description”:”Shown when Option B is selected”,”error_message”:””,”logic”:”on”,”max_checked”:””,”min_checked”:””,”options”:[{“discount”:””,”id”:”test_checkbox”,”option”:”Test Checkbox”,”price”:””,”stock”:””,”tooltip”:””,”weight”:””}],”ppom_id”:”13″,”status”:”off”,”title”:”Conditional Field”,”type”:”checkbox”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″},{“class”:””,”conditions”:{“bound”:”All”,”rules”:[{“cond-between-interval”:{“from”:””,”to”:””},”element_constant”:””,”elements”:”any_text_input”,”operators”:”is”}],”visibility”:”Show”},”data_name”:”choose_your_cross_sell”,”description”:””,”error_message”:””,”first_option”:””,”options”:[{“id”:”no_thanks”,”option”:”No Thanks”,”price”:””,”stock”:””,”weight”:””},{“id”:”iphone_15_128gb”,”option”:”iPhone 15 128GB”,”price”:”11490″,”stock”:””,”weight”:””},{“id”:”iphone_16_128gb”,”option”:”iPhone 16 128GB”,”price”:”18490″,”stock”:””,”weight”:””}],”ppom_id”:”13″,”selected”:””,”status”:”on”,”title”:”Do you want to Upgrade?”,”type”:”select”,”visibility”:”everyone”,”visibility_role”:””,”width”:”12″}]],”buyNow”:{“enabled”:true,”mode”:”qr”,”qrTargets”:{“shop”:false,”kiosk”:false,”kiosk1419″:true}},”deviceSpecs”:{“20067”:{“descriptionEnabled”:false,”descriptionText”:””,”highlightEnabled”:false,”highlightText”:””,”productDescriptionHtml”:”
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n”,”productId”:20067,”productImage”:”https://mxmemoxpress.com/wp-content/uploads/2026/08/GALAXY-FOLD-8-LAVENDER.webp”,”productName”:”Samsung Galaxy Fold 8″,”productSku”:””,”tiles”:[{“contentType”:”pills”,”iconImageUrl”:””,”iconMode”:”preset”,”iconPreset”:”display”,”id”:”ds_eoiwwd9k”,”label”:”Display”,”mainVal”:””,”pills”:[“Main Display: 7.6-inch”,”Cover Screen: 5.5-inch”],”subVal”:””,”subValAccent”:false},{“contentType”:”text”,”iconImageUrl”:””,”iconMode”:”preset”,”iconPreset”:”processor”,”id”:”ds_b767bnue”,”label”:”Processor”,”mainVal”:”Qualcomm Snapdragon 8 Elite Gen 5 for Galaxy (3 nm)”,”subVal”:””,”subValAccent”:false},{“contentType”:”text”,”iconImageUrl”:””,”iconMode”:”preset”,”iconPreset”:”memory”,”id”:”ds_31oa02f6″,”label”:”Memory”,”mainVal”:”12GB”,”subVal”:””,”subValAccent”:false},{“contentType”:”pills”,”iconImageUrl”:””,”iconMode”:”preset”,”iconPreset”:”storage”,”id”:”ds_qwik9j8v”,”label”:”Storage”,”mainVal”:””,”pills”:[“512GB”,”1TB”],”subVal”:””,”subValAccent”:false},{“contentType”:”text”,”iconImageUrl”:””,”iconMode”:”preset”,”iconPreset”:”camera_rear”,”id”:”ds_q50bzcsu”,”label”:”Back Camera”,”mainVal”:”50 MP + 50 MP”,”subVal”:””,”subValAccent”:false},{“contentType”:”text”,”iconImageUrl”:””,”iconMode”:”preset”,”iconPreset”:”camera_front”,”id”:”ds_pbd58uqz”,”label”:”Front Camera”,”mainVal”:”10MP”,”subVal”:””,”subValAccent”:false},{“contentType”:”text”,”iconImageUrl”:””,”iconMode”:”preset”,”iconPreset”:”battery”,”id”:”ds_mmrl12g3″,”label”:”Battery”,”mainVal”:”4800mAh”,”subVal”:””,”subValAccent”:false},{“contentType”:”text”,”iconImageUrl”:””,”iconMode”:”preset”,”iconPreset”:”network”,”id”:”ds_a2zj6wzy”,”label”:”Network”,”mainVal”:”5G”,”subVal”:””,”subValAccent”:false},{“contentType”:”text”,”iconImageUrl”:””,”iconMode”:”preset”,”iconPreset”:”software”,”id”:”ds_c8pv35w6″,”label”:”OS”,”mainVal”:”Android 17″,”subVal”:””,”subValAccent”:false}],”title”:”Device Specifications”},”20068″:{“descriptionEnabled”:false,”descriptionText”:””,”highlightEnabled”:false,”highlightText”:””,”productDescriptionHtml”:”
Device Specifications
\n
| Display | 8.0" Full Rectangle Main Display |
| Processor | Qualcomm Snapdragon 8 Elite Gen 5 for Galaxy |
| Memory | 12GB |
| Storage | 256GB | 512GB |
| Back Camera | 200 MP + 50 MP + 10MP |
| Front Camera | 10MP Cover Camera and 10MP Inner Selfie Camera |
| Battery | 5,000mAh | 45W |
| Network | 5G |
| OS | Android 17 |
\n”,”productId”:20068,”productImage”:”https://mxmemoxpress.com/wp-content/uploads/2026/08/GALAXY-FOLD-8-ULTRA-VIOLET.webp”,”productName”:”Samsung Galaxy Fold 8 Ultra”,”productSku”:””,”tiles”:[{“contentType”:”text”,”iconImageUrl”:””,”iconMode”:”preset”,”iconPreset”:”display”,”id”:”ds_0p7oirf0″,”label”:”Display”,”mainVal”:”8.0\” Full Rectangle Main Display”,”subVal”:””,”subValAccent”:false},{“contentType”:”text”,”iconImageUrl”:””,”iconMode”:”preset”,”iconPreset”:”processor”,”id”:”ds_ns6lv0y0″,”label”:”Processor”,”mainVal”:”Qualcomm Snapdragon 8 Elite Gen 5 for Galaxy”,”subVal”:””,”subValAccent”:false},{“contentType”:”text”,”iconImageUrl”:””,”iconMode”:”preset”,”iconPreset”:”memory”,”id”:”ds_zxuy7h74″,”label”:”Memory”,”mainVal”:”12GB”,”subVal”:””,”subValAccent”:false},{“contentType”:”pills”,”iconImageUrl”:””,”iconMode”:”preset”,”iconPreset”:”storage”,”id”:”ds_kham8wvt”,”label”:”Storage”,”mainVal”:””,”pills”:[“256GB”,”512GB”],”subVal”:””,”subValAccent”:false},{“contentType”:”text”,”iconImageUrl”:””,”iconMode”:”preset”,”iconPreset”:”camera_rear”,”id”:”ds_r135mcf9″,”label”:”Back Camera”,”mainVal”:”200 MP + 50 MP + 10MP”,”subVal”:””,”subValAccent”:false},{“contentType”:”text”,”iconImageUrl”:””,”iconMode”:”preset”,”iconPreset”:”camera_front”,”id”:”ds_2k0nf12p”,”label”:”Front Camera”,”mainVal”:”10MP Cover Camera and 10MP Inner Selfie Camera”,”subVal”:””,”subValAccent”:false},{“contentType”:”pills”,”iconImageUrl”:””,”iconMode”:”preset”,”iconPreset”:”battery”,”id”:”ds_106ar0xe”,”label”:”Battery”,”mainVal”:””,”pills”:[“5,000mAh”,”45W”],”subVal”:””,”subValAccent”:false},{“contentType”:”text”,”iconImageUrl”:””,”iconMode”:”preset”,”iconPreset”:”network”,”id”:”ds_e9g73ytv”,”label”:”Network”,”mainVal”:”5G”,”subVal”:””,”subValAccent”:false},{“contentType”:”text”,”iconImageUrl”:””,”iconMode”:”preset”,”iconPreset”:”software”,”id”:”ds_9jsn438z”,”label”:”OS”,”mainVal”:”Android 17″,”subVal”:””,”subValAccent”:false}],”title”:”Device Specifications”}},”directCheckoutUrl”:”https://mxmemoxpress.com/mx-cart-page-2026/”,”kioskHeader”:{“logoUrl”:”https://mxmemoxpress.com/wp-content/uploads/2026/08/mxmemoxpress.webp”,”logoLink”:”https://mxmemoxpress.com/”,”primaryColor”:”FFD800″,”searchPlaceholder”:””,”storeUrl”:”https://mxmemoxpress.com/”,”checkoutPageUrl”:””,”showCategoryChips”:false,”showHeader”:true,”showCatSidebar”:false,”showPromoBanner”:false,”showFilterButton”:false,”showWishlistButton”:false,”showLoginButton”:false,”showQr”:false,”showAddToCart”:true,”gridCols”:4,”productsShown”:16,”catTextSize”:22,”catHeaderSize”:22,”brandTabSize”:16,”catIconMap”:{“Mobiles”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/AI-ENABLE-ICON.webp”,”Tablets”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/TABLET-ICON.webp”,”Laptop”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/LAPTOP-ICON.webp”,”Adapter & Cables”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/ADAPTER-CABLES-ICON.webp”,”Headphones”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/HEADSET-ICON.webp”,”PC Peripherals”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/PC-ICON.webp”,”Printers”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/PRINTER-ICON.webp”,”Gaming”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/GAMEPAD-ICON.webp”,”Appliances”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/APPLIANCES-ICON.webp”,”Camera”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/camera-1.webp”,”Security”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/CAMERA-ICON.webp”,”Powerbank”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/POWEBANK-ICON.webp”,”Lifestyle”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/BAGS-ICON.webp”,”Speaker”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/SPEAKER-ICON.webp”,”Sim & Load Cards”:”https://corporate.mxmemoxpress.com/wp-content/uploads/2026/08/SIM-ICON.webp”,”Accessories”:”https://mxmemoxpress.com/wp-content/uploads/2026/09/Accessories.jpg”}},”kioskPopup”:{“enabled”:true,”intervalMs”:599,”autoCloseMs”:300000,”idleMs”:400000,”logoUrl”:”https://mxmemoxpress.com/wp-content/uploads/2026/10/MEMO-LOGO-copy.webp”,”logoLink”:”#”,”ctaText”:”Touch to Shop”,”slides”:[{“type”:”image”,”url”:”https://mxmemoxpress.com/wp-content/uploads/2026/10/Redmi-Note.png”,”durationMs”:3000},{“type”:”image”,”url”:”https://mxmemoxpress.com/wp-content/uploads/2026/10/Camon-50-Ultra.jpg”,”durationMs”:3000},{“type”:”video”,”url”:”https://res.cloudinary.com/pnc4pfia/video/upload/v1791535859/MX-REELS.mp4″,”durationMs”:60000}]},”qvDescSources”:[{“enabled”:true,”id”:”description”,”label”:”Product Description”},{“enabled”:false,”id”:”highlights”,”label”:”Highlights”},{“enabled”:false,”id”:”shortDesc”,”label”:”Product Short Description”}]}; /* ↑ baked by MXM Admin — see generation comment near the top of this file */
/* ═══════════════════════════════════════════════════════════
LIVE FIREBASE CONFIG (optional — off unless MXM Admin’s
“Live” checkbox is on). _adminCfg above is either the
loadAdminConfig()/localStorage copy (same-domain dev/testing)
or the literal snapshot Generate Shop Code just baked in
(production). Either way, if _adminCfg.liveFirebase is true
and a firebase config was baked/stored on it, this does one
synchronous read of /mxmShop/config.json — the same object
MXM Admin’s “Save to Firebase” button just pushed — and
merges it over _adminCfg’s own properties (mutating in place,
which is fine even though _adminCfg is declared const) BEFORE
any of the XXX_CONFIG consts below read from it. Synchronous
XMLHttpRequest is used on purpose: everything downstream reads
_adminCfg once at parse time, so this has to finish before that
happens, not “eventually” via a promise. Silently falls back to
the baked/local copy on any error, and no-ops entirely (zero
added network calls) when liveFirebase is off — which is the
default for every existing generated shop.html. ═══════════════ */
if (typeof _adminCfg !== ‘undefined’ && _adminCfg && _adminCfg.liveFirebase && _adminCfg.firebase && _adminCfg.firebase.databaseURL) {
try {
var _mxmFbUrl = _adminCfg.firebase.databaseURL.replace(/\/$/, ”) + ‘/mxmShop/config.json’;
var _mxmFbXhr = new XMLHttpRequest();
_mxmFbXhr.open(‘GET’, _mxmFbUrl, false); // synchronous — must resolve before _adminCfg is read below
_mxmFbXhr.send(null);
if (_mxmFbXhr.status >= 200 && _mxmFbXhr.status {
try {
const imported = JSON.parse(ev.target.result);
const cfgPayload = imported.config || imported; // supports both {config,woo} bundles and plain config exports
if (!cfgPayload.categories) throw new Error(‘Missing “categories” key — not a valid MXM config export’);
localStorage.setItem(ADMIN_LS_KEY, JSON.stringify(cfgPayload));
// NOTE: WooCommerce connection is hardcoded in this file — imported
// configs no longer carry/override it.
alert(‘✅ Config loaded! Reloading shop…’);
location.reload();
} catch(err) {
alert(‘❌ Invalid config file: ‘ + err.message);
}
};
reader.readAsText(file);
}
/* PER_PAGE — set in Admin → Shop Settings → Products per Page. Default: 12 */
const PER_PAGE = (function(){ const n = parseInt(_adminCfg?.perPage); return (n > 0 && n {
const baked = {
sale: {
enabled: true,
text: ‘MXciting Deals’,
color: ‘#ffffff’,
bgColor: ‘#e63946’,
iconUrl: ”, // optional png/gif URL (shows instead of text when set)
categories: [], // empty = show in ALL categories; otherwise list of cat names
},
newArrival: {
enabled: true,
text: ‘MX Fresh’,
color: ‘#ffffff’,
bgColor: ‘#059669’,
iconUrl: ”,
categories: [],
},
leftBadge: {
enabled: true,
iconUrl: ”, // default/fallback icon (when no cat/brand-specific icon matches)
catIcons: { ‘AI Enabled’: ‘https://mxmemoxpress.com/wp-content/uploads/2026/06/AI-logo.png’ },
brandIcons: {}, // per-brand-slug icons (overrides catIcons when brand tab active)
categories: [‘AI Enabled’],
},
rightBadge: {
enabled: false,
iconUrl: ”,
catIcons: {},
brandIcons: {},
categories: [],
},
};
if (_adminCfg?.cardBadges) {
const cb = _adminCfg.cardBadges;
if (cb.sale) baked.sale = { …baked.sale, …cb.sale };
if (cb.newArrival) baked.newArrival = { …baked.newArrival, …cb.newArrival };
if (cb.leftBadge) baked.leftBadge = { …baked.leftBadge, …cb.leftBadge, catIcons: { …(baked.leftBadge.catIcons||{}), …(cb.leftBadge.catIcons||{}) }, brandIcons: { …(baked.leftBadge.brandIcons||{}), …(cb.leftBadge.brandIcons||{}) } };
if (cb.rightBadge) baked.rightBadge = { …baked.rightBadge, …cb.rightBadge, catIcons: { …(baked.rightBadge?.catIcons||{}), …(cb.rightBadge.catIcons||{}) }, brandIcons: { …(baked.rightBadge?.brandIcons||{}), …(cb.rightBadge.brandIcons||{}) } };
}
return baked;
})();
/* ═══════════════════════════════════
MXM FREEBIES — from Admin → 🎁 Freebies panel
Each freebie = { name, imageUrl (png/jpg/gif), categories[], skus (optional), enabled }.
• Shown as a glassy overlay on product cards + the Quick View / Buy Now image,
plus a “Free with purchase” line in the Quick View.
• At checkout the freebie names are sent along (mxm_fb) and the WPCode snippet
“MXM Freebies — Checkout Name” appends them to the product name in the
cart / order.
═══════════════════════════════════ */
const MXM_FREEBIES = (() => {
const baked = { enabled: false, showOnCard: true, showInQv: true, items: [] };
const c = (typeof _adminCfg !== ‘undefined’ && _adminCfg) ? _adminCfg.freebies : null;
if (c && typeof c === ‘object’) return { …baked, …c, items: Array.isArray(c.items) ? c.items : [] };
return baked;
})();
const MXM_FB_CARD_MAX = 2; // max freebie thumbs on a product card (rest shown as “+N”)
function mxmFbNorm(s) { return String(s == null ? ” : s).trim().toLowerCase(); }
function mxmFbEsc(s) {
return String(s == null ? ” : s).replace(/&/g, ‘&’).replace(//g, ‘>’).replace(/”/g, ‘"’);
}
/* Admin category name → set of WooCommerce category ids that belong to it
(the category itself + its brand-tab sub-categories), and its tag id. */
const _mxmFbIdCache = {};
function mxmFbIdsFor(catName) {
const key = mxmFbNorm(catName);
if (_mxmFbIdCache[key]) return _mxmFbIdCache[key];
const out = { cats: new Set(), tags: new Set() };
try {
const cats = (_adminCfg && _adminCfg.categories) || [];
const hit = cats.find(c => mxmFbNorm(c.name) === key);
if (hit) {
if (hit.id) out.cats.add(Number(hit.id));
if (hit.tagId) out.tags.add(Number(hit.tagId));
const tabs = (_adminCfg.brandTabs && _adminCfg.brandTabs[hit.name]) || [];
tabs.forEach(b => { if (b && b.catId) out.cats.add(Number(b.catId)); if (b && b.tagId) out.tags.add(Number(b.tagId)); });
}
} catch (e) {}
_mxmFbIdCache[key] = out;
return out;
}
/* Brand tabs of a category that match the given brand names → their WC cat/tag ids. */
function mxmFbBrandIds(catName, brandNames) {
const want = (brandNames || []).map(mxmFbNorm);
const out = { cats: new Set(), tags: new Set(), names: new Set(want) };
try {
const cats = (_adminCfg && _adminCfg.categories) || [];
const hit = cats.find(c => mxmFbNorm(c.name) === mxmFbNorm(catName));
const tabs = (hit && _adminCfg.brandTabs && _adminCfg.brandTabs[hit.name]) || [];
tabs.forEach(b => { if (b && want.includes(mxmFbNorm(b.name))) { if (b.catId) out.cats.add(Number(b.catId)); if (b.tagId) out.tags.add(Number(b.tagId)); } });
} catch (e) {}
return out;
}
/* Freebies that apply to product p → array of freebie objects, each with ._qty (units given).
• Per-product picks (f.products): if any are picked, ONLY those products get the freebie.
• Otherwise category-wide: products in a ticked category (legacy f.skus text still narrows it).
Quantity: picked product qty → category qty (f.catQty) → default qty (f.qty) → 1. */
function mxmFbQtyNum(v) { const n = parseInt(v, 10); return n > 0 ? Math.min(n, 99) : 0; }
function mxmFreebiesFor(p) {
if (!MXM_FREEBIES.enabled || !p) return [];
const activeName = mxmFbNorm(typeof activeFilters !== ‘undefined’ && activeFilters ? activeFilters.categoryName : ”);
const pNames = (p.catNames || []).map(mxmFbNorm);
const pCatIds = (p.catIds || []).map(Number);
const pTagIds = (p.tagIds || []).map(Number);
const hasProdCats = pNames.length > 0 || pCatIds.length > 0;
const sku = mxmFbNorm(p.sku);
const catMatch = (cn, f) => {
const n = mxmFbNorm(cn);
// general category membership (product sits in this category, any brand)
const ids = mxmFbIdsFor(cn);
const general = pNames.includes(n) || (!hasProdCats && n === activeName) ||
pCatIds.some(id => ids.cats.has(id)) || pTagIds.some(id => ids.tags.has(id));
const bl = (f.brandsByCat && f.brandsByCat[cn]) || [];
if (!bl.length) return general; // no brand filter → whole category
if (!general) return false;
const bi = mxmFbBrandIds(cn, bl); // brand filter → product must carry one of the brands
const brandNameHit = pNames.some(x => […bi.names].some(b => x === b || x.indexOf(b + ‘ ‘) === 0)); // ‘Huawei Mobiles’ → brand ‘Huawei’
return brandNameHit || pCatIds.some(id => bi.cats.has(id)) || pTagIds.some(id => bi.tags.has(id));
};
const out = [];
MXM_FREEBIES.items.forEach(f => {
if (!f || f.enabled === false || !f.name || !f.imageUrl) return;
const picks = Array.isArray(f.products) ? f.products : [];
const pick = (sku && picks.find(x => x && mxmFbNorm(x.sku) === sku)) || null;
const cats = f.categories || [];
if (picks.length) {
if (!pick) return; // per-product picks: only the picked products
} else {
if (!cats.some(cn => catMatch(cn, f))) return; // category-wide (no category ticked = applies nowhere)
const skuList = String(f.skus || ”).split(/[\s,;]+/).map(mxmFbNorm).filter(Boolean);
if (skuList.length && !skuList.includes(sku)) return; // legacy optional SKU restriction
}
const cq = f.catQty || {};
let qty = mxmFbQtyNum(pick && pick.qty);
if (!qty) { const hit = cats.find(cn => mxmFbQtyNum(cq[cn]) && catMatch(cn, f)); if (hit) qty = mxmFbQtyNum(cq[hit]); }
if (!qty) qty = mxmFbQtyNum(f.qty) || 1;
out.push({ …f, _qty: qty });
});
return out;
}
/* Checkout name: “2x JBL Wave Buds” when qty > 1 (the WP snippet appends it as-is). */
function mxmFbCheckoutName(f) { return (f._qty > 1 ? f._qty + ‘x ‘ : ”) + f.name; }
/* Glassy overlay (ctx: ‘card’ | ‘qv’) */
function mxmFreebiesGlassHTML(p, ctx) {
if (ctx === ‘card’ && MXM_FREEBIES.showOnCard === false) return ”;
if (ctx !== ‘card’ && MXM_FREEBIES.showInQv === false) return ”;
const list = mxmFreebiesFor(p);
if (!list.length) return ”;
const max = ctx === ‘card’ ? MXM_FB_CARD_MAX : 3;
const shown = list.slice(0, max);
const extra = list.length – shown.length;
return `
shown.map(f => `
`).join(”) +
(extra > 0 ? `
` : ”) +
`
`;
}
/* “Free with purchase” chips line for the Quick View info column */
function mxmFreebiesLineHTML(p) {
if (MXM_FREEBIES.showInQv === false) return ”;
const list = mxmFreebiesFor(p);
if (!list.length) return ”;
return `
list.map(f => `
`
`;
}
/* Checkout hand-off: base64url JSON { “”: [“2x Freebie A”, “Freebie B”] } sent as `mxm_fb`
(POST field for Add to Cart / Buy Now, URL param for scan-to-buy QR). */
function mxmFbB64(s) { return btoa(unescape(encodeURIComponent(s))).replace(/\+/g, ‘-‘).replace(/\//g, ‘_’).replace(/=+$/, ”); }
function mxmFbParamFromMap(map) { return Object.keys(map).length ? mxmFbB64(JSON.stringify(map)) : ”; }
function mxmFbParamFor(products) {
const map = {};
(products || []).forEach(p => {
if (!p) return;
const names = mxmFreebiesFor(p).map(mxmFbCheckoutName);
if (names.length) map[p.id] = names;
});
return mxmFbParamFromMap(map);
}
/* Helper: checks if a badge should show in the current category */
function badgeVisibleInCat(badgeCfg) {
if (!badgeCfg?.enabled) return false;
const cats = badgeCfg.categories || [];
if (!cats.length) return true; // empty = all categories
return cats.includes(activeFilters.categoryName || ”);
}
/* MX Fresh (New Arrival) uses a DISABLE-list, not a whitelist: it shows in
every category by default; admin-checked categories turn it OFF just
there. (Sale/Left/Right badges keep the whitelist behavior above.) */
function newArrivalVisibleInCat(badgeCfg) {
if (!badgeCfg?.enabled) return false;
const cats = badgeCfg.categories || [];
if (!cats.length) return true; // nothing checked = show everywhere
return !cats.includes(activeFilters.categoryName || ”);
}
/* Helper: resolve the icon URL for a left/right icon badge.
Priority: brandIcons[activeBrandTab] > catIcons[categoryName] > iconUrl (default fallback)
Returns ” if nothing matches (badge should be hidden). */
function resolveIconBadge(badgeCfg) {
if (!badgeCfg?.enabled) return ”;
// AI Enabled is only internally active to bootstrap a sidebar Brand
// filter / ?brand= deep link (see suppressCategoryActiveUI) — the grid
// is searching the whole catalog by then, not really “AI Enabled”, so
// its badge shouldn’t show either.
if (suppressCategoryActiveUI) return ”;
// category visibility check
const cats = badgeCfg.categories || [];
if (cats.length && !cats.includes(activeFilters.categoryName || ”)) return ”;
// icon resolution: brand > cat > default
if (activeBrandTab && badgeCfg.brandIcons?.[activeBrandTab]) return badgeCfg.brandIcons[activeBrandTab];
if (activeFilters.categoryName && badgeCfg.catIcons?.[activeFilters.categoryName]) return badgeCfg.catIcons[activeFilters.categoryName];
return badgeCfg.iconUrl || ”;
}
/* ── Tag-based categories — merged from admin config + defaults ── */
const TAG_CATS = (() => {
const defaults = {
‘Smartphones’: { id: 1468, slug: ‘smartphone’ },
“Laptop”: { id: 1492, slug: ‘laptop’ },
};
if (!_adminCfg?.categories) return defaults;
// Only keep a default fallback for a category if admin config doesn’t
// mention it at all. If it IS in admin config but filterMode isn’t
// ‘tag’ (e.g. switched to category-based), it must NOT inherit the
// stale default tag id — otherwise loadProducts wrongly takes the
// tag-based branch with an outdated tag instead of the new category id.
const configuredNames = new Set(_adminCfg.categories.map(c => c.name));
const map = {};
Object.keys(defaults).forEach(name => {
if (!configuredNames.has(name)) map[name] = defaults[name];
});
_adminCfg.categories.forEach(c => {
if (c.filterMode === ‘tag’ && c.tagId) {
map[c.name] = { id: c.tagId, slug: c.name.toLowerCase() };
}
});
return map;
})();
/* Build CAT_IDS from admin config or fall back to defaults */
const CAT_IDS = (() => {
if (!_adminCfg?.categories) return { …DEFAULT_CAT_IDS };
const map = {};
_adminCfg.categories.forEach(c => {
if (c.filterMode !== ‘tag’) map[c.name] = c.id;
});
return map;
})();
/* ── Dual-filter categories: have BOTH a catId and a tagId ──
Any admin category with id > 0 AND tagId set → two-fetch union mode */
const DUAL_CATS = (() => {
if (!_adminCfg?.categories) return {};
const map = {};
_adminCfg.categories.forEach(c => {
if (c.id && c.tagId) {
map[c.name] = { catId: c.id, tagId: c.tagId };
}
});
return map;
})();
/* Build FIXED_CATEGORIES from admin config or fall back to defaults */
const FIXED_CATEGORIES = (() => {
if (!_adminCfg?.categories) return […DEFAULT_FIXED_CATEGORIES];
return _adminCfg.categories.map(c => c.name);
})();
/* ── Brand category slugs ── */
const BRAND_CAT_SLUGS = {
‘Samsung’:’samsung’,’Apple’:’apple’,’Huawei’:’huawei’,’Vivo’:’vivo’,
‘Oppo’:’oppo’,’Xiaomi’:’xiaomi’,’Sony’:’sony’,’Honor’:’honor’,
‘Realme’:’realme’,’Tecno’:’tecno-mobile’,’Lenovo’:’lenovo’,
‘Blackshark’:’blackshark’,’Redmagic’:’redmagic’,’Nokia’:’nokia’,’Spigen’:’spigen’,
};
/* ── Brand category IDs (authoritative fallback) ──
Used in loadBrands() to override API-resolved IDs when API is slow/unavailable,
AND in the Lazada module to do &category= pre-filtering on the API side.
Each ID is the WooCommerce product category ID for that brand. ── */
const BRAND_CAT_IDS_STATIC = {
‘samsung’: 111, ‘apple’: 95, ‘huawei’: 105, ‘vivo’: 117,
‘oppo’: 108, ‘xiaomi’: 118, ‘sony’: 910, ‘honor’: 121,
‘realme’: 109, ‘tecno-mobile’: 116, ‘lenovo’: 243, ‘blackshark’: 889,
‘redmagic’: 110, ‘nokia’: 107, ‘spigen’: 980,
};
let brandCatIds = {…BRAND_CAT_IDS_STATIC};
let brandTagIds = {}; // slug → WC product tag ID, populated from FILTER_BRANDS (admin-configured) per brand
let brandBrandIds = {}; // slug → WooCommerce global “Brand” attribute (pa_brand) term ID
// (admin-configured “Brand ID” field) — used to call products
// directly via &attribute=pa_brand&attribute_term=
let brandCatImages = {}; // slug → WC category image URL, populated by loadBrands()
/* ── Known child slugs per parent ── */
const CHILD_SLUGS = {
‘Security’: [‘xiaomi-home-security’,’security-camera’],
‘Wearables’: [‘xiaomi-watch’,’samsung-watch’],
‘Powerbanks’: [‘jaguar-powerbank’,’xiaomi-powerbank’,’black-shark-powerbank’,’havit-powerbank’,’promate-powerbank’,’vention-powerbank’,’xo-powerbank’],
‘Sim & Load Cards’: [‘simcard’,’prepaid-sim’],
};
/* ── Hardcoded child IDs (avoids extra API round-trips) ── */
const CHILD_IDS = {
‘Wearables’: [600, 114],
‘Powerbanks’: [749, 131],
‘Sim & Load Cards’: [892, 894],
};
/* Categories where only child IDs are sent (no parent ID in query) */
const SLUG_ONLY_CATS = new Set([‘Security’]);
/* ── Categories that use direct per-brand catId (like AI Enabled / Smartphones).
No child-slug API fetch needed — brand chips already scope the query.
“All” tab uses only the parent catId. Zero extra API calls on click. ── */
const DIRECT_BRAND_CAT_CATS = new Set([
‘Tablets’, ‘Laptop’, ‘Appliances’,
‘Adapters & Cables’, ‘Accessories’,
‘Headphones’, ‘PC Peripherals’, ‘Printers’,
‘Gaming’, ‘Lifestyle’, ‘Battery’, ‘Speaker’,
]);
/* ── Banner map — merged from admin config + hardcoded defaults ── */
const BANNER_MAP = (() => {
const defaults = {
“AI Enabled”: “https://mxmemoxpress.com/wp-content/uploads/2026/06/AI-Enabled-PNG.png”,
“Smartphones”: “https://mxmemoxpress.com/wp-content/uploads/2026/06/AI-Enabled-1-PNG.png”,
“Tablets”: “https://mxmemoxpress.com/wp-content/uploads/2026/06/Tablet-PNG.png”,
“Laptop”: “https://mxmemoxpress.com/wp-content/uploads/2026/06/Laptop-PNG.png”,
“Adapters & Cables”: “https://mxmemoxpress.com/wp-content/uploads/2026/06/Cable-and-Adapter-PNG.png”,
“Headphones”: “https://mxmemoxpress.com/wp-content/uploads/2026/06/Headphones-PNG.png”,
“PC Peripherals”: “https://mxmemoxpress.com/wp-content/uploads/2026/06/Peripherals-PNG.png”,
“Printers”: “https://mxmemoxpress.com/wp-content/uploads/2026/06/printer-PNG.png”,
“Gaming”: “https://mxmemoxpress.com/wp-content/uploads/2026/06/Gaming-PNG.png”,
“Wearables”: “https://mxmemoxpress.com/wp-content/uploads/2026/06/Wearables-PNG.png”,
“Appliances”: “https://mxmemoxpress.com/wp-content/uploads/2026/06/Appliances-PNG.png”,
“Security”: “https://mxmemoxpress.com/wp-content/uploads/2026/06/Security-PNG.png”,
“Powerbanks”: “https://mxmemoxpress.com/wp-content/uploads/2026/06/PowerBank-PNG.png”,
“Lifestyle”: “https://mxmemoxpress.com/wp-content/uploads/2026/06/LifeStyle-PNG.png”,
“Battery”: “https://mxmemoxpress.com/wp-content/uploads/2026/06/Battery-PNG.png”,
“Speaker”: “https://mxmemoxpress.com/wp-content/uploads/2026/06/Speaker-PNG.png”,
“Sim & Load Cards”: “https://mxmemoxpress.com/wp-content/uploads/2026/06/Simcard-PNG.png”,
“Accessories”: “https://mxmemoxpress.com/wp-content/uploads/2026/06/Accessories-PNG-1.png”,
};
if (!_adminCfg?.banners) return defaults;
return { …defaults, …_adminCfg.banners };
})();
const BANNER_DEFAULT = “”;
/* ── Per-brand hero banner image — Brand Filter List (Filter Sections →
Brand Filter List) supports an optional Banner Image URL per row.
Keyed by both name and slug (lowercased) so lookups from either the
sidebar brand pick or a ?brand= deep link resolve the same entry.
Reuses updateBanner()’s existing plain-image-swap path (no CSS Banner
config exists per-brand, so it always renders as a simple image swap —
see updateBanner()’s bgImg lookup). ── */
const BRAND_BANNER_MAP = (() => {
const map = {};
(_adminCfg?.filterBrands || []).forEach(b => {
if (!b?.banner) return;
if (b.name) map[b.name] = b.banner;
if (b.slug) map[b.slug] = b.banner;
});
return map;
})();
/* ── Per-brand banner SIZE on tablet/mobile — Brand Filter List rows can set
a Tablet Size % and Mobile Size % (scale) for their Banner Image, since
brand banners otherwise have no Fine-Tune controls at all (unlike category
CSS Banners). Reuses applyFineTunePosition()’s existing imgPos{bp}Scale
mechanism — width/height/top/left stay at defaults (full cover), only
scale changes, so this is purely a zoom in/out per breakpoint. Desktop is
intentionally left at 1 (not exposed in admin) since only Tablet/Mobile
were asked for. ── */
const BRAND_BANNER_CFG_MAP = (() => {
const map = {};
(_adminCfg?.filterBrands || []).forEach(b => {
if (!b?.banner) return;
// Admin stores these as percentages (100 = normal size); convert to the
// 1.0-based scale multiplier applyFineTunePosition() expects.
const tabletScale = (b.bannerScaleTablet !== undefined && b.bannerScaleTablet !== null && b.bannerScaleTablet !== ”) ? Number(b.bannerScaleTablet) / 100 : null;
const mobileScale = (b.bannerScaleMobile !== undefined && b.bannerScaleMobile !== null && b.bannerScaleMobile !== ”) ? Number(b.bannerScaleMobile) / 100 : null;
if (tabletScale === null && mobileScale === null) return; // no override set — fall back to plain image swap
const cfg = {
enabled: false, // stay on the plain-image banner path, not CSS-banner mode
imgPosDesktopTop:0, imgPosDesktopLeft:0, imgPosDesktopWidth:100, imgPosDesktopHeight:100, imgPosDesktopScale:1,
imgPosTabletTop:0, imgPosTabletLeft:0, imgPosTabletWidth:100, imgPosTabletHeight:100,
imgPosTabletScale: (tabletScale !== null && tabletScale > 0) ? tabletScale : 1,
imgPosMobileTop:0, imgPosMobileLeft:0, imgPosMobileWidth:100, imgPosMobileHeight:100,
imgPosMobileScale: (mobileScale !== null && mobileScale > 0) ? mobileScale : 1,
};
if (b.name) map[b.name] = cfg;
if (b.slug) map[b.slug] = cfg;
});
return map;
})();
/* ═══════════════════════════════════
FEATURE FLAGS — controlled from MXM Admin → Global Settings
═══════════════════════════════════ */
const ENABLE_QUICK_VIEW = (() => {
const baked = true;
if (_adminCfg?.quickView !== undefined) return _adminCfg.quickView;
return baked;
})();
/* QUICK PANEL SIZE — controlled from MXM Admin → Quick View → Quick Panel Size.
QV_PANEL_WIDTH: sidebar width (px) used on desktop, and on mobile/tablet
whenever the matching “Full-screen” toggle below is OFF.
QV_FULL_MOBILE / QV_FULL_TABLET: when ON, Quick View covers the full
screen on that device instead of using QV_PANEL_WIDTH. */
const QV_PANEL_WIDTH = (() => {
const baked = 360;
const n = parseInt(_adminCfg?.qvPanelWidth);
if (n > 0) return n;
return baked;
})();
const QV_FULL_MOBILE = (() => {
const baked = true;
if (_adminCfg?.qvFullMobile !== undefined) return _adminCfg.qvFullMobile;
return baked;
})();
const QV_FULL_TABLET = (() => {
const baked = false;
if (_adminCfg?.qvFullTablet !== undefined) return _adminCfg.qvFullTablet;
return baked;
})();
/* QV_STYLE: Quick Panel look — ‘default’ (side panel) or ‘style1’ (glass container
that morphs open from the clicked product card). Admin → Quick Panel Style picks the
look AND which templates use it (qvStyleTargets: shop / kiosk / kiosk1419). */
const QV_TEMPLATE_ID = ‘shop’;
const QV_STYLE = (() => {
const baked = ‘default’;
if (_adminCfg?.qvStyle === ‘style1’) {
const t = _adminCfg.qvStyleTargets;
const on = t ? t[QV_TEMPLATE_ID] === true : QV_TEMPLATE_ID === ‘kiosk1419’;
return on ? ‘style1’ : ‘default’;
}
return baked;
})();
/* QV_IMG_HEIGHT_DESKTOP — height (px) of the product image area in Quick
View on desktop (≥1025px). Controlled from MXM Admin → Global Settings. */
const QV_IMG_HEIGHT_DESKTOP = (() => {
const baked = 350;
const n = parseInt(_adminCfg?.qvImgHeightDesktop);
if (n > 0) return n;
return baked;
})();
/* QV_PROMO_BANNER_HEIGHT_MOBILE — height (px) the Quick View Promo Banner
shrinks to on mobile & tablet (≤1024px), overriding the height baked
from the admin’s QV Promo Banner panel. Controlled from MXM Admin →
Global Settings. */
const QV_PROMO_BANNER_HEIGHT_MOBILE = (() => {
const baked = 50;
const n = parseInt(_adminCfg?.qvPromoBannerHeightMobile);
if (n > 0) return n;
return baked;
})();
/* QUICK PANEL MARGIN + Z-INDEX — controlled from MXM Admin → Quick Panel
Layout & Buttons. Margin Top/Bottom shrink the panel off the top/bottom
edges of the screen; Z-Index controls stacking above/below other fixed
elements on the page. */
const QV_PANEL_MARGIN_TOP = (() => {
const n = parseInt(_adminCfg?.qvPanelMarginTop);
return (n > 0) ? n : 0;
})();
const QV_PANEL_MARGIN_BOTTOM = (() => {
const n = parseInt(_adminCfg?.qvPanelMarginBottom);
return (n > 0) ? n : 0;
})();
const QV_PANEL_ZINDEX = (() => {
const n = parseInt(_adminCfg?.qvPanelZIndex);
return (n > 0) ? n : 11999;
})();
/* PRODUCT DESCRIPTION MODAL (“View Full Details”) Z-INDEX — per device,
controlled from MXM Admin → Quick Panel Layout & Buttons. Each falls back
to the old hardcoded 2147483000 (near the 32-bit max) when unset. */
const MH_ZINDEX_DESKTOP = (() => {
const n = parseInt(_adminCfg?.mhZIndexDesktop);
return (n > 0) ? n : 2147483000;
})();
const MH_ZINDEX_TABLET = (() => {
const n = parseInt(_adminCfg?.mhZIndexTablet);
return (n > 0) ? n : 2147483000;
})();
const MH_ZINDEX_MOBILE = (() => {
const n = parseInt(_adminCfg?.mhZIndexMobile);
return (n > 0) ? n : 2147483000;
})();
// Same 768/1024 breakpoints used elsewhere in this file (QV_FULL_MOBILE/TABLET).
function currentMhZIndex() {
const w = window.innerWidth;
if (w <= 768) return MH_ZINDEX_MOBILE;
if (w {
const blank = { width:”, height:”, marginTop:0, marginBottom:0, zIndex:”, bgColor:”, textColor:”, label:” };
const baked = {
buyNow: { …blank, label:’Buy Now’ },
addToCart: { …blank, label:’Add to Cart’ },
wishlist: { …blank, label:’Add to Wishlist’ },
viewDetails: { …blank, label:’View Full Details’ },
};
const cfg = _adminCfg?.qvButtons;
if (!cfg) return baked;
const out = {};
Object.keys(baked).forEach(k => { out[k] = { …baked[k], …(cfg[k] || {}) }; });
return out;
})();
/* Builds a CSS `style=”…”` attribute string from one QV_BUTTONS entry —
only outputs declarations for fields the admin actually set, so buttons
with no overrides keep their normal stylesheet-driven look. */
function qvBtnStyleAttr(key) {
const b = QV_BUTTONS[key];
if (!b) return ”;
const decls = [];
if (b.width) decls.push(`width:${/^\d+$/.test(b.width) ? b.width+’px’ : b.width}`);
if (b.height) decls.push(`height:${/^\d+$/.test(b.height) ? b.height+’px’ : b.height}`);
if (b.marginTop) decls.push(`margin-top:${b.marginTop}px`);
if (b.marginBottom) decls.push(`margin-bottom:${b.marginBottom}px`);
if (b.zIndex) decls.push(`z-index:${b.zIndex}`);
if (b.bgColor) decls.push(`background:${b.bgColor}`);
if (b.textColor) decls.push(`color:${b.textColor}`);
return decls.length ? ` style=”${decls.join(‘;’)}”` : ”;
}
function qvBtnLabel(key, fallback) {
const b = QV_BUTTONS[key];
return (b && b.label) ? esc(b.label) : fallback;
}
/* Apply Quick Panel sizing — desktop width via CSS var, plus optional
full-screen override for mobile (≤768px) and tablet (769–1024px). */
(function applyQvPanelSizing() {
document.documentElement.style.setProperty(‘–qv-panel-w’, QV_PANEL_WIDTH + ‘px’);
document.documentElement.style.setProperty(‘–qv-img-h-desktop’, QV_IMG_HEIGHT_DESKTOP + ‘px’);
document.documentElement.style.setProperty(‘–qv-promo-h-mobile’, QV_PROMO_BANNER_HEIGHT_MOBILE + ‘px’);
document.documentElement.style.setProperty(‘–qv-panel-margin-top’, QV_PANEL_MARGIN_TOP + ‘px’);
document.documentElement.style.setProperty(‘–qv-panel-margin-bottom’, QV_PANEL_MARGIN_BOTTOM + ‘px’);
document.documentElement.style.setProperty(‘–qv-panel-z’, QV_PANEL_ZINDEX);
let rules = ”;
if (QV_FULL_MOBILE && QV_STYLE !== ‘style1’) rules += `@media(max-width:768px){.mxm-qv-panel{width:100vw!important}}`;
if (QV_FULL_TABLET && QV_STYLE !== ‘style1’) rules += `@media(min-width:769px) and (max-width:1024px){.mxm-qv-panel{width:100%!important}}`;
if (rules) {
const style = document.createElement(‘style’);
style.id = ‘qvPanelDynamicSizing’;
style.textContent = rules;
document.head.appendChild(style);
}
})();
const ENABLE_CAROUSEL_INDICATOR = (() => {
const baked = true;
if (_adminCfg?.carouselIndicator !== undefined) return _adminCfg.carouselIndicator;
return baked;
})();
// If disabled in admin, force-hide the mobile indicator bars right away —
// the mobile media query otherwise shows them (as an empty strip) regardless
// of JS state until updateMobileCarouselIndicator() happens to run.
if (!ENABLE_CAROUSEL_INDICATOR) {
[‘mobileBrandIndicator’, ‘mobileSubIndicator’].forEach(id => {
const el = document.getElementById(id);
if (el) el.style.display = ‘none’;
});
}
/* QV_DESC_SOURCES — order + on/off for Quick View description sections.
id: ‘description’ -> p.desc (WooCommerce full description)
id: ‘highlights’ -> bullet points (
id: ‘shortDesc’ -> p.shortDesc (WooCommerce short description, as-is) */
const QV_DESC_SOURCES = (() => {
const baked = [
{ “id”: “description”, “label”: “Product Description”, “enabled”: true },
{ “id”: “highlights”, “label”: “Highlights”, “enabled”: false },
{ “id”: “shortDesc”, “label”: “Product Short Description”, “enabled”: true }
];
if (_adminCfg?.qvDescSources) return _adminCfg.qvDescSources;
return baked;
})();
const ENABLE_WISHLIST = (() => {
const baked = true;
if (_adminCfg?.wishlist !== undefined) return _adminCfg.wishlist;
return baked;
})();
/* ── Buy Now button — controlled from MXM Admin → Global Settings.
enabled : show/hide the Buy Now control entirely (Add to Cart takes full width when off)
mode : ‘button’ = normal link to the product page
‘qr’ = replaced with a “Scan to View” trigger that opens an
enlarged QR code linking to the product, for viewing on phone
═══════════════════════════════════════════════════════════ */
const BUY_NOW = (() => {
const baked = { enabled: true, mode: ‘button’ };
if (_adminCfg?.buyNow) return { …baked, …_adminCfg.buyNow };
return baked;
})();
/* BUY_NOW_QR: QR Code mode is applied per template (admin → Buy Now Mode → “Use QR Code on”).
ON → Buy Now becomes a “Scan to View” button that opens the enlarged product QR modal.
OFF → Buy Now keeps opening the variant/PPOM panel and going to checkout. */
const BUY_NOW_QR = (() => {
if (BUY_NOW.mode !== ‘qr’) return false;
const t = BUY_NOW.qrTargets;
return t ? t[QV_TEMPLATE_ID] === true : true;
})();
function buyNowOnclick(i, closeMh) {
const pre = closeMh ? ‘closeModalHighlight();’ : ”;
return BUY_NOW_QR ? `${pre}openBuyNowQR(allProducts[${i}].url, allProducts[${i}].name)` : `${pre}openBuyNowPanel(${i})`;
}
function buyNowLabel() { return qvBtnLabel(‘buyNow’, BUY_NOW_QR ? ‘Scan to View’ : ‘Buy Now’); }
/* ── Direct Checkout URL — the WordPress page carrying the
Your cart is currently empty.
shortcode. Add to Cart submissions POST here (adds the item AND lands on
checkout) instead of the classic product-page add-to-cart flow. Falls back
to the product URL if not configured yet in admin. ── */
const DIRECT_CHECKOUT_URL = (() => {
const baked = ‘https://mxmemoxpress.com/mx-checkout-2026/’;
if (_adminCfg?.directCheckoutUrl) return _adminCfg.directCheckoutUrl;
return baked;
})();
/* ── Buy Now checkout URL — where the Buy Now panel sends the shopper
straight after the item + variation + PPOM add-ons are added to the
cart, skipping the “Added to Cart” QR step that regular Add to Cart uses. ── */
const BUY_NOW_CHECKOUT_URL = ‘https://mxmemoxpress.com/mx-checkout-2026/’;
/* ── Discount display on product cards + QV
enabled : show/hide original price & discount
style : ‘percent’ = “-7% Off” | ‘flat’ = “-₱5,000”
minPct : only show badge when actual discount >= this % (0 = always)
═══════════════════════════════════════════════════════════ */
const DISCOUNT_DISPLAY = (() => {
const baked = { enabled: true, style: ‘percent’, minPct: 0, badgePos: ‘inline’ };
if (_adminCfg?.discountDisplay !== undefined) return { …baked, …_adminCfg.discountDisplay };
return baked;
})();
/* ── Installment financing formula shown on product cards + QV
enabled : show/hide the “As low as ₱X / N months” line entirely
provider : ‘bdo’ (default) = BDO Purchase Convert factor for the term (same as the 14:19 Kiosk);
‘skyro’ = Skyro formula below (rate multiplier ÷ months, uses the text templates)
rate : multiplier applied to the display price before dividing (Skyro only; e.g. 1.13 = 13%)
months : number of months the amount is spread across
cardTemplate : text shown on the product grid card. {amount} and {months} are replaced at render time.
qvTemplate : text shown in the Quick View panel. Supports the same placeholders (HTML like is fine).
═══════════════════════════════════════════════════════════ */
const INSTALLMENT_CONFIG = (() => {
const baked = {“enabled”:true,”provider”:”bdo”,”rate”:1.13,”months”:12,”cardTemplate”:”As low as ₱{amount} / {months} months with Easy Financing via Skyro.”,”qvTemplate”:”As low as ₱{amount}/mo for {months} months with Easy Financing via Skyro.”,”quickPanelEnabled”:true};
if (_adminCfg?.installment !== undefined) return { …baked, …_adminCfg.installment };
return baked;
})();
/* Computes the formatted installment line for a given display price.
variant: ‘card’ (product grid) or ‘qv’ (Quick View panel). Returns ” when
disabled, price is 0/blank, or the config has no usable template. */
/* BDO Purchase Convert monthly factors — same table as the Installment
Calculator and the 14:19 Kiosk. Monthly amount = price × factor. */
const INSTALLMENT_BDO_FACTORS = { 3: 0.343338077, 6: 0.176667651, 9: 0.121111407, 12: 0.093334686, 18: 0.06555912, 24: 0.05167098, 36: 0.037777833 };
function installmentHTML(dp, variant) {
if (!INSTALLMENT_CONFIG.enabled || !(dp > 0)) return ”;
/* BDO is the default provider; only an explicit ‘skyro’ switches to the Skyro formula */
if (INSTALLMENT_CONFIG.provider !== ‘skyro’) {
const term = INSTALLMENT_BDO_FACTORS[Number(INSTALLMENT_CONFIG.months)] ? Number(INSTALLMENT_CONFIG.months) : 12;
const amt = Math.round(dp * INSTALLMENT_BDO_FACTORS[term]).toLocaleString(‘en-PH’);
const text = variant === ‘qv’
? `As low as ₱${amt}/mo for ${term} months Installment`
: `As low as ₱${amt} / ${term} months Installment`;
return `
`;
}
const rate = Number(INSTALLMENT_CONFIG.rate) || 1;
const months = Number(INSTALLMENT_CONFIG.months) || 1;
const amount = ((dp * rate) / months).toFixed(2);
const tpl = (variant === ‘qv’ ? INSTALLMENT_CONFIG.qvTemplate : INSTALLMENT_CONFIG.cardTemplate) || ”;
if (!tpl) return ”;
const text = tpl.replace(/\{amount\}/g, amount).replace(/\{months\}/g, months);
const cls = variant === ‘qv’ ? ‘qv-installment’ : ‘card-installment’;
return `
`;
}
/* ══════════════════════════════════════
PAYMENT OPTIONS CAROUSEL — shown below the
installment line in the Quick View panel.
Config-driven (config.paymentOptions in the admin),
baked into _adminCfg.paymentOptions on generate.
Renders as a horizontally-scrollable “Liquid Glass”
card carousel, up to 5 cards.
═══════════════════════════════════════════════════════════ */
const PAYMENT_OPTIONS_CONFIG = (() => {
const baked = {
enabled: true,
items: [
{ id: ‘card’, label: ‘Debit/Credit’, icon: ‘card’, iconUrl: ”, enabled: true },
{ id: ‘digital’, label: ‘Digital Pay’, icon: ‘digital’, iconUrl: ”, enabled: true },
{ id: ‘financing’, label: ‘Financing’, icon: ‘financing’, iconUrl: ”, enabled: true },
],
};
if (_adminCfg?.paymentOptions !== undefined) return { …baked, …_adminCfg.paymentOptions };
return baked;
})();
const PAYMENT_ICON_SVGS = {
card: ‘‘,
digital: ‘‘,
financing: ‘‘,
bank: ‘‘,
cod: ‘‘,
wallet: ‘‘,
generic: ‘‘,
};
function paymentOptionsHTML() {
if (!PAYMENT_OPTIONS_CONFIG.enabled) return ”;
const items = (PAYMENT_OPTIONS_CONFIG.items || []).filter(it => it && it.enabled !== false).slice(0, 5);
if (!items.length) return ”;
const cards = items.map(it => {
const iconInner = it.iconUrl
? ``
: (PAYMENT_ICON_SVGS[it.icon] || PAYMENT_ICON_SVGS.generic);
return `
`;
}).join(”);
return `
`;
}
/* ══════════════════════════════════════
PPOM GROUPS — Product Add-Ons config
Mirrored from wp_nm_personalized DB table (PPOM plugin), all 12 groups.
Keyed by PPOM group ID (matches product meta_data key “_product_meta_id”).
Override entirely via _adminCfg.ppomGroups once admin CRUD exists.
NOTE: Group 10 “MXURE (Mandatory)” has all fields marked status:”off” in
the source data — flag to Leo if a product using this group needs fields
turned back on in the PPOM admin.
═══════════════════════════════════════ */
const PPOM_GROUPS = (_adminCfg?.ppomGroups) || {
“1”: {
“1”: {
“type”: “select”,
“title”: “Do you have Unpacked Voucher?”,
“data_name”: “do_you_have_unpacked_voucher_”,
“description”: “”,
“error_message”: “”,
“options”: [
{
“option”: “Yes”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “yes”
},
{
“option”: “No”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no”
}
],
“selected”: “”,
“first_option”: “”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “Enter you Unpacked Voucher Discount”,
“operators”: “any”,
“element_values”: “”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “on”,
“ppom_id”: “1”
},
“2”: {
“type”: “text”,
“title”: “Enter you Unpacked Voucher Discount”,
“data_name”: “Enter you Unpacked Voucher Discount”,
“description”: “”,
“placeholder”: “Voucher Discount”,
“error_message”: “”,
“maxlength”: “12”,
“minlength”: “1”,
“default_value”: “”,
“price”: “”,
“class”: “”,
“input_mask”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“logic”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “Any”,
“rules”: [
{
“elements”: “do_you_have_unpacked_voucher_”,
“operators”: “is”,
“element_values”: “Yes”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “on”,
“ppom_id”: “1”
},
“3”: {
“type”: “select”,
“title”: “Choose the item you want to use your ₱5,000 Galaxy Unpacked Discount”,
“data_name”: “Galaxy Unpacked”,
“description”: “”,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “Galaxy Tab A11 WiFi 4GB+64GB – Gray [SRP – ₱7,990]”,
“price”: “2990”,
“weight”: “”,
“stock”: “”,
“id”: “galaxy_tab_a11_wifi_4gb_64gb___gray__srp____7_990_”
},
{
“option”: “Galaxy Tab A11 LTE 4GB+64GB – Gray [SRP – ₱10,990]”,
“price”: “5990”,
“weight”: “”,
“stock”: “”,
“id”: “galaxy_tab_a11_lte_4gb_64gb___gray__srp____10_990_”
},
{
“option”: “Galaxy Tab S10 Lite Wi-Fi 6GB+128GB – Gray [SRP – ₱19,990]”,
“price”: “14990”,
“weight”: “”,
“stock”: “”,
“id”: “galaxy_tab_s10_lite_wi_fi_6gb_128gb___gray__srp____19_990_”
},
{
“option”: “Galaxy Tab S10 FE WiFi 8GB+128GB – Gray [SRP – ₱26,990]”,
“price”: “21990”,
“weight”: “”,
“stock”: “”,
“id”: “galaxy_tab_s10_fe_wifi_8gb_128gb___gray__srp____26_990_”
},
{
“option”: “Galaxy Tab S10 FE 5G 8GB+128GB – Gray [SRP – ₱31,990]”,
“price”: “26990”,
“weight”: “”,
“stock”: “”,
“id”: “galaxy_tab_s10_fe_5g_8gb_128gb___gray__srp____31_990_”
},
{
“option”: “Galaxy Tab S10 FE+ 5G 8GB+128GB – Gray [SRP – ₱39,990]”,
“price”: “34990”,
“weight”: “”,
“stock”: “”,
“id”: “galaxy_tab_s10_fe__5g_8gb_128gb___gray__srp____39_990_”
},
{
“option”: “Galaxy Tab S11 Wi-Fi 12GB+256GB – Gray [SRP – ₱52,990]”,
“price”: “47990”,
“weight”: “”,
“stock”: “”,
“id”: “galaxy_tab_s11_wi_fi_12gb_256gb___gray__srp____52_990_”
},
{
“option”: “Galaxy Tab S11 5G 12GB+256GB – Gray [SRP – ₱61,990]”,
“price”: “56990”,
“weight”: “”,
“stock”: “”,
“id”: “galaxy_tab_s11_5g_12gb_256gb___gray__srp____61_990_”
},
{
“option”: “Galaxy Tab S10+ Wi-Fi 12GB+256GB – Silver [SRP – ₱68,990]”,
“price”: “63990”,
“weight”: “”,
“stock”: “”,
“id”: “galaxy_tab_s10__wi_fi_12gb_256gb___silver__srp____68_990_”
},
{
“option”: “Galaxy Tab S10+ 5G 12GB+256GB – Gray [SRP – ₱76,990]”,
“price”: “71990”,
“weight”: “”,
“stock”: “”,
“id”: “galaxy_tab_s10__5g_12gb_256gb___gray__srp____76_990_”
}
],
“selected”: “”,
“first_option”: “”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“logic”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “do_you_have_unpacked_voucher_”,
“operators”: “is”,
“element_values”: “Yes”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “on”,
“ppom_id”: “1”
},
“4”: {
“type”: “select”,
“title”: “Choose your cross-sell for Galaxy Buds”,
“data_name”: “choose_your_cross_sell”,
“description”: “”,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “[30% OFF] Galaxy Buds Core – Black [SRP – ₱2,690]”,
“price”: “1883”,
“weight”: “”,
“stock”: “”,
“id”: “_30__off__galaxy_buds_core___black__srp____2_690_”
},
{
“option”: “[30% OFF] Galaxy Buds Core – White [SRP – ₱2,690]”,
“price”: “1883”,
“weight”: “”,
“stock”: “”,
“id”: “_30__off__galaxy_buds_core___white__srp____2_690_”
},
{
“option”: “[30% OFF] Galaxy Buds FE – Graphite [SRP – ₱5,490]”,
“price”: “3843”,
“weight”: “”,
“stock”: “”,
“id”: “_30__off__galaxy_buds_fe___graphite__srp____5_490_”
},
{
“option”: “[30% OFF] Galaxy Buds 3 – Silver [SRP – ₱8,990]”,
“price”: “6293”,
“weight”: “”,
“stock”: “”,
“id”: “_30__off__galaxy_buds_3___silver__srp____8_990_”
},
{
“option”: “[30% OFF] Galaxy Buds 3 – White [SRP – ₱8,990]”,
“price”: “6293”,
“weight”: “”,
“stock”: “”,
“id”: “_30__off__galaxy_buds_3___white__srp____8_990_”
},
{
“option”: “[30% OFF] Galaxy Buds 3 Pro – Silver [SRP – ₱14,990]”,
“price”: “10493”,
“weight”: “”,
“stock”: “”,
“id”: “_30__off__galaxy_buds_3_pro___silver__srp____14_990_”
},
{
“option”: “[30% OFF] Galaxy Buds 4 – Black [SRP – ₱11,490]”,
“price”: “8043”,
“weight”: “”,
“stock”: “”,
“id”: “_30__off__galaxy_buds_4___black__srp____11_490_”
},
{
“option”: “[30% OFF] Galaxy Buds 4 – White [SRP – ₱11,490]”,
“price”: “8043”,
“weight”: “”,
“stock”: “”,
“id”: “_30__off__galaxy_buds_4___white__srp____11_490_”
},
{
“option”: “[30% OFF] Galaxy Buds 4 Pro – Black [SRP – ₱14,990]”,
“price”: “10493”,
“weight”: “”,
“stock”: “”,
“id”: “_30__off__galaxy_buds_4_pro___black__srp____14_990_”
},
{
“option”: “[30% OFF] Galaxy Buds 4 Pro – White [SRP – ₱14,990]”,
“price”: “10493”,
“weight”: “”,
“stock”: “”,
“id”: “_30__off__galaxy_buds_4_pro___white__srp____14_990_”
},
{
“option”: “[30% OFF] Galaxy Buds 4 Pro – Gold [SRP – ₱14,990]”,
“price”: “10493”,
“weight”: “”,
“stock”: “”,
“id”: “_30__off__galaxy_buds_4_pro___gold__srp____14_990_”
}
],
“selected”: “”,
“first_option”: “”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “do_you_have_unpacked_voucher_”,
“operators”: “is”,
“element_values”: “Yes”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “on”,
“ppom_id”: “1”
},
“5”: {
“type”: “select”,
“title”: “Choose your cross-sell for Galaxy Watch”,
“data_name”: “choose_your_cross_sell_copy_1”,
“description”: “”,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “[30% OFF] Galaxy Fit 3 – Gray [SRP – ₱3,490]”,
“price”: “2443”,
“weight”: “”,
“stock”: “”,
“id”: “_30__off__galaxy_fit_3___gray__srp____3_490_”
},
{
“option”: “[30% OFF] Galaxy Watch8 40MM BT – Silver [SRP – ₱20,990]”,
“price”: “14693”,
“weight”: “”,
“stock”: “”,
“id”: “_30__off__galaxy_watch8_40mm_bt___silver__srp____20_990_”
},
{
“option”: “[30% OFF] Galaxy Watch8 40MM BT – Graphite [SRP – ₱20,990]”,
“price”: “14693”,
“weight”: “”,
“stock”: “”,
“id”: “_30__off__galaxy_watch8_40mm_bt___graphite__srp____20_990_”
},
{
“option”: “[30% OFF] Galaxy Watch8 44MM BT – Silver [SRP – ₱22,990]”,
“price”: “16093”,
“weight”: “”,
“stock”: “”,
“id”: “_30__off__galaxy_watch8_44mm_bt___silver__srp____22_990_”
},
{
“option”: “[30% OFF] Galaxy Watch8 44MM BT – Graphite [SRP – ₱22,990]”,
“price”: “16093”,
“weight”: “”,
“stock”: “”,
“id”: “_30__off__galaxy_watch8_44mm_bt___graphite__srp____22_990_”
},
{
“option”: “[30% OFF] Galaxy Watch8 Classic BT – Black [SRP – ₱29,990]”,
“price”: “20993”,
“weight”: “”,
“stock”: “”,
“id”: “_30__off__galaxy_watch8_classic_bt___black__srp____29_990_”
},
{
“option”: “[30% OFF] Galaxy Watch8 Classic BT – White [SRP – ₱29,990]”,
“price”: “20993”,
“weight”: “”,
“stock”: “”,
“id”: “_30__off__galaxy_watch8_classic_bt___white__srp____29_990_”
},
{
“option”: “[30% OFF] Galaxy Ultra – Titanium Silver [SRP – ₱40,990]”,
“price”: “28693”,
“weight”: “”,
“stock”: “”,
“id”: “_30__off__galaxy_ultra___titanium_silver__srp____40_990_”
},
{
“option”: “[30% OFF] Galaxy Ultra – Titanium Gray [SRP – ₱40,990]”,
“price”: “28693”,
“weight”: “”,
“stock”: “”,
“id”: “_30__off__galaxy_ultra___titanium_gray__srp____40_990_”
},
{
“option”: “[30% OFF] Galaxy Ultra – Titanium White [SRP – ₱40,990]”,
“price”: “28693”,
“weight”: “”,
“stock”: “”,
“id”: “_30__off__galaxy_ultra___titanium_white__srp____40_990_”
}
],
“selected”: “”,
“first_option”: “”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “do_you_have_unpacked_voucher_”,
“operators”: “is”,
“element_values”: “Yes”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “on”,
“ppom_id”: “1”
},
“6”: {
“type”: “select”,
“title”: “Select where you would like to use your ₱1,000 Additional Discount Voucher”,
“data_name”: “Discount Voucher”,
“description”: “”,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “On your Galaxy Unpacked item”,
“price”: “-1000”,
“weight”: “”,
“stock”: “”,
“id”: “on_your_galaxy_unpacked_item”
},
{
“option”: “On your Cross-sell item”,
“price”: “-1000”,
“weight”: “”,
“stock”: “”,
“id”: “on_your_cross_sell_item”
},
{
“option”: “SAMSUNG GALAXY A06 5G 4GB/128GB [SRP – ₱6,390]”,
“price”: “5390”,
“weight”: “”,
“stock”: “”,
“id”: “samsung_galaxy_a06_5g_4gb_128gb__srp____6_390_”
}
],
“selected”: “”,
“first_option”: “”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “choose_your_cross_sell”,
“operators”: “not”,
“element_values”: “No Thanks”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “off”,
“ppom_id”: “1”
}
},
“13”: {
“1”: {
“type”: “text”,
“title”: “Any text input”,
“data_name”: “any_text_input”,
“description”: “It’s a test field”,
“placeholder”: “”,
“error_message”: “”,
“maxlength”: “”,
“minlength”: “”,
“default_value”: “”,
“price”: “”,
“class”: “”,
“input_mask”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“operators”: “any”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
},
{
“operators”: “any”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “off”,
“ppom_id”: “13”
},
“2”: {
“type”: “select”,
“title”: “Test Options”,
“data_name”: “test_options”,
“description”: “”,
“error_message”: “”,
“options”: [
{
“option”: “Option A”,
“price”: “5”,
“weight”: “”,
“stock”: “”,
“id”: “option_a”
},
{
“option”: “Option B”,
“price”: “6”,
“weight”: “”,
“stock”: “”,
“id”: “option_b”
},
{
“option”: “Option C”,
“price”: “7”,
“weight”: “”,
“stock”: “”,
“id”: “option_c”
}
],
“selected”: “”,
“first_option”: “”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “any_text_input”,
“operators”: “is”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “off”,
“ppom_id”: “13”
},
“3”: {
“type”: “checkbox”,
“title”: “Conditional Field”,
“data_name”: “conditional_field”,
“description”: “Shown when Option B is selected”,
“error_message”: “”,
“options”: [
{
“option”: “Test Checkbox”,
“price”: “”,
“discount”: “”,
“tooltip”: “”,
“weight”: “”,
“stock”: “”,
“id”: “test_checkbox”
}
],
“class”: “”,
“width”: “12”,
“checked”: “”,
“min_checked”: “”,
“max_checked”: “”,
“visibility”: “everyone”,
“visibility_role”: “”,
“logic”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “test_options”,
“operators”: “is”,
“element_values”: “Option B”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “off”,
“ppom_id”: “13”
},
“4”: {
“type”: “select”,
“title”: “Do you want to Upgrade?”,
“data_name”: “choose_your_cross_sell”,
“description”: “”,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “iPhone 15 128GB”,
“price”: “11490”,
“weight”: “”,
“stock”: “”,
“id”: “iphone_15_128gb”
},
{
“option”: “iPhone 16 128GB”,
“price”: “18490”,
“weight”: “”,
“stock”: “”,
“id”: “iphone_16_128gb”
}
],
“selected”: “”,
“first_option”: “”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “any_text_input”,
“operators”: “is”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “on”,
“ppom_id”: “13”
}
},
“2”: {
“1”: {
“type”: “select”,
“title”: “MXURE (Device Protection)”,
“data_name”: “mxure__device_protection_”,
“description”: “
\r\nWith MXURE you can now protect your phone from inevitable accidents, water damages and more.
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “Accidental and Liquid Damage – 1 Year”,
“price”: “9%”,
“weight”: “”,
“stock”: “”,
“id”: “accidental_and_liquid_damage___1_year”
}
],
“selected”: “No Thanks”,
“first_option”: “Choose an option”,
“class”: “mxuredeviceprotection”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “choose_your_mx_line_bundle”,
“operators”: “any”,
“element_values”: “No Thanks”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “on”,
“ppom_id”: “2”
},
“2”: {
“type”: “select”,
“title”: “Connect to your preferred network”,
“data_name”: “choose_your_mx_line_bundle”,
“description”: “
\r\n
\r\n
Select your SIM card and load bundle below:\r\n
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “GOMO SIM with 30GB No Expiry”,
“price”: “399”,
“weight”: “”,
“stock”: “”,
“id”: “gomo_sim_with_30gb_no_expiry”
},
{
“option”: “Smart Rocket Sim with 87GB (24GB + 2GB/DAY FOR 30 DAYS)”,
“price”: “549”,
“weight”: “”,
“stock”: “”,
“id”: “smart_rocket_sim_with_87gb__24gb___2gb_day_for_30_days_”
},
{
“option”: “Globe LTE Tri cut Simcard”,
“price”: “59”,
“weight”: “”,
“stock”: “”,
“id”: “globe_lte_tri_cut_simcard”
},
{
“option”: “TM LTE Sim”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “tm_lte_sim”
},
{
“option”: “Smart LTE Sim”,
“price”: “55”,
“weight”: “”,
“stock”: “”,
“id”: “smart_lte_sim”
},
{
“option”: “TalknText LTE Sim”,
“price”: “45”,
“weight”: “”,
“stock”: “”,
“id”: “talkntext_lte_sim”
},
{
“option”: “Dito 5G Simcard No Expiration”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “dito_5g_simcard_no_expiration”
}
],
“selected”: “No Thanks”,
“first_option”: “Choose an option”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “mxure__device_protection_”,
“operators”: “is”,
“element_values”: “No Thanks”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “on”,
“ppom_id”: “2”
},
“3”: {
“type”: “select”,
“title”: “Choose your Protector”,
“data_name”: “choose_your_protector_”,
“description”: “
\r\n — \r\nPut a virtual forcefield on your phone’s screen with Kaizen’screen protector that not only protects your phone screens from scratches but also retains the visual quality of it. Learn more
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “Screen Protector – Clear”,
“price”: “390”,
“weight”: “”,
“stock”: “”,
“id”: “screen_protector___clear”
},
{
“option”: “Screen Protector – Anti Blue Light”,
“price”: “590”,
“weight”: “”,
“stock”: “”,
“id”: “screen_protector___anti_blue_light”
},
{
“option”: “Screen Protector – Privacy Matte”,
“price”: “790”,
“weight”: “”,
“stock”: “”,
“id”: “screen_protector___privacy_matte”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “mxure__device_protection_”,
“operators”: “is”,
“element_values”: “No Thanks”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “off”,
“ppom_id”: “2”
}
},
“3”: {
“1”: {
“type”: “text”,
“title”: “Any text input”,
“data_name”: “any_text_input”,
“description”: “It’s a test field”,
“placeholder”: “”,
“error_message”: “”,
“maxlength”: “”,
“minlength”: “”,
“default_value”: “”,
“price”: “”,
“class”: “”,
“input_mask”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “any_text_input”,
“operators”: “is”
},
{
“elements”: “any_text_input”,
“operators”: “is”
}
]
},
“status”: “off”,
“ppom_id”: “3”
},
“2”: {
“type”: “select”,
“title”: “Test Options”,
“data_name”: “test_options”,
“description”: “”,
“error_message”: “”,
“options”: [
{
“option”: “Option A”,
“price”: “5”,
“weight”: “”,
“stock”: “”,
“id”: “option_a”
},
{
“option”: “Option B”,
“price”: “6”,
“weight”: “”,
“stock”: “”,
“id”: “option_b”
},
{
“option”: “Option C”,
“price”: “7”,
“weight”: “”,
“stock”: “”,
“id”: “option_c”
}
],
“selected”: “”,
“first_option”: “”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “any_text_input”,
“operators”: “is”
}
]
},
“status”: “off”,
“ppom_id”: “3”
},
“3”: {
“type”: “checkbox”,
“title”: “Conditional Field”,
“data_name”: “conditional_field”,
“description”: “Shown when Option B is selected”,
“error_message”: “”,
“options”: [
{
“option”: “Test Checkbox”,
“price”: “”,
“discount”: “”,
“tooltip”: “”,
“weight”: “”,
“stock”: “”,
“id”: “test_checkbox”
}
],
“class”: “”,
“width”: “12”,
“checked”: “”,
“min_checked”: “”,
“max_checked”: “”,
“visibility”: “everyone”,
“visibility_role”: “”,
“logic”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “test_options”,
“operators”: “is”,
“element_values”: “Option B”
}
]
},
“status”: “off”,
“ppom_id”: “3”
},
“4”: {
“type”: “select”,
“title”: “Choose your cross-sell”,
“data_name”: “choose_your_cross_sell”,
“description”: “”,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “50% OFF! Galaxy Buds 2 Black [5,490]”,
“price”: “3495”,
“weight”: “”,
“stock”: “”,
“id”: “50__off__galaxy_buds_2_black__5_490_”
},
{
“option”: “50% OFF! Galaxy Buds 2 White [5,490]”,
“price”: “3495”,
“weight”: “”,
“stock”: “”,
“id”: “50__off__galaxy_buds_2_white__5_490_”
},
{
“option”: “30% OFF! Galaxy Buds 2 FE Black [5,490]”,
“price”: “3843”,
“weight”: “”,
“stock”: “”,
“id”: “30__off__galaxy_buds_2_fe_black__5_490_”
},
{
“option”: “30% OFF! Galaxy Buds 2 FE White [5,490]”,
“price”: “3843”,
“weight”: “”,
“stock”: “”,
“id”: “30__off__galaxy_buds_2_fe_white__5_490_”
},
{
“option”: “50% OFF! Galaxy Buds 2 Pro Bora Purple [12,990]”,
“price”: “6495”,
“weight”: “”,
“stock”: “”,
“id”: “50__off__galaxy_buds_2_pro_bora_purple__12_990_”
},
{
“option”: “30% OFF! Galaxy Watch6 Gold 40MM LTE[16,990]”,
“price”: “11893”,
“weight”: “”,
“stock”: “”,
“id”: “30__off__galaxy_watch6_gold_40mm_lte_16_990_”
},
{
“option”: “30% OFF! Galaxy Watch6 Silver 44MM LTE[16,990]”,
“price”: “13293”,
“weight”: “”,
“stock”: “”,
“id”: “30__off__galaxy_watch6_silver_44mm_lte_16_990_”
}
],
“selected”: “”,
“first_option”: “”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “any_text_input”,
“operators”: “is”
}
]
},
“status”: “on”,
“ppom_id”: “3”
}
},
“4”: {
“1”: {
“type”: “select”,
“title”: “MXURE (Device Protection)”,
“data_name”: “mxure__device_protection_”,
“description”: “
\r\n — \r\nWith MXURE you can now protect your phone from inevitable accidents, water damages and more.
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “Accidental and Liquid Damage – 1 Year”,
“price”: “9%”,
“weight”: “”,
“stock”: “”,
“id”: “accidental_and_liquid_damage___1_year”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “mxuredeviceprotection”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “mxure__device_protection”,
“operators”: “is”,
“element_values”: “No Thanks”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “on”,
“ppom_id”: “4”
},
“2”: {
“type”: “select”,
“title”: “Connect to your preferred network”,
“data_name”: “choose_your_mx_line_bundle”,
“description”: “
\r\n
\r\n
Select your SIM card and load bundle below:\r\n
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “GOMO SIM with 30GB No Expiry [₱399.00]”,
“price”: “369”,
“weight”: “”,
“stock”: “”,
“id”: “gomo_sim_with_30gb_no_expiry___399_00_”
},
{
“option”: “Smart Rocket Sim with 87GB (24GB + 2GB/DAY FOR 30 DAYS)”,
“price”: “549”,
“weight”: “”,
“stock”: “”,
“id”: “smart_rocket_sim_with_87gb__24gb___2gb_day_for_30_days_”
},
{
“option”: “Globe LTE Tri cut Simcard”,
“price”: “59”,
“weight”: “”,
“stock”: “”,
“id”: “globe_lte_tri_cut_simcard”
},
{
“option”: “TM LTE Sim”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “tm_lte_sim”
},
{
“option”: “Smart LTE Sim”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “smart_lte_sim”
},
{
“option”: “TalknText LTE Sim”,
“price”: “39”,
“weight”: “”,
“stock”: “”,
“id”: “talkntext_lte_sim”
},
{
“option”: “Dito 5G Simcard No Expiration”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “dito_5g_simcard_no_expiration”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “mxure__device_protection”,
“operators”: “is”,
“element_values”: “No Thanks”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “on”,
“ppom_id”: “4”
},
“3”: {
“type”: “select”,
“title”: “Choose your Protector”,
“data_name”: “choose_your_protector_”,
“description”: “
\r\n — \r\nPut a virtual forcefield on your phone’s screen with Kaizen’screen protector that not only protects your phone screens from scratches but also retains the visual quality of it. Learn more
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “Screen Protector – Clear”,
“price”: “390”,
“weight”: “”,
“stock”: “”,
“id”: “screen_protector___clear”
},
{
“option”: “Screen Protector – Anti Blue Light”,
“price”: “590”,
“weight”: “”,
“stock”: “”,
“id”: “screen_protector___anti_blue_light”
},
{
“option”: “Screen Protector – Privacy Matte”,
“price”: “790”,
“weight”: “”,
“stock”: “”,
“id”: “screen_protector___privacy_matte”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “”,
“operators”: “is”,
“element_values”: “”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “off”,
“ppom_id”: “4”
},
“4”: {
“type”: “select”,
“title”: “Choose your Cross sell Offer”,
“data_name”: “choose_your_cross_sell_offer”,
“description”: “
\r\n — \r\nBuy this Cross sell offer and get FREE SHIPPING Voucher.\r\n
\r\n
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “Samsung Galaxy Watch 6 40MM – Graphite [₱16,990.00]”,
“price”: “11990”,
“weight”: “”,
“stock”: “”,
“id”: “samsung_galaxy_watch_6_40mm___graphite___16_990_00_”
},
{
“option”: “Samsung Galaxy Watch 6 44MM – Black [₱18,990.00]”,
“price”: “13990”,
“weight”: “”,
“stock”: “”,
“id”: “samsung_galaxy_watch_6_44mm___black___18_990_00_”
},
{
“option”: “Samsung Galaxy Watch 6 44MM – Silver [₱18,990.00]”,
“price”: “13990”,
“weight”: “”,
“stock”: “”,
“id”: “samsung_galaxy_watch_6_44mm___silver___18_990_00_”
},
{
“option”: “Samsung Galaxy Watch 6 Classic 43MM – Graphite [₱22,990.00]”,
“price”: “16990”,
“weight”: “”,
“stock”: “”,
“id”: “samsung_galaxy_watch_6_classic_43mm___graphite___22_990_00_”
},
{
“option”: “Samsung Galaxy Watch 6 Classic 43MM – Silver [₱22,990.00]”,
“price”: “16990”,
“weight”: “”,
“stock”: “”,
“id”: “samsung_galaxy_watch_6_classic_43mm___silver___22_990_00_”
},
{
“option”: “Samsung Galaxy Watch 6 Classic 47MM – Graphite [₱24,990.00]”,
“price”: “17990”,
“weight”: “”,
“stock”: “”,
“id”: “samsung_galaxy_watch_6_classic_47mm___graphite___24_990_00_”
},
{
“option”: “Samsung Galaxy Watch 6 Classic 47MM – Silver [₱24,990.00]”,
“price”: “17990”,
“weight”: “”,
“stock”: “”,
“id”: “samsung_galaxy_watch_6_classic_47mm___silver___24_990_00_”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “”,
“operators”: “is”,
“element_values”: “”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “off”,
“ppom_id”: “4”
}
},
“5”: {
“1”: {
“type”: “select”,
“title”: “MXURE (Device Protection)”,
“data_name”: “mxure__device_protection_”,
“description”: “
\r\n — \r\nWith MXURE you can now protect your phone from inevitable accidents, water damages and more.
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “Accidental and Liquid Damage – 1 Year”,
“price”: “9%”,
“weight”: “”,
“stock”: “”,
“id”: “accidental_and_liquid_damage___1_year”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “mxuredeviceprotection”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “”,
“operators”: “is”,
“element_values”: “No Thanks”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “on”,
“ppom_id”: “5”
},
“2”: {
“type”: “select”,
“title”: “Connect to your preferred network”,
“data_name”: “choose_your_mx_line_bundle”,
“description”: “
\r\n
\r\n
Select your SIM card and load bundle below:\r\n
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “GOMO SIM with 30GB No Expiry”,
“price”: “399”,
“weight”: “”,
“stock”: “”,
“id”: “gomo_sim_with_30gb_no_expiry”
},
{
“option”: “Smart Rocket Sim with 87GB (24GB + 2GB/DAY FOR 30 DAYS)”,
“price”: “549”,
“weight”: “”,
“stock”: “”,
“id”: “smart_rocket_sim_with_87gb__24gb___2gb_day_for_30_days_”
},
{
“option”: “Globe LTE Tri cut Simcard”,
“price”: “59”,
“weight”: “”,
“stock”: “”,
“id”: “globe_lte_tri_cut_simcard”
},
{
“option”: “TM LTE Sim”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “tm_lte_sim”
},
{
“option”: “Smart LTE Sim”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “smart_lte_sim”
},
{
“option”: “TalknText LTE Sim”,
“price”: “39”,
“weight”: “”,
“stock”: “”,
“id”: “talkntext_lte_sim”
},
{
“option”: “Dito 5G Simcard No Expiration”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “dito_5g_simcard_no_expiration”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “”,
“operators”: “is”,
“element_values”: “No Thanks”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “on”,
“ppom_id”: “5”
},
“3”: {
“type”: “select”,
“title”: “Choose your Protector”,
“data_name”: “choose_your_protector_”,
“description”: “
\r\n — \r\nPut a virtual forcefield on your phone’s screen with Kaizen’screen protector that not only protects your phone screens from scratches but also retains the visual quality of it. Learn more
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “Screen Protector – Clear”,
“price”: “390”,
“weight”: “”,
“stock”: “”,
“id”: “screen_protector___clear”
},
{
“option”: “Screen Protector – Anti Blue Light”,
“price”: “590”,
“weight”: “”,
“stock”: “”,
“id”: “screen_protector___anti_blue_light”
},
{
“option”: “Screen Protector – Privacy Matte”,
“price”: “790”,
“weight”: “”,
“stock”: “”,
“id”: “screen_protector___privacy_matte”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “mxure__device_protection_”,
“operators”: “is”,
“element_values”: “No Thanks”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “off”,
“ppom_id”: “5”
},
“4”: {
“type”: “select”,
“title”: “Choose your Cross sell Offer”,
“data_name”: “choose_your_cross_sell_offer”,
“description”: “
\r\n — \r\nBuy this Cross sell offer and get FREE SHIPPING Voucher.\r\n
\r\n
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “Samsung Galaxy Watch 6 40MM – Graphite [₱16,990.00]”,
“price”: “13990”,
“weight”: “”,
“stock”: “”,
“id”: “samsung_galaxy_watch_6_40mm___graphite___16_990_00_”
},
{
“option”: “Samsung Galaxy Watch 6 44MM – Black [₱18,990.00]”,
“price”: “15990”,
“weight”: “”,
“stock”: “”,
“id”: “samsung_galaxy_watch_6_44mm___black___18_990_00_”
},
{
“option”: “Samsung Galaxy Watch 6 44MM – Silver [₱18,990.00]”,
“price”: “15990”,
“weight”: “”,
“stock”: “”,
“id”: “samsung_galaxy_watch_6_44mm___silver___18_990_00_”
},
{
“option”: “Samsung Galaxy Watch 6 Classic 43MM – Graphite [₱22,990.00]”,
“price”: “19990”,
“weight”: “”,
“stock”: “”,
“id”: “samsung_galaxy_watch_6_classic_43mm___graphite___22_990_00_”
},
{
“option”: “Samsung Galaxy Watch 6 Classic 43MM – Silver [₱22,990.00]”,
“price”: “19990”,
“weight”: “”,
“stock”: “”,
“id”: “samsung_galaxy_watch_6_classic_43mm___silver___22_990_00_”
},
{
“option”: “Samsung Galaxy Watch 6 Classic 47MM – Graphite [₱24,990.00]”,
“price”: “20990”,
“weight”: “”,
“stock”: “”,
“id”: “samsung_galaxy_watch_6_classic_47mm___graphite___24_990_00_”
},
{
“option”: “Samsung Galaxy Watch 6 Classic 47MM – Silver [₱24,990.00]”,
“price”: “20990”,
“weight”: “”,
“stock”: “”,
“id”: “samsung_galaxy_watch_6_classic_47mm___silver___24_990_00_”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “mxure__device_protection_”,
“operators”: “is”,
“element_values”: “No Thanks”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “off”,
“ppom_id”: “5”
}
},
“6”: {
“1”: {
“type”: “select”,
“title”: “MXURE (Device Protection)”,
“data_name”: “mxure__device_protection_”,
“description”: “
\r\n — \r\nWith MXURE you can now protect your Buds or Watch from inevitable accidents, water damages and more.
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “Accidental and Liquid Damage – 1 Year”,
“price”: “9%”,
“weight”: “”,
“stock”: “”,
“id”: “accidental_and_liquid_damage___1_year”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “mxuredeviceprotection”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“operators”: “is”,
“element_values”: “No Thanks”
}
]
},
“status”: “on”,
“ppom_id”: “6”
}
},
“8”: {
“1”: {
“type”: “select”,
“title”: “MXURE (Device Protection)”,
“data_name”: “mxure__device_protection_”,
“description”: “
\r\n — \r\nWith MXURE you can now protect your phone from inevitable accidents, water damages and more.
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “Accidental and Liquid Damage – 1 Year”,
“price”: “9%”,
“weight”: “”,
“stock”: “”,
“id”: “accidental_and_liquid_damage___1_year”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “mxuredeviceprotection”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “”,
“operators”: “is”,
“element_values”: “No Thanks”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “on”,
“ppom_id”: “8”
},
“2”: {
“type”: “select”,
“title”: “Connect to your preferred network”,
“data_name”: “choose_your_mx_line_bundle”,
“description”: “
\r\n
\r\n
Select your SIM card and load bundle below:\r\n
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “GOMO SIM with 30GB No Expiry”,
“price”: “399”,
“weight”: “”,
“stock”: “”,
“id”: “gomo_sim_with_30gb_no_expiry”
},
{
“option”: “Smart Rocket Sim with 87GB (24GB + 2GB/DAY FOR 30 DAYS)”,
“price”: “549”,
“weight”: “”,
“stock”: “”,
“id”: “smart_rocket_sim_with_87gb__24gb___2gb_day_for_30_days_”
},
{
“option”: “Globe LTE Tri cut Simcard”,
“price”: “59”,
“weight”: “”,
“stock”: “”,
“id”: “globe_lte_tri_cut_simcard”
},
{
“option”: “TM LTE Sim”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “tm_lte_sim”
},
{
“option”: “Smart LTE Sim”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “smart_lte_sim”
},
{
“option”: “TalknText LTE Sim”,
“price”: “39”,
“weight”: “”,
“stock”: “”,
“id”: “talkntext_lte_sim”
},
{
“option”: “Dito 5G Simcard No Expiration”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “dito_5g_simcard_no_expiration”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “”,
“operators”: “is”,
“element_values”: “No Thanks”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “on”,
“ppom_id”: “8”
},
“3”: {
“type”: “select”,
“title”: “Choose your Protector”,
“data_name”: “choose_your_protector_”,
“description”: “
\r\n — \r\nPut a virtual forcefield on your phone’s screen with Kaizen’screen protector that not only protects your phone screens from scratches but also retains the visual quality of it. Learn more
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “Screen Protector – Clear”,
“price”: “390”,
“weight”: “”,
“stock”: “”,
“id”: “screen_protector___clear”
},
{
“option”: “Screen Protector – Anti Blue Light”,
“price”: “590”,
“weight”: “”,
“stock”: “”,
“id”: “screen_protector___anti_blue_light”
},
{
“option”: “Screen Protector – Privacy Matte”,
“price”: “790”,
“weight”: “”,
“stock”: “”,
“id”: “screen_protector___privacy_matte”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “mxure__device_protection_”,
“operators”: “is”,
“element_values”: “No Thanks”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “off”,
“ppom_id”: “8”
},
“4”: {
“type”: “select”,
“title”: “Choose your Cross sell Offer”,
“data_name”: “choose_your_cross_sell_offer”,
“description”: “
\r\n — \r\nApple Watches. Take your pick.\r\n
\r\n
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “Apple Watch SE GPS 40MM – Starlight Aluminum Case with Starlight Sport Band”,
“price”: “14490”,
“weight”: “”,
“stock”: “”,
“id”: “apple_watch_se_gps_40mm___starlight_aluminum_case_with_starlight_sport_band”
},
{
“option”: “Apple Watch Series 9 GPS 41MM – Starlight Aluminum Case with Starlight Sport Band”,
“price”: “26490”,
“weight”: “”,
“stock”: “”,
“id”: “apple_watch_series_9_gps_41mm___starlight_aluminum_case_with_starlight_sport_band”
},
{
“option”: “Apple Watch Series 9 GPS 41MM – Midnight Aluminum Case with Midnight Sport Band”,
“price”: “26490”,
“weight”: “”,
“stock”: “”,
“id”: “apple_watch_series_9_gps_41mm___midnight_aluminum_case_with_midnight_sport_band”
},
{
“option”: “Apple Watch Series 9 GPS 41MM – Pink Aluminum Case with Pink Sport Band”,
“price”: “26490”,
“weight”: “”,
“stock”: “”,
“id”: “apple_watch_series_9_gps_41mm___pink_aluminum_case_with_pink_sport_band”
},
{
“option”: “Apple Watch Series 9 GPS 45MM – Starlight Aluminum Case with Starlight Sport Band”,
“price”: “28490”,
“weight”: “”,
“stock”: “”,
“id”: “apple_watch_series_9_gps_45mm___starlight_aluminum_case_with_starlight_sport_band”
},
{
“option”: “Apple Watch Series 9 GPS 45MM – Midnight Aluminum Case with Midnight Sport Band”,
“price”: “28490”,
“weight”: “”,
“stock”: “”,
“id”: “apple_watch_series_9_gps_45mm___midnight_aluminum_case_with_midnight_sport_band”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “mxure__device_protection_”,
“operators”: “is”,
“element_values”: “No Thanks”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “off”,
“ppom_id”: “8”
}
},
“9”: {
“1”: {
“type”: “select”,
“title”: “MXURE (Device Protection)”,
“data_name”: “mxure__device_protection_”,
“description”: “
\r\n — \r\nWith MXURE you can now protect your phone from inevitable accidents, water damages and more.
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “Accidental and Liquid Damage – 1 Year”,
“price”: “9%”,
“weight”: “”,
“stock”: “”,
“id”: “accidental_and_liquid_damage___1_year”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “mxuredeviceprotection”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “”,
“operators”: “is”,
“element_values”: “No Thanks”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “on”,
“ppom_id”: “9”
},
“2”: {
“type”: “select”,
“title”: “Choose your MX Line Bundle”,
“data_name”: “choose_your_mx_line_bundle”,
“description”: “
\r\n — \r\n
\r\n
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “GOMO SIM with 30GB No Expiry”,
“price”: “399”,
“weight”: “”,
“stock”: “”,
“id”: “gomo_sim_with_30gb_no_expiry”
},
{
“option”: “Smart Rocket Sim with 87GB (24GB + 2GB/DAY FOR 30 DAYS)”,
“price”: “549”,
“weight”: “”,
“stock”: “”,
“id”: “smart_rocket_sim_with_87gb__24gb___2gb_day_for_30_days_”
},
{
“option”: “Globe LTE Tri cut Simcard”,
“price”: “59”,
“weight”: “”,
“stock”: “”,
“id”: “globe_lte_tri_cut_simcard”
},
{
“option”: “TM LTE Sim”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “tm_lte_sim”
},
{
“option”: “Smart LTE Sim”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “smart_lte_sim”
},
{
“option”: “TalknText LTE Sim”,
“price”: “39”,
“weight”: “”,
“stock”: “”,
“id”: “talkntext_lte_sim”
},
{
“option”: “Dito 5G Simcard No Expiration”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “dito_5g_simcard_no_expiration”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “”,
“operators”: “is”,
“element_values”: “No Thanks”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “on”,
“ppom_id”: “9”
},
“3”: {
“type”: “select”,
“title”: “Choose your Cross sell Offer”,
“data_name”: “choose_your_cross_sell_offer”,
“description”: “
\r\n — \r\nApple Watches. Take your pick.\r\n
\r\n
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “Apple Watch SE GPS 40MM – Starlight Aluminum Case with Starlight Sport Band”,
“price”: “14490”,
“weight”: “”,
“stock”: “”,
“id”: “apple_watch_se_gps_40mm___starlight_aluminum_case_with_starlight_sport_band”
},
{
“option”: “Apple Watch Series 9 GPS 41MM – Starlight Aluminum Case with Starlight Sport Band”,
“price”: “26490”,
“weight”: “”,
“stock”: “”,
“id”: “apple_watch_series_9_gps_41mm___starlight_aluminum_case_with_starlight_sport_band”
},
{
“option”: “Apple Watch Series 9 GPS 41MM – Midnight Aluminum Case with Midnight Sport Band”,
“price”: “26490”,
“weight”: “”,
“stock”: “”,
“id”: “apple_watch_series_9_gps_41mm___midnight_aluminum_case_with_midnight_sport_band”
},
{
“option”: “Apple Watch Series 9 GPS 41MM – Pink Aluminum Case with Pink Sport Band”,
“price”: “26490”,
“weight”: “”,
“stock”: “”,
“id”: “apple_watch_series_9_gps_41mm___pink_aluminum_case_with_pink_sport_band”
},
{
“option”: “Apple Watch Series 9 GPS 45MM – Starlight Aluminum Case with Starlight Sport Band”,
“price”: “28490”,
“weight”: “”,
“stock”: “”,
“id”: “apple_watch_series_9_gps_45mm___starlight_aluminum_case_with_starlight_sport_band”
},
{
“option”: “Apple Watch Series 9 GPS 45MM – Midnight Aluminum Case with Midnight Sport Band”,
“price”: “28490”,
“weight”: “”,
“stock”: “”,
“id”: “apple_watch_series_9_gps_45mm___midnight_aluminum_case_with_midnight_sport_band”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “mxure__device_protection_”,
“operators”: “is”,
“element_values”: “No Thanks”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “off”,
“ppom_id”: “9”
}
},
“12”: {
“1”: {
“type”: “select”,
“title”: “MXURE (Device Protection)”,
“data_name”: “mxure__device_protection_”,
“description”: “
\r\n — \r\nWith MXURE you can now protect your phone from inevitable accidents, water damages and more.
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “Accidental and Liquid Damage – 1 Year”,
“price”: “9%”,
“weight”: “”,
“stock”: “”,
“id”: “accidental_and_liquid_damage___1_year”
}
],
“selected”: “No Thanks”,
“first_option”: “Choose an option”,
“class”: “mxuredeviceprotection”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “”,
“operators”: “any”,
“element_values”: “”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “on”,
“ppom_id”: “12”
},
“2”: {
“type”: “select”,
“title”: “Connect to your preferred network”,
“data_name”: “choose_your_mx_line_bundle”,
“description”: “
\r\n
\r\n
Select your SIM card and load bundle below:\r\n
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “GOMO SIM with 30GB No Expiry”,
“price”: “399”,
“weight”: “”,
“stock”: “”,
“id”: “gomo_sim_with_30gb_no_expiry”
},
{
“option”: “Smart Rocket Sim with 87GB (24GB + 2GB/DAY FOR 30 DAYS)”,
“price”: “549”,
“weight”: “”,
“stock”: “”,
“id”: “smart_rocket_sim_with_87gb__24gb___2gb_day_for_30_days_”
},
{
“option”: “Globe LTE Tri cut Simcard”,
“price”: “59”,
“weight”: “”,
“stock”: “”,
“id”: “globe_lte_tri_cut_simcard”
},
{
“option”: “TM LTE Sim”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “tm_lte_sim”
},
{
“option”: “Smart LTE Sim”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “smart_lte_sim”
},
{
“option”: “TalknText LTE Sim”,
“price”: “39”,
“weight”: “”,
“stock”: “”,
“id”: “talkntext_lte_sim”
},
{
“option”: “Dito 5G Simcard No Expiration”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “dito_5g_simcard_no_expiration”
}
],
“selected”: “No Thanks”,
“first_option”: “Choose an option”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “”,
“operators”: “any”,
“element_values”: “”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “on”,
“ppom_id”: “12”
},
“3”: {
“type”: “select”,
“title”: “Choose your Protector”,
“data_name”: “choose_your_protector_”,
“description”: “
\r\n — \r\nPut a virtual forcefield on your phone’s screen with Kaizen’screen protector that not only protects your phone screens from scratches but also retains the visual quality of it. Learn more
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “Screen Protector – Clear”,
“price”: “390”,
“weight”: “”,
“stock”: “”,
“id”: “screen_protector___clear”
},
{
“option”: “Screen Protector – Anti Blue Light”,
“price”: “590”,
“weight”: “”,
“stock”: “”,
“id”: “screen_protector___anti_blue_light”
},
{
“option”: “Screen Protector – Privacy Matte”,
“price”: “790”,
“weight”: “”,
“stock”: “”,
“id”: “screen_protector___privacy_matte”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “mxure__device_protection_”,
“operators”: “is”,
“element_values”: “No Thanks”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “off”,
“ppom_id”: “12”
}
},
“10”: {
“1”: {
“type”: “select”,
“title”: “MXURE (Device Protection)”,
“data_name”: “mxure__device_protection_”,
“description”: “
\r\n — \r\nWith MXURE you can now protect your phone from inevitable accidents, water damages and more.
“,
“error_message”: “”,
“options”: [
{
“option”: “Accidental and Liquid Damage – 1 Year”,
“price”: “9%”,
“weight”: “”,
“stock”: “”,
“id”: “accidental_and_liquid_damage___1_year”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “mxuredeviceprotection”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “mxure__device_protection”,
“operators”: “is”,
“element_values”: “No Thanks”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “off”,
“ppom_id”: “10”
},
“2”: {
“type”: “select”,
“title”: “Choose your MX Line Bundle”,
“data_name”: “choose_your_mx_line_bundle”,
“description”: “
\r\n — \r\n
\r\n
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “GOMO SIM with 30GB No Expiry”,
“price”: “399”,
“weight”: “”,
“stock”: “”,
“id”: “gomo_sim_with_30gb_no_expiry”
},
{
“option”: “Smart Rocket Sim with 87GB (24GB + 2GB/DAY FOR 30 DAYS)”,
“price”: “549”,
“weight”: “”,
“stock”: “”,
“id”: “smart_rocket_sim_with_87gb__24gb___2gb_day_for_30_days_”
},
{
“option”: “Globe LTE Tri cut Simcard”,
“price”: “59”,
“weight”: “”,
“stock”: “”,
“id”: “globe_lte_tri_cut_simcard”
},
{
“option”: “TM LTE Sim”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “tm_lte_sim”
},
{
“option”: “Smart LTE Sim”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “smart_lte_sim”
},
{
“option”: “TalknText LTE Sim”,
“price”: “39”,
“weight”: “”,
“stock”: “”,
“id”: “talkntext_lte_sim”
},
{
“option”: “Dito 5G Simcard No Expiration”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “dito_5g_simcard_no_expiration”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “mxure__device_protection”,
“operators”: “is”,
“element_values”: “No Thanks”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “off”,
“ppom_id”: “10”
},
“3”: {
“type”: “select”,
“title”: “Choose your Protector”,
“data_name”: “choose_your_protector_”,
“description”: “
\r\n — \r\nPut a virtual forcefield on your phone’s screen with Kaizen’screen protector that not only protects your phone screens from scratches but also retains the visual quality of it. Learn more
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “Screen Protector – Clear”,
“price”: “390”,
“weight”: “”,
“stock”: “”,
“id”: “screen_protector___clear”
},
{
“option”: “Screen Protector – Anti Blue Light”,
“price”: “590”,
“weight”: “”,
“stock”: “”,
“id”: “screen_protector___anti_blue_light”
},
{
“option”: “Screen Protector – Privacy Matte”,
“price”: “790”,
“weight”: “”,
“stock”: “”,
“id”: “screen_protector___privacy_matte”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “”,
“operators”: “is”,
“element_values”: “”,
“element_constant”: “”,
“cond-between-interval”: {
“from”: “”,
“to”: “”
}
}
]
},
“status”: “off”,
“ppom_id”: “10”
}
},
“11”: {
“1”: {
“type”: “select”,
“title”: “MXURE (Device Protection)”,
“data_name”: “mxure__device_protection_”,
“description”: “
\r\n — \r\nWith MXURE you can now protect your phone from inevitable accidents, water damages and more.
“,
“error_message”: “”,
“options”: [
{
“option”: “Accidental and Liquid Damage – 1 Year”,
“price”: “9%”,
“weight”: “”,
“stock”: “”,
“id”: “accidental_and_liquid_damage___1_year”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “mxuredeviceprotection”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “mxure__device_protection_”,
“operators”: “is”,
“element_values”: “Accidental and Liquid Damage – 1 Year”
}
]
},
“status”: “off”,
“ppom_id”: “11”
},
“2”: {
“type”: “select”,
“title”: “Choose your MX Line Bundle”,
“data_name”: “choose_your_mx_line_bundle”,
“description”: “
\r\n — \r\n
\r\n
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “GOMO SIM with 30GB No Expiry”,
“price”: “399”,
“weight”: “”,
“stock”: “”,
“id”: “gomo_sim_with_30gb_no_expiry”
},
{
“option”: “Smart Rocket Sim with 87GB (24GB + 2GB/DAY FOR 30 DAYS)”,
“price”: “549”,
“weight”: “”,
“stock”: “”,
“id”: “smart_rocket_sim_with_87gb__24gb___2gb_day_for_30_days_”
},
{
“option”: “Globe LTE Tri cut Simcard”,
“price”: “59”,
“weight”: “”,
“stock”: “”,
“id”: “globe_lte_tri_cut_simcard”
},
{
“option”: “TM LTE Sim”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “tm_lte_sim”
},
{
“option”: “Smart LTE Sim”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “smart_lte_sim”
},
{
“option”: “TalknText LTE Sim”,
“price”: “39”,
“weight”: “”,
“stock”: “”,
“id”: “talkntext_lte_sim”
},
{
“option”: “Dito 5G Simcard No Expiration”,
“price”: “49”,
“weight”: “”,
“stock”: “”,
“id”: “dito_5g_simcard_no_expiration”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “mxure__device_protection_”,
“operators”: “is”,
“element_values”: “Accidental and Liquid Damage – 1 Year”
}
]
},
“status”: “off”,
“ppom_id”: “11”
},
“3”: {
“type”: “select”,
“title”: “Choose your Protector”,
“data_name”: “choose_your_protector_”,
“description”: “
\r\n — \r\nPut a virtual forcefield on your phone’s screen with Kaizen’screen protector that not only protects your phone screens from scratches but also retains the visual quality of it. Learn more
“,
“error_message”: “”,
“options”: [
{
“option”: “No Thanks”,
“price”: “”,
“weight”: “”,
“stock”: “”,
“id”: “no_thanks”
},
{
“option”: “Screen Protector – Clear”,
“price”: “390”,
“weight”: “”,
“stock”: “”,
“id”: “screen_protector___clear”
},
{
“option”: “Screen Protector – Anti Blue Light”,
“price”: “590”,
“weight”: “”,
“stock”: “”,
“id”: “screen_protector___anti_blue_light”
},
{
“option”: “Screen Protector – Privacy Matte”,
“price”: “790”,
“weight”: “”,
“stock”: “”,
“id”: “screen_protector___privacy_matte”
}
],
“selected”: “”,
“first_option”: “Choose an option”,
“class”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“required”: “on”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “mxure__device_protection_”,
“operators”: “is”,
“element_values”: “Accidental and Liquid Damage – 1 Year”
}
]
},
“status”: “off”,
“ppom_id”: “11”
},
“4”: {
“type”: “text”,
“title”: “Check your Trade-in value”,
“data_name”: “check_your_trade_in_value”,
“description”: “
\r\n — \r\nTry trading in your current phone and get an instant discount
save up to ₱40,000
\r\n
but if you have trade-in value, just enter your trade-in ID
“,
“placeholder”: “Enter your Trade-in ID”,
“error_message”: “”,
“maxlength”: “”,
“minlength”: “”,
“default_value”: “”,
“price”: “”,
“class”: “”,
“input_mask”: “”,
“width”: “12”,
“visibility”: “everyone”,
“visibility_role”: “”,
“conditions”: {
“visibility”: “Show”,
“bound”: “All”,
“rules”: [
{
“elements”: “mxure__device_protection_”,
“operators”: “is”,
“element_values”: “Accidental and Liquid Damage – 1 Year”
}
]
},
“status”: “on”,
“ppom_id”: “11”
}
}
};
const WISHLIST_COLOR = (() => {
const baked = ‘#e63946’;
if (_adminCfg?.wishlistColor) return _adminCfg.wishlistColor;
return baked;
})();
// Apply wishlist color to CSS vars
(function(){
const r = document.documentElement;
r.style.setProperty(‘–wl-color’, WISHLIST_COLOR);
// Derive light/mid/border variants from the color
r.style.setProperty(‘–wl-color-light’, WISHLIST_COLOR + ’18’);
r.style.setProperty(‘–wl-color-mid’, WISHLIST_COLOR + ’30’);
r.style.setProperty(‘–wl-color-border’, WISHLIST_COLOR + ’66’);
})();
/* ═══════════════════════════════════
PRODUCT BANNERS
Inline banners injected into the product grid (Samsung-style).
Each banner targets a category by slug or “all”, appears at a
chosen grid position, spans 2 columns, and is independently togglable.
═══════════════════════════════════ */
const PRODUCT_BANNERS = (() => {
const baked = [
/* Example — remove or replace with your own:
{
id: ‘banner_1’,
enabled: true,
categories: [‘all’], // slugs or [‘all’] for every category
position: 4, // insert after Nth product card (1-based)
bgColor: ‘#0a2540’,
bgImage: ”, // optional URL, overrides bgColor if set
label: ‘MX FRESH’,
title: ‘New Arrivals’,
subtitle: ‘Check out the latest products just added to our store.’,
ctaText: ‘Shop Now’,
ctaUrl: ”, // blank = use categorySlug nav
ctaCategorySlug: ”, // navigate to this category on click
textColor: ‘#ffffff’,
ctaBg: ‘#ffffff’,
ctaColor: ‘#0a2540’,
}
*/
];
if (_adminCfg?.productBanners !== undefined) return _adminCfg.productBanners;
return baked;
})();
/* ═══════════════════════════════════
FILTER SIDEBAR SECTIONS
Order & visibility controlled from MXM Admin → Global Settings
═══════════════════════════════════ */
const FILTER_SECTIONS = (() => {
const baked = [
{ id: ‘category’, label: ‘Category’, type: ‘fixed’, enabled: true },
{ id: ‘brand’, label: ‘Brand’, type: ‘fixed’, enabled: true },
];
if (_adminCfg?.filterSections) return _adminCfg.filterSections;
return baked;
})();
/* ── Sidebar Brand Filter list — hardcoded default, same pattern as
FIXED_CATEGORIES. Independent from CATEGORY_BRAND_TABS (the top Brand
Tab Bar) — this only drives the sidebar #brand-list filter. Admin’s
Filter Sections → Brand Filter List (_adminCfg.filterBrands) overrides
this baked default when configured; falls back here otherwise so the
sidebar filter is never empty out of the box.
NOTE: the `const baked = […]` array below must stay a direct literal
(not a reference to another const) — admin’s Sync-from-Shop-HTML feature
regex-extracts this exact literal to round-trip it back into the admin. ── */
const FILTER_BRANDS = (() => {
const baked = [
{ name:’Samsung’, slug:’samsung’, catId:111, catSlug:’samsung’, tagId:”, tagSlug:”, brandId:” },
{ name:’Apple’, slug:’apple’, catId:95, catSlug:’apple’, tagId:”, tagSlug:”, brandId:” },
{ name:’Huawei’, slug:’huawei’, catId:105, catSlug:’huawei’, tagId:”, tagSlug:”, brandId:” },
{ name:’Vivo’, slug:’vivo’, catId:117, catSlug:’vivo’, tagId:”, tagSlug:”, brandId:” },
{ name:’Oppo’, slug:’oppo’, catId:108, catSlug:’oppo’, tagId:”, tagSlug:”, brandId:” },
{ name:’Xiaomi’, slug:’xiaomi’, catId:118, catSlug:’xiaomi’, tagId:”, tagSlug:”, brandId:” },
{ name:’Sony’, slug:’sony’, catId:910, catSlug:’sony’, tagId:”, tagSlug:”, brandId:” },
{ name:’Realme’, slug:’realme’, catId:109, catSlug:’realme’, tagId:”, tagSlug:”, brandId:” },
{ name:’Lenovo’, slug:’lenovo’, catId:243, catSlug:’lenovo’, tagId:”, tagSlug:”, brandId:” },
];
if (_adminCfg?.filterBrands && _adminCfg.filterBrands.length > 0) return _adminCfg.filterBrands;
return baked;
})();
/* ═══════════════════════════════════
DEFAULT BG — shown on first load before category selected
Controlled by admin Global Settings
═══════════════════════════════════ */
const DEFAULT_BG = (() => {
const baked = {“url”:”Laptop Performance, Tablet Portability”,”type”:”image”,”skeletonEnabled”:true,”skeletonW”:”100%”,”skeletonH”:”556″};
if (_adminCfg?.defaultBg) return { …baked, …_adminCfg.defaultBg };
return baked;
})();
/* ═══════════════════════════════════
STATE
═══════════════════════════════════ */
const activeFilters = { category: null, categoryName: null, brand: new Set() };
/* When a page loads via a brand-only param link (?brand=slug, no ?category=),
we still resolve products through the “AI Enabled” category internally
(activeFilters.category/categoryName stay set to it), but the Category
tab/dropdown/chips should NOT visually show “AI Enabled” as Active since
the user only asked to filter by brand. This flag suppresses just the
active-state UI for the category controls; it’s reset back to false the
moment the user (or a real ?category= deep link) explicitly picks a
category again. */
let suppressCategoryActiveUI = false;
/* True only while the active “category” (always CAT_IDS[‘AI Enabled’] internally)
exists purely to scope a brand-only ?brand= deep link’s product fetch, and was
never actually chosen by the user. Active Tags / filter count must not show it
as a real category tag in that case — see renderActiveTags()/updateClearBtn(). */
let categoryTagIsImplicit = false;
let newArrivalActive = false; // legacy compat
const activeCustomFilters = new Map(); // sectionId -> boolean, for all custom sections
let activeSidebarBrand = null; // slug of selected brand in sidebar brand filter
let sidebarBrandCategoryCtx = null; // category NAME whose brands currently populate #brand-list
// (kept even after a brand is picked & activeFilters.category
// is cleared, so the list doesn’t go blank on selection)
let currentPage = 1, totalPages = 1, totalCount = 0;
let allProducts = []; // accumulated products for load-more
let isLoadingMore = false;
let isLoadingProducts = false; // true while any product fetch (category/brand/etc.) is in flight
let productsLoadPromise = Promise.resolve(); // the in-flight loadProducts() call, if any — await this instead of polling isLoadingProducts (no arbitrary timeout, always correct regardless of API speed)
let currentOrderby = ‘date’, currentOrder = ‘desc’;
let priceMin = 0, priceMax = 200000;
let globalMin = 0, globalMax = 200000;
let dragging = null;
let allCats = []; // { id, displayName, count }
let categoryChildIds = [];
let _pendingCatId = null, _pendingCatName = null, _pendingCatCb = null;
/* ── API response cache ──────────────────────────────────────────────
Every shop GET (products, categories, brands, variations) goes through
apiGet(), so the cache lives here and covers all of them at once.
– Fresh hit (younger than MXM_API_CACHE_TTL_MS): returned instantly,
no network call — category/brand/sort/page revisits feel instant.
– Miss / expired: fetched from the proxy and stored again.
– Network error: falls back to the last cached copy (up to
MXM_API_CACHE_MAX_STALE_MS old) so the shop still shows products
if the Wi-Fi drops for a bit.
– Identical requests fired at the same time share one fetch.
Memory first, localStorage as backup (survives a reload).
Cart / login / orders / coupons do NOT use apiGet, so they are never
cached. Prices are re-read from the cart flow, not from this cache. */
const MXM_API_CACHE_TTL_MS = 5 * 60 * 1000; // fresh for 5 min (price/stock stay close to live)
const MXM_API_CACHE_MAX_STALE_MS = 24 * 60 * 60 * 1000; // offline fallback window
const MXM_API_CACHE_PREFIX = ‘mxm_api_cache_v1:’;
const _mxApiCacheMem = {}; // key -> JSON string of { t, data, total, totalPages }
const _mxApiInflight = {}; // key -> Promise (same request already running)
function mxApiCacheRead(key) {
let raw = _mxApiCacheMem[key];
if (!raw) {
try { raw = localStorage.getItem(MXM_API_CACHE_PREFIX + key); } catch(e) { raw = null; }
if (raw) _mxApiCacheMem[key] = raw;
}
if (!raw) return null;
try { return JSON.parse(raw); } catch(e) { return null; } // fresh copy each time, callers may mutate it
}
function mxApiCacheWrite(key, entry) {
const raw = JSON.stringify(entry);
_mxApiCacheMem[key] = raw;
try {
localStorage.setItem(MXM_API_CACHE_PREFIX + key, raw);
} catch(e) {
/* storage full — drop old cached responses and try once more, else memory-only */
mxApiCacheClearStorage();
try { localStorage.setItem(MXM_API_CACHE_PREFIX + key, raw); } catch(e2) { /* memory-only */ }
}
}
function mxApiCacheClearStorage() {
try {
Object.keys(localStorage).forEach(k => {
if (k.indexOf(MXM_API_CACHE_PREFIX) === 0) localStorage.removeItem(k);
});
} catch(e) { /* storage unavailable — fail silently */ }
}
/* Manual reset (e.g. from the browser console): window.mxApiCacheClear() */
function mxApiCacheClear() {
Object.keys(_mxApiCacheMem).forEach(k => delete _mxApiCacheMem[k]);
mxApiCacheClearStorage();
}
window.mxApiCacheClear = mxApiCacheClear;
/* ═══════════════════════════════════
API HELPER
═══════════════════════════════════ */
async function apiGet(path) {
// path looks like “/products?per_page=20” or “/products/123/variations?per_page=100″ —
// strip the leading slash and send it straight through to the proxy route;
// the query string travels along unchanged, no credentials attached here.
const cleanPath = path.replace(/^\//, ”);
const url = MXM_PROXY_BASE + ‘/’ + cleanPath;
const cached = mxApiCacheRead(cleanPath);
const age = cached ? (Date.now() – cached.t) : Infinity;
if (cached && age {
const res = await fetch(url);
if (!res.ok) {
const t = await res.text().catch(() => ”);
throw new Error(`HTTP ${res.status} – ${res.statusText}. ${t.substring(0,120)}`);
}
const entry = {
t: Date.now(),
data: await res.json(),
total: parseInt(res.headers.get(‘X-WP-Total’) || ‘0’),
totalPages: parseInt(res.headers.get(‘X-WP-TotalPages’) || ‘1’),
};
mxApiCacheWrite(cleanPath, entry);
return entry;
})().finally(() => { delete _mxApiInflight[cleanPath]; });
}
try {
const entry = await _mxApiInflight[cleanPath];
// hand each caller its own copy — callers mutate the result
return { data: JSON.parse(JSON.stringify(entry.data)), total: entry.total, totalPages: entry.totalPages };
} catch(err) {
if (cached && age p.on_sale && p.type === ‘variable’ && p.regular === 0);
if (!need.length) return;
async function enrichOne(p) {
try {
// NOTE: the /products/{id}/variations sub-resource only accepts
// orderby=date|id|include|title|slug — “price” is invalid there and
// was causing a 400 rest_invalid_param on every request. We already
// scan every variation below to pick the cheapest one manually, so no
// orderby is needed at all.
const { data } = await apiGet(`/products/${p.id}/variations?per_page=100`);
if (!data || !data.length) return;
// Pass 1: among variations that are ACTUALLY on sale (sale {
if (v.stock_status === ‘outofstock’ || v.purchasable === false) return;
const vReg = parseFloat(v.regular_price) || 0;
const vSale = parseFloat(v.sale_price) || 0;
const vEff = vSale > 0 ? vSale : (vReg > 0 ? vReg : (parseFloat(v.price) || 0));
if (vEff 0 && vSale > 0 && vReg > vSale;
if (isDiscounted && vEff < bestDiscountedPrice) {
bestDiscountedPrice = vEff;
bestDiscounted = { reg: vReg, sale: vEff };
}
if (vEff 0 ? vReg : vEff, sale: vEff };
}
});
const best = bestDiscounted || bestAny;
if (best) {
p.regular = best.reg;
p.sale = best.sale;
p.price = best.sale;
p.on_sale = best.reg > best.sale;
}
} catch(e) {
// Not silent anymore — surfaced to console so a card missing its
// WAS/discount can be diagnosed (rate-limit, timeout, 4xx, etc.)
console.warn(`[enrichVariablePrices] variation fetch failed for product #${p.id} (${p.name || ”}):`, e?.message || e);
}
}
// Limit concurrency (batches of 4) instead of firing all requests at once —
// large pages with many on-sale variable products can otherwise overwhelm
// the host / trigger rate-limiting, causing every card to silently lose
// its WAS price at the same time.
const BATCH = 4;
for (let i = 0; i {
const baked = {
“AI Enabled”: “Upgrading my timeline with a spark of AI”,
“Smartphones”: “Powering your limitless potential”,
“Appliances”: “The future of the home, available today.”,
“Tablets”: “Laptop Performance, Tablet Portability”,
“Laptop”: “Work Anywhere. Play Everywhere.”,
“Adapters & Cables”: “Bridging the gap between your favorite devices.”,
“Headphones”: “Sound without compromise.”,
“PC Peripherals”: “Power your setup”,
“Printers”: “Where ink meets imagination.”,
“Gaming”: “Play. Connect. Conquer.”,
“Wearables”: “Smarter Tracking. Real Results.”,
“Security”: “When protection meets peace of mind.”,
“Powerbanks”: “Pocket-Sized Power, Limitless Potential.”,
“Lifestyle”: “Smarter living, one gadget at a time.”,
“Battery”: “Reliable everyday power, and long-lasting energy”,
“Speaker”: “Sound that moves you.”,
“Sim & Load Cards”: “connectivity, reliability & affordability”,
“Accessories”: “Your Device , Our Passion”,
};
if (_adminCfg?.taglines) return { …baked, …_adminCfg.taglines };
return baked;
})();
let _currentBannerCfg = null;
// Generic: reads Top/Left/Width/Height/Scale Fine-Tune values for the active
// breakpoint from cssCfg and applies them as absolute positioning + transform
// to any given element. Falls back to centered object-fit cover when no
// Fine-Tune values have been set (all defaults). Used by both the Image Banner
// (#shopBannerImg) and the CSS Banner’s dynamic background image layer.
function applyFineTunePosition(imgEl, cssCfg) {
if (!imgEl) return;
if (!cssCfg) {
imgEl.style.position = ”;
imgEl.style.top = ”; imgEl.style.left = ”; imgEl.style.width = ”; imgEl.style.height = ”;
imgEl.style.transform = ”;
imgEl.style.objectPosition = ”;
return;
}
const mqMobile = window.matchMedia(‘(max-width:600px)’);
const mqTablet = window.matchMedia(‘(max-width:900px)’);
let bp;
if (mqMobile.matches) bp = ‘Mobile’;
else if (mqTablet.matches) bp = ‘Tablet’;
else bp = ‘Desktop’;
const top = cssCfg[`imgPos${bp}Top`];
const left = cssCfg[`imgPos${bp}Left`];
const width = cssCfg[`imgPos${bp}Width`];
const height = cssCfg[`imgPos${bp}Height`];
const scale = cssCfg[`imgPos${bp}Scale`];
const isAdvanced = (top !== undefined && top !== 0) || (left !== undefined && left !== 0) ||
(width !== undefined && width !== 100) || (height !== undefined && height !== 100) ||
(scale !== undefined && scale !== 1);
if (isAdvanced) {
imgEl.style.position = ‘absolute’;
imgEl.style.top = `${top ?? 0}%`;
imgEl.style.left = `${left ?? 0}%`;
imgEl.style.width = `${width ?? 100}%`;
imgEl.style.height = `${height ?? 100}%`;
imgEl.style.transform = `scale(${scale ?? 1})`;
imgEl.style.transformOrigin = ‘center center’;
imgEl.style.objectPosition = ”;
} else {
imgEl.style.position = ”;
imgEl.style.top = ”; imgEl.style.left = ”; imgEl.style.width = ”; imgEl.style.height = ”;
imgEl.style.transform = ”;
imgEl.style.objectPosition = ‘center center’;
}
}
// Applies Fine-Tune positioning to the main Image Banner (#shopBannerImg) using the
// currently active category’s CSS Banner config.
function applyBannerImgPosition() {
applyFineTunePosition(document.getElementById(‘shopBannerImg’), _currentBannerCfg);
}
let _bannerResizeTO = null;
window.addEventListener(‘resize’, () => {
clearTimeout(_bannerResizeTO);
_bannerResizeTO = setTimeout(() => {
applyBannerImgPosition();
// Also re-apply to the CSS banner’s image layer if active
const dynImg = document.getElementById(‘dynBannerImg’);
if (dynImg && dynImg.style.display !== ‘none’) applyFineTunePosition(dynImg, _currentBannerCfg);
}, 120);
});
// Shows a brief shimmer skeleton over the banner while it switches categories,
// sized/enabled per the active category’s CSS Banner settings (skeletonEnabled/W/H).
function showCategoryBannerSkeleton(cssCfg) {
const skel = document.getElementById(‘categoryBannerSkeleton’);
if (!skel) return;
const enabled = cssCfg?.skeletonEnabled !== false; // default true
if (!enabled) { skel.classList.remove(‘active’); return; }
skel.style.width = cssCfg?.skeletonW || ‘100%’;
skel.style.height = cssCfg?.skeletonH || ‘320px’;
skel.classList.add(‘active’);
}
function hideCategoryBannerSkeleton() {
const skel = document.getElementById(‘categoryBannerSkeleton’);
if (skel) skel.classList.remove(‘active’);
}
function updateBanner(name) {
const wrap = document.getElementById(‘shopBanner’);
const img = document.getElementById(‘shopBannerImg’);
if (!wrap || !img) return;
// Hide static css banners
document.querySelectorAll(‘.css-banner’).forEach(el => el.classList.remove(‘active’));
const cssCfg = CSS_BANNER_CONFIGS[name] || BRAND_BANNER_CFG_MAP[name];
showCategoryBannerSkeleton(cssCfg);
if (cssCfg?.enabled) {
wrap.classList.add(‘css-mode’);
// Get or create the dynamic banner element
let dynBanner = document.getElementById(‘cssDynamicBanner’);
if (!dynBanner) {
dynBanner = document.createElement(‘div’);
dynBanner.id = ‘cssDynamicBanner’;
dynBanner.className = ‘css-banner’;
dynBanner.innerHTML = `
`;
wrap.appendChild(dynBanner);
}
// Apply container styles (text/color only — image is now a separate positioned layer)
const textLeft = (cssCfg.textAlign || ‘left’) !== ‘right’;
dynBanner.style.cssText = `
min-height:320px;
background-color:${cssCfg.bgColor||’#f5f7fb’};
`;
// Banner image — positioned layer so Fine-Tune (Top/Left/Width/Height/Scale) applies
const bgImg = BANNER_MAP[name] || BRAND_BANNER_MAP[name] || ”;
const dynImg = dynBanner.querySelector(‘#dynBannerImg’) || dynBanner.querySelector(‘.dyn-banner-img’);
if (dynImg) {
if (bgImg) {
dynImg.style.display = ”;
_currentBannerCfg = cssCfg;
applyFineTunePosition(dynImg, cssCfg);
// Wait for the banner image to load before hiding skeleton
if (dynImg.src !== bgImg || !dynImg.complete) {
dynImg.style.transition = ‘opacity 0.3s ease’;
dynImg.style.opacity = ‘0’;
setTimeout(() => {
dynImg.onload = () => { dynImg.style.opacity = ‘1’; hideCategoryBannerSkeleton(); };
dynImg.onerror = () => { dynImg.style.opacity = ‘1’; hideCategoryBannerSkeleton(); };
dynImg.src = bgImg;
if (dynImg.complete) { dynImg.style.opacity = ‘1’; hideCategoryBannerSkeleton(); }
}, 200);
} else {
// Already loaded (same src, cached) — hide immediately
dynImg.style.opacity = ‘1’;
hideCategoryBannerSkeleton();
}
} else {
dynImg.onload = null;
dynImg.onerror = null;
dynImg.src = ”;
dynImg.style.display = ‘none’;
}
}
const textEl = dynBanner.querySelector(‘.dyn-banner-text’);
textEl.style.cssText = `
position:relative;z-index:2;
padding:48px 6% 48px ${textLeft ? ‘14%’ : ‘6%’};
max-width:54%;
${!textLeft ? ‘margin-left:auto;text-align:right;’ : ”}
`;
const catEl = dynBanner.querySelector(‘.dyn-banner-category’);
catEl.textContent = name;
catEl.style.cssText = `
font-size:clamp(34px,4.5vw,64px);
font-weight:700;
color:${cssCfg.textColor||’#0a0a0a’};
letter-spacing:-0.03em;
line-height:1.05;
margin:0 0 14px;
font-family:’SF Pro Display’,’Helvetica Neue’,Arial,sans-serif;
`;
const taglineEl = dynBanner.querySelector(‘.dyn-banner-tagline’);
const taglineText = TAGLINES?.[name] || ”;
taglineEl.textContent = taglineText;
taglineEl.style.cssText = `
font-size:clamp(13px,1.4vw,20px);
font-weight:400;
color:${cssCfg.taglineColor||’#3a3a3c’};
letter-spacing:0.01em;
line-height:1.5;
margin:0;
font-family:’SF Pro Display’,’Helvetica Neue’,Arial,sans-serif;
display:${taglineText ? ‘block’ : ‘none’};
`;
dynBanner.classList.add(‘active’);
// If no image, hide skeleton immediately (text-only CSS banners render synchronously)
if (!bgImg) requestAnimationFrame(hideCategoryBannerSkeleton);
return;
}
wrap.classList.remove(‘css-mode’);
// ── Image banner: apply per-breakpoint position (range overrides or object-position) ──
_currentBannerCfg = cssCfg || null;
applyBannerImgPosition();
img.style.transition = ‘opacity 0.3s ease’;
img.style.opacity = ‘0’;
setTimeout(() => {
img.src = BANNER_MAP[name] || BRAND_BANNER_MAP[name] || BANNER_DEFAULT;
img.alt = name || ‘Shop’;
img.onload = () => { img.style.opacity = ‘1’; hideCategoryBannerSkeleton(); };
if (img.complete) { img.style.opacity = ‘1’; hideCategoryBannerSkeleton(); }
}, 200);
}
/* ═══════════════════════════════════
DEFAULT BG — applied on first page load
═══════════════════════════════════ */
function applyDefaultBg() {
const bg = DEFAULT_BG;
const wrap = document.getElementById(‘shopBanner’);
const img = document.getElementById(‘shopBannerImg’);
if (!wrap || !img) return;
if (!bg.url) return; // nothing configured, keep original img tag
const isVideo = bg.type === ‘video’ || /\.(mp4|webm|ogg)(\?|$)/i.test(bg.url);
// Show skeleton first if enabled
if (bg.skeletonEnabled) {
const skel = document.createElement(‘div’);
skel.className = ‘default-bg-skeleton’;
skel.id = ‘defaultBgSkeleton’;
skel.style.cssText = `width:${bg.skeletonW||’100%’};height:${bg.skeletonH||’320px’};display:block`;
img.style.display = ‘none’;
wrap.insertBefore(skel, img);
}
if (isVideo) {
const vid = document.createElement(‘video’);
vid.src = bg.url;
vid.className = ‘default-bg-video’;
vid.autoplay = true; vid.loop = true; vid.muted = true; vid.playsInline = true;
vid.style.cssText = `width:100%;height:${bg.skeletonH||’320px’};object-fit:cover;display:none`;
vid.oncanplay = () => {
const skel = document.getElementById(‘defaultBgSkeleton’);
if (skel) skel.remove();
vid.style.display = ‘block’;
img.style.display = ‘none’;
};
wrap.insertBefore(vid, img);
} else {
// Image / GIF
img.src = bg.url;
img.alt = ‘Shop’;
img.style.display = ”;
img.onload = () => {
const skel = document.getElementById(‘defaultBgSkeleton’);
if (skel) skel.remove();
img.style.opacity = ‘1’;
};
if (bg.skeletonEnabled) img.style.opacity = ‘0’;
img.style.transition = ‘opacity 0.4s ease’;
if (img.complete) {
const skel = document.getElementById(‘defaultBgSkeleton’);
if (skel) skel.remove();
img.style.opacity = ‘1’;
}
}
}
/* ═══════════════════════════════════
LOAD CATEGORIES
Strategy:
1. Use CAT_IDS for known categories (AI Enabled, Smartphones, Tablets)
2. Fall back to API name-matching for the rest
═══════════════════════════════════ */
/* Categories are fully hardcoded from FIXED_CATEGORIES / CAT_IDS / TAG_CATS —
no API call is required to build the category list or filter by it.
The API is only used afterwards, opportunistically, to backfill live
product counts next to each name; if that call fails or is slow the
category list and all filtering still work exactly the same. */
function buildHardcodedCats() {
return FIXED_CATEGORIES.map(fixedName => {
if (TAG_CATS[fixedName]) {
return { id: TAG_CATS[fixedName].id, displayName: fixedName, count: 0 };
}
if (CAT_IDS[fixedName] !== undefined) {
return { id: CAT_IDS[fixedName], displayName: fixedName, count: 0 };
}
return { id: null, displayName: fixedName, count: 0 };
});
}
function renderCatList() {
const el = document.getElementById(‘cat-list’);
if (!el) return;
// Reflect the *actual current* selection (activeFilters.categoryName), not a
// hardcoded “AI Enabled” default — otherwise every re-render (e.g. the
// background enrichment re-render in init()) snaps the sidebar back to
// “AI Enabled” even when a different category (Tablet, Adapters & Cables,
// etc.) is the one actually active/loaded, from a click OR a ?category=
// deep link.
const activeName = activeFilters.categoryName || ‘Mobiles’;
el.innerHTML = allCats.map(c => {
const onch = `onclick=”selectCatItem(${c.id},’${c.displayName.replace(/’/g,”\\'”)}’ )”`;
const disabled = c.id ? ” : ‘style=”opacity:.45;pointer-events:none”‘;
const isActive = !suppressCategoryActiveUI && c.displayName === activeName;
return ``;
}).join(”);
}
async function loadCategories() {
/* 1. Build the category list immediately from hardcoded data — never
blocked on, or broken by, the WooCommerce API. */
allCats = buildHardcodedCats();
renderCatList();
buildMobileCatChips();
/* Default: Mobiles active (unless a brand-only deep link is
suppressing the category Active UI — keep the underlying filter
values, just don’t relabel/re-highlight over that state). */
if (!suppressCategoryActiveUI) {
activeFilters.category = CAT_IDS[‘Mobiles’];
activeFilters.categoryName = ‘Mobiles’;
sidebarBrandCategoryCtx = ‘Mobiles’;
const lbl = document.getElementById(‘catDropdownLabel’);
if (lbl) lbl.textContent = ‘Mobiles’;
}
/* 2. Product counts are not displayed — no API call needed. */
}
/* ═══════════════════════════════════
LOAD BRANDS
═══════════════════════════════════ */
function renderBrandList() {
const el = document.getElementById(‘brand-list’);
if (!el) return;
const sorted = Object.keys(BRAND_CAT_SLUGS).sort((a, b) => a.localeCompare(b));
el.innerHTML = sorted.map(name => {
const slug = BRAND_CAT_SLUGS[name];
const catId = brandCatIds[slug] || ”;
return ``;
}).join(”);
}
async function loadBrands() {
/* 1. Build the brand list immediately from hardcoded slugs/IDs — no API
round-trip required for the list to exist or be filterable. */
brandCatIds = { …BRAND_CAT_IDS_STATIC };
renderBrandList();
renderSidebarBrandList(); // sidebar brand filter (uses FILTER_BRANDS or falls back to BRAND_CAT_SLUGS)
/* 2. Best-effort: backfill category images shown on brand chips/logos.
Failure here never affects brand filtering. */
try {
const { data } = await apiGet(‘/products/categories?per_page=100&hide_empty=false&orderby=name&order=asc’);
const catMap = {};
data.forEach(c => {
catMap[c.slug] = c.id;
if (c.image && c.image.src) brandCatImages[c.slug] = c.image.src;
});
/* Only override hardcoded IDs if the API actually has a matching slug —
hardcoded IDs remain authoritative otherwise. */
Object.values(BRAND_CAT_SLUGS).forEach(slug => {
if (catMap[slug] !== undefined) brandCatIds[slug] = catMap[slug];
});
renderBrandList();
} catch(e) {
/* Images/ID overrides just don’t load — hardcoded IDs already work. */
}
}
/* ═══════════════════════════════════
PRODUCT FETCH
═══════════════════════════════════ */
/* ═══════════════════════════════════
DUAL FETCH — category + tag union
Fetches both in parallel, dedupes by product ID.
Returns { data, total, totalPages } shaped like apiGet.
═══════════════════════════════════ */
async function apiGetDual(qsBase, catId, tagId) {
const qsCat = qsBase + `&category=${catId}`;
const qsTag = qsBase + `&tag=${tagId}`;
const [catRes, tagRes] = await Promise.all([apiGet(qsCat), apiGet(qsTag)]);
const seen = new Set();
const merged = [];
for (const p of […catRes.data, …tagRes.data]) {
if (!seen.has(p.id)) { seen.add(p.id); merged.push(p); }
}
// Rough total: sum of both totals minus estimated overlap
const total = Math.max(catRes.total + tagRes.total – (catRes.total + tagRes.total – merged.length), merged.length);
// totalPages based on merged count (for load-more, treat as single-page batch)
const totalPages = Math.max(catRes.totalPages, tagRes.totalPages);
return { data: merged, total: merged.length, totalPages };
}
async function loadProducts(appendMode = false) {
isLoadingProducts = true;
document.body.classList.add(‘products-loading’);
if (!appendMode) {
allProducts = [];
currentPage = 1;
showSkeletons(PER_PAGE);
} else {
isLoadingMore = true;
const btn = document.getElementById(‘loadMoreBtn’);
if (btn) { btn.disabled = true; btn.textContent = ‘Loading…’; }
appendSkeletons(Math.min(PER_PAGE, Math.max(totalCount – allProducts.length, 0)) || PER_PAGE);
}
document.getElementById(‘resultsCount’).textContent = appendMode ? ” : ‘Loading…’;
if (!appendMode) document.getElementById(‘pagination’).innerHTML = ”;
try {
// ── Check if any custom section filter is active ──
const activeCustomSection = (() => {
for (const [id, on] of activeCustomFilters.entries()) {
if (!on) continue;
const s = (FILTER_SECTIONS || []).find(x => x.id === id);
if (s && (s.catId || s.tagId)) return s;
}
return null;
})();
let qs = `/products?status=publish&per_page=${PER_PAGE}&page=${currentPage}${_adminCfg?.showOutOfStock ? ” : ‘&stock_status=instock’}`;
qs += `&orderby=${currentOrderby}&order=${currentOrder}`;
// If a custom section with catId/tagId is active, override the category/tag filter
if (activeCustomSection) {
if (activeCustomSection.catId) {
qs += `&category=${activeCustomSection.catId}`;
} else if (activeCustomSection.tagId) {
qs += `&tag=${activeCustomSection.tagId}`;
}
if (priceMin > globalMin || priceMax _adminCfg?.showOutOfStock || p.stockStatus !== ‘outofstock’)
.filter(p => p.visibility !== ‘hidden’)
.filter(p => p.price > 0);
await enrichVariablePrices(products);
allProducts = appendMode ? […allProducts, …products] : products;
renderProducts(allProducts, total, appendMode ? products : null);
renderLoadMore();
return;
}
/* ── Category + Brand filter ──
product_cat notation: all IDs are WC category IDs.
AI Enabled (product_cat 1413):
All brands → &category=1413
+ brand chip → &category=1413,{brandCatId} (comma = WC intersection)
Smartphones (tag-based 1468):
All brands → &tag=1468
+ brand chip → &tag=1468&category={brandCatId}
── */
const catName = activeFilters.categoryName || ”;
const tagCat = TAG_CATS[catName]; // pure tag-based (Smartphones)
const dualCat = DUAL_CATS[catName]; // both catId + tagId → union fetch
// Apply price filters early so dual-fetch includes them
let priceQs = ”;
if (priceMin > globalMin) priceQs += `&min_price=${priceMin}`;
if (priceMax _adminCfg?.showOutOfStock || p.stockStatus !== ‘outofstock’)
.filter(p => p.visibility !== ‘hidden’)
.filter(p => p.price > 0);
await enrichVariablePrices(products);
allProducts = appendMode ? […allProducts, …products] : products;
renderProducts(allProducts, total, appendMode ? products : null);
renderLoadMore();
return;
} else if (activeFilters.category) {
if (tagCat) {
/* Smartphones: tag-based category + brand as &category= */
qs += `&tag=${tagCat.id}`;
if (activeBrandCatId) qs += `&category=${activeBrandCatId}`;
} else if (catName === ‘Mobiles’ || catName === ‘AI Enabled’ || DIRECT_BRAND_CAT_CATS.has(catName)) {
/* Direct per-brand catId categories (Mobiles, AI Enabled, Tablets, Laptop, etc.):
Each brand chip’s catId is already a scoped sub-category.
“All” tab (no brand) → use only the parent catId.
Brand chip active → use only that chip’s catId.
No child-slug union needed — avoids extra API round-trips. */
qs += `&category=${activeBrandCatId || activeFilters.category}`;
} else if (activeBrandCatId) {
/* All other product_cat categories, WITH a brand chip active:
Each brand chip’s catId is already a scoped sub-category
(e.g. Tablets→Apple = catId 97 “ipad”). WooCommerce’s REST API
treats comma-separated &category= values as OR, not AND — so
unioning it with the parent/children IDs (old behavior) returned
the wrong product set instead of narrowing to that brand.
Use ONLY the brandCatId, same approach as AI Enabled. */
qs += `&category=${activeBrandCatId}`;
} else {
/* All other product_cat categories, no brand chip: combine parent + children */
let catIds = [];
const isSlugOnly = SLUG_ONLY_CATS.has(catName);
if (isSlugOnly && categoryChildIds.length > 0) {
catIds = categoryChildIds;
} else if (categoryChildIds.length > 0) {
catIds = [activeFilters.category, …categoryChildIds];
} else {
catIds = [activeFilters.category];
}
qs += `&category=${catIds.join(‘,’)}`;
}
} else if (activeBrandCatId) {
qs += `&category=${activeBrandCatId}`;
}
/* ── Brand ID (this store’s “Brand” is a real WordPress taxonomy,
`product_brand`, from a Brands plugin — confirmed via WP Admin →
Products → Brands → Edit Brand, whose URL shows
taxonomy=product_brand — NOT a WooCommerce global attribute
(pa_brand). WooCommerce REST API v3 has no built-in support for
filtering /wc/v3/products by an arbitrary custom taxonomy like this
one; both the old &product_brand= param (before the server-side fix)
and &attribute=pa_brand&attribute_term= (pa_brand doesn’t exist
on this store) were silently ignored, so every brand selection
quietly returned the unfiltered full catalog. Fixed server-side via
a `woocommerce_rest_product_object_query` hook added to the MXM WC
Proxy WPCode snippet, which now translates &product_brand= into
a real tax_query against the product_brand taxonomy — so this param
name only works once that snippet has the hook. Covers both the top
brand-tab chip (activeBrandBrandId) and the sidebar brand list
(brandBrandIds), which both actually hold this taxonomy’s term ID
despite the “Brand ID (pa_brand)” naming left over in the admin UI
and FILTER_BRANDS/brandId field names. ── */
const activeBrandIdValue = activeBrandBrandId
|| (activeSidebarBrand ? brandBrandIds[activeSidebarBrand] : null);
if (activeBrandIdValue) qs += `&product_brand=${activeBrandIdValue}`;
if (priceMin > globalMin || priceMax _adminCfg?.showOutOfStock || p.stockStatus !== ‘outofstock’)
/* Hide catalog-hidden products (WooCommerce “Hidden” visibility setting) */
.filter(p => p.visibility !== ‘hidden’)
/* Hide zero-price products (SKU not yet priced / placeholder) */
.filter(p => p.price > 0);
await enrichVariablePrices(products);
allProducts = appendMode ? […allProducts, …products] : products;
renderProducts(allProducts, total, appendMode ? products : null);
renderLoadMore();
} catch(e) {
console.error(‘MXM Shop: loadProducts failed —’, e);
if (appendMode) {
/* Don’t wipe out already-loaded products — just clear the loading skeletons
and let the user retry via the Load More button. */
document.querySelectorAll(‘#productGrid .skeleton-card–more’).forEach(el => el.remove());
const btn = document.getElementById(‘loadMoreBtn’);
if (btn) { btn.disabled = false; btn.textContent = ‘Load More’; }
document.getElementById(‘resultsCount’).innerHTML =
`Showing ${allProducts.length} of ${totalCount} products — couldn’t load more, try again`;
} else {
document.getElementById(‘productGrid’).innerHTML = `
Our shop is taking a quick break
We’re having a little trouble loading products right now. Please check your connection and give it another try — we’ll be back in a moment!
If this keeps happening, please contact us for assistance.
`;
document.getElementById(‘resultsCount’).textContent = ‘Load failed. Try again.’;
}
} finally {
isLoadingMore = false;
isLoadingProducts = false;
document.body.classList.remove(‘products-loading’);
}
}
/* ── Multi-SKU curated fetch (?skus=A,B,C) — generated by mxm-admin’s “🔍
Specific Product (SKU)” Param Link tool when 2+ products are selected.
Same fetch pipeline as loadProducts() above: fills allProducts, calls
renderProducts() into the same #productGrid — just a curated SKU list
instead of a category/tag query. No pagination/Load More since the set
is fixed. Fetches each SKU by exact match (same /products?sku=X lookup
the single-SKU Quick View deep link already uses). */
async function loadProductsForSkus(skuCsv) {
const skuList = […new Set(skuCsv.split(‘,’).map(s => s.trim()).filter(Boolean))];
if (!skuList.length) return;
isLoadingProducts = true;
document.body.classList.add(‘products-loading’);
allProducts = [];
currentPage = 1;
totalPages = 1;
showSkeletons(Math.min(skuList.length, PER_PAGE) || PER_PAGE);
document.getElementById(‘resultsCount’).textContent = ‘Loading…’;
document.getElementById(‘pagination’).innerHTML = ”;
try {
const results = await Promise.all(skuList.map(sku =>
apiGet(`/products?sku=${encodeURIComponent(sku)}`).catch(() => ({ data: [] }))
));
let products = results
.map(r => (r.data && r.data[0]) || null)
.filter(Boolean)
.map(normalizeProduct)
.filter(p => p.visibility !== ‘hidden’);
await enrichVariablePrices(products);
allProducts = products;
totalCount = products.length;
renderProducts(allProducts, totalCount);
document.getElementById(‘pagination’).innerHTML = ”; // curated set — no Load More
} catch (e) {
document.getElementById(‘productGrid’).innerHTML = `
Couldn’t load this product set
We’re having a little trouble loading these products right now. Please check your connection and give it another try.
`;
document.getElementById(‘resultsCount’).textContent = ‘Load failed. Try again.’;
} finally {
isLoadingProducts = false;
document.body.classList.remove(‘products-loading’);
}
}
/* ═══════════════════════════════════
NORMALIZE
═══════════════════════════════════ */
function normalizeProduct(p) {
const bAttr = (p.attributes || []).find(a =>
[‘brand’,’pa_brand’,’pa_brands’].includes((a.name||”).toLowerCase()));
const brand = bAttr?.options?.[0] || ”;
const TWO_MONTHS_MS = 2 * 30 * 24 * 60 * 60 * 1000;
const created = p.date_created ? new Date(p.date_created) : null;
const _price = parseFloat(p.price) || 0;
const _regular = parseFloat(p.regular_price) || 0;
// Variable products return sale_price:”” at parent level — fall back to price field
let _sale = parseFloat(p.sale_price) || 0;
if (p.on_sale && _sale === 0 && _price > 0) _sale = _price;
return {
id: p.id,
name: p.name,
price: _price,
regular: _regular,
sale: _sale,
on_sale: p.on_sale,
is_new: created ? (Date.now() – created.getTime()) im.src).filter(Boolean),
url: p.permalink || ‘#’,
brand,
stockStatus: p.stock_status || ‘instock’,
visibility: p.catalog_visibility || ‘visible’,
shortDesc: p.short_description || ”,
desc: p.description || ”,
type: p.type || ‘simple’,
sku: p.sku || ”,
catNames: (p.categories || []).map(c => c.name), // MXM Freebies matching
catIds: (p.categories || []).map(c => c.id),
tagIds: (p.tags || []).map(t => t.id),
attributes: p.attributes || [],
meta_data: p.meta_data || [],
// Campaign SKU (mxm-admin “🔥 Campaign SKU” panel) schedules WooCommerce’s own
// native date_on_sale_to when it launches a campaign — carried through here so
// buildProductCard/buildQuickView can show a “⏳ Ends in Xd” countdown pill.
saleEndsAt: p.date_on_sale_to || ”,
};
}
/* ── Pull bullet points (
Falls back to ” if no
function extractHighlights(shortDesc) {
if (!shortDesc) return ”;
const items = […shortDesc.matchAll(/
if (!items.length) return ”;
return `
- ${items.map(li => `
- ${li}
`).join(”)}
`;
}
/* ── Build the Quick View / Add-to-Cart description block(s) from QV_DESC_SOURCES.
Combines whichever sections are enabled, in admin-defined order. ── */
function buildQvDescSections(p) {
const sources = (QV_DESC_SOURCES && QV_DESC_SOURCES.length) ? QV_DESC_SOURCES : [
{ id: ‘description’, label: ‘Product Description’, enabled: true },
{ id: ‘highlights’, label: ‘Highlights’, enabled: false },
{ id: ‘shortDesc’, label: ‘Product Short Description’, enabled: true },
];
const blocks = [];
sources.filter(s => s.enabled !== false).forEach(s => {
if (s.id === ‘description’) {
if (p.desc) blocks.push({ label: s.label || ‘Product Description’, html: p.desc });
} else if (s.id === ‘highlights’) {
const hl = extractHighlights(p.shortDesc);
if (hl) blocks.push({ label: s.label || ‘Highlights’, html: hl });
} else if (s.id === ‘shortDesc’) {
if (p.shortDesc) blocks.push({ label: s.label || ‘Product Short Description’, html: p.shortDesc });
}
});
return blocks;
}
/* ═══════════════════════════════════
RENDER
═══════════════════════════════════ */
/* ── Discount badge helper ── */
// Campaign SKU (mxm-admin “🔥 Campaign SKU” panel) — small “⏳ Ends in Xd” pill for
// products with a scheduled sale end date (WooCommerce’s native date_on_sale_to,
// carried through as p.saleEndsAt in normalizeProduct). Returns ” once the sale
// has actually ended — WooCommerce itself stops returning on_sale:true at that
// point too, so this just avoids a stale pill in the brief window before a refetch.
function campaignCountdownHTML(saleEndsAt, cssClass = ‘campaign-countdown’) {
if (!saleEndsAt) return ”;
const end = new Date(saleEndsAt.replace(‘ ‘, ‘T’));
if (isNaN(end.getTime())) return ”;
const msLeft = end.getTime() – Date.now();
if (msLeft 0 ? `Ends in ${days}d` : (hours > 0 ? `Ends in ${hours}h` : ‘Ends soon’);
return `⏳ ${label}`;
}
function discountBadgeHTML(salePrice, regularPrice, cssClass = ‘price-off’, forceOverlayStyle = null) {
if (!DISCOUNT_DISPLAY.enabled) return ”;
if (!salePrice || !regularPrice || regularPrice <= salePrice) return ”;
const pct = Math.round((1 – salePrice / regularPrice) * 100);
if (pct < (DISCOUNT_DISPLAY.minPct || 0)) return ”;
// forceOverlayStyle lets the caller pick sticker-vs-pill explicitly (needed
// when badgePos === ‘both’, where the SAME card renders one badge on the
// image as a sticker AND one inline pill next to the price).
const isOverlay = forceOverlayStyle !== null
? forceOverlayStyle
: (DISCOUNT_DISPLAY.badgePos === ‘overlay’) && (cssClass === ‘price-off’);
if (isOverlay) {
if (DISCOUNT_DISPLAY.style === ‘flat’) {
const saving = Math.round(regularPrice – salePrice);
return `
`;
}
return `
`;
}
if (DISCOUNT_DISPLAY.style === ‘flat’) {
const saving = Math.round(regularPrice – salePrice);
return `-₱${Number(saving).toLocaleString()}`;
}
return `-${pct}%`;
}
/* ═══════════════════════════════════
PRODUCT BANNERS — build & inject
═══════════════════════════════════ */
function buildGridBanner(banner) {
const bgStyle = banner.bgImage ? `background-image:url(‘${banner.bgImage}’)` : `background:${banner.bgColor || ‘#0a2540’}`;
const textColor = banner.textColor || ‘#ffffff’;
const ctaBg = banner.ctaBg || ‘#ffffff’;
const ctaColor = banner.ctaColor || ‘#0a2540’;
const clickHandler = banner.ctaUrl
? `window.location=’${banner.ctaUrl}’`
: banner.ctaCategorySlug
? `selectCategoryBySlug(‘${banner.ctaCategorySlug}’)`
: ”;
return `
`;
}
function selectCategoryBySlug(slug) {
if (isLoadingProducts) return;
// Find the category radio by slug and trigger it
const radio = document.querySelector(`input[data-cat-slug=”${slug}”]`);
if (radio) { radio.click(); return; }
// fallback — find by name match in CAT_IDS
const entry = Object.entries(typeof CAT_IDS !== ‘undefined’ ? CAT_IDS : {}).find(([k]) =>
k.toLowerCase().replace(/\s+/g,’-‘) === slug
);
if (entry) {
const r2 = document.querySelector(`input[data-cat-id=”${entry[1]}”]`);
if (r2) { r2.click(); return; }
}
// last resort — scroll to filter sidebar
const sidebar = document.querySelector(‘.filter-sidebar, #filterSidebar, .sidebar’);
if (sidebar) sidebar.scrollIntoView({ behavior:’smooth’ });
}
function getActiveBannersForCategory() {
if (!PRODUCT_BANNERS || !PRODUCT_BANNERS.length) return [];
const slug = activeFilters.categorySlug || ”;
const name = activeFilters.categoryName || ”;
// Active brand slugs (lowercased) + their display names, so a banner can
// target brands by either — same matching style as `categories` below.
const activeBrandSlugs = Array.from(activeFilters.brand || []);
const activeBrandNames = activeBrandSlugs.map(s =>
(_adminCfg?.filterBrands || []).find(b => b.slug === s)?.name || s);
return PRODUCT_BANNERS.filter(b => {
if (!b.enabled) return false;
const cats = b.categories || [];
const brands = b.brands || [];
// Category condition: unrestricted (empty or ‘all’) OR matches current category.
const catOk = !cats.length || cats.includes(‘all’) ||
(slug && cats.includes(slug)) || (name && cats.includes(name));
// Brand condition: unrestricted (empty) OR at least one active brand matches.
const brandOk = !brands.length ||
activeBrandSlugs.some(s => brands.includes(s)) ||
activeBrandNames.some(n => brands.includes(n));
return catOk && brandOk;
});
}
function injectBannersIntoGrid(cards, banners) {
if (!banners.length) return cards;
const result = […cards];
const sorted = […banners].sort((a, b) => (a.position || 4) – (b.position || 4));
let offset = 0;
sorted.forEach(b => {
const pos = Math.min(Math.max((b.position || 4), 1), result.length) + offset;
result.splice(pos, 0, buildGridBanner(b));
offset++;
});
return result;
}
function buildProductCard(p, i, isAiEnabled) {
const dp = p.on_sale && p.sale ? p.sale : p.price;
const hasDisc = p.on_sale && p.regular > p.sale && p.sale > 0;
const pct = hasDisc ? Math.round((1 – p.sale / p.regular) * 100) : 0;
// ── Right badge (top-right corner) — Sale or New Arrival ──
let badge = ”;
if (p.on_sale && badgeVisibleInCat(CARD_BADGES.sale)) {
const s = CARD_BADGES.sale;
const innerHtml = s.iconUrl
? ``
: s.text;
badge = `${innerHtml}`;
} else if (p.is_new && newArrivalVisibleInCat(CARD_BADGES.newArrival)) {
const s = CARD_BADGES.newArrival;
const innerHtml = s.iconUrl
? ``
: s.text;
badge = `${innerHtml}`;
}
// ── Left badge (top-left corner) ──
let aiBadge = ”;
const lbUrl = resolveIconBadge(CARD_BADGES.leftBadge);
if (lbUrl) {
aiBadge = `
`;
}
// ── Right icon badge (top-right corner, below sale/new badge) ──
let rightIconBadge = ”;
const rbUrl = resolveIconBadge(CARD_BADGES.rightBadge);
if (rbUrl) {
rightIconBadge = `
`;
}
return `
${rightIconBadge}
${aiBadge}
? `
: `
`}
${hasDisc && (DISCOUNT_DISPLAY.badgePos === ‘overlay’ || DISCOUNT_DISPLAY.badgePos === ‘both’) ? discountBadgeHTML(p.sale, p.regular, ‘price-off’, true) : ”}
${mxmFreebiesGlassHTML(p, ‘card’)}
${p.sku ? `SKU: ${p.sku}` : ”}
${installmentHTML(dp, ‘card’)}
${hasDisc ? `₱${Number(p.regular).toLocaleString()}` : ”}
${hasDisc && DISCOUNT_DISPLAY.badgePos !== ‘overlay’ ? discountBadgeHTML(p.sale, p.regular, ‘price-off’, false) : ”}
${hasDisc ? campaignCountdownHTML(p.saleEndsAt) : ”}
${ENABLE_WISHLIST ? `` : ”}
`;
}
/* products = full accumulated allProducts array (for indexing/Quick View).
newSlice = if set (append mode), only these newly-fetched products get
rendered/appended — existing cards in the grid are left untouched.
If null, the whole grid is rebuilt from scratch (fresh filter/search). */
function renderProducts(products, apiTotal, newSlice = null) {
const grid = document.getElementById(‘productGrid’);
/* Show filter button now that products are loaded */
const mfb = document.getElementById(‘mobileFilterBtn’);
if (mfb) mfb.style.display = ”;
const ffb = document.getElementById(‘floatFilterBtn’);
if (ffb) ffb.style.removeProperty(‘display’);
if (!products.length) {
grid.innerHTML = `
`;
document.getElementById(‘resultsCount’).innerHTML = `Showing 0 results`;
return;
}
const isAiEnabled = activeFilters.categoryName === ‘AI Enabled’;
const activeBanners = (typeof PRODUCT_BANNERS !== ‘undefined’) ? getActiveBannersForCategory() : [];
if (newSlice) {
/* Append mode — remove the shimmer placeholders, then append only the new cards */
grid.querySelectorAll(‘.skeleton-card’).forEach(el => el.remove());
grid.querySelectorAll(‘.grid-banner’).forEach(el => el.remove());
const startIdx = products.length – newSlice.length;
let cards = products.map((p, i) => buildProductCard(p, i, isAiEnabled));
cards = injectBannersIntoGrid(cards, activeBanners);
grid.innerHTML = cards.join(”);
} else {
let cards = products.map((p, i) => buildProductCard(p, i, isAiEnabled));
cards = injectBannersIntoGrid(cards, activeBanners);
grid.innerHTML = cards.join(”);
}
document.getElementById(‘resultsCount’).innerHTML =
`Showing ${products.length} of ${apiTotal} products`;
if (typeof wlUpdateUI === ‘function’ && ENABLE_WISHLIST) wlUpdateUI();
}
/* ═══════════════════════════════════
LOAD MORE
═══════════════════════════════════ */
function renderLoadMore() {
const pg = document.getElementById(‘pagination’);
const hasMore = currentPage < totalPages;
if (!hasMore) { pg.innerHTML = ”; return; }
const remaining = totalCount – allProducts.length;
const nextBatch = Math.min(PER_PAGE, remaining);
pg.innerHTML = `
${allProducts.length} of ${totalCount} products shown
`;
}
function loadMoreProducts() {
if (isLoadingMore || currentPage >= totalPages) return;
currentPage++;
loadProducts(true);
}
/* ═══════════════════════════════════
BRAND TAB BAR — static config defined in CATEGORY_BRAND_TABS below
═══════════════════════════════════ */
/* Brand logo images — populated at runtime from WC category images (loadBrands) */
/* ═══════════════════════════════════
CATEGORY DROPDOWN
═══════════════════════════════════ */
function selectCatItem(id, name) {
if (isLoadingProducts) return;
// A real, explicit category pick always restores normal Active UI.
suppressCategoryActiveUI = false;
// Re-clicking the already-active category toggles it OFF.
if (activeFilters.category === id) {
toggleCategory(id, name, false);
return;
}
// Update label in toggle button
const lbl = document.getElementById(‘catDropdownLabel’);
if (lbl) lbl.textContent = name || ‘All Categories’;
// Update radio active styles
document.querySelectorAll(‘.cat-dd-item’).forEach(item => {
const radio = item.querySelector(‘input[type=radio]’);
const isThis = radio && String(radio.value) === String(id);
item.classList.toggle(‘active-item’, isThis);
if (isThis) radio.checked = true;
});
// Trigger category filter
toggleCategory(id, name, true);
}
function selectCatDropdown(id, name) {
selectCatItem(id, name);
}
/* ═══════════════════════════════════
STATIC BRAND TAB CONFIG
Per-category brand chips with tag-based filtering
═══════════════════════════════════ */
/* ═══════════════════════════════════
STATIC BRAND TAB CONFIG
Both AI Enabled and Smartphones use tag+cat mode:
category → &tag={catTagId} brand chip → &category={brandCatId}
═══════════════════════════════════ */
const CATEGORY_BRAND_TABS = (() => {
/* Default hardcoded brand tabs — baked from admin */
const defaults = {
“AI Enabled”: {
brands: [
{ name:”Samsung”, slug:”samsung”, catId:1413, catSlug:”samsung-mobiles” },
{ name:”Apple”, slug:”apple”, catId:96, catSlug:”iphone” },
{ name:”OPPO”, slug:”oppo”, catId:1420, catSlug:”oppo-ai-phones” },
{ name:”Xiaomi”, slug:”xiaomi”, catId:1419, catSlug:”xiaomi-ai-phone” },
{ name:”Realme”, slug:”realme”, catId:1414, catSlug:”realme-ai-phone” },
{ name:”vivo”, slug:”vivo”, catId:1421, catSlug:”vivo-ai-phones” },
{ name:”Honor”, slug:”honor”, catId:1418, catSlug:”honor-ai-phone” },
{ name:”Huawei”, slug:”huawei”, catId:1415, catSlug:”huawei-ai-phone” },
],
},
“Smartphones”: {
brands: [
{ name:”Apple”, slug:”apple”, catId:96, catSlug:”iphone” },
{ name:”Samsung”, slug:”samsung”, catId:112, catSlug:”samsung-mobiles” },
{ name:”Huawei”, slug:”huawei”, catId:204, catSlug:”huawei-smartphone” },
{ name:”Honor”, slug:”honor”, catId:863, catSlug:”honor-mobile” },
{ name:”Nokia”, slug:”nokia”, catId:107, catSlug:”nokia” },
{ name:”OPPO”, slug:”oppo”, catId:949, catSlug:”oppo-mobiles” },
{ name:”vivo”, slug:”vivo”, catId:117, catSlug:”vivo” },
{ name:”Tecno”, slug:”tecno-mobile”, catId:116, catSlug:”tecno-mobile” },
{ name:”Realme”, slug:”realme”, catId:122, catSlug:”realme-smartphone” },
{ name:”Xiaomi”, slug:”xiaomi”, catId:281, catSlug:”xiaomi-mobiles” },
],
},
“Tablets”: {
brands: [
{ name:”Apple”, slug:””, catId:97, catSlug:”ipad” },
{ name:”Samsung”, slug:””, catId:113, catSlug:”samsung-tablets” },
{ name:”BlackShark”, slug:””, catId:1499, catSlug:”blackshark-tablet-blackshark” },
{ name:”Huawei”, slug:””, catId:205, catSlug:”huawei-tablet” },
{ name:”Lenovo”, slug:””, catId:675, catSlug:”lenovo-tablet” },
{ name:”Honor”, slug:””, catId:587, catSlug:”honor-pad” },
{ name:”Realme”, slug:””, catId:210, catSlug:”realme-tablets” },
{ name:”oppo”, slug:””, catId:1039, catSlug:”oppo-pad” },
{ name:”Tecno”, slug:””, catId:885, catSlug:”tecno-pad” },
{ name:”Xiaomi”, slug:””, catId:213, catSlug:”xiaomi-tablets” },
],
},
“Laptop”: {
brands: [
{ name:”Macbook”, slug:”apple”, catId:98, catSlug:”macbook” },
{ name:”Acer”, slug:”acer”, catId:454, catSlug:”acer-laptop” },
{ name:”Asus”, slug:”asus”, catId:671, catSlug:”asus-laptop” },
{ name:”HP”, slug:”hp”, catId:672, catSlug:”hp-laptop” },
],
},
“Appliances”: {
brands: [
{ name:”Air Purifier”, slug:”Air Purifier”, catId:479, catSlug:”air-purifier-humidifier” },
{ name:”Air Fryer & Steamer”, slug:”Air Fryer & Steamer”, catId:361, catSlug:”air-fryer-steamer” },
{ name:”Aircon”, slug:”Aircon”, catId:321, catSlug:”aircon-and-aircooler” },
{ name:”Microwave Oven”, slug:”Microwave Oven”, catId:810, catSlug:”sharp-microwave-oven” },
{ name:”Refrigerator”, slug:”refrigerator”, catId:840, catSlug:”refrigerator” },
{ name:”Smart TV”, slug:”Smart TV”, catId:481, catSlug:”smart-tv” },
{ name:”Vacuum”, slug:”Vacuum”, catId:725, catSlug:”xiaomi-vacuum” },
{ name:”Washing Machine”, slug:”Washing Machine”, catId:838, catSlug:”washing-machine” },
{ name:”Electric Kettle”, slug:”Electric kettle”, catId:360, catSlug:”kettle” },
{ name:”Blender & Mixer”, slug:”Blender & Mixer”, catId:362, catSlug:”grinder-mixer” },
{ name:”Induction & Rice Cooker”, slug:”Induction & Rice Cooker”, catId:319, catSlug:”induction-rice-cooker” },
{ name:”Sandwich & Waffle Maker”, slug:”Sandwich & Waffle Maker”, catId:318, catSlug:”waffle-sandwich-maker” },
],
},
“Adapters & Cables”: {
brands: [
{ name:”Apple”, slug:””, catId:1368, catSlug:”apple-charger” },
{ name:”Motivo”, slug:””, catId:1369, catSlug:”motivo-adapter-cables” },
{ name:”Xiaomi”, slug:””, catId:1370, catSlug:”xiaomi-adpter-cable” },
{ name:”Promate”, slug:””, catId:1371, catSlug:”promate-adapter-cables” },
{ name:”Vention”, slug:””, catId:1372, catSlug:”vention-adapter-cables” },
{ name:”BWOO”, slug:””, catId:1001, catSlug:”bwoo-cables” },
{ name:”Jaguar”, slug:””, catId:1293, catSlug:”jaguar-cables” },
{ name:”XO”, slug:””, catId:1373, catSlug:”xo-cables” },
{ name:”Golf”, slug:””, catId:1374, catSlug:”golf-cables” },
],
},
“Headphones”: {
brands: [
{ name:”Onikuma”, slug:””, catId:1323, catSlug:”onikuma-headphone” },
{ name:”Logitech”, slug:””, catId:1324, catSlug:”logitech-headphone” },
{ name:”Edifier”, slug:””, catId:1325, catSlug:”edifier-headphone” },
{ name:”Other Headphones”, slug:””, catId:1328, catSlug:”other-headphone” },
{ name:”Earphones”, slug:””, catId:235, catSlug:”earphone” },
],
},
“PC Peripherals”: {
brands: [
{ name:”Monitor”, slug:””, catId:862, catSlug:”monitor” },
{ name:”Keyboard”, slug:””, catId:221, catSlug:”keyboards” },
{ name:”Mouse”, slug:””, catId:222, catSlug:”mouse” },
{ name:”PC Case”, slug:””, catId:214, catSlug:”computer-case-and-drives” },
{ name:”Other PC Accessories”, slug:””, catId:330, catSlug:”computer-hardware” },
],
},
“Printers”: {
brands: [
{ name:”Canon”, slug:””, catId:669, catSlug:”canon” },
{ name:”HP”, slug:””, catId:673, catSlug:”hp-printer” },
],
},
“Gaming”: {
brands: [
{ name:”Nintendo Switch”, slug:””, catId:387, catSlug:”nintendo-switch” },
{ name:”Consoles”, slug:””, catId:403, catSlug:”consoles” },
{ name:”Games”, slug:””, catId:490, catSlug:”nintendo-games” },
{ name:”Nintendo Accessories”, slug:””, catId:1170, catSlug:”nintendo-accessories” },
],
},
“Wearables”: {
brands: [
{ name:”Apple”, slug:”apple”, catId:99, catSlug:”iwatch” },
{ name:”Samsung”, slug:”samsung”, catId:144, catSlug:”samsung-watch” },
{ name:”Xiaomi”, slug:”xiaomi”, catId:600, catSlug:”xiaomi-watch” },
{ name:”Huawei”, slug:”huawei”, catId:343, catSlug:”huawei-watch” },
],
},
“Lifestyle”: {
brands: [
{ name:”Bags”, slug:”Bags”, catId:516, catSlug:”bag-laptop-sleeve” },
{ name:”Glasses”, slug:”Glasses”, catId:1359, catSlug:”action” },
{ name:”Action Camera”, slug:”Action Camera”, catId:1412, catSlug:”action-camera” },
{ name:”Watches”, slug:”Watches”, catId:null, catSlug:”” },
{ name:”Ring”, slug:”Ring”, catId:1392, catSlug:”ringconn” },
{ name:”Massager”, slug:”Massager”, catId:null, catSlug:”” },
{ name:”Beauty”, slug:”Beauty”, catId:291, catSlug:”beauty-tools” },
{ name:”Printer”, slug:”Printer”, catId:856, catSlug:”printers” },
{ name:”Laptop”, slug:”Laptop”, catId:null, catSlug:”” },
{ name:”Meeting Tools”, slug:”Meeting Tools”, catId:480, catSlug:”tools-home-improvement” },
],
},
};
/* Merge admin config brand tabs on top of defaults */
if (!_adminCfg?.brandTabs) return defaults;
const merged = { …defaults };
Object.entries(_adminCfg.brandTabs).forEach(([catName, brands]) => {
if (brands && brands.length > 0) merged[catName] = { brands };
});
return merged;
})();
/* Active brand tab state */
let activeBrandTab = null; // slug string or null = “All”
let activeBrandTagId = null; // numeric tag ID (used in cat+tag mode)
let activeBrandCatId = null; // numeric cat ID (used in tag+cat mode)
let activeBrandTagSlug = null;
let activeBrandBrandId = null; // WooCommerce global “Brand” attribute (pa_brand) term ID
// (admin-configured Brand ID field) — sent as
// &attribute=pa_brand&attribute_term=, additive
// alongside this tab’s catId/tagId (those are real
// per-category sub-categories here, safe to combine)
/* Mobile + tablet only — toggles body.brand-carousel-specific-active
(see the ≤1024px CSS rule near BRAND TAB BAR above), which hides the
whole .brand-tabbar-wrap / .mobile-brand-tabbar-wrap carousel once a
specific brand chip is picked. Left visible while “All” is active. */
function updateMobileTabletBrandCarouselVisibility(isAllActive) {
document.body.classList.toggle(‘brand-carousel-specific-active’, !isAllActive);
}
function refreshBrandTabBar() {
const wrap = document.getElementById(‘brandTabbarWrap’);
const tabbar = document.getElementById(‘brandTabbar’);
if (!wrap || !tabbar) return;
// A sidebar Brand filter (?brand= deep link, or a pick from the sidebar
// Brand Filter List) is a separate, global brand selector from this
// per-category top chip bar. Showing both at once is misleading — this
// bar would still render “All” as active while the grid is already
// narrowed by the sidebar pick. Hide the whole bar (desktop + mobile) and
// close its submenu (resetBrand=false — must NOT touch the sidebar
// selection) while a sidebar brand is active.
if (activeSidebarBrand) {
wrap.style.display = ‘none’;
closeSubMenuNav(false);
buildMobileBrandTabbar();
updateMobileTabletBrandCarouselVisibility(true);
return;
}
const catName = activeFilters.categoryName || ”;
const config = CATEGORY_BRAND_TABS[catName];
const tabs = config?.brands;
if (!tabs || tabs.length === 0) {
wrap.style.display = ‘none’;
updateMobileTabletBrandCarouselVisibility(true);
return;
}
wrap.style.display = ”;
// A brand chip counts as “selected” either by slug (activeBrandTab) or,
// for slug-less brands (many Printers/PC Peripherals/Gaming/Lifestyle
// chips use catId instead of a slug — see CATEGORY_BRAND_TABS above),
// by catId (activeBrandCatId). Only checking activeBrandTab here meant
// every slug-less chip — including ones selected via a ?brand= param
// link — lost its “active” highlight the moment the bar re-rendered
// (e.g. after brand images finish loading async), snapping back to
// “All” looking selected even though a real brand filter was applied.
const allActive = (!activeBrandTab && !activeBrandCatId) ? ‘active’ : ”;
updateMobileTabletBrandCarouselVisibility(!!allActive);
tabbar.className = ‘brand-tabbar-row row-brands’;
tabbar.innerHTML = `
${tabs.map(t => {
const logo = brandCatImages[t.slug] || ”;
const isActive = t.slug
? (activeBrandTab === t.slug ? ‘active’ : ”)
: (t.catId && activeBrandCatId === t.catId ? ‘active’ : ”);
const logoHtml = logo
? ``
: ”;
// Store tagId, catId, and brandId as data attrs — loadProducts picks the right one(s)
return ``;
}).join(”)}
`;
requestAnimationFrame(() => {
const inner = document.getElementById(‘brandTabbarInner’);
if (inner) inner.style.height = tabbar.scrollHeight + ‘px’;
});
/* Sync mobile brand tabbar */
buildMobileBrandTabbar();
}
function selectBrandTab(slug, el) {
if (isLoadingProducts) return;
// “All” tab is rendered with data-slug=”” AND no data-cat-id
// Slug-less brands (Tablets Apple/Samsung etc) have data-slug=”” BUT have data-cat-id set
// So only redirect to AI Enabled when it’s truly the “All” tab (null/undefined slug, no catId on element)
const elCatId = el?.dataset?.catId ? parseInt(el.dataset.catId) || null : null;
const isTrueAllTab = (slug === null || slug === undefined) && (!elCatId || el?.dataset?.isAll === ‘true’);
if (isTrueAllTab) {
// “All” tab clicked — just reset brand selection within current category
activeBrandTab = null;
activeBrandTagId = null;
activeBrandCatId = null;
activeBrandTagSlug = null;
activeBrandBrandId = null;
activeFilters.brand.clear();
document.querySelectorAll(‘#brand-list .cat-dd-item’).forEach(i => i.classList.remove(‘active-item’));
document.querySelectorAll(‘#brand-list input[type=radio]’).forEach(r => r.checked = false);
document.querySelectorAll(‘.brand-tab’).forEach(b => {
b.classList.toggle(‘active’, b.dataset.slug === ” && !b.dataset.catId);
});
closeSubMenuNav(false);
currentPage = 1; allProducts = [];
renderActiveTags(); updateClearBtn();
syncMobileBrandTabs();
loadProducts();
return;
}
// Brand tab with slug OR slug-less brand with catId
activeBrandTab = slug || null;
activeBrandTagId = null;
activeBrandCatId = null;
activeBrandTagSlug = null;
activeBrandBrandId = null;
if (el && el.dataset) {
activeBrandTagId = parseInt(el.dataset.tagId) || null;
activeBrandCatId = parseInt(el.dataset.catId) || null;
activeBrandTagSlug = el.dataset.tagSlug || null;
activeBrandBrandId = parseInt(el.dataset.brandId) || null;
}
// Update chip active state
document.querySelectorAll(‘.brand-tab’).forEach(b => {
const bSlug = b.dataset.slug || null;
const bCatId = parseInt(b.dataset.catId) || null;
// Match by slug if slug present, else by catId
const isMatch = activeBrandTab
? bSlug === activeBrandTab
: bCatId && bCatId === activeBrandCatId;
b.classList.toggle(‘active’, isMatch);
});
// Sync sidebar brand checkboxes
activeFilters.brand.clear();
document.querySelectorAll(‘#brand-list .cat-dd-item’).forEach(i => i.classList.remove(‘active-item’));
document.querySelectorAll(‘#brand-list input[type=radio]’).forEach(r => r.checked = false);
if (slug) {
activeFilters.brand.add(slug);
const cb = document.querySelector(`#brand-list input[value=”${slug}”]`);
if (cb) cb.checked = true;
}
// If this brand chip has its own configured sub-menu (e.g. Smartphones’
// “Samsung” chip → Galaxy series, “Apple” chip → iPhone/iPad), open the
// sub-nav instead of filtering directly — user picks a sub-item from there.
const catName = activeFilters.categoryName || ”;
const items = slug ? getSubMenuItems(catName, slug) : null;
if (items) {
openSubMenuNav(slug);
return; // don’t load products yet — user picks a sub-item
}
// Close sub-menu nav if a different/non-trigger chip was clicked
closeSubMenuNav(false);
currentPage = 1; allProducts = [];
renderActiveTags(); updateClearBtn();
syncMobileBrandTabs();
loadProducts();
}
/* ══════════════════════════════════════
CATEGORY SUB-MENU (per brand chip, generic across all categories)
Same approach as CATEGORY_BRAND_TABS — static defaults merged with
admin-configured subMenus.
Shape: { catName: { brandSlug: [ {label,…}, … ], brandSlug2: […] } }
Each brand chip can have its own sub-menu — e.g. Smartphones’
“Samsung” chip → Galaxy series, “Apple” chip → iPhone/iPad —
opened when that specific chip is clicked.
entries with tagId → &tag={tagId} (product_cat&tag_ID mode)
entries with catId → &category={catId}
entries with only catSlug (no id yet) → resolved + cached at runtime
═══════════════════════════════════════ */
const CATEGORY_SUB_MENUS = (() => {
/* Normalize legacy shapes (bare array / {triggerBrandSlug,items}) into the
per-brand map shape, dropping data that can’t be safely migrated. */
const normalize = (raw) => {
if (!raw) return {};
if (Array.isArray(raw)) return {}; // old category-wide list had no brand to key by
if (raw.items && (‘triggerBrandSlug’ in raw)) {
return raw.triggerBrandSlug ? { [raw.triggerBrandSlug]: raw.items } : {};
}
const out = {};
Object.entries(raw).forEach(([slug, items]) => {
if (Array.isArray(items)) out[slug] = items;
});
return out;
};
/* Default hardcoded sub-menus — baked from admin */
const defaults = {
“Appliances”: {
“refrigerator”: [
{ label:”Sharp”, tagId:null, catId:794, catSlug:”sharp-refrigerator” },
],
“smart-tv”: [
{ label:”Sharp”, tagId:null, catId:807, catSlug:”sharp-tv” },
{ label:”Samsung”, tagId:null, catId:556, catSlug:”samsung-tv” },
{ label:”Xiaomi”, tagId:null, catId:312, catSlug:”xiaomi-tv” },
{ label:”Skyworth”, tagId:null, catId:847, catSlug:”skyworth-tv” },
{ label:”Philips”, tagId:null, catId:732, catSlug:”philips-tv” },
],
},
};
/* Merge admin config sub-menus on top of defaults */
if (!_adminCfg?.subMenus) return defaults;
const merged = { …defaults };
Object.entries(_adminCfg.subMenus).forEach(([catName, raw]) => {
const brandMap = normalize(raw);
const entries = Object.entries(brandMap).filter(([, items]) => items && items.length > 0);
if (entries.length > 0) {
merged[catName] = {};
entries.forEach(([brandSlug, items]) => {
merged[catName][brandSlug] = items.map(it => ({
label: it.label, tagId: it.tagId || null, catId: it.catId || null, catSlug: it.slug || null,
}));
});
}
});
return merged;
})();
let activeSubMenuItem = null; // index into the active sub-menu’s item list, or null for “All”
let activeSeriesTagId = null; // tag-based ID for the active sub-menu item
let activeSeriesCatId = null; // category-based ID for the active sub-menu item
let activeSubMenuItems = []; // the item list currently shown in the sub-nav panel
let _pendingSubParam = null; // ?sub= value carried from a deep-link, consumed once by openSubMenuNav
/* Shared by openSubMenuNav (deep-link, first render) and resolveSubParam
(fallback). Matches by numeric index or by label slug/name. */
function findSubMenuIndexByParam(items, param) {
if (!param || !items || !items.length) return -1;
const num = parseInt(param);
if (!isNaN(num) && num >= 0 && num {
const slug = (s.label || ”).toLowerCase().replace(/[^a-z0-9]+/g, ‘-‘).replace(/^-|-$/g, ”);
return slug === param || (s.label || ”).toLowerCase() === param;
});
}
function getSubMenuItems(catName, brandSlug) {
if (!catName || !brandSlug) return null;
const catMap = CATEGORY_SUB_MENUS[catName];
if (!catMap) return null;
const items = catMap[brandSlug];
return (items && items.length > 0) ? items : null;
}
function openSubMenuNav(triggerSlug) {
const inner = document.getElementById(‘brandTabbarInner’);
const seriesBar = document.getElementById(‘samsungSeriesBar’);
if (!inner || !seriesBar) return;
const catName = activeFilters.categoryName || ”;
const items = getSubMenuItems(catName, triggerSlug);
if (!items) return;
activeSubMenuItems = items;
activeSubMenuItem = null;
activeSeriesTagId = null;
activeSeriesCatId = null;
// If a ?sub= deep-link is pending, resolve it against THIS item list now,
// so the correct pill can be marked active in the very first render pass
// (baked into the innerHTML below) instead of a second pass afterwards
// that depended on timing/isLoadingProducts and could silently lose.
let pendingIdx = -1;
if (_pendingSubParam) {
pendingIdx = findSubMenuIndexByParam(items, _pendingSubParam);
_pendingSubParam = null; // consume once, whether matched or not
}
// Brand pin shows the triggering brand’s name + logo (e.g. “Samsung”)
const brandEntry = (CATEGORY_BRAND_TABS[catName]?.brands || []).find(b => b.slug === triggerSlug);
const pinLabel = brandEntry?.name || triggerSlug || catName;
const logo = brandCatImages[triggerSlug] || ”;
const logoHtml = logo
? ``
: ”;
seriesBar.innerHTML = `
${logoHtml}${pinLabel}
›
<button class="series-tab ${pendingIdx All
${items.map((s,i) => `
`).join(”)}
`;
inner.classList.add(‘show-series’);
requestAnimationFrame(() => { inner.style.height = seriesBar.scrollHeight + ‘px’; });
// Mobile: open sub-menu tabbar
buildMobileSubTabbar(items, pinLabel);
// Hide any sub-menu pill (desktop + mobile) whose filter matches zero
// in-stock products, so empty series never show as clickable options.
hideEmptySeriesTabs(items, activeBrandCatId);
if (pendingIdx >= 0) {
// Apply the resolved sub-item’s own filter/active-state/mobile-sync in
// one go (reuses selectSeriesTab so tag/category/catSlug resolution stays
// identical to a manual click) instead of the generic “all” fetch below.
const tabEl = document.querySelector(`.series-tab[data-series=”${pendingIdx}”]`);
selectSeriesTab(pendingIdx, tabEl);
return;
}
// Immediately fetch this category’s products so the grid populates on click
currentPage = 1; allProducts = [];
renderActiveTags(); updateClearBtn(); loadProducts();
}
function closeSubMenuNav(resetBrand) {
const inner = document.getElementById(‘brandTabbarInner’);
if (!inner) return;
inner.classList.remove(‘show-series’);
const brandsRow = document.getElementById(‘brandTabbar’);
requestAnimationFrame(() => { if (brandsRow) inner.style.height = brandsRow.scrollHeight + ‘px’; });
activeSubMenuItem = null;
activeSeriesTagId = null;
activeSeriesCatId = null;
activeSubMenuItems = [];
// Mobile: close sub-menu tabbar
closeMobileSubTabbar();
if (resetBrand) {
// Reset to “All”
activeBrandTab = null;
activeBrandTagId = null;
activeBrandCatId = null;
activeBrandTagSlug = null;
activeFilters.brand.clear();
document.querySelectorAll(‘#brand-list .cat-dd-item’).forEach(i => i.classList.remove(‘active-item’));
document.querySelectorAll(‘#brand-list input[type=radio]’).forEach(r => r.checked = false);
document.querySelectorAll(‘.brand-tab’).forEach(b => {
b.classList.toggle(‘active’, b.dataset.slug === ”);
});
currentPage = 1; allProducts = [];
renderActiveTags(); updateClearBtn(); loadProducts();
}
}
function selectSeriesTab(idx, el) {
if (isLoadingProducts) return;
const items = activeSubMenuItems || [];
const s = idx >= 0 ? items[idx] : null;
// Handle special actions
if (s && s.special === ‘compare’) {
showBrandTabToast(‘Compare feature coming soon!’);
return;
}
// Highlight tab
document.querySelectorAll(‘.series-tab’).forEach(t => t.classList.remove(‘active’));
if (el) el.classList.add(‘active’);
activeSubMenuItem = idx >= 0 ? idx : null;
// Sync mobile sub tabbar active state
syncMobileSubTabs(idx);
// Reset series filter state
activeSeriesTagId = null;
activeSeriesCatId = null;
if (s) {
if (s.tagId) {
activeSeriesTagId = s.tagId;
} else if (s.catId) {
activeSeriesCatId = s.catId;
} else if (s.catSlug) {
// Resolve catSlug → catId once (e.g. Accessories), then cache it
resolveSeriesCatId(s.catSlug).then(catId => {
if (catId) {
s.catId = catId; // cache for next time
activeSeriesCatId = catId;
currentPage = 1; allProducts = [];
renderActiveTags(); updateClearBtn(); loadProducts();
}
});
return; // wait for async resolution before loading
}
}
currentPage = 1; allProducts = [];
renderActiveTags(); updateClearBtn(); loadProducts();
}
/* Checks each sub-menu pill’s own filter (tagId / catId / catSlug) against
the live WooCommerce catalog and hides (desktop .series-tab + mobile
.mob-sub-tab) any pill with zero matching in-stock products, so an empty
series never shows as a clickable option. Runs after the pills are
already rendered/visible, so it only ever removes — never delays —
options; “special” action pills (e.g. the Compare button) and items with
no filter info at all are always left visible since there’s nothing to
count. Failures fail open (pill stays visible) so a flaky API call never
hides a real option. */
async function hideEmptySeriesTabs(items, brandCatId) {
if (!items || !items.length) return;
const checks = items.map(async (s, i) => {
if (s.special) return { i, count: 1 };
try {
let qs = ‘/products?status=publish&per_page=1’ + (_adminCfg?.showOutOfStock ? ” : ‘&stock_status=instock’);
if (s.tagId) {
qs += `&tag=${s.tagId}`;
if (brandCatId) qs += `&category=${brandCatId}`;
} else if (s.catId) {
qs += `&category=${s.catId}`;
} else if (s.catSlug) {
const catId = s.catId || await resolveSeriesCatId(s.catSlug);
if (!catId) return { i, count: 1 };
s.catId = catId; // cache, same as selectSeriesTab does
qs += `&category=${catId}`;
} else {
return { i, count: 1 };
}
const { total } = await apiGet(qs);
return { i, count: total };
} catch (e) {
return { i, count: 1 };
}
});
const results = await Promise.all(checks);
results.forEach(({ i, count }) => {
if (count > 0) return;
const desktopTab = document.querySelector(`.series-tab[data-series=”${i}”]`);
if (desktopTab) desktopTab.style.display = ‘none’;
const mobileTab = document.querySelector(`.mob-sub-tab[data-sub=”${i}”]`);
if (mobileTab) mobileTab.style.display = ‘none’;
});
}
async function resolveSeriesCatId(slug) {
if (!slug) return null;
try {
const { data } = await apiGet(`/products/categories?per_page=10&slug=${slug}`);
return data?.[0]?.id || null;
} catch(e) { return null; }
}
function showBrandTabToast(msg) {
const wrap = document.getElementById(‘brandTabbarWrap’);
if (!wrap) return;
const old = wrap.querySelector(‘.brand-tab-toast’);
if (old) old.remove();
const toast = document.createElement(‘div’);
toast.className = ‘brand-tab-toast show’;
toast.textContent = msg;
wrap.appendChild(toast);
setTimeout(() => toast.remove(), 2600);
}
/* ═══════════════════════════════════
FILTER EVENTS
═══════════════════════════════════ */
function toggleCategory(id, name, checked) {
if (!checked) {
if (activeFilters.category === id) {
activeFilters.category = null;
activeFilters.categoryName = null;
categoryChildIds = [];
activeBrandTab = null;
activeBrandTagId = null;
activeBrandCatId = null;
activeBrandTagSlug = null;
activeFilters.brand.clear();
document.querySelectorAll(‘#brand-list .cat-dd-item’).forEach(i => i.classList.remove(‘active-item’));
document.querySelectorAll(‘#brand-list input[type=radio]’).forEach(r => r.checked = false);
document.querySelectorAll(‘#cat-list .cat-dd-item’).forEach(i => i.classList.remove(‘active-item’));
document.querySelectorAll(‘#cat-list input[type=radio]’).forEach(r => r.checked = false);
const catLblOff = document.getElementById(‘catDropdownLabel’);
if (catLblOff) catLblOff.textContent = ”;
closeSubMenuNav(false);
currentPage = 1; allProducts = [];
renderActiveTags(); updateClearBtn();
refreshBrandTabBar();
loadProducts();
}
return;
}
applyCategorySelect(id, name);
}
async function applyCategorySelect(id, name) {
closeSubMenuNav(false);
activeFilters.category = id;
activeFilters.categoryName = name;
// A real category click (this function) always means a genuine category
// selection — clear the implicit flag so Active Tags shows it normally
// again (see categoryTagIsImplicit declaration above).
categoryTagIsImplicit = false;
categoryChildIds = [];
/* Sidebar Brand list now scopes to this category’s brands (see
renderSidebarBrandList). Kept separate from activeFilters.category so
it survives even after a brand pick clears the active category. */
sidebarBrandCategoryCtx = name;
const hardcodedChildren = CHILD_IDS[name];
if (hardcodedChildren) {
/* Fast path: hardcoded child IDs (Wearables, Powerbanks, Sim & Load Cards) */
categoryChildIds = hardcodedChildren;
} else if (DIRECT_BRAND_CAT_CATS.has(name)) {
/* Fast path: category uses per-brand catId chips (Tablets, Laptop, etc.)
Same pattern as AI Enabled & Smartphones — no child lookup needed.
Brand chips each carry their own scoped catId; “All” tab uses parent id. */
categoryChildIds = [];
} else {
const childSlugs = CHILD_SLUGS[name] || [];
if (childSlugs.length > 0) {
try {
if (SLUG_ONLY_CATS.has(name)) {
const { data } = await apiGet(`/products/categories?per_page=100&slug=${childSlugs.join(‘,’)}`);
categoryChildIds = data.map(c => c.id);
} else {
const { data } = await apiGet(`/products/categories?per_page=100&parent=${id}`);
categoryChildIds = data.filter(c => childSlugs.includes(c.slug)).map(c => c.id);
if (categoryChildIds.length === 0) {
const { data: d2 } = await apiGet(`/products/categories?per_page=100&slug=${childSlugs.join(‘,’)}`);
categoryChildIds = d2.map(c => c.id);
}
}
} catch(e) { /* silent */ }
}
}
/* Sync category radios + active-item highlight in the sidebar list.
(This was previously querying input[type=checkbox], but #cat-list
renders , so the selector never matched anything —
the sidebar’s active category never got visually synced from here,
e.g. on a ?category= deep link or programmatic call.) */
document.querySelectorAll(‘#cat-list .cat-dd-item’).forEach(item => {
const radio = item.querySelector(‘input[type=radio]’);
const isThis = !suppressCategoryActiveUI && radio && parseInt(radio.value) === id;
item.classList.toggle(‘active-item’, isThis);
if (radio) radio.checked = isThis;
});
updateBanner(name);
/* Update sidebar category label (left blank when the category’s Active
state is suppressed, e.g. a brand-only ?brand= deep link) */
const catLbl = document.getElementById(‘catDropdownLabel’);
if (catLbl) catLbl.textContent = suppressCategoryActiveUI ? ” : name;
/* ── Reset brand tab selection when category changes ── */
activeBrandTab = null;
activeBrandTagId = null;
activeBrandCatId = null;
activeBrandTagSlug = null;
activeFilters.brand.clear();
/* Close sub-menu nav if open — it only reopens when the trigger brand chip is clicked */
closeSubMenuNav(false);
/* Uncheck sidebar brand checkboxes */
activeSidebarBrand = null;
/* Re-render the sidebar Brand list scoped to the NEW category’s brands
(CATEGORY_BRAND_TABS[name]) — was previously a static global brand
list regardless of which category was active. */
renderSidebarBrandList();
/* Visually reset all chips to “All” immediately */
document.querySelectorAll(‘.brand-tab’).forEach(b => {
b.classList.toggle(‘active’, b.dataset.slug === ”);
});
/* Category is now active → clears any active sidebar Brand selection
(already done above via activeSidebarBrand = null + re-render). */
currentPage = 1; allProducts = [];
renderActiveTags(); updateClearBtn();
refreshBrandTabBar(); // instant — static lookup, rebuilds chips for new category
syncMobileCatChips();
productsLoadPromise = loadProducts();
}
function toggleBrand(name, slug, checked) {
if (isLoadingProducts) {
const cb = document.querySelector(`#brand-list input[value=”${slug}”]`);
if (cb) cb.checked = !checked;
return;
}
if (checked) {
// Uncheck all other brand checkboxes
activeFilters.brand.clear();
document.querySelectorAll(`#brand-list input[type=checkbox]`).forEach(cb => {
cb.checked = (cb.value === slug);
});
activeFilters.brand.add(slug);
activeBrandTab = slug;
} else {
activeFilters.brand.delete(slug);
if (activeBrandTab === slug) activeBrandTab = null;
}
// Sync tab bar highlight
document.querySelectorAll(‘.brand-tab’).forEach(b => {
const isAll = !b.dataset.slug && !slug;
b.classList.toggle(‘active’,
activeBrandTab === null ? !b.dataset.slug && b.textContent.trim() === ‘All’
: b.onclick && b.onclick.toString().includes(`’${activeBrandTab}’`));
});
// simpler: just re-highlight via DOM
document.querySelectorAll(‘.brand-tab’).forEach(b => b.classList.remove(‘active’));
if (activeBrandTab === null) {
const allTab = document.querySelector(‘.brand-tab:first-child’);
if (allTab) allTab.classList.add(‘active’);
} else {
// find tab with matching slug in onclick
document.querySelectorAll(‘.brand-tab’).forEach(b => {
if (b.getAttribute(‘onclick’) && b.getAttribute(‘onclick’).includes(`’${activeBrandTab}’`))
b.classList.add(‘active’);
});
}
currentPage = 1; allProducts = [];
renderActiveTags(); updateClearBtn(); loadProducts();
}
function onSortChange(val) {
const [ob, od] = val.split(‘-‘);
currentOrderby = ob === ‘title’ ? ‘title’ : ob === ‘popularity’ ? ‘popularity’ : ob === ‘price’ ? ‘price’ : ‘date’;
currentOrder = od;
currentPage = 1; allProducts = [];
loadProducts();
}
/* ═══════════════════════════════════
PRICE SLIDER (sidebar removed — functions kept for compat)
═══════════════════════════════════ */
function initSlider() {
priceMin = globalMin; priceMax = globalMax;
updateSliderUI();
}
function updateSliderUI() {
/* Sidebar slider removed — sync desk + sheet only */
updateDeskSliderUI();
updateSheetSliderUI();
const dMin = document.getElementById(‘deskPriceMinInput’);
const dMax = document.getElementById(‘deskPriceMaxInput’);
if (dMin) dMin.value = priceMin;
if (dMax) dMax.value = priceMax;
}
function startDrag(e, thumb) { /* sidebar removed — no-op */ }
function onDrag(e) {}
function stopDrag() {}
let priceDebounce = null;
function onPriceInput(which, val) {
val = parseInt(val) || 0;
if (which === ‘min’) priceMin = Math.max(globalMin, Math.min(val, priceMax – 500));
else priceMax = Math.min(globalMax, Math.max(val, priceMin + 500));
updateSliderUI();
clearTimeout(priceDebounce);
priceDebounce = setTimeout(() => { currentPage = 1; allProducts = []; renderActiveTags(); updateClearBtn(); loadProducts(); }, 600);
}
/* ═══════════════════════════════════
ACTIVE TAGS + CLEAR
═══════════════════════════════════ */
function renderActiveTags() {
const tags = [];
// Custom section active tags
for (const [id, on] of activeCustomFilters.entries()) {
if (!on) continue;
const s = (FILTER_SECTIONS || []).find(x => x.id === id);
if (s) tags.push({ g: ‘custom’, v: ‘✨ ‘ + (s.label || id), key: id });
}
if (activeFilters.category && !suppressCategoryActiveUI && !categoryTagIsImplicit) {
const cat = allCats.find(c => c.id === activeFilters.category);
if (cat) tags.push({ g:’category’, v: cat.displayName });
}
activeFilters.brand.forEach(slug => {
const name = Object.keys(BRAND_CAT_SLUGS).find(k => BRAND_CAT_SLUGS[k] === slug) || slug;
tags.push({ g:’brand’, v: name, key: slug });
});
if (priceMin > globalMin || priceMax
`
${t.v} ×`).join(”);
}
function removeTag(group, value) {
if (group === ‘custom’) {
activeCustomFilters.set(value, false);
document.getElementById(‘sidebar_cs_’ + value)?.classList.remove(‘active’);
document.getElementById(‘sheet_cs_’ + value)?.classList.remove(‘active’);
renderActiveTags(); updateClearBtn();
currentPage = 1; allProducts = []; loadProducts();
return;
} else if (group === ‘category’) {
activeFilters.category = null; activeFilters.categoryName = null;
categoryChildIds = [];
document.querySelectorAll(‘#cat-list input’).forEach(cb => cb.checked = false);
updateBanner(‘Appliances’);
} else if (group === ‘brand’) {
activeFilters.brand.delete(value);
const cb = document.querySelector(`#brand-list input[value=”${value}”]`);
if (cb) cb.checked = false;
} else if (group === ‘price’) {
priceMin = globalMin; priceMax = globalMax; updateSliderUI();
activePresets.clear();
}
currentPage = 1; allProducts = []; renderActiveTags(); updateClearBtn(); loadProducts();
}
function clearAllFilters() {
suppressCategoryActiveUI = false;
activeFilters.category = null; activeFilters.categoryName = null;
categoryChildIds = [];
activeFilters.brand.clear();
activeBrandTab = null;
activeBrandTagId = null;
activeBrandCatId = null;
activeBrandTagSlug = null;
activeCustomFilters.clear();
activeSidebarBrand = null;
closeSubMenuNav(false);
document.querySelectorAll(‘.filter-item input[type=checkbox]’).forEach(cb => cb.checked = false);
document.querySelectorAll(‘.cat-dd-item’).forEach(item => item.classList.remove(‘active-item’));
// Clear all custom section buttons
document.querySelectorAll(‘[id^=”sidebar_cs_”],[id^=”sheet_cs_”]’).forEach(el => el.classList.remove(‘active’));
priceMin = globalMin; priceMax = globalMax; updateSliderUI();
currentPage = 1; allProducts = [];
renderActiveTags(); updateClearBtn();
// After clear, default back to Mobiles
applyCategorySelect(CAT_IDS[‘Mobiles’], ‘Mobiles’);
}
function updateClearBtn() {
const hasAny = activeCustomFilters.size > 0 || (activeFilters.category && !categoryTagIsImplicit) || activeFilters.brand.size > 0
|| priceMin > globalMin || priceMax globalMin || priceMax 0);
/* Sync floating filter button badge */
const floatCnt = document.getElementById(‘floatFilterCnt’);
if (floatCnt) {
floatCnt.textContent = n > 0 ? n : ”;
floatCnt.classList.toggle(‘show’, n > 0);
}
}
/* ═══════════════════════════════════
UI HELPERS
═══════════════════════════════════ */
/* ════════════════════════════════════════════
FILTER SIDEBAR — dynamic section builder
════════════════════════════════════════════ */
function buildSidebarSections() {
const container = document.getElementById(‘sidebarSections’);
if (!container) return;
const sections = (FILTER_SECTIONS || []).filter(s => s.enabled !== false);
let html = ”;
sections.forEach(s => {
if (s.type === ‘custom’ || (!s.type && s.id !== ‘category’ && s.id !== ‘brand’)) {
// ── Custom section (New Arrival, Hot Deals, PRE-ORDER, etc.) —
// same plain nav-row style as Category/Brand below (no icon, no
// ON switch); toggleCustomSection() still flips the filter and
// toggles .active on this button via its id, .active just has no
// visible styling anymore since section-toggle doesn’t define one ──
const isActive = activeCustomFilters.get(s.id) === true;
html += `
`;
} else if (s.id === ‘category’) {
html += `
`;
} else if (s.id === ‘brand’) {
html += `
`;
}
});
container.innerHTML = html;
// Re-render category and brand lists after DOM is rebuilt
if (allCats && allCats.length) renderCatList();
renderSidebarBrandList();
}
/* ── Render brand list into #brand-list — same style as category list ──
Uses the admin’s global Brand Filter List (FILTER_BRANDS, configured in
Filter Sections → Brand Filter List) as the source of truth, regardless
of which category is active. Falls back to the per-category brand tabs
(CATEGORY_BRAND_TABS) only if no global list was ever configured, and
finally to the flat static BRAND_CAT_SLUGS list as a last resort. */
function renderSidebarBrandList() {
const el = document.getElementById(‘brand-list’);
if (!el) return;
let items = [];
if (FILTER_BRANDS && FILTER_BRANDS.length > 0) {
// Admin-configured global Brand Filter List — always used when present,
// same set of brands on every category page. Brand ID only (WooCommerce
// pa_brand attribute term) — no Cat ID/Tag ID anymore.
// NOTE: b.slug is often blank here — the admin’s 🌐 Fetch-from-WooCommerce
// tool only fills brandId, not slug. A blank string (”) is falsy in JS,
// so leaving slug=b.slug unfallback’d made activeSidebarBrand === ”
// after any click, which silently short-circuited the
// `activeSidebarBrand ? brandBrandIds[activeSidebarBrand] : null` check
// in loadProducts() — no &attribute=pa_brand param ever got sent, so
// every brand selection quietly returned the unfiltered catalog. Fall
// back to a slugified name (same pattern as the CATEGORY_BRAND_TABS
// branch below) so the key is always non-empty/truthy.
items = FILTER_BRANDS.map(b => ({
name: b.name,
slug: b.slug || b.name.toLowerCase().trim().replace(/\s+/g, ‘-‘),
brandId: b.brandId || 0
}));
} else if (CATEGORY_BRAND_TABS[sidebarBrandCategoryCtx]?.brands?.length > 0) {
// No global list configured — fall back to this category’s own
// per-category brand tabs, if any.
const catBrands = CATEGORY_BRAND_TABS[sidebarBrandCategoryCtx].brands;
items = catBrands.map(b => ({
name: b.name,
// Some per-category brand entries have no slug (e.g. Tablets,
// Headphones, Printers use catId only) — fall back to a catId-based
// key so each one is still uniquely selectable/highlightable.
slug: b.slug || (b.catId ? `cat${b.catId}` : (b.catSlug || b.name)),
brandId: b.brandId || 0
}));
} else {
// Final fallback: BRAND_CAT_SLUGS (flat global list) — no brandId
// available here, so this tier can’t actually filter anything; it only
// exists so the sidebar isn’t blank if nothing was ever configured.
items = Object.keys(BRAND_CAT_SLUGS).sort((a,b) => a.localeCompare(b)).map(name => ({
name, slug: BRAND_CAT_SLUGS[name], brandId: 0
}));
}
// Render identical to cat-dd-item style (radio-like single select, same padding/font)
el.innerHTML = items.map(b => {
const isActive = activeSidebarBrand === b.slug;
return ``;
}).join(”);
}
/* ── Legacy alias ── */
function buildSidebarBrandList() {
renderSidebarBrandList();
return ”;
}
/* ── Toggle a custom filter section ── */
function toggleCustomSection(id) {
if (isLoadingProducts) return;
const current = activeCustomFilters.get(id) === true;
activeCustomFilters.set(id, !current);
const isNowActive = !current;
// Sync sidebar + sheet buttons
document.getElementById(‘sidebar_cs_’ + id)?.classList.toggle(‘active’, isNowActive);
document.getElementById(‘sheet_cs_’ + id)?.classList.toggle(‘active’, isNowActive);
document.getElementById(‘mxmCgCs_’ + id)?.classList.toggle(‘mxm-cg-active’, isNowActive);
renderActiveTags(); updateClearBtn();
// If custom section has catId/tagId — do a new API fetch with that filter
const section = (FILTER_SECTIONS || []).find(s => s.id === id);
if (section && (section.catId || section.tagId)) {
currentPage = 1; allProducts = [];
loadProducts();
}
// Banner: show the section’s own banner while active (same mechanism as
// category banners), and restore the current category’s banner on toggle-off.
if (isNowActive && section?.banner) {
applyCustomSectionBanner(section);
} else if (!isNowActive) {
updateBanner(activeFilters.categoryName || allCats?.[0]?.displayName || ”);
}
}
/* ── Custom filter-section banner (New Arrival / Hot Deals / etc.) ──
Same simple image-swap behavior as a category banner, but keyed off
the filter section’s own `banner` field instead of BANNER_MAP. ── */
function applyCustomSectionBanner(section) {
const wrap = document.getElementById(‘shopBanner’);
const img = document.getElementById(‘shopBannerImg’);
if (!wrap || !img || !section?.banner) return;
// Hide static/dynamic CSS banners — this is a plain image banner
document.querySelectorAll(‘.css-banner’).forEach(el => el.classList.remove(‘active’));
wrap.classList.remove(‘css-mode’);
_currentBannerCfg = null;
img.style.objectPosition = ”;
img.style.transition = ‘opacity 0.3s ease’;
img.style.opacity = ‘0’;
setTimeout(() => {
img.src = section.banner;
img.alt = section.label || ‘Featured’;
img.onload = () => { img.style.opacity = ‘1’; };
if (img.complete) img.style.opacity = ‘1’;
}, 200);
}
/* ── Sidebar brand single-select (same style as category) ──
Brand ID only (WooCommerce pa_brand attribute term) — no Cat ID/Tag ID.
loadProducts() filters purely via &attribute=pa_brand&attribute_term=. ── */
function selectSidebarBrand(slug, el, brandId) {
if (isLoadingProducts) return;
// Toggle off if same brand clicked again
if (activeSidebarBrand === slug) {
activeSidebarBrand = null;
activeFilters.brand.clear();
// Deactivate all
document.querySelectorAll(‘#brand-list .cat-dd-item’).forEach(i => i.classList.remove(‘active-item’));
document.querySelectorAll(‘#brand-list input[type=radio]’).forEach(r => r.checked = false);
// Bring the top brand-chip bar back now that no sidebar brand is active.
refreshBrandTabBar();
// Brand banner (if any) is no longer relevant — restore the current/last
// category’s banner.
updateBanner(activeFilters.categoryName || allCats?.[0]?.displayName || ”);
} else {
activeSidebarBrand = slug;
activeFilters.brand.clear();
activeFilters.brand.add(slug);
// Cache this brand’s admin-configured Brand ID so loadProducts()’s
// &attribute=pa_brand&attribute_term= lookup by slug actually uses it.
if (brandId) brandBrandIds[slug] = brandId;
// Update UI
document.querySelectorAll(‘#brand-list .cat-dd-item’).forEach(i => i.classList.remove(‘active-item’));
if (el) el.classList.add(‘active-item’);
/* Brand is now the active filter dimension — clear the Category
selection (value + UI) so the two never combine into a broken,
duplicate &category= query. Category list stays clickable; picking
a category again will simply clear this brand selection back. */
activeFilters.category = null;
activeFilters.categoryName = null;
categoryChildIds = [];
activeBrandTab = null;
activeBrandTagId = null;
activeBrandCatId = null;
activeBrandTagSlug = null;
document.querySelectorAll(‘#cat-list .cat-dd-item’).forEach(i => i.classList.remove(‘active-item’));
document.querySelectorAll(‘#cat-list input[type=radio]’).forEach(r => r.checked = false);
const catLbl = document.getElementById(‘catDropdownLabel’);
if (catLbl) catLbl.textContent = ”;
refreshBrandTabBar();
// Swap in this brand’s banner image, if one is configured in the
// Brand Filter List (falls back to whatever’s already showing when none set).
const brandName = (_adminCfg?.filterBrands || []).find(b => b.slug === slug)?.name || slug;
updateBanner(brandName);
}
currentPage = 1; allProducts = [];
renderActiveTags(); updateClearBtn();
loadProducts();
}
/* ── Accordion: Category and Brand sections share one open slot — opening
one auto-collapses the other, so only one dropdown is expanded at a time
(same behavior on desktop sidebar and mobile filter sheet, since both
reuse the same #sidebarSections markup). ── */
function toggleSection(btn) {
const willOpen = btn.classList.contains(‘collapsed’);
if (willOpen) {
const scope = btn.closest(‘#sidebarSections’) || document;
scope.querySelectorAll(‘.section-toggle’).forEach(other => {
if (other === btn) return;
other.classList.add(‘collapsed’);
other.nextElementSibling?.classList.add(‘collapsed’);
});
}
btn.classList.toggle(‘collapsed’);
btn.nextElementSibling.classList.toggle(‘collapsed’);
}
/* ── Price preset ranges ──
Order & values controlled from MXM Admin → Global Settings → Price Filter Ranges */
const PRICE_PRESETS = (() => {
const baked = [
{ label: ‘Below ₱10,000’, min: 0, max: 10000 },
{ label: ‘₱10,000 – ₱26,999’, min: 10000, max: 26999 },
{ label: ‘₱27,000 – ₱49,999’, min: 27000, max: 49999 },
{ label: ‘₱50,000 – ₱99,999’, min: 50000, max: 99999 },
{ label: ‘Above ₱100,000’, min: 100000, max: 999999 },
];
if (_adminCfg?.pricePresets && _adminCfg.pricePresets.length) return _adminCfg.pricePresets;
return baked;
})();
let activePresets = new Set(); // tracks checked preset indices
function openFilterSheet() {
const sb = document.getElementById(‘sheetBody’);
const sections = (FILTER_SECTIONS || []).filter(s => s.enabled !== false);
const sectionParts = {};
/* ── Category tabs ── */
sectionParts[‘category’] = `
const isActive = !suppressCategoryActiveUI && (activeFilters.category === c.id ||
(c.filterMode === ‘tag’ && activeFilters.categoryName === c.name));
return ``;
}).join(”)}
`;
/* ── Brand chips ── */
const catConfig = CATEGORY_BRAND_TABS[activeFilters.categoryName] || CATEGORY_BRAND_TABS[allCats[0]?.displayName];
const brandChips = catConfig?.brands || [];
sectionParts[‘brand’] = brandChips.length ? `
${brandChips.map(b => `
`).join(”)}
` : ”;
/* ── Custom sections (New Arrival, Hot Deals, etc.) ── */
const customSections = (FILTER_SECTIONS || []).filter(s =>
s.enabled !== false && (s.type === ‘custom’ || (!s.type && s.id !== ‘category’ && s.id !== ‘brand’ && s.id !== ‘price’))
);
customSections.forEach(s => {
const isActive = activeCustomFilters.get(s.id) === true;
sectionParts[s.id] = `
`;
});
/* ── Price ── */
/* ── Price ── */
const presetsHtml = PRICE_PRESETS.map((p, i) => `
`).join(”);
const priceHtml = `
`;
sectionParts[‘price’] = priceHtml;
// Assemble in FILTER_SECTIONS order + always append price at end
let bodyHtml = sections.map(s => sectionParts[s.id] || ”).join(”);
if (!sections.find(s => s.id === ‘price’)) bodyHtml += priceHtml;
sb.innerHTML = bodyHtml;
updateSheetSliderUI();
document.getElementById(‘filterSheet’).classList.add(‘open’);
document.getElementById(‘sheetOverlay’).classList.add(‘visible’);
document.body.style.overflow = ‘hidden’;
}
/* ── Sheet category select ── */
function sheetSelectCat(id, name, btn) {
if (isLoadingProducts) return;
suppressCategoryActiveUI = false;
document.querySelectorAll(‘.sheet-cat-tab’).forEach(b => b.classList.remove(‘active’));
btn.classList.add(‘active’);
applyCategorySelect(id, name.trim());
/* Rebuild brand chips for new category without closing sheet */
const catConfig = CATEGORY_BRAND_TABS[name.trim()] || {};
const brandChips = catConfig.brands || [];
const brandWrap = document.getElementById(‘sheetBrandTabs’);
if (brandWrap) {
brandWrap.innerHTML = `
${brandChips.map(b => `
`).join(”)}`;
}
}
/* ── Sheet brand select ── */
function sheetSelectBrand(slug, btn) {
if (isLoadingProducts) return;
document.querySelectorAll(‘.sheet-brand-chip’).forEach(b => b.classList.remove(‘active’));
btn.classList.add(‘active’);
selectBrandTab(slug, btn);
}
/* ═══════════════════════════════════
DESKTOP PRICE FILTER
═══════════════════════════════════ */
function toggleDeskPrice() {
const btn = document.getElementById(‘deskPriceBtn’);
const panel = document.getElementById(‘deskPricePanel’);
const isOpen = panel.classList.contains(‘open’);
if (isOpen) { closeDeskPrice(); return; }
// Build presets HTML dynamically
const presetsWrap = document.getElementById(‘deskPresets’);
if (presetsWrap && !presetsWrap.children.length) {
presetsWrap.innerHTML = PRICE_PRESETS.map((p,i) => `
`).join(”);
}
btn.classList.add(‘open’,’active’);
panel.classList.add(‘open’);
syncDeskPresets();
updateDeskSliderUI();
/* On mobile the panel is centered on-screen (not anchored to the button),
so show the same dim backdrop the filter sheet uses — also gives a
reliable tap-outside-to-close target. */
if (window.matchMedia(‘(max-width:768px)’).matches) {
document.getElementById(‘sheetOverlay’)?.classList.add(‘visible’);
}
setTimeout(() => document.addEventListener(‘click’, closeDeskPriceOutside), 0);
}
function closeDeskPrice() {
document.getElementById(‘deskPriceBtn’)?.classList.remove(‘open’);
document.getElementById(‘deskPricePanel’)?.classList.remove(‘open’);
document.removeEventListener(‘click’, closeDeskPriceOutside);
if (!document.getElementById(‘filterSheet’)?.classList.contains(‘open’)) {
document.getElementById(‘sheetOverlay’)?.classList.remove(‘visible’);
}
// keep ‘active’ class if price filter is applied
const hasPrice = priceMin > globalMin || priceMax {
const cb = document.getElementById(`dpreset_${i}`);
if (cb) cb.checked = activePresets.has(i);
});
const minEl = document.getElementById(‘deskPriceMinInput’);
const maxEl = document.getElementById(‘deskPriceMaxInput’);
if (minEl) minEl.value = priceMin;
if (maxEl) maxEl.value = priceMax;
}
function updateDeskSliderUI() {
const trackWrap = document.getElementById(‘deskTrackWrap’);
if (!trackWrap) return;
const pMin = (priceMin – globalMin) / (globalMax – globalMin);
const pMax = (priceMax – globalMin) / (globalMax – globalMin);
const tMin = document.getElementById(‘deskThumbMin’);
const tMax = document.getElementById(‘deskThumbMax’);
const fill = document.getElementById(‘deskRangeFill’);
if (tMin) tMin.style.left = (pMin*100)+’%’;
if (tMax) tMax.style.left = (pMax*100)+’%’;
if (fill) { fill.style.left=(pMin*100)+’%’; fill.style.right=((1-pMax)*100)+’%’; }
}
let deskDragging = null;
function startDeskDrag(e, thumb) {
e.preventDefault(); e.stopPropagation();
deskDragging = thumb;
document.addEventListener(‘mousemove’, onDeskDrag);
document.addEventListener(‘mouseup’, stopDeskDrag);
document.addEventListener(‘touchmove’, onDeskDrag, {passive:false});
document.addEventListener(‘touchend’, stopDeskDrag);
}
function onDeskDrag(e) {
if (!deskDragging) return; e.preventDefault();
const rect = document.getElementById(‘deskTrackWrap’).getBoundingClientRect();
const clientX = e.touches ? e.touches[0].clientX : e.clientX;
const pct = Math.max(0, Math.min(1, (clientX – rect.left) / rect.width));
const val = Math.round((globalMin + pct*(globalMax-globalMin))/500)*500;
if (deskDragging===’min’) priceMin = Math.min(val, priceMax-500);
else priceMax = Math.max(val, priceMin+500);
activePresets.clear();
syncDeskPresets();
updateDeskSliderUI();
updateSliderUI();
updateSheetSliderUI();
}
function stopDeskDrag() {
if (!deskDragging) return; deskDragging = null;
document.removeEventListener(‘mousemove’, onDeskDrag);
document.removeEventListener(‘mouseup’, stopDeskDrag);
document.removeEventListener(‘touchmove’, onDeskDrag);
document.removeEventListener(‘touchend’, stopDeskDrag);
currentPage=1; allProducts=[];
renderActiveTags(); updateClearBtn(); loadProducts();
}
let deskPriceDebounce = null;
function onDeskPriceInput(which, val) {
val = parseInt(val)||0;
if (which===’min’) priceMin = Math.max(globalMin, Math.min(val, priceMax-500));
else priceMax = Math.min(globalMax, Math.max(val, priceMin+500));
activePresets.clear(); syncDeskPresets(); updateDeskSliderUI(); updateSliderUI();
clearTimeout(deskPriceDebounce);
deskPriceDebounce = setTimeout(()=>{currentPage=1;allProducts=[];renderActiveTags();updateClearBtn();loadProducts();},600);
}
function applyDeskPrice() {
currentPage=1; allProducts=[];
renderActiveTags(); updateClearBtn(); loadProducts();
closeDeskPrice();
}
function clearDeskPrice() {
priceMin=globalMin; priceMax=globalMax;
activePresets.clear(); syncDeskPresets();
updateDeskSliderUI(); updateSliderUI(); updateSheetSliderUI();
currentPage=1; allProducts=[];
renderActiveTags(); updateClearBtn(); loadProducts();
closeDeskPrice();
}
/* Override togglePreset to also sync desk panel if open */
const _origTogglePreset = togglePreset;
function togglePreset(idx, min, max, checked, src) {
if (checked) {
activePresets.clear(); activePresets.add(idx);
document.querySelectorAll(‘[id^=”preset_”],[id^=”dpreset_”]’).forEach((cb,i)=>{
cb.checked = (parseInt(cb.id.replace(/\D/g,”))===idx);
});
priceMin=min; priceMax=Math.min(max,globalMax);
} else {
activePresets.delete(idx);
priceMin=globalMin; priceMax=globalMax;
}
updateSheetSliderUI(); updateSliderUI(); updateDeskSliderUI();
const sync = (id,v) => { const el=document.getElementById(id); if(el) el.value=v; };
sync(‘sheetPriceMinInput’,priceMin); sync(‘sheetPriceMaxInput’,priceMax);
sync(‘deskPriceMinInput’,priceMin); sync(‘deskPriceMaxInput’,priceMax);
currentPage=1; allProducts=[];
renderActiveTags(); updateClearBtn(); loadProducts();
}
/* Sheet price slider (independent from sidebar slider) */
function updateSheetSliderUI() {
const trackWrap = document.getElementById(‘sheetTrackWrap’);
if (!trackWrap) return;
const pMin = (priceMin – globalMin) / (globalMax – globalMin);
const pMax = (priceMax – globalMin) / (globalMax – globalMin);
const thumbMin = document.getElementById(‘sheetThumbMin’);
const thumbMax = document.getElementById(‘sheetThumbMax’);
const fill = document.getElementById(‘sheetRangeFill’);
if (thumbMin) thumbMin.style.left = (pMin * 100) + ‘%’;
if (thumbMax) thumbMax.style.left = (pMax * 100) + ‘%’;
if (fill) { fill.style.left = (pMin * 100) + ‘%’; fill.style.right = ((1 – pMax) * 100) + ‘%’; }
}
let sheetDragging = null;
function startSheetDrag(e, thumb) {
e.preventDefault(); sheetDragging = thumb;
document.addEventListener(‘mousemove’, onSheetDrag);
document.addEventListener(‘mouseup’, stopSheetDrag);
document.addEventListener(‘touchmove’, onSheetDrag, { passive: false });
document.addEventListener(‘touchend’, stopSheetDrag);
}
function onSheetDrag(e) {
if (!sheetDragging) return; e.preventDefault();
const rect = document.getElementById(‘sheetTrackWrap’).getBoundingClientRect();
const clientX = e.touches ? e.touches[0].clientX : e.clientX;
const pct = Math.max(0, Math.min(1, (clientX – rect.left) / rect.width));
const val = Math.round((globalMin + pct * (globalMax – globalMin)) / 500) * 500;
if (sheetDragging === ‘min’) priceMin = Math.min(val, priceMax – 500);
else priceMax = Math.max(val, priceMin + 500);
updateSheetSliderUI();
updateSliderUI(); // keep sidebar in sync
const minEl = document.getElementById(‘sheetPriceMinInput’);
const maxEl = document.getElementById(‘sheetPriceMaxInput’);
if (minEl) minEl.value = priceMin;
if (maxEl) maxEl.value = priceMax;
}
function stopSheetDrag() {
if (!sheetDragging) return; sheetDragging = null;
document.removeEventListener(‘mousemove’, onSheetDrag);
document.removeEventListener(‘mouseup’, stopSheetDrag);
document.removeEventListener(‘touchmove’, onSheetDrag);
document.removeEventListener(‘touchend’, stopSheetDrag);
currentPage = 1; allProducts = []; renderActiveTags(); updateClearBtn(); loadProducts();
}
let sheetPriceDebounce = null;
function onSheetPriceInput(which, val) {
val = parseInt(val) || 0;
if (which === ‘min’) priceMin = Math.max(globalMin, Math.min(val, priceMax – 500));
else priceMax = Math.min(globalMax, Math.max(val, priceMin + 500));
updateSheetSliderUI();
updateSliderUI();
clearTimeout(sheetPriceDebounce);
sheetPriceDebounce = setTimeout(() => { currentPage = 1; allProducts = []; renderActiveTags(); updateClearBtn(); loadProducts(); }, 600);
}
function closeFilterSheet() {
document.getElementById(‘filterSheet’).classList.remove(‘open’);
document.getElementById(‘sheetOverlay’).classList.remove(‘visible’);
document.body.style.overflow = ”;
}
function applySheetPrice() {
currentPage = 1; allProducts = [];
renderActiveTags(); updateClearBtn(); loadProducts();
closeFilterSheet();
}
function clearSheetPrice() {
priceMin = globalMin; priceMax = globalMax;
activePresets.clear();
updateSheetSliderUI(); updateSliderUI(); updateDeskSliderUI();
const sync = (id, v) => { const el = document.getElementById(id); if (el) el.value = v; };
sync(‘sheetPriceMinInput’, priceMin); sync(‘sheetPriceMaxInput’, priceMax);
sync(‘deskPriceMinInput’, priceMin); sync(‘deskPriceMaxInput’, priceMax);
document.querySelectorAll(‘[id^=”preset_”],[id^=”dpreset_”]’).forEach(cb => cb.checked = false);
currentPage = 1; allProducts = [];
renderActiveTags(); updateClearBtn(); loadProducts();
}
function showSkeletons(count) {
const card = `
`;
document.getElementById(‘productGrid’).innerHTML = Array(count).fill(card).join(”);
}
/* Appends shimmer skeleton cards after the existing products (Load More) without
touching the cards already in the grid. Removed again once the new batch renders. */
function appendSkeletons(count) {
const grid = document.getElementById(‘productGrid’);
if (!grid) return;
const card = `
`;
grid.insertAdjacentHTML(‘beforeend’, Array(count).fill(card).join(”));
}
/* ═══════════════════════════════════
URL PARAMS (?category=slug-or-name&brand=slug)
═══════════════════════════════════ */
function getURLParams() {
const p = new URLSearchParams(window.location.search);
return {
category: (p.get(‘category’) || ”).trim().toLowerCase(),
brand: (p.get(‘brand’) || ”).trim().toLowerCase(),
sub: (p.get(‘sub’) || ”).trim().toLowerCase(),
// SKU is case-sensitive as WooCommerce stores it, so no .toLowerCase() here
sku: (p.get(‘sku’) || ”).trim(),
skus: (p.get(‘skus’) || ”).trim(),
};
}
/* ── SKU deep link (?sku=…) — generated by mxm-admin’s “🔍 Specific
Product (SKU)” Param Link tool. Fetches the product by SKU, adds it into
allProducts if it isn’t already loaded (Add to Cart / Wishlist / View
Full Details buttons in Quick View all index into allProducts, so this
keeps them working normally), then opens the exact same Quick View
openQuickView() already renders for a normal card click, via a no-op
synthetic event since there’s no real click here. Runs independently of
any ?category=/?brand= params also present on the same URL. */
async function openQuickViewForSku(sku) {
if (!sku) return;
try {
const { data } = await apiGet(`/products?sku=${encodeURIComponent(sku)}`);
if (!data || !data.length) { console.warn(‘[openQuickViewForSku] No product found for SKU:’, sku); return; }
const p = normalizeProduct(data[0]);
let idx = allProducts.findIndex(x => x.id === p.id);
if (idx === -1) { allProducts.push(p); idx = allProducts.length – 1; }
openQuickView({ preventDefault(){}, stopPropagation(){} }, idx);
} catch (e) {
console.warn(‘[openQuickViewForSku] lookup failed:’, e?.message || e);
}
}
/* Match a URL category param to a known cat entry.
Accepts: display name, WC slug, or numeric ID */
function resolveCatParam(param) {
if (!param) return null;
const num = parseInt(param);
return allCats.find(c =>
(c.id && c.id === num) ||
c.displayName.toLowerCase() === param ||
c.displayName.toLowerCase().replace(/\s+/g,’-‘) === param ||
c.displayName.toLowerCase().replace(/[^a-z0-9]+/g,’-‘) === param
) || null;
}
/* Match a URL brand param (?brand=slug-or-name) to a brand entry.
Checks the admin-configured FILTER_BRANDS (Brand Filter List, MXM Admin →
Filter Sections → Brands → 🔗) first — this is what the admin’s “Copy
Link” button on each brand row generates — then falls back to the legacy
hardcoded BRAND_CAT_SLUGS list for any older links already shared out. */
function resolveBrandParam(param) {
if (!param) return null;
if (FILTER_BRANDS && FILTER_BRANDS.length) {
const fb = FILTER_BRANDS.find(b =>
(b.slug || ”).toLowerCase() === param ||
(b.name || ”).toLowerCase() === param
);
if (fb) return {
name: fb.name,
slug: fb.slug || fb.name.toLowerCase().trim().replace(/\s+/g, ‘-‘),
brandId: fb.brandId || 0
};
}
// match by slug
const bySlug = Object.keys(BRAND_CAT_SLUGS).find(k =>
BRAND_CAT_SLUGS[k].toLowerCase() === param);
if (bySlug) return { name: bySlug, slug: BRAND_CAT_SLUGS[bySlug] };
// match by display name
const byName = Object.keys(BRAND_CAT_SLUGS).find(k =>
k.toLowerCase() === param);
if (byName) return { name: byName, slug: BRAND_CAT_SLUGS[byName] };
return null;
}
/* Auto-select a sub-menu item from ?sub= param.
Matches by slug (label lowercased, spaces→dashes) or numeric index. */
function resolveSubParam(param) {
if (!param || !activeSubMenuItems || !activeSubMenuItems.length) return;
const idx = findSubMenuIndexByParam(activeSubMenuItems, param);
if (idx >= 0) {
const tabEl = document.querySelector(`.series-tab[data-series=”${idx}”]`);
selectSeriesTab(idx, tabEl);
}
}
/* ═══════════════════════════════════
INIT
═══════════════════════════════════ */
/* ── Brand Chip style toggle ──
true = new pill/card + horizontal-carousel look (tablet + mobile only;
desktop >1024px keeps the classic underline-tab bar)
false = classic underline-tab brand chips everywhere (old behavior)
Flip this one flag to switch the whole site back and forth. */
const BRAND_CHIP_CAROUSEL_STYLE = (_adminCfg?.brandChipCarouselStyle !== undefined)
? !!_adminCfg.brandChipCarouselStyle
: true;
document.body.classList.toggle(‘brand-chip-pill’, BRAND_CHIP_CAROUSEL_STYLE);
/* ── Category Chips Strip (mobile + tablet) enable/disable ──
true = strip shows on mobile + tablet (≤1024px), as before
false = strip is hidden completely at every viewport width
Flip this one flag (or bake _adminCfg.categoryChipsStripEnabled=false)
to turn the whole strip off. */
const CATEGORY_CHIPS_STRIP_ENABLED = (_adminCfg?.categoryChipsStripEnabled !== undefined)
? !!_adminCfg.categoryChipsStripEnabled
: false;
document.body.classList.toggle(‘cat-chips-strip-disabled’, !CATEGORY_CHIPS_STRIP_ENABLED);
async function init() {
initSlider();
applyDefaultBg();
showSkeletons(PER_PAGE);
/* ── PHASE 1: Instant render from hardcoded data (zero API wait) ──
Build the full sidebar, brand chip bar, and mobile cat chips RIGHT NOW
using the baked-in FIXED_CATEGORIES / CATEGORY_BRAND_TABS / FILTER_BRANDS.
The page never shows a blank left panel — filter is usable immediately. */
allCats = buildHardcodedCats();
brandCatIds = { …BRAND_CAT_IDS_STATIC };
// Default category active state (Mobiles)
activeFilters.category = CAT_IDS[‘Mobiles’];
activeFilters.categoryName = ‘Mobiles’;
sidebarBrandCategoryCtx = ‘Mobiles’;
const _lbl = document.getElementById(‘catDropdownLabel’);
if (_lbl) _lbl.textContent = ‘Mobiles’;
buildSidebarSections(); // filter panel with category + brand list
refreshBrandTabBar(); // brand chip tab bar (All / Samsung / Apple / …)
buildMobileCatChips(); // mobile horizontal category strip
/* ── PHASE 2: Background API enrichment (counts + brand logos) ──
Fire both calls in parallel; failures are silently swallowed.
When they finish they re-render the same lists with enriched data. */
Promise.all([loadCategories(), loadBrands()]).then(() => {
buildSidebarSections();
refreshBrandTabBar();
}).catch(() => { /* enrichment failed — hardcoded data still works */ });
const { category: catParam, brand: brandParam, sub: subParam, sku: skuParam, skus: skusParam } = getURLParams();
// Fire-and-forget — runs alongside whatever category/brand navigation
// happens below, then pops the Quick View open on top once the product
// is found. Deliberately not awaited so a slow/missing SKU lookup never
// blocks the rest of the page from loading normally.
if (skuParam) openQuickViewForSku(skuParam);
if (skusParam) {
/* ── URL has ?skus=A,B,C ── curated multi-product set, takes priority
over ?category=/?brand= since it’s a standalone deep link generated
by the admin’s “2+ selected” case — same precedence as ?category=. */
await loadProductsForSkus(skusParam);
return;
}
if (catParam) {
/* ── URL has ?category=… ── */
suppressCategoryActiveUI = false;
const cat = resolveCatParam(catParam);
if (cat && cat.id) {
await applyCategorySelect(cat.id, cat.displayName);
// After category is loaded, auto-select brand chip if ?brand= is set
if (brandParam) {
const catConfig = CATEGORY_BRAND_TABS[cat.displayName];
const brandEntry = (catConfig?.brands || []).find(b =>
b.slug.toLowerCase() === brandParam ||
(b.name || ”).toLowerCase() === brandParam
);
if (brandEntry) {
/* Pass a synthetic element so selectBrandTab can read catId/tagId off
it exactly like it would from a real clicked chip — without this,
activeBrandCatId never gets set on a deep-link load (el is null),
so the sub-menu’s parent brand scope silently falls back to
showing the whole category instead of e.g. just “Smart TV”. */
const fakeEl = { dataset: {
catId: brandEntry.catId ? String(brandEntry.catId) : ”,
tagId: brandEntry.tagId ? String(brandEntry.tagId) : ”,
tagSlug: brandEntry.tagSlug || ”,
}};
// Stash ?sub= BEFORE triggering the chip select — selectBrandTab()
// calls openSubMenuNav() synchronously, which consumes this to
// resolve + bake the correct pill active in its very first render
// and fires the correctly-filtered fetch directly (no more
// separate second pass racing isLoadingProducts).
if (subParam) _pendingSubParam = subParam;
// applyCategorySelect() above fires its own loadProducts() without
// awaiting it, so isLoadingProducts is still true here — calling
// selectBrandTab() immediately would hit its `if (isLoadingProducts)
// return;` guard and silently no-op (chip never highlights, brand
// filter never applies). Await the actual fetch promise it kicked
// off (no arbitrary timeout — this used to poll isLoadingProducts
// with a 2s cap, which on a slower API response gave up before the
// fetch ever resolved, silently dropping the brand filter and
// leaving the “All” chip looking selected on the category’s full
// unfiltered listing).
await productsLoadPromise;
selectBrandTab(brandEntry.slug, fakeEl);
}
}
return;
}
} else if (brandParam) {
/* ── URL has ?brand=… only ── generated by MXM Admin’s Filter Sections →
Brand Filter List → 🔗 param link (or the legacy per-category brand
chip link, via the fallback inside resolveBrandParam()).
applyCategorySelect() resets activeBrandTab/activeFilters.brand as part of
its category-change logic and calls loadProducts() itself, so the brand
filter must be applied AFTER it resolves — not before — or it gets wiped
out before the fetch ever uses it (chip/checkbox looks selected, but the
product list comes back unfiltered). */
const brand = resolveBrandParam(brandParam);
if (brand) {
// Brand-only deep link: “Mobiles” is used internally to resolve
// products, but must NOT show as the Active category in the UI.
suppressCategoryActiveUI = true;
await applyCategorySelect(CAT_IDS[‘Mobiles’], ‘Mobiles’);
// applyCategorySelect() above unconditionally clears categoryTagIsImplicit
// (it treats every call as a real category pick) — re-set it now that we
// know this call was only the implicit Mobiles base for a brand-only
// link, so Active Tags/the filter count don’t show “Mobiles” alongside
// the brand tag. Any real category click still clears it as normal.
categoryTagIsImplicit = true;
// applyCategorySelect() already kicked off its own (unfiltered)
// loadProducts() without awaiting it internally — wait for that
// in-flight fetch to actually finish before firing a second,
// brand-filtered loadProducts() call below. Without this, the two
// requests race and whichever response lands last silently wins,
// sometimes leaving the brand filter dropped entirely or the grid
// stuck showing an inconsistent/empty result.
await productsLoadPromise;
// Cache the admin-configured Brand ID under this slug — same thing
// selectSidebarBrand() does on a real click — so loadProducts()’s
// &attribute=pa_brand&attribute_term= lookup actually narrows by it.
if (brand.brandId) brandBrandIds[brand.slug] = brand.brandId;
activeSidebarBrand = brand.slug;
// Re-render (instead of patching a possibly-not-yet-rendered checkbox
// directly) so the radio + active-item highlight reliably reflect the
// picked brand, the same way a real click does.
renderSidebarBrandList();
// applyCategorySelect() already called refreshBrandTabBar() once above,
// but that was BEFORE activeSidebarBrand was set, so its guard never
// fired and the top brand-chip bar (+ any submenu) stayed visible.
// Call it again now so it actually hides.
refreshBrandTabBar();
// The Brand section is collapsed by default — auto-expand it so the
// selected brand is actually visible instead of hidden behind a click.
// Category and Brand share one open accordion slot (see toggleSection()),
// so also collapse the Category dropdown here — otherwise a brand-only
// ?brand= deep link leaves both sections open at once, which never
// happens on a real click (toggleSection() always closes the other).
const brandToggleBtn = Array.from(document.querySelectorAll(‘.section-toggle’))
.find(btn => btn.nextElementSibling?.id === ‘brand-list’);
const catToggleBtn = document.getElementById(‘catSectionToggle’);
if (catToggleBtn) {
catToggleBtn.classList.add(‘collapsed’);
catToggleBtn.nextElementSibling?.classList.add(‘collapsed’);
}
if (brandToggleBtn) {
brandToggleBtn.classList.remove(‘collapsed’);
brandToggleBtn.nextElementSibling.classList.remove(‘collapsed’);
}
activeFilters.brand.add(brand.slug);
// Swap in this brand’s configured banner image (Brand Filter List →
// Banner Image), same as a real sidebar brand click would.
updateBanner(brand.name);
currentPage = 1; allProducts = [];
renderActiveTags(); updateClearBtn();
// Re-sync the mobile category chip strip now that suppressCategoryActiveUI
// is set, so “AI Enabled” doesn’t show as active there either.
syncMobileCatChips();
productsLoadPromise = loadProducts();
return;
}
}
/* ── Default: Mobiles ── */
await applyCategorySelect(CAT_IDS[‘Mobiles’], ‘Mobiles’);
}
/* ═══════════════════════════════════
MOBILE UI BUILDERS
═══════════════════════════════════ */
function buildMobileCatChips() {
const wrap = document.getElementById(‘mobileCatChips’);
if (!wrap || !allCats || allCats.length === 0) return;
wrap.innerHTML = allCats
.filter(c => c.id)
.map(c => {
const isActive = !suppressCategoryActiveUI && (activeFilters.categoryName || ‘Mobiles’) === c.displayName;
const safe = c.displayName.replace(/’/g, “\\'”);
return ``;
}).join(”);
}
function syncMobileCatChips() {
const chips = document.querySelectorAll(‘.mob-cat-chip’);
const activeName = suppressCategoryActiveUI ? ” : (activeFilters.categoryName || ”);
chips.forEach(chip => {
chip.classList.toggle(‘active’, chip.textContent.trim() === activeName);
});
}
function buildMobileBrandTabbar() {
const wrap = document.getElementById(‘mobileBrandTabbarWrap’);
const tabbar = document.getElementById(‘mobileBrandTabbar’);
if (!wrap || !tabbar) return;
// Same reasoning as refreshBrandTabBar()’s guard above — hide this bar
// entirely while a sidebar Brand filter is active.
if (activeSidebarBrand) {
wrap.setAttribute(‘data-has-tabs’,’false’);
updateMobileCarouselIndicator(‘brand’, 0, 0);
updateMobileTabletBrandCarouselVisibility(true);
return;
}
const catName = activeFilters.categoryName || ”;
const config = CATEGORY_BRAND_TABS[catName];
const tabs = config?.brands;
if (!tabs || tabs.length === 0) {
wrap.setAttribute(‘data-has-tabs’,’false’);
updateMobileCarouselIndicator(‘brand’, 0, 0);
updateMobileTabletBrandCarouselVisibility(true);
return;
}
wrap.setAttribute(‘data-has-tabs’,’true’);
// Same slug-vs-catId matching fix as refreshBrandTabBar() above — see the
// comment there for why this matters for slug-less brand chips.
const allActive = (!activeBrandTab && !activeBrandCatId) ? ‘active’ : ”;
updateMobileTabletBrandCarouselVisibility(!!allActive);
tabbar.innerHTML = `
${tabs.map(t => {
const isActive = t.slug
? (activeBrandTab === t.slug ? ‘active’ : ”)
: (t.catId && activeBrandCatId === t.catId ? ‘active’ : ”);
return ``;
}).join(”)}
`;
// Carousel indicator
const totalTabs = tabs.length + 1; // +1 for All
updateMobileCarouselIndicator(‘brand’, 0, totalTabs);
tabbar.addEventListener(‘scroll’, () => {
const pct = tabbar.scrollLeft / (tabbar.scrollWidth – tabbar.clientWidth || 1);
const idx = Math.round(pct * (totalTabs – 1));
updateMobileCarouselIndicator(‘brand’, idx, totalTabs);
}, { passive: true });
}
/* Build the mobile sub-menu tabbar (called from openSubMenuNav) */
function buildMobileSubTabbar(items, activeBrandName) {
const wrap = document.getElementById(‘mobileSubTabbarWrap’);
const tabbar = document.getElementById(‘mobileSubTabbar’);
if (!wrap || !tabbar) return;
if (!items || items.length === 0) {
wrap.classList.remove(‘open’);
updateMobileCarouselIndicator(‘sub’, 0, 0);
return;
}
tabbar.innerHTML = `
${items.map((s,i) => `
`).join(”)}
`;
wrap.classList.add(‘open’);
const totalTabs = items.length + 1;
updateMobileCarouselIndicator(‘sub’, 0, totalTabs);
tabbar.addEventListener(‘scroll’, () => {
const pct = tabbar.scrollLeft / (tabbar.scrollWidth – tabbar.clientWidth || 1);
const idx = Math.round(pct * (totalTabs – 1));
updateMobileCarouselIndicator(‘sub’, idx, totalTabs);
}, { passive: true });
}
function closeMobileSubTabbar() {
const wrap = document.getElementById(‘mobileSubTabbarWrap’);
if (wrap) wrap.classList.remove(‘open’);
updateMobileCarouselIndicator(‘sub’, 0, 0);
}
/* Sync active state on mobile sub tabs */
function syncMobileSubTabs(activeIdx) {
document.querySelectorAll(‘#mobileSubTabbar .mob-sub-tab’).forEach(btn => {
btn.classList.toggle(‘active’, parseInt(btn.dataset.sub) === activeIdx);
});
}
/* Proxy for selectSeriesTab called from mobile sub tabs */
function selectSeriesTabMobile(idx, el) {
if (isLoadingProducts) return;
// mirror active state on the mobile tab
syncMobileSubTabs(idx);
// find the matching desktop series-tab el (may not be visible but still in DOM)
const desktopEl = document.querySelector(`.series-tab[data-series=”${idx}”]`);
selectSeriesTab(idx, desktopEl || el);
}
/* Update carousel indicator dots for brand or sub bar */
function updateMobileCarouselIndicator(type, activeIdx, total) {
const id = type === ‘brand’ ? ‘mobileBrandIndicator’ : ‘mobileSubIndicator’;
const el = document.getElementById(id);
if (!el) return;
if (!ENABLE_CAROUSEL_INDICATOR) { el.style.display = ‘none’; el.innerHTML = ”; return; }
// Only show when tabs overflow (more than 4 items)
const shouldShow = total > 4;
el.style.display = shouldShow ? ” : ‘none’;
if (!shouldShow) { el.innerHTML = ”; return; }
// Max 7 visible dots, compress if needed
const MAX_DOTS = 7;
const dotCount = Math.min(total, MAX_DOTS);
const step = total <= MAX_DOTS ? 1 : (total – 1) / (MAX_DOTS – 1);
let html = ”;
for (let i = 0; i = total – 1);
html += ``;
}
el.innerHTML = html;
}
function syncMobileBrandTabs() {
document.querySelectorAll(‘.mob-brand-tab’).forEach(btn => {
const slug = btn.dataset.slug || null;
btn.classList.toggle(‘active’,
(activeBrandTab === null && !btn.dataset.slug) ||
(activeBrandTab === slug)
);
});
}
init();
// Move ALL top-layer overlays (Quick View panel + its dimmer, the “View Full
// Details” product description modal, and the QR modals) to so they
// escape any Divi row/section ancestor that has transform/filter/will-change
// applied (those create a new stacking context that traps z-index locally,
// even a huge one like 999999999). Previously only the Quick View panel got
// this treatment — the “View Full Details” modal (#mhOverlay) stayed nested
// wherever the page put it, so on pages where that ancestor has a transform
// it could render BEHIND the Quick View panel instead of on top of it, even
// though its z-index number is far bigger.
(function(){
function moveOverlaysToBody(){
[‘qvOverlay’, ‘mxmQvPanel’, ‘mhOverlay’, ‘qrModalOverlay’, ‘checkoutQrModalOverlay’, ‘instcalcOverlay’].forEach(function(id){
var el = document.getElementById(id);
if (el && el.parentElement !== document.body) document.body.appendChild(el);
});
}
if (document.readyState === ‘loading’) {
document.addEventListener(‘DOMContentLoaded’, moveOverlaysToBody);
} else {
moveOverlaysToBody();
}
})();
.instcalc-overlay{
display:none;position:fixed;inset:0;
background:rgba(0,0,0,.55);z-index:2147483647;
align-items:flex-start;justify-content:center;
padding:24px 16px;overflow-y:auto;
}
.instcalc-overlay.open{display:flex}
.instcalc-modal{
position:relative;background:#f1f5f9;border-radius:14px;
max-width:600px;width:100%;margin:auto;
box-shadow:0 20px 60px rgba(0,0,0,.35);
}
.instcalc-close{
position:absolute;top:10px;right:10px;z-index:2;
width:32px;height:32px;border-radius:50%;border:none;
background:rgba(0,0,0,.08);color:#1e293b;font-size:15px;
cursor:pointer;display:flex;align-items:center;justify-content:center;
transition:background .15s;
}
.instcalc-close:hover{background:rgba(0,0,0,.16)}
.instcalc-modal .bdo-page-wrap{margin:0;padding:40px 16px 24px}
/* —- Purchase Convert Calculator styles (scoped under .bdo-page-wrap) —- */
.bdo-page-wrap,
.bdo-page-wrap *,
.bdo-page-wrap *::before,
.bdo-page-wrap *::after { box-sizing: border-box !important; }
.bdo-page-wrap {
max-width: 100%; border-radius: 12px;
font-family: -apple-system, BlinkMacSystemFont, “Segoe UI”, Roboto, sans-serif !important;
font-size: 15px !important; line-height: 1.5 !important; color: #1e293b !important; text-align: left !important;
–bdo-primary: #004ea8; –bdo-primary-rgb: 0, 78, 168; –bdo-primary-dark: rgb(0, 64, 138);
–bdo-on-primary: #ffffff; –bdo-accent: rgb(0, 64, 138);
}
.bdo-page-wrap h1, .bdo-page-wrap h2, .bdo-page-wrap h3, .bdo-page-wrap p, .bdo-page-wrap span, .bdo-page-wrap div { font-family: inherit !important; }
.bdo-page-wrap ol, .bdo-page-wrap ul, .bdo-page-wrap li { font-family: inherit !important; list-style: decimal !important; margin: 0 !important; }
.bdo-page-wrap li { display: list-item !important; }
.bdo-calc-card { background: #ffffff; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); border: 1px solid #e2e8f0; margin-bottom: 20px; overflow: hidden; }
.bdo-calc-header { background-color: var(–bdo-primary) !important; color: var(–bdo-on-primary) !important; padding: 14px 20px; font-size: 18px !important; font-weight: 600 !important; border-bottom: 4px solid var(–bdo-accent) !important; transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease; }
.bdo-calc-body { padding: 20px; }
.bdo-calc-label { display: block; font-size: 14px !important; color: #333333 !important; margin-bottom: 8px; font-weight: 500 !important; }
.bdo-bank-logo { display: block; max-height: 44px; width: auto; max-width: 180px; object-fit: contain; margin: 0 0 14px 0; transition: opacity 0.2s ease; }
.bdo-calc-input, .bdo-calc-select { display: block; width: 100% !important; max-width: 280px; padding: 10px 12px !important; border: 1px solid #cbd5e1 !important; border-radius: 6px !important; font-size: 15px !important; font-family: inherit !important; outline: none !important; margin: 0 0 16px 0 !important; background-color: #ffffff !important; color: #1e293b !important; box-shadow: none !important; }
.bdo-calc-input:focus, .bdo-calc-select:focus { border-color: var(–bdo-primary) !important; box-shadow: 0 0 0 2px rgba(var(–bdo-primary-rgb), 0.2) !important; }
.bdo-calc-btn { display: inline-block; background-color: var(–bdo-primary) !important; color: var(–bdo-on-primary) !important; border: none !important; padding: 10px 24px !important; border-radius: 6px !important; font-size: 14px !important; font-weight: 600 !important; font-family: inherit !important; cursor: pointer; transition: background-color 0.2s; text-decoration: none !important; text-transform: none !important; line-height: normal !important; }
.bdo-calc-btn:hover { background-color: var(–bdo-primary-dark) !important; color: var(–bdo-on-primary) !important; }
.bdo-amount-display { font-size: 24px !important; font-weight: 700 !important; color: #1e293b !important; margin: 10px 0 20px 0; }
.bdo-desktop-block { display: block; } .bdo-mobile-block { display: none; }
@media (max-width: 600px) { .bdo-desktop-block { display: none !important; } .bdo-mobile-block { display: block; } .bdo-calc-btn { width: 100%; } }
.bdo-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; width: 100%; touch-action: pan-x pan-y; overscroll-behavior-x: contain; -webkit-transform: translateZ(0); transform: translateZ(0); will-change: scroll-position; }
.bdo-table-wrapper::-webkit-scrollbar { display: none; }
.bdo-calc-table { border-collapse: collapse !important; text-align: center !important; table-layout: fixed !important; margin: 0 !important; }
.bdo-calc-table th, .bdo-calc-table td { border: 1px solid #e2e8f0 !important; padding: 18px 12px !important; font-size: 15px !important; width: var(–bdo-col-width, 160px); vertical-align: middle !important; }
.bdo-calc-table th:first-child, .bdo-calc-table td:first-child { background-color: var(–bdo-primary-dark) !important; color: var(–bdo-on-primary) !important; font-weight: 600 !important; text-align: left !important; width: var(–bdo-label-width, 220px); padding-left: 24px !important; position: sticky; left: 0; z-index: 2; transition: background-color 0.25s ease, color 0.25s ease; }
.bdo-calc-table th { background-color: #f8fafc !important; color: #334155 !important; font-weight: 700 !important; font-size: 16px !important; }
.bdo-calc-table tbody tr:nth-child(even) td:not(:first-child) { background-color: #f8fafc !important; }
.bdo-mobile-table-wrapper { overflow-x: auto; overflow-y: hidden; width: 100%; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; touch-action: pan-x pan-y; overscroll-behavior-x: contain; -webkit-transform: translateZ(0); transform: translateZ(0); will-change: scroll-position; }
.bdo-mobile-table-wrapper::-webkit-scrollbar { display: none; }
.bdo-calc-table-mobile { border-collapse: collapse !important; text-align: center !important; table-layout: fixed !important; margin: 0 !important; }
.bdo-calc-table-mobile th, .bdo-calc-table-mobile td { border: 1px solid #e2e8f0 !important; padding: 14px 10px !important; font-size: 14px !important; width: var(–bdo-mobile-col-width, 150px); white-space: normal !important; }
.bdo-calc-table-mobile th { background-color: #f8fafc !important; color: #334155 !important; font-weight: 700 !important; }
.bdo-calc-table-mobile th:first-child, .bdo-calc-table-mobile td:first-child { background-color: var(–bdo-primary-dark) !important; color: var(–bdo-on-primary) !important; font-weight: 600 !important; width: var(–bdo-mobile-label-width, 100px); position: sticky; left: 0; z-index: 2; transition: background-color 0.25s ease, color 0.25s ease; }
.bdo-calc-table-mobile tbody tr:nth-child(even) td:not(:first-child) { background-color: #f8fafc !important; }
.bdo-scrollbar-track { display: block; height: 8px; background-color: #e2e8f0 !important; border-radius: 10px; margin: 10px 0 20px 0; position: relative; cursor: pointer; }
.bdo-scrollbar-thumb { position: absolute; top: 0; left: 0; height: 100%; width: 40px; background-color: #94a3b8 !important; border-radius: 10px; cursor: grab; touch-action: none; will-change: transform; transform: translateX(0); }
.bdo-scrollbar-thumb.bdo-dragging { cursor: grabbing; background-color: #64748b !important; }
.bdo-notice { background: #f8fafc !important; border-radius: 8px; padding: 20px; border: 1px solid #e2e8f0 !important; font-size: 13px !important; color: #475569 !important; line-height: 1.6 !important; }
.bdo-notice strong { display: block; color: #1e293b !important; margin-bottom: 8px; }
.bdo-notice ol { margin: 0 !important; padding-left: 18px !important; }
.bdo-notice li { margin-bottom: 8px; }
/* Modal open/close — kept as plain global functions (not inside the IIFE
below) since they’re called from onclick=”” attributes, matching the
convention used by openQuickView/closeQuickView elsewhere in this file. */
function openInstallmentCalc(amount) {
const overlay = document.getElementById(‘instcalcOverlay’);
if (!overlay) return;
const amountInput = document.getElementById(‘bdo_amount’);
if (amountInput && amount) amountInput.value = Math.round(Number(amount));
overlay.classList.add(‘open’);
}
function closeInstallmentCalc() {
const overlay = document.getElementById(‘instcalcOverlay’);
if (!overlay) return;
overlay.classList.remove(‘open’);
if (window.__mxmResetInstallmentCalc) window.__mxmResetInstallmentCalc();
}
/* ==========================================================
Purchase Convert Calculator engine — wrapped in an IIFE so
bankData, bdoTerms, calculateBDO, the scrollbar helpers, etc.
never become globals (mirrors the note in the source file this
was ported from). Only a reset hook is exposed, for
closeInstallmentCalc() above to call.
========================================================== */
(function () {
‘use strict’;
const bankData = {
bdo: { name: ‘BDO’, factors: { 3: 0.343338077, 6: 0.176667651, 9: 0.121111407, 12: 0.093334686, 18: 0.06555912, 24: 0.05167098, 36: 0.037777833 } },
metrobank: { name: ‘METROBANK’, factors: { 3: 0.350415, 6: 0.181799, 9: 0.125949, 12: 0.097269, 18: 0.072555, 24: 0.058517, 36: ‘N/A’ } },
eastwest: { name: ‘EASTWEST BANK’, factors: { 3: 0.343333, 6: 0.176667, 9: 0.121111, 12: 0.093333, 18: 0.065556, 24: 0.051667, 36: ‘N/A’ } },
unionbank: { name: ‘UNION BANK’, factors: { 3: 0.343333, 6: 0.176667, 9: 0.121111, 12: 0.093333, 18: 0.065455, 24: 0.049583, 36: ‘N/A’ } },
pnb: { name: ‘PNB’, factors: { 3: 0.353333, 6: 0.184167, 9: 0.128611, 12: 0.100833, 18: 0.073056, 24: 0.061667, 36: ‘N/A’ } },
hsbc: { name: ‘HSBC’, factors: { 3: 0.354633, 6: 0.185667, 9: 0.129411, 12: 0.102433, 18: 0.075756, 24: 0.062267, 36: ‘N/A’ } },
bpi: { name: ‘BPI’, factors: { 3: 0.343333, 6: 0.176667, 9: 0.121111, 12: 0.093333, 18: 0.065556, 24: 0.051667, 36: ‘N/A’ } },
equicom: { name: ‘EQUICOM’, factors: { 3: 0.343333, 6: 0.176667, 9: 0.121111, 12: 0.093333, 18: 0.065556, 24: 0.051667, 36: ‘N/A’ } },
‘security-diners’: { name: ‘SECURITY DINERS/SECURITY’, factors: { 3: 0.345833, 6: 0.181667, 9: 0.126111, 12: 0.098333, 18: ‘N/A’, 24: ‘N/A’, 36: ‘N/A’ } },
rcbc: { name: ‘RCBC’, factors: { 3: 0.343336, 6: 0.1766687, 9: 0.1211104, 12: 0.0933328, 18: 0.0655582, 24: 0.0516631, 36: 0.03777989 } }
};
const bankThemes = {
bdo: { primary: ‘#004ea8’, onPrimary: ‘#ffffff’ },
metrobank: { primary: ‘#012c91’, onPrimary: ‘#ffffff’ },
eastwest: { primary: ‘#d30082’, onPrimary: ‘#ffffff’, accent: ‘#d1df03’ },
unionbank: { primary: ‘#fea30b’, onPrimary: ‘#000000’, accent: ‘#ffffff’ },
pnb: { primary: ‘#10357f’, onPrimary: ‘#ffffff’ },
hsbc: { primary: ‘#db0011’, onPrimary: ‘#ffffff’ },
bpi: { primary: ‘#a52a24’, onPrimary: ‘#ffffff’, accent: ‘#dbb52c’ },
equicom: { primary: ‘#d23732’, onPrimary: ‘#ffffff’ },
‘security-diners’: { primary: ‘#374f75’, onPrimary: ‘#ffffff’ },
rcbc: { primary: ‘#177db9’, onPrimary: ‘#ffffff’ }
};
function bdoHexToRgb(hex) {
let clean = hex.replace(‘#’, ”);
if (clean.length === 3) clean = clean.split(”).map(function (c) { return c + c; }).join(”);
const num = parseInt(clean, 16);
return { r: (num >> 16) & 255, g: (num >> 8) & 255, b: num & 255 };
}
function bdoDarken(hex, amount) {
const rgb = bdoHexToRgb(hex);
const r = Math.max(0, Math.round(rgb.r * (1 – amount)));
const g = Math.max(0, Math.round(rgb.g * (1 – amount)));
const b = Math.max(0, Math.round(rgb.b * (1 – amount)));
return ‘rgb(‘ + r + ‘, ‘ + g + ‘, ‘ + b + ‘)’;
}
function applyBDOTheme(bankKey) {
const theme = bankThemes[bankKey] || bankThemes.bdo;
const wrap = document.querySelector(‘.instcalc-modal .bdo-page-wrap’);
if (!wrap) return;
const rgb = bdoHexToRgb(theme.primary);
const darkShade = bdoDarken(theme.primary, 0.18);
wrap.style.setProperty(‘–bdo-primary’, theme.primary);
wrap.style.setProperty(‘–bdo-primary-rgb’, rgb.r + ‘, ‘ + rgb.g + ‘, ‘ + rgb.b);
wrap.style.setProperty(‘–bdo-primary-dark’, darkShade);
wrap.style.setProperty(‘–bdo-on-primary’, theme.onPrimary);
wrap.style.setProperty(‘–bdo-accent’, theme.accent || darkShade);
}
/* TODO: point these at your own hosted bank-logo images if/when you have them. */
const bankLogos = {
bdo: ‘https://mxmemoxpress.com/wp-content/uploads/2026/09/BDO.webp’,
metrobank: ‘https://mxmemoxpress.com/wp-content/uploads/2026/09/METROBANK.webp’,
eastwest: ‘https://mxmemoxpress.com/wp-content/uploads/2026/09/EASTWEST.webp’,
unionbank: ‘https://mxmemoxpress.com/wp-content/uploads/2026/09/UNION-BANK.webp’,
pnb: ‘https://mxmemoxpress.com/wp-content/uploads/2026/09/PNB-LOGO.webp’,
hsbc: ‘https://mxmemoxpress.com/wp-content/uploads/2026/09/HSBC-LOGO.webp’,
bpi: ‘https://mxmemoxpress.com/wp-content/uploads/2026/09/BPI-LOGO.webp’,
equicom: ‘https://mxmemoxpress.com/wp-content/uploads/2026/09/EQUICOM-LOGO.webp’,
‘security-diners’: ‘https://mxmemoxpress.com/wp-content/uploads/2026/09/SECURITY-BANK.webp’,
rcbc: ‘https://mxmemoxpress.com/wp-content/uploads/2026/09/RCBC.webp’
};
function applyBDOLogo(bankKey) {
const bank = bankData[bankKey] || bankData.bdo;
const logoUrl = bankLogos[bankKey] || ”;
const logos = document.querySelectorAll(‘.instcalc-modal .bdo-bank-logo’);
logos.forEach(function (img) {
img.onerror = function () { img.style.display = ‘none’; };
img.onload = function () { img.style.display = ‘block’; };
img.alt = bank.name + ‘ logo’;
if (logoUrl) { img.src = logoUrl; } else { img.removeAttribute(‘src’); img.style.display = ‘none’; }
});
}
const bdoTerms = [3, 6, 9, 12, 18, 24, 36];
let bdoLastResults = {};
function calculateBDO() {
const amountInput = document.getElementById(‘bdo_amount’).value;
const selectedBank = document.getElementById(‘bdo_bank’).value;
const amount = parseFloat(amountInput);
if (isNaN(amount) || amount <= 0) { alert(‘Please enter a valid transaction amount.’); return; }
const bank = bankData[selectedBank];
bdoLastResults = {};
bdoTerms.forEach(function (term) {
const factor = bank.factors[term];
if (factor === ‘N/A’) {
bdoLastResults[term] = { interest: ‘N/A’, amortization: ‘N/A’ };
document.getElementById(‘rate_’ + term).innerText = ‘N/A’;
document.getElementById(‘amort_’ + term).innerText = ‘N/A’;
return;
}
const amortization = amount * factor;
const interest = (amortization * term – amount) / term;
bdoLastResults[term] = { interest: interest, amortization: amortization };
document.getElementById(‘rate_’ + term).innerText = interest.toLocaleString(‘en-US’, { minimumFractionDigits: 2, maximumFractionDigits: 2 });
document.getElementById(‘amort_’ + term).innerText = amortization.toLocaleString(‘en-US’, { minimumFractionDigits: 2, maximumFractionDigits: 2 });
});
applyBDOLogo(selectedBank);
document.getElementById(‘bdo_selected_bank_name’).innerText = bank.name;
document.getElementById(‘bdo_display_amount’).innerText = amount.toLocaleString(‘en-US’, { minimumFractionDigits: 0, maximumFractionDigits: 2 });
renderBDOMobileTable();
document.getElementById(‘bdo_input_card’).style.display = ‘none’;
document.getElementById(‘bdo_results_card’).style.display = ‘block’;
window.requestAnimationFrame(function () {
bdoUpdateColumnWidths();
bdoDesktopScrollbar.update();
bdoMobileScrollbar.update();
});
}
function renderBDOMobileTable() {
const tbody = document.getElementById(‘bdo_mobile_tbody’);
tbody.innerHTML = ”;
bdoTerms.forEach(function (term) {
const result = bdoLastResults[term] || { interest: ‘N/A’, amortization: ‘N/A’ };
const interestDisplay = result.interest === ‘N/A’ ? ‘N/A’ : result.interest.toLocaleString(‘en-US’, { minimumFractionDigits: 2, maximumFractionDigits: 2 });
const amortizationDisplay = result.amortization === ‘N/A’ ? ‘N/A’ : result.amortization.toLocaleString(‘en-US’, { minimumFractionDigits: 2, maximumFractionDigits: 2 });
const row = document.createElement(‘tr’);
row.innerHTML = ‘
‘ + ‘
‘ + ‘
‘;
tbody.appendChild(row);
});
}
function resetBDOCalculator() {
document.getElementById(‘bdo_amount’).value = ”;
document.getElementById(‘bdo_bank’).value = ‘bdo’;
document.getElementById(‘bdo_results_card’).style.display = ‘none’;
document.getElementById(‘bdo_input_card’).style.display = ‘block’;
applyBDOTheme(‘bdo’);
applyBDOLogo(‘bdo’);
}
const BDO_BREAKPOINTS = { mobile: 600, tablet: 1024 };
const BDO_VISIBLE_COLUMNS = { desktop: 3.5, tablet: 2.5, mobile: 1.5 };
const BDO_LABEL_WIDTHS = { desktop: 220, tablet: 180, mobile: 100 };
const BDO_MIN_COL_WIDTH = 130;
const BDO_MAX_COL_WIDTH = 260;
function bdoGetBreakpoint() {
const w = window.innerWidth;
if (w <= BDO_BREAKPOINTS.mobile) return ‘mobile’;
if (w 0) {
const table = wrapper.querySelector(‘.bdo-calc-table’);
const labelWidth = BDO_LABEL_WIDTHS[breakpoint];
const visibleCols = BDO_VISIBLE_COLUMNS[breakpoint];
const colWidth = bdoClampColWidth((wrapper.clientWidth – labelWidth) / visibleCols);
wrapper.style.setProperty(‘–bdo-label-width’, labelWidth + ‘px’);
wrapper.style.setProperty(‘–bdo-col-width’, colWidth + ‘px’);
if (table) table.style.width = (labelWidth + colWidth * bdoTerms.length) + ‘px’;
}
const mWrapper = document.getElementById(‘bdo_mobile_table_wrapper’);
if (mWrapper && mWrapper.clientWidth > 0) {
const labelWidth = BDO_LABEL_WIDTHS.mobile;
const visibleCols = BDO_VISIBLE_COLUMNS.mobile;
const colWidth = bdoClampColWidth((mWrapper.clientWidth – labelWidth) / visibleCols);
mWrapper.style.setProperty(‘–bdo-mobile-label-width’, labelWidth + ‘px’);
mWrapper.style.setProperty(‘–bdo-mobile-col-width’, colWidth + ‘px’);
const mTable = document.getElementById(‘bdo_mobile_calc_table’);
if (mTable) mTable.style.width = (labelWidth + colWidth * 2) + ‘px’;
}
}
function bdoCreateScrollbar(wrapperId, trackId, thumbId) {
const wrapper = document.getElementById(wrapperId);
const track = document.getElementById(trackId);
const thumb = document.getElementById(thumbId);
if (!wrapper || !track || !thumb) return { update: function () {} };
function update() {
const scrollable = wrapper.scrollWidth > wrapper.clientWidth + 1;
if (!scrollable) { track.style.display = ‘none’; return; }
track.style.display = ‘block’;
const trackWidth = track.clientWidth;
const visibleRatio = wrapper.clientWidth / wrapper.scrollWidth;
const thumbWidth = Math.max(trackWidth * visibleRatio, 40);
thumb.style.width = thumbWidth + ‘px’;
const maxThumbLeft = trackWidth – thumbWidth;
const maxScrollLeft = wrapper.scrollWidth – wrapper.clientWidth;
const thumbLeft = maxScrollLeft > 0 ? (wrapper.scrollLeft / maxScrollLeft) * maxThumbLeft : 0;
thumb.style.transform = ‘translateX(‘ + thumbLeft + ‘px)’;
}
let ticking = false;
function onScroll() {
if (ticking) return;
ticking = true;
window.requestAnimationFrame(function () { update(); ticking = false; });
}
wrapper.addEventListener(‘scroll’, onScroll, { passive: true });
track.addEventListener(‘click’, function (e) {
if (e.target === thumb) return;
const rect = track.getBoundingClientRect();
const clickX = e.clientX – rect.left;
const thumbWidth = thumb.offsetWidth;
const trackWidth = track.clientWidth;
const maxThumbLeft = trackWidth – thumbWidth;
const maxScrollLeft = wrapper.scrollWidth – wrapper.clientWidth;
let newThumbLeft = clickX – thumbWidth / 2;
newThumbLeft = Math.max(0, Math.min(newThumbLeft, maxThumbLeft));
const targetScrollLeft = maxThumbLeft > 0 ? (newThumbLeft / maxThumbLeft) * maxScrollLeft : 0;
wrapper.scrollTo({ left: targetScrollLeft, behavior: ‘smooth’ });
});
let isDragging = false, dragStartClientX = 0, dragStartScrollLeft = 0;
thumb.addEventListener(‘pointerdown’, function (e) {
isDragging = true; dragStartClientX = e.clientX; dragStartScrollLeft = wrapper.scrollLeft;
thumb.classList.add(‘bdo-dragging’);
try { thumb.setPointerCapture(e.pointerId); } catch (err) {}
e.preventDefault();
});
thumb.addEventListener(‘pointermove’, function (e) {
if (!isDragging) return;
const trackWidth = track.clientWidth;
const thumbWidth = thumb.offsetWidth;
const maxThumbLeft = trackWidth – thumbWidth;
const maxScrollLeft = wrapper.scrollWidth – wrapper.clientWidth;
if (maxThumbLeft <= 0 || maxScrollLeft <= 0) return;
const scrollRatio = maxScrollLeft / maxThumbLeft;
let newScrollLeft = dragStartScrollLeft + (e.clientX – dragStartClientX) * scrollRatio;
newScrollLeft = Math.max(0, Math.min(newScrollLeft, maxScrollLeft));
wrapper.scrollLeft = newScrollLeft;
});
function endDrag(e) {
if (!isDragging) return;
isDragging = false;
thumb.classList.remove(‘bdo-dragging’);
try { thumb.releasePointerCapture(e.pointerId); } catch (err) {}
}
thumb.addEventListener(‘pointerup’, endDrag);
thumb.addEventListener(‘pointercancel’, endDrag);
wrapper.addEventListener(‘wheel’, function (e) {
const maxScrollLeft = wrapper.scrollWidth – wrapper.clientWidth;
if (maxScrollLeft 0) {
const atStart = wrapper.scrollLeft = maxScrollLeft – 1;
if ((horizontal 0 && atEnd)) return;
wrapper.scrollLeft += horizontal; e.preventDefault(); return;
}
if (vertical === 0) return;
const atStart = wrapper.scrollLeft = maxScrollLeft – 1;
if ((vertical 0 && atEnd)) return;
wrapper.scrollLeft += vertical; e.preventDefault();
}, { passive: false });
return { update: update };
}
const bdoDesktopScrollbar = bdoCreateScrollbar(‘bdo_table_wrapper’, ‘bdo_scrollbar_track’, ‘bdo_scrollbar_thumb’);
const bdoMobileScrollbar = bdoCreateScrollbar(‘bdo_mobile_table_wrapper’, ‘bdo_mobile_scrollbar_track’, ‘bdo_mobile_scrollbar_thumb’);
let bdoResizeTimeout = null;
window.addEventListener(‘resize’, function () {
const overlay = document.getElementById(‘instcalcOverlay’);
if (!overlay || !overlay.classList.contains(‘open’)) return;
clearTimeout(bdoResizeTimeout);
bdoResizeTimeout = setTimeout(function () {
bdoUpdateColumnWidths();
bdoDesktopScrollbar.update();
bdoMobileScrollbar.update();
}, 120);
});
document.getElementById(‘bdo_compute_btn’).addEventListener(‘click’, calculateBDO);
document.getElementById(‘bdo_reset_btn’).addEventListener(‘click’, resetBDOCalculator);
document.getElementById(‘bdo_bank’).addEventListener(‘change’, function () {
applyBDOTheme(this.value);
applyBDOLogo(this.value);
});
applyBDOTheme(document.getElementById(‘bdo_bank’).value);
applyBDOLogo(document.getElementById(‘bdo_bank’).value);
/* Exposed only so closeInstallmentCalc() can reset the widget
back to its default (BDO, empty amount) state each time the
modal is closed, ready for the next product it’s opened for. */
window.__mxmResetInstallmentCalc = resetBDOCalculator;
})();
/* ══════════════════════════════════════
QUICK VIEW JS
══════════════════════════════════════ */
let qvOpen = false;
/* ── Lightweight QR code image helper (external image API, no dependency) ── */
function qrCodeImgUrl(data, size) {
return `https://api.qrserver.com/v1/create-qr-code/?size=${size}x${size}&data=${encodeURIComponent(data)}`;
}
/* ── Buy Now “Scan to View” modal (used when Buy Now mode = ‘qr’) ── */
function openBuyNowQR(url, name) {
document.getElementById(‘qrModalImg’).src = qrCodeImgUrl(url, 220);
document.getElementById(‘qrModalProductName’).textContent = name || ”;
document.getElementById(‘qrModalOverlay’).classList.add(‘open’);
}
function closeBuyNowQR() {
document.getElementById(‘qrModalOverlay’).classList.remove(‘open’);
}
/* ══════════════════════════════════════
QUICK VIEW IMAGE GALLERY — swipeable, dot-indexed.
Uses the product’s full WooCommerce images array (p.images). Falls back
to the single main image if only one (or none) is available.
══════════════════════════════════════ */
let _qvGalleryIndex = 0;
let _qvGalleryDrag = null; // { startX, currentX, width }
let _qvThumbWindowStart = 0;
let _qvThumbVisibleCount = 4; // recalculated on mount to fit available rail height
const QV_CHEVRON_UP = ‘‘;
const QV_CHEVRON_DOWN = ‘‘;
function renderQvGallery(p) {
const images = (p.images && p.images.length) ? p.images : (p.image ? [p.image] : []);
_qvGalleryIndex = 0;
_qvThumbWindowStart = 0;
window._qvGalleryImages = images;
if (!images.length) {
return `
`;
}
const slides = images.map(src =>
`
`
).join(”);
const dots = images.length > 1
? `
``
).join(”)}
`
: ”;
const html = `
${dots}
${mxmFreebiesGlassHTML(p, ‘qv’)}
`;
// After mount, size the thumb window to the actual rail height instead of a guess.
requestAnimationFrame(() => {
_qvThumbVisibleCount = computeQvThumbVisibleCount();
updateQvThumbRail();
});
return html;
}
/* Thumbnail rail — shows a fixed window of thumbs with up/down nav buttons
instead of a scrollable list. */
function renderQvThumbRail(images, activeIndex) {
if (images.length 0;
const canDown = _qvThumbWindowStart + _qvThumbVisibleCount {
const realIdx = _qvThumbWindowStart + i;
return ``;
}).join(”);
return `
`;
}
function computeQvThumbVisibleCount() {
const outer = document.querySelector(‘.qv-img-outer’);
if (!outer) return _qvThumbVisibleCount;
const outerH = outer.clientHeight || 350;
const railPadding = 20; // 10px top + 10px bottom
const navBtnsH = 22 * 2; // two nav buttons
const gaps = 7 * 2; // gap between nav buttons and the thumb list
const listPadding = 6; // .qv-thumb-list’s own top+bottom padding (3px each) —
// this eats into the same space but wasn’t being
// subtracted, so the last thumb could sit flush
// against the list’s own overflow:hidden edge
const safetyBuffer = 12; // always round DOWN a bit so a thumb’s active
// border never gets clipped by the list’s
// overflow:hidden due to rounding/sub-pixel drift
const available = outerH – railPadding – navBtnsH – gaps – listPadding – safetyBuffer;
const thumbUnit = 53 + 10; // thumb height + gap between thumbs
const count = Math.floor((available + 10) / thumbUnit); // +10: last thumb has no trailing gap
return Math.max(1, count);
}
function updateQvThumbRail() {
const images = window._qvGalleryImages || [];
const rail = document.getElementById(‘qvThumbRail’);
if (!rail) return;
rail.outerHTML = renderQvThumbRail(images, _qvGalleryIndex);
}
function qvThumbNav(dir) {
const images = window._qvGalleryImages || [];
const maxStart = Math.max(0, images.length – _qvThumbVisibleCount);
_qvThumbWindowStart = Math.max(0, Math.min(_qvThumbWindowStart + dir, maxStart));
updateQvThumbRail();
}
function qvGalleryGoTo(i) {
const track = document.getElementById(‘qvGalleryTrack’);
if (!track) return;
const slides = track.querySelectorAll(‘.qv-gallery-slide’).length;
_qvGalleryIndex = Math.max(0, Math.min(i, slides – 1));
track.style.transform = `translateX(-${_qvGalleryIndex * 100}%)`;
document.querySelectorAll(‘.qv-gallery-dot’).forEach((d, idx) =>
d.classList.toggle(‘active’, idx === _qvGalleryIndex));
// Keep the active thumb inside the visible nav window, sliding it if needed.
if (_qvGalleryIndex = _qvThumbWindowStart + _qvThumbVisibleCount) {
_qvThumbWindowStart = _qvGalleryIndex – _qvThumbVisibleCount + 1;
}
updateQvThumbRail();
}
function qvGalleryDragStart(e) {
const track = document.getElementById(‘qvGalleryTrack’);
if (!track || track.querySelectorAll(‘.qv-gallery-slide’).length <= 1) return;
_qvGalleryDrag = { startX: e.clientX, deltaX: 0, width: track.parentElement.offsetWidth };
track.classList.add(‘dragging’);
}
function qvGalleryDragMove(e) {
if (!_qvGalleryDrag) return;
const track = document.getElementById(‘qvGalleryTrack’);
if (!track) return;
_qvGalleryDrag.deltaX = e.clientX – _qvGalleryDrag.startX;
const basePct = -_qvGalleryIndex * 100;
const dragPct = (_qvGalleryDrag.deltaX / _qvGalleryDrag.width) * 100;
track.style.transform = `translateX(${basePct + dragPct}%)`;
}
function qvGalleryDragEnd(e) {
if (!_qvGalleryDrag) return;
const track = document.getElementById(‘qvGalleryTrack’);
const { deltaX, width } = _qvGalleryDrag;
track.classList.remove(‘dragging’);
_qvGalleryDrag = null;
const threshold = width * 0.15;
if (deltaX threshold) qvGalleryGoTo(_qvGalleryIndex – 1);
else qvGalleryGoTo(_qvGalleryIndex); // snap back
}
/* ══════════════════════════════════════
QUICK PANEL — NEW STYLE 1 (glass + card morph)
Used only when QV_STYLE === ‘style1’ (admin → Quick Panel Style).
Reuses the same #mxmQvPanel / #qvBody / #qvActions, so Add to Cart,
Buy Now, Details and the Back button keep working as before.
══════════════════════════════════════ */
let _s1OriginEl = null, _s1Anim = null, _s1BodyAnim = null, _s1Closing = false, _s1Tab = ‘buy’;
function s1IsActive() { return QV_STYLE === ‘style1’; }
function s1FindOrigin(event, productIndex) {
const t = event && (event.currentTarget || event.target);
const fromEvt = (t && t.closest) ? t.closest(‘.product-card’) : null;
return fromEvt || document.querySelector(‘.product-card[onclick^=”openQuickView(event,’ + productIndex + ‘)”]’);
}
function s1UpdatePill() {
const pill = document.getElementById(‘s1Pill’);
const btn = document.getElementById(_s1Tab === ‘buy’ ? ‘s1TabBuy’ : ‘s1TabDetails’);
if (pill && btn) {
pill.style.width = btn.offsetWidth + ‘px’;
pill.style.left = btn.offsetLeft + ‘px’;
}
}
window.addEventListener(‘resize’, s1UpdatePill);
function s1SelectTab(tab) {
_s1Tab = tab;
s1UpdatePill();
const buyBtn = document.getElementById(‘s1TabBuy’);
const detBtn = document.getElementById(‘s1TabDetails’);
const buyPane = document.getElementById(‘s1PaneBuy’);
const detPane = document.getElementById(‘s1PaneDetails’);
if (!buyBtn || !detBtn || !buyPane || !detPane) return;
buyBtn.classList.toggle(‘active’, tab === ‘buy’);
detBtn.classList.toggle(‘active’, tab === ‘details’);
const hideEl = tab === ‘buy’ ? detPane : buyPane;
const showEl = tab === ‘buy’ ? buyPane : detPane;
hideEl.classList.add(‘s1-fade’);
setTimeout(() => {
hideEl.classList.add(‘s1-hidden’);
showEl.classList.remove(‘s1-hidden’);
showEl.classList.add(‘s1-fade’);
setTimeout(() => showEl.classList.remove(‘s1-fade’), 20);
}, 150);
}
function s1RectKF(r, radius, opacity) {
return { left: r.left + ‘px’, top: r.top + ‘px’, width: r.width + ‘px’, height: r.height + ‘px’, borderRadius: radius, opacity: opacity };
}
/* Morph: panel grows from the clicked product card’s rect into the glass container */
function s1MorphOpen(panel, originEl) {
if (_s1Anim) { _s1Anim.cancel(); _s1Anim = null; }
if (_s1BodyAnim) { _s1BodyAnim.cancel(); _s1BodyAnim = null; }
if (!panel.animate) return;
const f = panel.getBoundingClientRect();
let o = null;
if (originEl) {
const r = originEl.getBoundingClientRect();
if (r.width > 4 && r.height > 4) o = r;
}
const from = o ? s1RectKF(o, ’14px’, 1)
: s1RectKF({ left: f.left + f.width * 0.05, top: f.top + f.height * 0.05, width: f.width * 0.9, height: f.height * 0.9 }, ‘3rem’, 0);
const to = s1RectKF(f, ‘3rem’, 1);
if (originEl && o) originEl.style.visibility = ‘hidden’;
_s1Anim = panel.animate([from, to], { duration: 520, easing: ‘cubic-bezier(.32,.72,0,1)’ });
_s1Anim.onfinish = () => { _s1Anim = null; s1UpdatePill(); };
const body = document.getElementById(‘qvBody’);
if (body && body.animate) {
_s1BodyAnim = body.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 280, delay: 220, easing: ‘ease-out’, fill: ‘backwards’ });
_s1BodyAnim.onfinish = () => { _s1BodyAnim = null; };
}
}
/* Close = simple fade (morph is only used on open) */
function s1MorphClose(panel) {
_s1Closing = true;
if (_s1Anim) { _s1Anim.cancel(); _s1Anim = null; }
if (_s1BodyAnim) { _s1BodyAnim.cancel(); _s1BodyAnim = null; }
if (_s1OriginEl) _s1OriginEl.style.visibility = ”;
const ov = document.getElementById(‘qvOverlay’);
if (ov) ov.classList.add(‘qv-s1-fading’);
if (!panel.animate) { s1FinishClose(panel); return; }
_s1Anim = panel.animate([{ opacity: 1 }, { opacity: 0 }], { duration: 250, easing: ‘ease-out’, fill: ‘forwards’ });
_s1Anim.onfinish = () => s1FinishClose(panel);
}
function s1FinishClose(panel) {
panel.classList.remove(‘open’);
const ov = document.getElementById(‘qvOverlay’);
if (ov) ov.classList.remove(‘open’, ‘qv-s1-fading’);
if (_s1Anim) { _s1Anim.cancel(); _s1Anim = null; }
if (_s1BodyAnim) { _s1BodyAnim.cancel(); _s1BodyAnim = null; }
if (_s1OriginEl) _s1OriginEl.style.visibility = ”;
_s1OriginEl = null;
_s1Closing = false;
}
/* Called from closeQuickView(); returns true when it handled the close */
function s1Close() {
const panel = document.getElementById(‘mxmQvPanel’);
if (!panel || !panel.classList.contains(‘qv-s1’) || !panel.classList.contains(‘open’)) return false;
if (_s1Closing) return true;
document.body.style.overflow = ”;
qvOpen = false;
atcState = null;
window._qvCurrentProduct = null;
const qvActionsEl = document.getElementById(‘qvActions’);
if (qvActionsEl) { qvActionsEl.style.display = ‘none’; qvActionsEl.innerHTML = ”; }
s1MorphClose(panel);
return true;
}
function s1OpenQuickView(event, productIndex, p) {
const panel = document.getElementById(‘mxmQvPanel’);
const overlay = document.getElementById(‘qvOverlay’);
if (_s1Closing) s1FinishClose(panel);
const wasOpen = panel.classList.contains(‘open’) && panel.classList.contains(‘qv-s1’);
const dp = p.on_sale && p.sale ? p.sale : p.price;
const hasDisc = p.on_sale && p.regular > p.sale && p.sale > 0;
const img = (p.images && p.images.length ? p.images[0] : p.image) || ”;
const qrUrl = qrCodeImgUrl(p.url || window.location.href, 220);
const inWl = ENABLE_WISHLIST ? wlIsIn(p.id) : false;
const descBlocks = buildQvDescSections(p);
const ico = {
qr: ‘‘,
info: ‘‘,
cam: ‘‘,
back: ‘‘,
heart:’‘
};
const miniBuy = [
ENABLE_WISHLIST ? `` : ”,
BUY_NOW.enabled ? `` : ”
].join(”);
document.getElementById(‘qvBody’).innerHTML = `
${p.name}
${img ? `` : ”}
Scan with your mobile camera or banking app to complete payment instantly.
${ico.cam} SCAN ME
${hasDisc && DISCOUNT_DISPLAY.enabled ? `₱${Number(p.regular).toLocaleString()}` : ”}
${hasDisc ? `SPECIAL PRICE` : ”}
${miniBuy ? `
` : ”}
Technical Specifications
${descBlocks.map(b => `
`).join(”)}
`;
const qvActionsEl = document.getElementById(‘qvActions’);
qvActionsEl.style.display = ‘none’;
qvActionsEl.innerHTML = ”;
_s1Tab = ‘buy’;
if (!wasOpen) {
_s1OriginEl = s1FindOrigin(event, productIndex);
panel.classList.add(‘qv-s1’, ‘open’);
overlay.classList.add(‘qv-s1-ov’, ‘open’);
document.body.style.overflow = ‘hidden’;
qvOpen = true;
s1UpdatePill();
s1MorphOpen(panel, _s1OriginEl);
} else {
qvOpen = true;
s1UpdatePill();
}
}
function openQuickView(event, productIndex) {
event.preventDefault();
event.stopPropagation();
if (!ENABLE_QUICK_VIEW) return;
const p = allProducts[productIndex];
if (!p) return;
window._qvCurrentProduct = p;
if (s1IsActive()) { s1OpenQuickView(event, productIndex, p); return; }
const titleEl = document.getElementById(‘qvPanelTitle’);
if (titleEl) titleEl.textContent = ‘Quick View’;
const dp = p.on_sale && p.sale ? p.sale : p.price;
const hasDisc = p.on_sale && p.regular > p.sale && p.sale > 0;
const pct = hasDisc ? Math.round((1 – p.sale / p.regular) * 100) : 0;
const badgeHTML = (() => {
if (p.on_sale && badgeVisibleInCat(CARD_BADGES.sale)) {
const s = CARD_BADGES.sale;
const inner = s.iconUrl ? `` : s.text;
return `${inner}`;
}
if (p.is_new && newArrivalVisibleInCat(CARD_BADGES.newArrival)) {
const s = CARD_BADGES.newArrival;
const inner = s.iconUrl ? `` : s.text;
return `${inner}`;
}
return ”;
})();
const installment = installmentHTML(dp, ‘qv’);
/* Build description block(s) from admin-configured QV_DESC_SOURCES
(Product Description / Highlights / Product Short Description, combined in chosen order) */
const qvDescBlocks = buildQvDescSections(p);
const descHTML = qvDescBlocks.length
? `
${qvDescBlocks.map(b => `
`).join(”)}`
: ”;
document.getElementById(‘qvBody’).innerHTML = `
${renderQvGallery(p)}
` : ”}
${p.brand ? `
` : ”}
₱${Number(dp).toLocaleString()}
${hasDisc ? discountBadgeHTML(p.sale, p.regular, ‘qv-price-off’) : ”}
${hasDisc ? campaignCountdownHTML(p.saleEndsAt, ‘campaign-countdown qv-campaign-countdown’) : ”}
${mxmFreebiesLineHTML(p)}
${installment}
${(installment && INSTALLMENT_CONFIG.quickPanelEnabled !== false) ? `` : ”}
${paymentOptionsHTML()}
${descHTML}
`;
const qvActionsEl = document.getElementById(‘qvActions’);
qvActionsEl.style.display = ‘flex’;
const _qvInWl = wlIsIn(p.id);
/* ── Buy Now control — opens the same variant/PPOM selection panel as
Add to Cart; the final CTA there posts to cart then goes to checkout ── */
const buyNowHTML = (() => {
if (!BUY_NOW.enabled) return ”;
return ``;
})();
/* Buy Now / Details rendered as gemini-code style flex buttons (no fixed grid
column so they share remaining width evenly) */
const buyNowGemHTML = (() => {
if (!BUY_NOW.enabled) return ”;
return ``;
})();
qvActionsEl.innerHTML = `
${ENABLE_WISHLIST ? `` : ``}
${buyNowGemHTML}
`;
document.getElementById(‘qvOverlay’).classList.add(‘open’);
document.getElementById(‘mxmQvPanel’).classList.add(‘open’);
document.body.style.overflow = ‘hidden’;
qvOpen = true;
}
function closeQuickView() {
if (s1IsActive() && s1Close()) return;
document.getElementById(‘qvOverlay’).classList.remove(‘open’);
document.getElementById(‘mxmQvPanel’).classList.remove(‘open’);
document.body.style.overflow = ”;
qvOpen = false;
atcState = null;
window._qvCurrentProduct = null;
const qvActionsEl = document.getElementById(‘qvActions’);
if (qvActionsEl) { qvActionsEl.style.display = ‘none’; qvActionsEl.innerHTML = ”; }
}
/* ══════════════════════════════════════
MODAL HIGHLIGHT — “View Full Details”
Opens on top of Quick View and shows the product’s raw
Short Description HTML (WooCommerce → Product data →
Short description → Code view) instead of redirecting
to the product page.
══════════════════════════════════════ */
let mhOpen = false;
/* Reflows a “plain” Short Description (a flat sequence of , ,
,
- etc. — the normal WooCommerce short-description shape, e.g.
Huawei/most brands) into alternating 2-column image+text tiles instead
of the default stacked (image-above-text) layout.
Deliberately backs off and returns the HTML untouched when it detects a
raw embed instead (an iframe custom page like OPPO’s, a script embed
like Samsung’s Flixmedia loader, or existing table/grid markup) — those
are self-contained and shouldn’t be chopped into tiles. */
function buildTiledDescriptionHTML(rawHtml) {
const tmp = document.createElement(‘div’);
tmp.innerHTML = rawHtml;
const isRawEmbed = tmp.querySelector(‘iframe, script, table, .parent-container’);
const children = […tmp.children];
if (isRawEmbed || children.length === 0) return rawHtml;
const tiles = [];
let current = null;
children.forEach(el => {
const onlyImg = el.tagName === ‘IMG’
|| (el.children.length === 1 && el.children[0].tagName === ‘IMG’ && !el.textContent.trim());
if (onlyImg) {
current = { imgHTML: el.outerHTML, textHTML: ” };
tiles.push(current);
} else if (current) {
current.textHTML += el.outerHTML;
} else {
current = { imgHTML: ”, textHTML: el.outerHTML };
tiles.push(current);
}
});
// Nothing came through as an image tile — this isn’t the img+text
// pattern we’re targeting, leave it as normal flowing content.
if (!tiles.some(t => t.imgHTML)) return rawHtml;
return `
` : ”}
${t.textHTML ? `
` : ”}
`).join(”)}
`;
}
/* innerHTML never executes script tags (browser security), so any raw
Short Description that embeds a third-party rich-content loader — e.g.
Samsung’s Flixmedia script tag — would silently do nothing if set via
bodyEl.innerHTML directly. This re-creates every script tag found
inside via document.createElement so it actually runs, same attributes
and inline content intact. Safe to call every time the modal opens
(old scripts are removed first via mhBody’s innerHTML reset in
closeModalHighlight). */
function setModalHighlightHTML(bodyEl, html) {
bodyEl.innerHTML = html
? `
`
: `
`;
bodyEl.querySelectorAll(‘script’).forEach(oldScript => {
const newScript = document.createElement(‘script’);
[…oldScript.attributes].forEach(attr => newScript.setAttribute(attr.name, attr.value));
newScript.text = oldScript.textContent;
oldScript.replaceWith(newScript);
});
}
function openModalHighlight(productIndex) {
const p = allProducts[productIndex];
if (!p) return;
const brandEl = document.getElementById(‘mhBrand’);
const titleEl = document.getElementById(‘mhTitle’);
const bodyEl = document.getElementById(‘mhBody’);
if (brandEl) brandEl.textContent = p.brand || ”;
if (titleEl) titleEl.textContent = p.name || ”;
if (bodyEl) setModalHighlightHTML(bodyEl, p.shortDesc);
const footerEl = document.getElementById(‘mhFooter’);
if (footerEl) {
const _mhInWl = wlIsIn(p.id);
const mhBuyNowHTML = (() => {
if (!BUY_NOW.enabled) return ”;
return ``;
})();
footerEl.innerHTML = `
${ENABLE_WISHLIST ? `` : ``}
${mhBuyNowHTML}
`;
}
const overlayEl = document.getElementById(‘mhOverlay’);
// Renders above the Quick View panel — and above anything else on the
// page (sticky headers, chat widgets, cookie banners, etc.) — using a
// separate admin-configurable z-index per device (desktop/tablet/mobile),
// recomputed at open time so resizing/rotating between opens picks up
// the right value.
overlayEl.style.zIndex = String(currentMhZIndex());
overlayEl.classList.add(‘open’);
document.body.style.overflow = ‘hidden’;
mhOpen = true;
}
function closeModalHighlight() {
document.getElementById(‘mhOverlay’).classList.remove(‘open’);
document.getElementById(‘mhBody’).innerHTML = ”;
mhOpen = false;
document.body.style.overflow = qvOpen ? ‘hidden’ : ”;
}
/* ══════════════════════════════════════
ADD TO CART PANEL
══════════════════════════════════════ */
let atcState = null; // { product, variations, selected: {attrName: value}, qty }
async function openAddToCart(productIndex) {
const p = allProducts[productIndex];
if (!p) return;
atcState = {
product: p,
productIndex,
variations: [],
selected: {},
qty: 1,
activeVariation: null,
variationLoadError: null,
mode: ‘cart’,
};
renderAddToCart(true); // show loading
if (p.type === ‘variable’) {
await loadVariations();
}
renderAddToCart(false);
}
/* Buy Now — reuses the exact same variant/PPOM/quantity selection panel as
Add to Cart. Only the final step differs: instead of staying on this panel
with an “Added to Cart” QR code, submitBuyNow() sends the browser straight
to the checkout page once the item is in the cart (see renderAddToCart’s
mode-aware CTA button and submitBuyNow() below). */
async function openBuyNowPanel(productIndex) {
const p = allProducts[productIndex];
if (!p) return;
atcState = {
product: p,
productIndex,
variations: [],
selected: {},
qty: 1,
activeVariation: null,
variationLoadError: null,
mode: ‘buyNow’,
};
renderAddToCart(true); // show loading
if (p.type === ‘variable’) {
await loadVariations();
}
renderAddToCart(false);
}
/* Loads variations for the current atcState.product, with one automatic
retry on failure. Logs the real error to the console (Retry button in
the panel calls this again) instead of only showing a generic message. */
async function loadVariations(isRetry) {
const p = atcState.product;
try {
const { data } = await apiGet(`/products/${p.id}/variations?per_page=100`);
atcState.variations = data || [];
atcState.variationLoadError = null;
/* Pre-select first available variation’s attributes */
const firstAvail = atcState.variations.find(v => v.purchasable !== false && v.stock_status !== ‘outofstock’)
|| atcState.variations[0];
if (firstAvail) {
(firstAvail.attributes || []).forEach(a => {
atcState.selected[normalizeAttrName(a.name)] = a.option;
});
atcState.activeVariation = firstAvail;
}
} catch (e) {
console.error(‘[MXM] Failed to load product variations for #’ + p.id + (isRetry ? ‘ (retry)’ : ”) + ‘:’, e);
if (!isRetry) {
await new Promise(r => setTimeout(r, 500));
return loadVariations(true);
}
atcState.variations = [];
atcState.variationLoadError = e.message || ‘Unknown error’;
}
}
/* Called from the “Retry” link when variation loading failed */
async function retryLoadVariations() {
renderAddToCart(true);
await loadVariations();
renderAddToCart(false);
}
function normalizeAttrName(name) {
return (name || ”).replace(/^pa_/i, ”).trim().toLowerCase();
}
/* HTML-escape helper */
function esc(s) {
return String(s == null ? ” : s).replace(/&/g,’&’).replace(/”/g,’"’).replace(//g,’>’);
}
/* Find variation matching current selections */
function findMatchingVariation() {
if (!atcState.variations.length) return null;
return atcState.variations.find(v => {
return (v.attributes || []).every(a => {
const norm = normalizeAttrName(a.name);
const sel = atcState.selected[norm];
return !sel || a.option === sel || a.option === ” /* “Any” */;
});
}) || null;
}
/* Detect color-like attribute */
function isColorAttr(name) {
const n = normalizeAttrName(name);
return n.includes(‘color’) || n.includes(‘colour’);
}
function renderAddToCart(loading) {
const p = atcState.product;
if (loading) {
document.getElementById(‘qvBody’).innerHTML = `
`;
return;
}
const variation = atcState.activeVariation || findMatchingVariation();
atcState.activeVariation = variation;
/* ── Price (variation-aware) ── */
let displayPrice = p.on_sale && p.sale ? p.sale : p.price;
let displayRegular = p.regular;
let hasDisc = p.on_sale && p.regular > p.sale && p.sale > 0;
if (variation) {
const vPrice = parseFloat(variation.price) || 0;
const vRegular = parseFloat(variation.regular_price) || 0;
const vSale = parseFloat(variation.sale_price) || 0;
displayPrice = vPrice;
displayRegular = vRegular || vPrice;
hasDisc = variation.on_sale && vRegular > vSale && vSale > 0;
}
const pct = hasDisc ? Math.round((1 – (displayPrice / displayRegular)) * 100) : 0;
/* ── SKU ── */
const sku = variation?.sku || p.sku || ”;
/* ── Image (variation image overrides product image) ── */
const img = variation?.image?.src || p.image;
/* ── Stock ── */
const stockStatus = variation ? variation.stock_status : p.stockStatus;
const stockHTML = stockStatus === ‘outofstock’
? `Out of Stock`
: `In Stock`;
/* ── Build attribute groups from product.attributes (variation attribute options) ── */
const attrGroups = (p.attributes || []).filter(a => a.variation);
let attrHTML = ”;
attrGroups.forEach(attr => {
const norm = normalizeAttrName(attr.name);
const options = attr.options || [];
const currentVal = atcState.selected[norm] || ”;
if (isColorAttr(attr.name)) {
/* Color swatches */
attrHTML += `
const isActive = currentVal === opt;
/* Try to find variation with this color to get its image as swatch background */
const matchVar = atcState.variations.find(v =>
(v.attributes||[]).some(a => normalizeAttrName(a.name)===norm && a.option===opt));
const swatchImg = matchVar?.image?.src || ”;
const bgStyle = swatchImg
? `background-image:url(‘${swatchImg}’)`
: `background-color:${colorNameToHex(opt)}`;
return `
`;
}).join(”)}
`;
} else {
/* Generic pills (Storage, Size, etc) */
attrHTML += `
const isActive = currentVal === opt;
return ``;
}).join(”)}
`;
}
});
/* ── PPOM / Product Add-Ons (best-effort from meta_data) ── */
const ppomHTML = renderPPOMFields(p, variation);
/* ── Quantity ── */
const qtyHTML = `
${stockHTML}
`;
const priceHTML = `
₱${Number(displayPrice).toLocaleString()}
${hasDisc ? discountBadgeHTML(displayPrice, displayRegular, ‘qv-price-off’) : ”}
`;
document.getElementById(‘qvBody’).innerHTML = `
? `
: `
`}
${mxmFreebiesGlassHTML(p, ‘qv’)}
` : ”}
${sku ? `
` : ”}
${mxmFreebiesLineHTML(p)}
${p.type === ‘variable’ && !atcState.variations.length
? `
Retry
`
: ”}
${attrHTML}
${ppomHTML}
${qtyHTML}
`;
const qvActionsEl = document.getElementById(‘qvActions’);
qvActionsEl.style.display = ‘flex’;
const isBuyNow = atcState.mode === ‘buyNow’;
const ctaLabel = isBuyNow ? qvBtnLabel(‘buyNow’,’Buy Now’) : qvBtnLabel(‘addToCart’,’Add to Cart’);
const ctaHandler = isBuyNow ? ‘submitBuyNow()’ : ‘submitAddToCart()’;
const ctaStyleKey = isBuyNow ? ‘buyNow’ : ‘addToCart’;
qvActionsEl.innerHTML = ``;
const titleEl = document.getElementById(‘qvPanelTitle’);
if (titleEl) titleEl.textContent = isBuyNow ? ‘Buy Now’ : ‘Add to Cart’;
/* Insert back button above image */
const body = document.getElementById(‘qvBody’);
const backBtn = document.createElement(‘button’);
backBtn.className = ‘atc-back’;
backBtn.innerHTML = ‘← Back to Quick View’;
backBtn.onclick = () => backToQuickView();
body.insertBefore(backBtn, body.firstChild);
/* Sync price + button total in case any PPOM field defaults to a priced option */
updatePPOMTotal();
}
function backToQuickView() {
const titleEl = document.getElementById(‘qvPanelTitle’);
if (titleEl) titleEl.textContent = ‘Quick View’;
openQuickView({ preventDefault(){}, stopPropagation(){} }, atcState.productIndex);
}
/* ── Attribute selection ── */
function selectAttr(attrNorm, value) {
atcState.selected[attrNorm] = value;
atcState.activeVariation = findMatchingVariation();
renderAddToCart(false);
}
/* ── Quantity controls ── */
function changeQty(delta) {
atcState.qty = Math.max(1, atcState.qty + delta);
updateQtyDisplay();
}
function setQty(val) {
atcState.qty = Math.max(1, parseInt(val) || 1);
updateQtyDisplay();
}
function updateQtyDisplay() {
const qtyEl = document.getElementById(‘atcQty’);
if (qtyEl) qtyEl.value = atcState.qty;
const variation = atcState.activeVariation;
const p = atcState.product;
const displayPrice = variation ? (parseFloat(variation.price)||0) : (p.on_sale && p.sale ? p.sale : p.price);
const total = displayPrice + getPPOMAddonsTotal(displayPrice);
const label = atcState.mode === ‘buyNow’ ? qvBtnLabel(‘buyNow’,’Buy Now’) : qvBtnLabel(‘addToCart’,’Add to Cart’);
const btn = document.querySelector(‘.qv-actions .qv-btn-buy’);
if (btn) btn.textContent = `${label} — ₱${Math.round(total * atcState.qty).toLocaleString()}`;
}
/* ── Basic color name → hex map for swatches without variation images ── */
function colorNameToHex(name) {
const map = {
black:’#1a1a1a’, white:’#f5f5f5′, silver:’#c0c0c0′, gold:’#d4af37′,
blue:’#2563eb’, red:’#dc2626′, green:’#16a34a’, purple:’#9333ea’,
pink:’#ec4899′, gray:’#6b7280′, grey:’#6b7280′, yellow:’#eab308′,
orange:’#f97316′, brown:’#92400e’, titanium:’#8a8d8f’, graphite:’#3a3a3c’,
midnight:’#1d1d2b’, starlight:’#f0e6d8′, cream:’#fdf6e3′, navy:’#1e3a5f’,
‘rose gold’:’#f0c4b4′, ‘space gray’:’#4a4a4a’, ‘space grey’:’#4a4a4a’,
lavender:’#c4b5fd’, mint:’#a7f3d0′, coral:’#fb7185′, teal:’#0d9488′,
};
const key = (name||”).toLowerCase().trim();
if (map[key]) return map[key];
/* Try partial match */
for (const k in map) if (key.includes(k)) return map[k];
return ‘#d1d5db’; // fallback gray
}
/* ══════════════════════════════════════
PPOM / PRODUCT ADD-ONS
Reads product meta_data “_product_meta_id” → [groupId], looks up the
group in PPOM_GROUPS (mirrored from wp_nm_personalized), and renders
only the fields whose status is “on” (matches PPOM admin toggle).
Price per option can be flat (“399”) or a percentage of base price (“9%”).
Currently supports “select” type fields — extend here if a group later
uses radio/checkbox/text types.
══════════════════════════════════════ */
function getPPOMGroupForProduct(p) {
const meta = p.meta_data || [];
const idMeta = meta.find(m => m.key === ‘_product_meta_id’);
if (!idMeta || idMeta.value === undefined || idMeta.value === null || idMeta.value === ”) return null;
const groupId = Array.isArray(idMeta.value) ? idMeta.value[0] : idMeta.value;
return PPOM_GROUPS[groupId] || null;
}
function ppomPriceLabel(price) {
if (!price) return ”;
const s = String(price).trim();
// Percent-based add-on prices (e.g. MXURE Device Protection at “9%”/”10%”)
// show no price suffix in the option text — the raw percent is meaningless
// to a shopper without seeing it multiplied against the base price, and
// the running total below the dropdown already reflects the real cost
// the moment they pick it. Flat ₱ prices are unambiguous, so they still
// show normally.
if (s.endsWith(‘%’)) return ”;
const n = parseFloat(s);
return isNaN(n) || n === 0 ? ” : ` (+₱${n.toLocaleString()})`;
}
function renderPPOMFields(p, variation) {
const group = getPPOMGroupForProduct(p);
if (!group) return ”;
const fieldKeys = Object.keys(group).sort((a, b) => Number(a) – Number(b));
let html = ”;
let hasActive = false;
fieldKeys.forEach(key => {
const f = group[key];
if (!f || f.status !== ‘on’) return; // skip disabled fields
const required = f.required === ‘on’;
if (f.type === ‘select’ && Array.isArray(f.options)) {
hasActive = true;
html += `
${f.options.map(o => {
const isSelected = o.option === (f.selected || ”);
return `${esc(o.option)}${ppomPriceLabel(o.price)}`;
}).join(”)}
`;
} else if (f.type === ‘text’) {
hasActive = true;
html += `
`;
}
/* Other PPOM field types (radio, checkbox, textarea, etc.) aren’t in
use across the current groups — extend here if a new group needs one. */
});
if (!hasActive) return ”;
return `
${html}`;
}
/* Sum currently-selected PPOM option prices. Percent-based options are
computed against basePrice (the product/variation price before add-ons). */
function getPPOMAddonsTotal(basePrice) {
let total = 0;
document.querySelectorAll(‘[data-ppom-field]’).forEach(el => {
const priceRaw = (el.selectedOptions && el.selectedOptions[0] && el.selectedOptions[0].dataset.price) || ”;
if (!priceRaw) return;
if (priceRaw.trim().endsWith(‘%’)) {
total += basePrice * (parseFloat(priceRaw) / 100 || 0);
} else {
total += parseFloat(priceRaw) || 0;
}
});
return total;
}
/* Re-render displayed price + Add to Cart button total whenever a PPOM
select changes (called via onchange on each rendered ). */
function updatePPOMTotal() {
if (!atcState || !atcState.product) return;
const p = atcState.product;
const variation = atcState.activeVariation;
const basePrice = variation ? (parseFloat(variation.price) || 0) : (p.on_sale && p.sale ? p.sale : p.price);
const total = basePrice + getPPOMAddonsTotal(basePrice);
const priceEl = document.getElementById(‘atcPrice’);
if (priceEl) priceEl.textContent = `₱${Math.round(total).toLocaleString()}`;
const label = atcState.mode === ‘buyNow’ ? qvBtnLabel(‘buyNow’,’Buy Now’) : qvBtnLabel(‘addToCart’,’Add to Cart’);
const btn = document.querySelector(‘.qv-actions .qv-btn-buy’);
if (btn) btn.textContent = `${label} — ₱${Math.round(total * atcState.qty).toLocaleString()}`;
}
/* ══════════════════════════════════════
SUBMIT — Add to Cart
Posts the item (and PPOM/variation fields) to the product page in the
background (keeps the shopper on this panel instead of navigating away),
which adds it to the WooCommerce session cart. Once added, the panel
switches to a checkout step: a QR code (pointing at the
Your cart is currently empty.
direct-checkout page) to scan on a phone, plus a “Continue to Checkout”
button to go straight there on this device.
══════════════════════════════════════ */
async function submitAddToCart() {
const p = atcState.product;
const variation = atcState.activeVariation;
if (p.type === ‘variable’ && !variation) {
showToastQV(‘Please select all options first’, ‘error’);
return;
}
if ((variation?.stock_status || p.stockStatus) === ‘outofstock’) {
showToastQV(‘This item is currently out of stock’, ‘error’);
return;
}
/* Validate required PPOM fields before proceeding */
const missingRequired = Array.from(document.querySelectorAll(‘[data-ppom-field][required]’))
.some(el => !el.value);
if (missingRequired) {
showToastQV(‘Please complete all required options’, ‘error’);
return;
}
/* PPOM’s server-side handler reads $_POST specifically for its fields,
so the request must be a real POST with these field names. */
const fields = { ‘add-to-cart’: p.id, ‘quantity’: atcState.qty };
{ const _fb = mxmFbParamFor([p]); if (_fb) fields[‘mxm_fb’] = _fb; } // MXM Freebies → checkout name
if (variation) {
fields[‘variation_id’] = variation.id;
(variation.attributes || []).forEach(a => {
const key = ‘attribute_’ + (a.name.startsWith(‘pa_’) ? a.name.toLowerCase() : ‘pa_’ + normalizeAttrName(a.name));
fields[key] = a.option;
});
}
/* PPOM’s server-side handler expects $_POST[‘ppom’][‘fields’][data_name] */
document.querySelectorAll(‘[data-ppom-field]’).forEach(el => {
if (!el.value) return;
fields[`ppom[fields][${el.dataset.ppomField}]`] = el.value;
});
const btn = document.querySelector(‘.qv-actions .qv-btn-buy’);
const btnOrigText = btn ? btn.textContent : ”;
if (btn) { btn.disabled = true; btn.textContent = ‘Adding to Cart…’; }
try {
await postAddToCartViaHiddenForm(p.url, fields);
if (btn) { btn.disabled = false; btn.textContent = btnOrigText; }
// Header cart badge lives in mx-header-frontend.html and reads the same
// WooCommerce session cart via the Store API. The item is already in
// that session (form just posted to it) — just tell the header to
// re-pull it so the badge count updates without a page reload.
if (typeof mxSyncCartFromWoo === ‘function’) mxSyncCartFromWoo();
openCheckoutQrModal(p);
} catch (err) {
console.error(‘MXM Add to Cart failed:’, err);
showToastQV(‘Could not add to cart — please try again’, ‘error’);
if (btn) { btn.disabled = false; btn.textContent = btnOrigText; }
}
}
/* ══════════════════════════════════════
SUBMIT — Buy Now
Identical validation + cart POST as Add to Cart (same variation, quantity,
and PPOM add-on fields) — but skips the “Added to Cart” QR step entirely.
Once the item is confirmed in the WooCommerce session cart, the browser
is sent straight to the checkout page.
══════════════════════════════════════ */
async function submitBuyNow() {
const p = atcState.product;
const variation = atcState.activeVariation;
if (p.type === ‘variable’ && !variation) {
showToastQV(‘Please select all options first’, ‘error’);
return;
}
if ((variation?.stock_status || p.stockStatus) === ‘outofstock’) {
showToastQV(‘This item is currently out of stock’, ‘error’);
return;
}
const missingRequired = Array.from(document.querySelectorAll(‘[data-ppom-field][required]’))
.some(el => !el.value);
if (missingRequired) {
showToastQV(‘Please complete all required options’, ‘error’);
return;
}
const fields = { ‘add-to-cart’: p.id, ‘quantity’: atcState.qty };
{ const _fb = mxmFbParamFor([p]); if (_fb) fields[‘mxm_fb’] = _fb; } // MXM Freebies → checkout name
if (variation) {
fields[‘variation_id’] = variation.id;
(variation.attributes || []).forEach(a => {
const key = ‘attribute_’ + (a.name.startsWith(‘pa_’) ? a.name.toLowerCase() : ‘pa_’ + normalizeAttrName(a.name));
fields[key] = a.option;
});
}
document.querySelectorAll(‘[data-ppom-field]’).forEach(el => {
if (!el.value) return;
fields[`ppom[fields][${el.dataset.ppomField}]`] = el.value;
});
const btn = document.querySelector(‘.qv-actions .qv-btn-buy’);
const btnOrigText = btn ? btn.textContent : ”;
if (btn) { btn.disabled = true; btn.textContent = ‘Redirecting to Checkout…’; }
try {
await postAddToCartViaHiddenForm(p.url, fields);
// Same session-cart sync as Add to Cart, so the header badge is correct
// if the shopper lands back on the shop later (e.g. via browser back).
if (typeof mxSyncCartFromWoo === ‘function’) mxSyncCartFromWoo();
window.location.href = BUY_NOW_CHECKOUT_URL;
} catch (err) {
console.error(‘MXM Buy Now failed:’, err);
showToastQV(‘Could not proceed to checkout — please try again’, ‘error’);
if (btn) { btn.disabled = false; btn.textContent = btnOrigText; }
}
}
/* Posts to the product page the same way a normal
Showing 1–9 of 932 results
-

Acer Aspire Lite 15 (Acer Cons NB AL15-49P-R7G1)
₱60,999.00 -

ACER EAK040 BK Wired Combo Keyboard and Mouse – Black
₱599.00 -

ACER EMR213 BK Wireless Mouse – Black
₱399.00 -

ACER NITRO OMR246 WT Tri-Mode Gaming Mouse – White
₱599.00 -

ACER NITRO OMW314 BK Wired Mouse – Black
₱599.00 -

ACER OCC307 BK Wired Combo Keyboard and Mouse – Black
₱599.00 -

ACER OCC310 BK Wireless Combo Keyboard and Mouse – Black
₱899.00 -

ACER OMR267 BK Wireless Mouse – Black
₱299.00 -

ACER OMR268 2.4G+Bluetooth Wireless Mouse
₱399.00
