$product = {"id":7938067791971,"title":"iPhone XR Mod NX 進擊的巨人 Attack on Titan 吉克","handle":"iphone-xr-mod-nx-xw09","description":null,"published_at":"2025-12-12T10:02:00+08:00","created_at":"2025-12-11T16:56:05+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-attack-on-titan","device-iPhone XR","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":43884972834915,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01085C1-XW09","requires_shipping":true,"taxable":true,"featured_image":{"id":34933707800675,"product_id":7938067791971,"position":8,"created_at":"2025-12-11T16:56:13+08:00","updated_at":"2025-12-11T16:56:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a58d5961c9ee9814699ce0661c16c4459cb2b6b.webp?v=1765443375","variant_ids":[43884972834915]},"available":true,"name":"iPhone XR Mod NX 進擊的巨人 Attack on Titan 吉克 - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01085C1-XW09","featured_media":{"alt":null,"id":26496077299811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a58d5961c9ee9814699ce0661c16c4459cb2b6b.webp?v=1765443375"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884975423587,"title":"Camo Green","option1":"Camo Green","option2":null,"option3":null,"sku":"NPB0108515-XW09","requires_shipping":true,"taxable":true,"featured_image":{"id":34933707735139,"product_id":7938067791971,"position":7,"created_at":"2025-12-11T16:56:13+08:00","updated_at":"2025-12-11T16:56:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5d7d1a1a781c7a440cecda4668e11dc469c31d.webp?v=1765443375","variant_ids":[43884975423587]},"available":true,"name":"iPhone XR Mod NX 進擊的巨人 Attack on Titan 吉克 - Camo Green","public_title":"Camo Green","options":["Camo Green"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108515-XW09","featured_media":{"alt":null,"id":26496077234275,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5d7d1a1a781c7a440cecda4668e11dc469c31d.webp?v=1765443375"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884975456355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108524-XW09","requires_shipping":true,"taxable":true,"featured_image":{"id":34933707866211,"product_id":7938067791971,"position":9,"created_at":"2025-12-11T16:56:14+08:00","updated_at":"2025-12-11T16:56:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4294869ac3c8f30d38e0eedda7f40614f6192b8e.webp?v=1765443376","variant_ids":[43884975456355]},"available":true,"name":"iPhone XR 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":"NPB0108524-XW09","featured_media":{"alt":null,"id":26496077365347,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4294869ac3c8f30d38e0eedda7f40614f6192b8e.webp?v=1765443376"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884975521891,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0108504-XW09","requires_shipping":true,"taxable":true,"featured_image":{"id":34933707571299,"product_id":7938067791971,"position":5,"created_at":"2025-12-11T16:56:12+08:00","updated_at":"2025-12-11T16:56:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe12aa4addaff3f9689470c90a5a538e0ca78b1d.webp?v=1765443374","variant_ids":[43884975521891]},"available":true,"name":"iPhone XR Mod NX 進擊的巨人 Attack on Titan 吉克 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108504-XW09","featured_media":{"alt":null,"id":26496077070435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe12aa4addaff3f9689470c90a5a538e0ca78b1d.webp?v=1765443374"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a599a5cc058f7e33f891957575565f2cfed8ac4.webp?v=1765443372","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b137dec1bef0c4e24bfdac72e591b35b2ba96d9.webp?v=1765443372","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93a05193128f80bd2f5300f94b2aed8c11b432d0.webp?v=1765443373","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f4ffe7b768be460b12bc0e9f8cbded434af4ec2.webp?v=1765443373","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe12aa4addaff3f9689470c90a5a538e0ca78b1d.webp?v=1765443374","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9c8e0f37a747ccae2ea64110ab1ba2ba2db1967.webp?v=1765443374","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5d7d1a1a781c7a440cecda4668e11dc469c31d.webp?v=1765443375","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a58d5961c9ee9814699ce0661c16c4459cb2b6b.webp?v=1765443375","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4294869ac3c8f30d38e0eedda7f40614f6192b8e.webp?v=1765443376","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d847a24766efb362defb32777d0caf8a357cb00b.webp?v=1765443376"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a599a5cc058f7e33f891957575565f2cfed8ac4.webp?v=1765443372","options":["color"],"media":[{"alt":null,"id":26496076677219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a599a5cc058f7e33f891957575565f2cfed8ac4.webp?v=1765443372"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a599a5cc058f7e33f891957575565f2cfed8ac4.webp?v=1765443372","width":2000},{"alt":null,"id":26496076742755,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b137dec1bef0c4e24bfdac72e591b35b2ba96d9.webp?v=1765443372"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b137dec1bef0c4e24bfdac72e591b35b2ba96d9.webp?v=1765443372","width":2000},{"alt":null,"id":26496076906595,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93a05193128f80bd2f5300f94b2aed8c11b432d0.webp?v=1765443373"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93a05193128f80bd2f5300f94b2aed8c11b432d0.webp?v=1765443373","width":2000},{"alt":null,"id":26496077004899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f4ffe7b768be460b12bc0e9f8cbded434af4ec2.webp?v=1765443373"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f4ffe7b768be460b12bc0e9f8cbded434af4ec2.webp?v=1765443373","width":2000},{"alt":null,"id":26496077070435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe12aa4addaff3f9689470c90a5a538e0ca78b1d.webp?v=1765443374"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe12aa4addaff3f9689470c90a5a538e0ca78b1d.webp?v=1765443374","width":2000},{"alt":null,"id":26496077135971,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9c8e0f37a747ccae2ea64110ab1ba2ba2db1967.webp?v=1765443374"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9c8e0f37a747ccae2ea64110ab1ba2ba2db1967.webp?v=1765443374","width":2000},{"alt":null,"id":26496077234275,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5d7d1a1a781c7a440cecda4668e11dc469c31d.webp?v=1765443375"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5d7d1a1a781c7a440cecda4668e11dc469c31d.webp?v=1765443375","width":2000},{"alt":null,"id":26496077299811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a58d5961c9ee9814699ce0661c16c4459cb2b6b.webp?v=1765443375"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a58d5961c9ee9814699ce0661c16c4459cb2b6b.webp?v=1765443375","width":2000},{"alt":null,"id":26496077365347,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4294869ac3c8f30d38e0eedda7f40614f6192b8e.webp?v=1765443376"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4294869ac3c8f30d38e0eedda7f40614f6192b8e.webp?v=1765443376","width":2000},{"alt":null,"id":26496077496419,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d847a24766efb362defb32777d0caf8a357cb00b.webp?v=1765443376"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d847a24766efb362defb32777d0caf8a357cb00b.webp?v=1765443376","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43884972834915,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01085C1-XW09","requires_shipping":true,"taxable":true,"featured_image":{"id":34933707800675,"product_id":7938067791971,"position":8,"created_at":"2025-12-11T16:56:13+08:00","updated_at":"2025-12-11T16:56:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a58d5961c9ee9814699ce0661c16c4459cb2b6b.webp?v=1765443375","variant_ids":[43884972834915]},"available":true,"name":"iPhone XR Mod NX 進擊的巨人 Attack on Titan 吉克 - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01085C1-XW09","featured_media":{"alt":null,"id":26496077299811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a58d5961c9ee9814699ce0661c16c4459cb2b6b.webp?v=1765443375"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884975423587,"title":"Camo Green","option1":"Camo Green","option2":null,"option3":null,"sku":"NPB0108515-XW09","requires_shipping":true,"taxable":true,"featured_image":{"id":34933707735139,"product_id":7938067791971,"position":7,"created_at":"2025-12-11T16:56:13+08:00","updated_at":"2025-12-11T16:56:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5d7d1a1a781c7a440cecda4668e11dc469c31d.webp?v=1765443375","variant_ids":[43884975423587]},"available":true,"name":"iPhone XR Mod NX 進擊的巨人 Attack on Titan 吉克 - Camo Green","public_title":"Camo Green","options":["Camo Green"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108515-XW09","featured_media":{"alt":null,"id":26496077234275,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5d7d1a1a781c7a440cecda4668e11dc469c31d.webp?v=1765443375"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884975456355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108524-XW09","requires_shipping":true,"taxable":true,"featured_image":{"id":34933707866211,"product_id":7938067791971,"position":9,"created_at":"2025-12-11T16:56:14+08:00","updated_at":"2025-12-11T16:56:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4294869ac3c8f30d38e0eedda7f40614f6192b8e.webp?v=1765443376","variant_ids":[43884975456355]},"available":true,"name":"iPhone XR 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":"NPB0108524-XW09","featured_media":{"alt":null,"id":26496077365347,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4294869ac3c8f30d38e0eedda7f40614f6192b8e.webp?v=1765443376"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884975521891,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0108504-XW09","requires_shipping":true,"taxable":true,"featured_image":{"id":34933707571299,"product_id":7938067791971,"position":5,"created_at":"2025-12-11T16:56:12+08:00","updated_at":"2025-12-11T16:56:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe12aa4addaff3f9689470c90a5a538e0ca78b1d.webp?v=1765443374","variant_ids":[43884975521891]},"available":true,"name":"iPhone XR Mod NX 進擊的巨人 Attack on Titan 吉克 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108504-XW09","featured_media":{"alt":null,"id":26496077070435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe12aa4addaff3f9689470c90a5a538e0ca78b1d.webp?v=1765443374"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43884972834915,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01085C1-XW09","requires_shipping":true,"taxable":true,"featured_image":{"id":34933707800675,"product_id":7938067791971,"position":8,"created_at":"2025-12-11T16:56:13+08:00","updated_at":"2025-12-11T16:56:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a58d5961c9ee9814699ce0661c16c4459cb2b6b.webp?v=1765443375","variant_ids":[43884972834915]},"available":true,"name":"iPhone XR Mod NX 進擊的巨人 Attack on Titan 吉克 - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01085C1-XW09","featured_media":{"alt":null,"id":26496077299811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a58d5961c9ee9814699ce0661c16c4459cb2b6b.webp?v=1765443375"}},"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: "停產" }