$product = {"id":7416336187491,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Batman - 超級惡棍和蝙蝠俠Logo貼紙款","handle":"iphone-8-mod-nx-printable-sb10","description":null,"published_at":"2024-06-11T16:56:14+08:00","created_at":"2024-05-06T14:36:58+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 8","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-batman","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":41918627086435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31491875176547,"product_id":7416336187491,"position":4,"created_at":"2024-05-06T14:37:08+08:00","updated_at":"2024-05-06T14:37:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13778297a229146dc47bde86f3a6d928ae5b8d68_a539f62f-f195-4f48-a5ad-a5842f291c55.webp?v=1714977428","variant_ids":[41918627086435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Batman - 超級惡棍和蝙蝠俠Logo貼紙款 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-SB10","featured_media":{"alt":null,"id":23897288015971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13778297a229146dc47bde86f3a6d928ae5b8d68_a539f62f-f195-4f48-a5ad-a5842f291c55.webp?v=1714977428"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8648b5f574667cabb9af8f9b24e1e9a5a4056a59_331c6947-a604-41fa-8405-e0a597530f2a.webp?v=1714977420","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37fe9fb69c0627b180d5bffc5758725469c853ab_f972f506-23a6-4702-86cd-3e463ba16b87.webp?v=1714977423","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe89646b9762ba79eb22911fa59093da5875f92e_92adbd5d-528d-49f1-aa66-6538e222ec12.webp?v=1714977425","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13778297a229146dc47bde86f3a6d928ae5b8d68_a539f62f-f195-4f48-a5ad-a5842f291c55.webp?v=1714977428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ab859b7017ed836b72578d9ee0a0424e9b300e0_392ce7de-eee8-49ee-8eed-80fd5fc6150c.webp?v=1714977430","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e683bf397e015d587d3c7ab8d27b42dcc0a9b53_4b2a19c6-1ead-4a29-83c1-5a1e509bdc19.webp?v=1714977433","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7aaeb04e37dd6d9a8494af9fc80938b4179e223c_643dfddb-d1c0-4900-b715-e2487dd85dbd.webp?v=1714977435","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02fe56234d7c2d3882af3d35e81b54e7353d43d7_1914e6b2-d3c8-4041-8979-c485873b19a2.webp?v=1714977437","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18abedf9210ff4fe305b1af80e5c4664301d661b_1a4edc4d-f2af-4bc4-bd76-fc9ae8331c64.webp?v=1714977440","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdaddd18dc108caf75d4608bde9cf75e786c1a9_558dbee1-ed36-4f4f-be36-0d0e7903c829.webp?v=1714977442"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8648b5f574667cabb9af8f9b24e1e9a5a4056a59_331c6947-a604-41fa-8405-e0a597530f2a.webp?v=1714977420","options":["color"],"media":[{"alt":null,"id":23897286213731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8648b5f574667cabb9af8f9b24e1e9a5a4056a59_331c6947-a604-41fa-8405-e0a597530f2a.webp?v=1714977420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8648b5f574667cabb9af8f9b24e1e9a5a4056a59_331c6947-a604-41fa-8405-e0a597530f2a.webp?v=1714977420","width":2000},{"alt":null,"id":23897287000163,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37fe9fb69c0627b180d5bffc5758725469c853ab_f972f506-23a6-4702-86cd-3e463ba16b87.webp?v=1714977423"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37fe9fb69c0627b180d5bffc5758725469c853ab_f972f506-23a6-4702-86cd-3e463ba16b87.webp?v=1714977423","width":2000},{"alt":null,"id":23897287557219,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe89646b9762ba79eb22911fa59093da5875f92e_92adbd5d-528d-49f1-aa66-6538e222ec12.webp?v=1714977425"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe89646b9762ba79eb22911fa59093da5875f92e_92adbd5d-528d-49f1-aa66-6538e222ec12.webp?v=1714977425","width":2000},{"alt":null,"id":23897288015971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13778297a229146dc47bde86f3a6d928ae5b8d68_a539f62f-f195-4f48-a5ad-a5842f291c55.webp?v=1714977428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13778297a229146dc47bde86f3a6d928ae5b8d68_a539f62f-f195-4f48-a5ad-a5842f291c55.webp?v=1714977428","width":2000},{"alt":null,"id":23897288507491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ab859b7017ed836b72578d9ee0a0424e9b300e0_392ce7de-eee8-49ee-8eed-80fd5fc6150c.webp?v=1714977430"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ab859b7017ed836b72578d9ee0a0424e9b300e0_392ce7de-eee8-49ee-8eed-80fd5fc6150c.webp?v=1714977430","width":2000},{"alt":null,"id":23897289031779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e683bf397e015d587d3c7ab8d27b42dcc0a9b53_4b2a19c6-1ead-4a29-83c1-5a1e509bdc19.webp?v=1714977433"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e683bf397e015d587d3c7ab8d27b42dcc0a9b53_4b2a19c6-1ead-4a29-83c1-5a1e509bdc19.webp?v=1714977433","width":2000},{"alt":null,"id":23897289523299,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7aaeb04e37dd6d9a8494af9fc80938b4179e223c_643dfddb-d1c0-4900-b715-e2487dd85dbd.webp?v=1714977435"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7aaeb04e37dd6d9a8494af9fc80938b4179e223c_643dfddb-d1c0-4900-b715-e2487dd85dbd.webp?v=1714977435","width":2000},{"alt":null,"id":23897289982051,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02fe56234d7c2d3882af3d35e81b54e7353d43d7_1914e6b2-d3c8-4041-8979-c485873b19a2.webp?v=1714977437"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02fe56234d7c2d3882af3d35e81b54e7353d43d7_1914e6b2-d3c8-4041-8979-c485873b19a2.webp?v=1714977437","width":2000},{"alt":null,"id":23897290440803,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18abedf9210ff4fe305b1af80e5c4664301d661b_1a4edc4d-f2af-4bc4-bd76-fc9ae8331c64.webp?v=1714977440"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18abedf9210ff4fe305b1af80e5c4664301d661b_1a4edc4d-f2af-4bc4-bd76-fc9ae8331c64.webp?v=1714977440","width":2000},{"alt":null,"id":23897290834019,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdaddd18dc108caf75d4608bde9cf75e786c1a9_558dbee1-ed36-4f4f-be36-0d0e7903c829.webp?v=1714977442"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdaddd18dc108caf75d4608bde9cf75e786c1a9_558dbee1-ed36-4f4f-be36-0d0e7903c829.webp?v=1714977442","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918627086435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31491875176547,"product_id":7416336187491,"position":4,"created_at":"2024-05-06T14:37:08+08:00","updated_at":"2024-05-06T14:37:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13778297a229146dc47bde86f3a6d928ae5b8d68_a539f62f-f195-4f48-a5ad-a5842f291c55.webp?v=1714977428","variant_ids":[41918627086435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Batman - 超級惡棍和蝙蝠俠Logo貼紙款 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-SB10","featured_media":{"alt":null,"id":23897288015971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13778297a229146dc47bde86f3a6d928ae5b8d68_a539f62f-f195-4f48-a5ad-a5842f291c55.webp?v=1714977428"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918627086435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31491875176547,"product_id":7416336187491,"position":4,"created_at":"2024-05-06T14:37:08+08:00","updated_at":"2024-05-06T14:37:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13778297a229146dc47bde86f3a6d928ae5b8d68_a539f62f-f195-4f48-a5ad-a5842f291c55.webp?v=1714977428","variant_ids":[41918627086435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Batman - 超級惡棍和蝙蝠俠Logo貼紙款 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-SB10","featured_media":{"alt":null,"id":23897288015971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13778297a229146dc47bde86f3a6d928ae5b8d68_a539f62f-f195-4f48-a5ad-a5842f291c55.webp?v=1714977428"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (mergedImg) { $('.merged-img').attr('src', mergedImg); }); }); }; var sellingStatusData window.fetchSellingStatus().then(data => { try { sellingStatusData = data; } catch (error) { sellingStatusData = null console.error('Unable to parse selling status', error) } $(document).ready(function() { handleSellingStatus($defaultVariant.sku); }); }) function handleSellingStatus(currentSku) { if (!sellingStatusData) { console.error('No selling status available!') return } const sellingStatusElement = document.getElementById('selling-status') const addToCartButton = document.getElementById('AddToCart-product-template') const currentProductSku = currentSku.replace(/-(.*)$/, '-') if ($variants) { const flattenedSellingStatus = [...sellingStatusData.pending, ...sellingStatusData.preorder] const matchSellingStatusProduct = flattenedSellingStatus.filter(product => currentProductSku === product.sku) if (matchSellingStatusProduct.length > 0) { const isProductPending = matchSellingStatusProduct[0].status === 'pending' const matchDate = matchSellingStatusProduct[0].date sellingStatus = isProductPending ? "缺貨中" : "預購完成出貨日:" + matchDate sellingStatusElement.textContent = sellingStatus if (sellingStatus.includes("缺貨中")){ addToCartButton.disabled ='true'; addToCartButton.textContent = "缺貨中無法加入購物車" } else { addToCartButton.textContent = "加到購物車" } } else { sellingStatusElement.textContent = '' addToCartButton.textContent = "加到購物車" }; }; }; document.addEventListener('DOMContentLoaded', function () { var currentVariantSelect = document.getElementById('SingleOptionSelector-0') currentVariantSelect.addEventListener('change', function() { var currentSku = $('#current_sku').text() var skuElement = document.getElementById('current-sku') skuElement.textContent = currentSku handleSellingStatus(currentSku) }); });
// Override default values of shop.strings for each template. // Alternate product templates can change values of // add to cart button, sold out, and unavailable states here. theme.productStrings = { addToCart: "加到購物車", soldOut: "售完", unavailable: "停產" }