$product = {"id":7937891008611,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 米卡莎","handle":"iphone-12-mini-mod-nx-magsafe-xu06","description":null,"published_at":"2025-12-12T10:38:43+08:00","created_at":"2025-12-11T15:51:43+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-attack-on-titan","device-iPhone 12 Mini","merge","reseller-attack-on-titan"],"price":110000,"price_min":110000,"price_max":110000,"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":43884302925923,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34932969046115,"product_id":7937891008611,"position":3,"created_at":"2025-12-11T15:51:47+08:00","updated_at":"2025-12-11T15:51:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b9cd40879ebdb09c18dc2a40d85a9b6cbdfed62.webp?v=1765439509","variant_ids":[43884302925923]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 米卡莎 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-XU06","featured_media":{"alt":null,"id":26495340871779,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b9cd40879ebdb09c18dc2a40d85a9b6cbdfed62.webp?v=1765439509"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1445c8d9686010958bc605f1d48d9ce7b24fce1.webp?v=1765439508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c48ebb47ed79f64e60878ab82bcb9a7cf8168d8.webp?v=1765439509","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b9cd40879ebdb09c18dc2a40d85a9b6cbdfed62.webp?v=1765439509","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/790cee57b9e159b0ce5ea8e24f306e0c78ca6d81.webp?v=1765439510","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/612451a2cb8f3c932de52d2b4c69705946c14a50.webp?v=1765439510","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9707bc130b31ddc170d173b6d9d907ef9d12e2c5.webp?v=1765439511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acc3dd6e641bd5f18fa67cd6e3d374b35daccf1e.webp?v=1765439511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ed63e9f334f507792a45adc1b7cfdfed9929246.webp?v=1765439511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd3a2e61724b15705184f2a4c7bfac472c3ed000.webp?v=1765439512","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16085613d3e5220509b391d20aaab4bd1d4ca0b5.webp?v=1765439512","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4834f1aa0354329c2eb2527d62908f20e8c23ed5.webp?v=1765439513"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1445c8d9686010958bc605f1d48d9ce7b24fce1.webp?v=1765439508","options":["color"],"media":[{"alt":null,"id":26495340576867,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1445c8d9686010958bc605f1d48d9ce7b24fce1.webp?v=1765439508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1445c8d9686010958bc605f1d48d9ce7b24fce1.webp?v=1765439508","width":2000},{"alt":null,"id":26495340740707,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c48ebb47ed79f64e60878ab82bcb9a7cf8168d8.webp?v=1765439509"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c48ebb47ed79f64e60878ab82bcb9a7cf8168d8.webp?v=1765439509","width":2000},{"alt":null,"id":26495340871779,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b9cd40879ebdb09c18dc2a40d85a9b6cbdfed62.webp?v=1765439509"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b9cd40879ebdb09c18dc2a40d85a9b6cbdfed62.webp?v=1765439509","width":2000},{"alt":null,"id":26495341068387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/790cee57b9e159b0ce5ea8e24f306e0c78ca6d81.webp?v=1765439510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/790cee57b9e159b0ce5ea8e24f306e0c78ca6d81.webp?v=1765439510","width":2000},{"alt":null,"id":26495341199459,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/612451a2cb8f3c932de52d2b4c69705946c14a50.webp?v=1765439510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/612451a2cb8f3c932de52d2b4c69705946c14a50.webp?v=1765439510","width":2000},{"alt":null,"id":26495341330531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9707bc130b31ddc170d173b6d9d907ef9d12e2c5.webp?v=1765439511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9707bc130b31ddc170d173b6d9d907ef9d12e2c5.webp?v=1765439511","width":2000},{"alt":null,"id":26495341494371,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acc3dd6e641bd5f18fa67cd6e3d374b35daccf1e.webp?v=1765439511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acc3dd6e641bd5f18fa67cd6e3d374b35daccf1e.webp?v=1765439511","width":2000},{"alt":null,"id":26495341723747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ed63e9f334f507792a45adc1b7cfdfed9929246.webp?v=1765439511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ed63e9f334f507792a45adc1b7cfdfed9929246.webp?v=1765439511","width":2000},{"alt":null,"id":26495341920355,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd3a2e61724b15705184f2a4c7bfac472c3ed000.webp?v=1765439512"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd3a2e61724b15705184f2a4c7bfac472c3ed000.webp?v=1765439512","width":2000},{"alt":null,"id":26495342051427,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16085613d3e5220509b391d20aaab4bd1d4ca0b5.webp?v=1765439512"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16085613d3e5220509b391d20aaab4bd1d4ca0b5.webp?v=1765439512","width":2000},{"alt":null,"id":26495342182499,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4834f1aa0354329c2eb2527d62908f20e8c23ed5.webp?v=1765439513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4834f1aa0354329c2eb2527d62908f20e8c23ed5.webp?v=1765439513","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43884302925923,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34932969046115,"product_id":7937891008611,"position":3,"created_at":"2025-12-11T15:51:47+08:00","updated_at":"2025-12-11T15:51:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b9cd40879ebdb09c18dc2a40d85a9b6cbdfed62.webp?v=1765439509","variant_ids":[43884302925923]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 米卡莎 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-XU06","featured_media":{"alt":null,"id":26495340871779,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b9cd40879ebdb09c18dc2a40d85a9b6cbdfed62.webp?v=1765439509"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43884302925923,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XU06","requires_shipping":true,"taxable":true,"featured_image":{"id":34932969046115,"product_id":7937891008611,"position":3,"created_at":"2025-12-11T15:51:47+08:00","updated_at":"2025-12-11T15:51:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b9cd40879ebdb09c18dc2a40d85a9b6cbdfed62.webp?v=1765439509","variant_ids":[43884302925923]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 米卡莎 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-XU06","featured_media":{"alt":null,"id":26495340871779,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b9cd40879ebdb09c18dc2a40d85a9b6cbdfed62.webp?v=1765439509"}},"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: "停產" }