$product = {"id":7937879605347,"title":"iPhone 14 Plus Mod NX 進擊的巨人 Attack on Titan 米卡莎","handle":"iphone-14-plus-mod-nx-xu06","description":null,"published_at":"2025-12-12T10:41:17+08:00","created_at":"2025-12-11T15:48:55+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-attack-on-titan","device-iPhone 14 Plus","merge","reseller-attack-on-titan"],"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":43884259639395,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34932922810467,"product_id":7937879605347,"position":4,"created_at":"2025-12-11T15:49:01+08:00","updated_at":"2025-12-11T15:49:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/652d24deba829ccadd06a0dbfaaf059127f9b721.webp?v=1765439342","variant_ids":[43884259639395]},"available":true,"name":"iPhone 14 Plus Mod NX 進擊的巨人 Attack on Titan 米卡莎 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-XU06","featured_media":{"alt":null,"id":26495294734435,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/652d24deba829ccadd06a0dbfaaf059127f9b721.webp?v=1765439342"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f320f7fff39d1ab34679e8a0f1ace38dc0eb4ac.webp?v=1765439342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba5d41d2b3ac070b06863e7fc0c367cdd91ad61f.webp?v=1765439342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e373b13a5b0738e82c9a03df8de9af62975f17c.webp?v=1765439342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/652d24deba829ccadd06a0dbfaaf059127f9b721.webp?v=1765439342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb413c005e2cf5364691351b71c46a7249d1ce01.webp?v=1765439343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2741edeca53a0d2b2529f205bfc6eef51433c08f.webp?v=1765439343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f31f645feb03d032f36caa391d5f5b40ac85c78f.webp?v=1765439344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d1bda180f84f263f4e0a268e10133dc911386d3.webp?v=1765439344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/364cca1172ff31671e0a369b54c65ff7574cd7e2.webp?v=1765439345","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5b95b4eed8830cd45d248b3ac40ee2d72ce415.webp?v=1765439345","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2a313efd9f37fe8a47a9605cf402895fb018aec.webp?v=1765439346","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d6da3129b475976d3f7f43ca8f4d2a0f9c9fea1.webp?v=1765439346","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb69039db0dc52962e903d0d47786c79d1e93c03.webp?v=1765439347"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f320f7fff39d1ab34679e8a0f1ace38dc0eb4ac.webp?v=1765439342","options":["color"],"media":[{"alt":null,"id":26495294242915,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f320f7fff39d1ab34679e8a0f1ace38dc0eb4ac.webp?v=1765439342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f320f7fff39d1ab34679e8a0f1ace38dc0eb4ac.webp?v=1765439342","width":2000},{"alt":null,"id":26495294505059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba5d41d2b3ac070b06863e7fc0c367cdd91ad61f.webp?v=1765439342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba5d41d2b3ac070b06863e7fc0c367cdd91ad61f.webp?v=1765439342","width":2000},{"alt":null,"id":26495294636131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e373b13a5b0738e82c9a03df8de9af62975f17c.webp?v=1765439342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e373b13a5b0738e82c9a03df8de9af62975f17c.webp?v=1765439342","width":2000},{"alt":null,"id":26495294734435,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/652d24deba829ccadd06a0dbfaaf059127f9b721.webp?v=1765439342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/652d24deba829ccadd06a0dbfaaf059127f9b721.webp?v=1765439342","width":2000},{"alt":null,"id":26495294865507,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb413c005e2cf5364691351b71c46a7249d1ce01.webp?v=1765439343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb413c005e2cf5364691351b71c46a7249d1ce01.webp?v=1765439343","width":2000},{"alt":null,"id":26495294996579,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2741edeca53a0d2b2529f205bfc6eef51433c08f.webp?v=1765439343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2741edeca53a0d2b2529f205bfc6eef51433c08f.webp?v=1765439343","width":2000},{"alt":null,"id":26495295193187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f31f645feb03d032f36caa391d5f5b40ac85c78f.webp?v=1765439344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f31f645feb03d032f36caa391d5f5b40ac85c78f.webp?v=1765439344","width":2000},{"alt":null,"id":26495295291491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d1bda180f84f263f4e0a268e10133dc911386d3.webp?v=1765439344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d1bda180f84f263f4e0a268e10133dc911386d3.webp?v=1765439344","width":2000},{"alt":null,"id":26495295389795,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/364cca1172ff31671e0a369b54c65ff7574cd7e2.webp?v=1765439345"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/364cca1172ff31671e0a369b54c65ff7574cd7e2.webp?v=1765439345","width":2000},{"alt":null,"id":26495295619171,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5b95b4eed8830cd45d248b3ac40ee2d72ce415.webp?v=1765439345"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5b95b4eed8830cd45d248b3ac40ee2d72ce415.webp?v=1765439345","width":2000},{"alt":null,"id":26495295815779,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2a313efd9f37fe8a47a9605cf402895fb018aec.webp?v=1765439346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2a313efd9f37fe8a47a9605cf402895fb018aec.webp?v=1765439346","width":2000},{"alt":null,"id":26495296012387,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d6da3129b475976d3f7f43ca8f4d2a0f9c9fea1.webp?v=1765439346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d6da3129b475976d3f7f43ca8f4d2a0f9c9fea1.webp?v=1765439346","width":2000},{"alt":null,"id":26495296241763,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb69039db0dc52962e903d0d47786c79d1e93c03.webp?v=1765439347"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb69039db0dc52962e903d0d47786c79d1e93c03.webp?v=1765439347","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43884259639395,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34932922810467,"product_id":7937879605347,"position":4,"created_at":"2025-12-11T15:49:01+08:00","updated_at":"2025-12-11T15:49:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/652d24deba829ccadd06a0dbfaaf059127f9b721.webp?v=1765439342","variant_ids":[43884259639395]},"available":true,"name":"iPhone 14 Plus Mod NX 進擊的巨人 Attack on Titan 米卡莎 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-XU06","featured_media":{"alt":null,"id":26495294734435,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/652d24deba829ccadd06a0dbfaaf059127f9b721.webp?v=1765439342"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43884259639395,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34932922810467,"product_id":7937879605347,"position":4,"created_at":"2025-12-11T15:49:01+08:00","updated_at":"2025-12-11T15:49:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/652d24deba829ccadd06a0dbfaaf059127f9b721.webp?v=1765439342","variant_ids":[43884259639395]},"available":true,"name":"iPhone 14 Plus Mod NX 進擊的巨人 Attack on Titan 米卡莎 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-XU06","featured_media":{"alt":null,"id":26495294734435,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/652d24deba829ccadd06a0dbfaaf059127f9b721.webp?v=1765439342"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }