${(function(){ const get_random_six_digits = () => { return Math.random().toString().slice(-6) }; const wholesale_enabled = false; const setting_product_image_display = "100%"; const product_image = data.image; const secondary_image = data.secondImage; const image_width = product_image.width; let image_height = product_image.height; if(setting_product_image_display == '100%'){ image_height = image_width }else if(setting_product_image_display == '133.33%'){ image_height = image_width * 1.3333; }; const product_image_hover_on = true && !!secondary_image.src; const has_save_label = true && ((+data.compare_at_price) > (+data.price)); const is_single_variant = data.variants.length == 1; const min_price_variant_href = (data.min_price_variant && data.min_price_variant.available) ? data.min_price_variant.withinUrl : data.withinUrl; const retail_price_max = data.retail_price_max || data.compare_at_price_max; const THUMBNAILS_MAX_SIZE = 3; const thumbnails = data.thumbVariants.slice(0, THUMBNAILS_MAX_SIZE); const image_wrap_id = 'image_wrap_' + get_random_six_digits(); const image_carousel_id = 'image_carousel_' + get_random_six_digits(); const thumbnails_selector_id = 'thumbnails_selector_' + get_random_six_digits(); const form_id = 'form_' + get_random_six_digits(); return `
${ data.available ? `${ (+data.compare_at_price > +data.price) ? `Lưu
` : '' }` : "B\u00e1n h\u1ebft" }
${data.title}
${ data.price_min != data.price_max ? `Từ
` : `
` }
+${data.remainInvisibleThumbCount}
` })()}
Đăng nhập
Tạo một tài khoản
Trang chủ
Tất cả sản phẩm
Hàng Mới Về
Thêm liên kết
${(function(){ const formatLinks = (links) => { return links.map(link => { link.tag = tags[link.title.toUpperCase()] || {}; link.target_attr = link.target == '_blank' ? 'target="_blank"' : ''; link.href_attr = link.url ? `href="${link.url}"` : ''; if(link.children && link.children.length){ link.children = formatLinks(link.children); } return link; }) }; const tags = "{}"; let linkList = [ { id: 76479917, title: "Trang ch\u1ee7", url: "\/", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 76479919, title: "T\u1ea5t c\u1ea3 s\u1ea3n ph\u1ea9m", url: "\/collections\/t\u1ea5t-c\u1ea3-s\u1ea3n-ph\u1ea9m", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 76479921, title: "H\u00e0ng M\u1edbi V\u1ec1", url: "\/collections\/hang-m\u1edbi-v\u1ec1", target: "", levels: 0, product0: null || {}, children: [ ] }, ].slice(offset); linkList = formatLinks(linkList); const hasChild = linkList.some(link => !!(link.children && link.children.length || link.product0.id)); return `
${link.title}
${link.tag.label}
${second_link.title}
${second_link.tag.label}
${third_links.title}
${third_links.tag.label}
${link.title}
${link.tag.label}
` })()}
Đăng nhập
Tạo một tài khoản
Trang chủ
Tất cả sản phẩm
Hàng Mới Về
${(function(){ if (data === undefined || typeof data !== 'string' || data == '') return '
'; const keyword = encodeURIComponent(data); return `
Xem thêm
Tìm kiếm của bạn về ' ${data} ' không mang lại kết quả nào.
` })()}
(function(){ let w = window.innerWidth; function setHeaderCssVar() { const headerEle = document.getElementById('shoplaza-section-header'); if(!headerEle){ return }; document.body.style.setProperty('--window-height', `${window.innerHeight}px`); document.body.style.setProperty('--header-height', `${headerEle.clientHeight}px`); const mdScorllHideEle = headerEle.querySelector('.header__mobile .header__scroll_hide'); if (mdScorllHideEle) { document.body.style.setProperty('--header-scroll-hide-height-md', `${mdScorllHideEle.clientHeight}px`); } const pcScorllHideEle = headerEle.querySelector('.header__desktop .header__scroll_hide'); if (pcScorllHideEle) { document.body.style.setProperty('--header-scroll-hide-height-pc', `${pcScorllHideEle.clientHeight}px`); } } function handlResize() { if(w == window.innerWidth){return}; w = window.innerWidth; setHeaderCssVar(); }; function init(){ setHeaderCssVar(); window.removeEventListener('resize', window._theme_header_listener) window._theme_header_listener = handlResize; window.addEventListener('resize', window._theme_header_listener); } init(); })();
Đăng nhập
Vui lòng nhập email và mật khẩu của bạn:
${data.errors && data.errors[0]}
E-mail
Email là bắt buộc
Vui lòng nhập email hợp lệ.
Mật khẩu
Cần phải nhập mật khẩu.
Mật khẩu phải dài từ 6-16 ký tự.
Quên mật khẩu?
Quên mật khẩu?
Đăng nhập
${ Object.keys((data && data.login_setting) || {}) .map(type => `
`) .join("") }
Đăng nhập để được giảm giá nhiều hơn
${function () { const renderData = data.data; const position_bottom = renderData.height; const model_style = renderData.subwindow_style == "model1" ? "model-type-icon" : "model-type-icon-with-text"; const filterSubwindow = renderData.subwindow.filter(item => renderData.subwindow_style == "model1" && item.image || (renderData.subwindow_style == "model2" && (item.image || item.title)) ); const initFoldStyle = renderData.hover_display === 'foldable' && 'fold'; const initShowStyle = renderData.hover_mode != 'permanent' && 'app-floating-hidden'; const is_model_style_follow_theme = renderData.template_style == "follow_theme" && renderData.subwindow_style == "model2"; const is_model_style_custom = renderData.template_style == "custom" && renderData.subwindow_style == "model2" let isShowApp = false; let isCustomPage = false; const current_page_url = 'https://www.toysvn.com/account/login'; const current_page_type = 'login'; if(renderData.effective_pages.type === 'specify' && renderData.effective_pages.specify_page.includes('custom') && renderData.effective_pages.custom_page.length > 0) { renderData.effective_pages.custom_page.forEach(item => { const custom_url = item?.split('?')[0]; if(current_page_url === decodeURI(custom_url)) { isCustomPage = true; return; } }) } if(renderData.effective_pages.type === 'all' || (renderData.effective_pages.type === 'specify' && renderData.effective_pages.specify_page.includes(current_page_type)) || isCustomPage) { isShowApp = true; } if(isShowApp && filterSubwindow.length > 0) { return `
${function() { if(renderData.hover_mode === "scroll") { return `
` } else if (renderData.hover_mode === "threshold_scroll") { return `
` } else { return `` } }()}
${function() { const [firstIem, ...restItems] = filterSubwindow const item = firstIem; return `${firstIem ? `
${item.title}
`: ''} ${restItems.length > 0 ? `
${restItems.map(item => `
${item.title}
`).join('') }
`: '' }` }()}
` } else { return `` } }()}