$product = {"id":7937828290659,"title":"iPhone 14 Plus Mod NX 進擊的巨人 Attack on Titan 艾蓮","handle":"iphone-14-plus-mod-nx-xu05","description":null,"published_at":"2025-12-12T10:52:17+08:00","created_at":"2025-12-11T15:36:35+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":43884055429219,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34932706246755,"product_id":7937828290659,"position":13,"created_at":"2025-12-11T15:36:46+08:00","updated_at":"2025-12-11T15:36:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5c4342485f97e2d3a7cea2590daba5a76e0fe06.webp?v=1765438608","variant_ids":[43884055429219]},"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-XU05","featured_media":{"alt":null,"id":26495078236259,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5c4342485f97e2d3a7cea2590daba5a76e0fe06.webp?v=1765438608"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da84d0939143d0ff055bef688bec4823f470d0b3.webp?v=1765438601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/468fff2573779028fdf400825d8fdff20c391845.webp?v=1765438601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7b8efa158736447dca91864dcd0c269837d6d95.webp?v=1765438602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfc079356a1bb158ea79c87990443e54847315df.webp?v=1765438603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fb26847f5d1bef9c72cd5c68fe7b320c6f4b6c1.webp?v=1765438603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f17f5df0b2085df681624af15510fd2d3cefc9d8.webp?v=1765438604","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eacc48e1b15bc1b2fa41ed29d9fd996799dc29c.webp?v=1765438604","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/265497d9874a998c5d8073e235fb81ad72dc9295.webp?v=1765438605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd16acaf3a205b051b6c9f8cfa38e891e99c3de4.webp?v=1765438606","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/065d226abf241fac44c0b4bd93c9da3fd287ae94.webp?v=1765438606","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e6117df9f930105a663a18aeb7fd2ddf70877fd.webp?v=1765438607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d6b30f47c0ec4706414f2fe480ea8e88d4724e.webp?v=1765438607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5c4342485f97e2d3a7cea2590daba5a76e0fe06.webp?v=1765438608"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da84d0939143d0ff055bef688bec4823f470d0b3.webp?v=1765438601","options":["color"],"media":[{"alt":null,"id":26495075450979,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da84d0939143d0ff055bef688bec4823f470d0b3.webp?v=1765438601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da84d0939143d0ff055bef688bec4823f470d0b3.webp?v=1765438601","width":2000},{"alt":null,"id":26495075680355,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/468fff2573779028fdf400825d8fdff20c391845.webp?v=1765438601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/468fff2573779028fdf400825d8fdff20c391845.webp?v=1765438601","width":2000},{"alt":null,"id":26495076008035,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7b8efa158736447dca91864dcd0c269837d6d95.webp?v=1765438602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7b8efa158736447dca91864dcd0c269837d6d95.webp?v=1765438602","width":2000},{"alt":null,"id":26495076204643,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfc079356a1bb158ea79c87990443e54847315df.webp?v=1765438603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfc079356a1bb158ea79c87990443e54847315df.webp?v=1765438603","width":2000},{"alt":null,"id":26495076434019,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fb26847f5d1bef9c72cd5c68fe7b320c6f4b6c1.webp?v=1765438603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fb26847f5d1bef9c72cd5c68fe7b320c6f4b6c1.webp?v=1765438603","width":2000},{"alt":null,"id":26495076663395,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f17f5df0b2085df681624af15510fd2d3cefc9d8.webp?v=1765438604"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f17f5df0b2085df681624af15510fd2d3cefc9d8.webp?v=1765438604","width":2000},{"alt":null,"id":26495076794467,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eacc48e1b15bc1b2fa41ed29d9fd996799dc29c.webp?v=1765438604"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eacc48e1b15bc1b2fa41ed29d9fd996799dc29c.webp?v=1765438604","width":2000},{"alt":null,"id":26495076958307,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/265497d9874a998c5d8073e235fb81ad72dc9295.webp?v=1765438605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/265497d9874a998c5d8073e235fb81ad72dc9295.webp?v=1765438605","width":2000},{"alt":null,"id":26495077154915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd16acaf3a205b051b6c9f8cfa38e891e99c3de4.webp?v=1765438606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd16acaf3a205b051b6c9f8cfa38e891e99c3de4.webp?v=1765438606","width":2000},{"alt":null,"id":26495077318755,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/065d226abf241fac44c0b4bd93c9da3fd287ae94.webp?v=1765438606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/065d226abf241fac44c0b4bd93c9da3fd287ae94.webp?v=1765438606","width":2000},{"alt":null,"id":26495077613667,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e6117df9f930105a663a18aeb7fd2ddf70877fd.webp?v=1765438607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e6117df9f930105a663a18aeb7fd2ddf70877fd.webp?v=1765438607","width":2000},{"alt":null,"id":26495077810275,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d6b30f47c0ec4706414f2fe480ea8e88d4724e.webp?v=1765438607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d6b30f47c0ec4706414f2fe480ea8e88d4724e.webp?v=1765438607","width":2000},{"alt":null,"id":26495078236259,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5c4342485f97e2d3a7cea2590daba5a76e0fe06.webp?v=1765438608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5c4342485f97e2d3a7cea2590daba5a76e0fe06.webp?v=1765438608","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43884055429219,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34932706246755,"product_id":7937828290659,"position":13,"created_at":"2025-12-11T15:36:46+08:00","updated_at":"2025-12-11T15:36:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5c4342485f97e2d3a7cea2590daba5a76e0fe06.webp?v=1765438608","variant_ids":[43884055429219]},"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-XU05","featured_media":{"alt":null,"id":26495078236259,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5c4342485f97e2d3a7cea2590daba5a76e0fe06.webp?v=1765438608"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43884055429219,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34932706246755,"product_id":7937828290659,"position":13,"created_at":"2025-12-11T15:36:46+08:00","updated_at":"2025-12-11T15:36:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5c4342485f97e2d3a7cea2590daba5a76e0fe06.webp?v=1765438608","variant_ids":[43884055429219]},"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-XU05","featured_media":{"alt":null,"id":26495078236259,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5c4342485f97e2d3a7cea2590daba5a76e0fe06.webp?v=1765438608"}},"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: "停產" }