$product = {"id":7937771274339,"title":"iPhone 14 Pro Mod NX 進擊的巨人 Attack on Titan Q版巨人","handle":"iphone-14-pro-mod-nx-xu17","description":null,"published_at":"2025-12-12T11:04:09+08:00","created_at":"2025-12-11T15:22:48+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-attack-on-titan","device-iPhone 14 Pro","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":43883834015843,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-XU17","requires_shipping":true,"taxable":true,"featured_image":{"id":34932462682211,"product_id":7937771274339,"position":9,"created_at":"2025-12-11T15:22:57+08:00","updated_at":"2025-12-11T15:22:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3155b16ec230bfb9e387bdce00370c47526f2b06.webp?v=1765437779","variant_ids":[43883834015843]},"available":true,"name":"iPhone 14 Pro Mod NX 進擊的巨人 Attack on Titan Q版巨人 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-XU17","featured_media":{"alt":null,"id":26494834638947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3155b16ec230bfb9e387bdce00370c47526f2b06.webp?v=1765437779"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883834048611,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-XU17","requires_shipping":true,"taxable":true,"featured_image":{"id":34932460453987,"product_id":7937771274339,"position":1,"created_at":"2025-12-11T15:22:51+08:00","updated_at":"2025-12-11T15:22:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bb5d8ef7a745d01db50c8ad541c489d8a92a86c.webp?v=1765437773","variant_ids":[43883834048611]},"available":true,"name":"iPhone 14 Pro Mod NX 進擊的巨人 Attack on Titan Q版巨人 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-XU17","featured_media":{"alt":null,"id":26494832410723,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bb5d8ef7a745d01db50c8ad541c489d8a92a86c.webp?v=1765437773"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883834146915,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-XU17","requires_shipping":true,"taxable":true,"featured_image":{"id":34932461142115,"product_id":7937771274339,"position":5,"created_at":"2025-12-11T15:22:55+08:00","updated_at":"2025-12-11T15:22:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44437955474cf3a52a41ad03bc50a25b88af817b.webp?v=1765437777","variant_ids":[43883834146915]},"available":true,"name":"iPhone 14 Pro Mod NX 進擊的巨人 Attack on Titan Q版巨人 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-XU17","featured_media":{"alt":null,"id":26494833229923,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44437955474cf3a52a41ad03bc50a25b88af817b.webp?v=1765437777"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bb5d8ef7a745d01db50c8ad541c489d8a92a86c.webp?v=1765437773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95ce5f1f20077f8695af83369e167e19ee406c6e.webp?v=1765437774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0e628e3f145dd8e92caccb63754814d72567ac1.webp?v=1765437774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0dab61f1a3f85f747334fbb3a8e09d8d04cea4f.webp?v=1765437775","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44437955474cf3a52a41ad03bc50a25b88af817b.webp?v=1765437777","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdc03753be62eaad8ea4f93cb9fd657629416a00.webp?v=1765437778","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b1b463adc1d0220d6d8158fe4cd3869a807c9ac.webp?v=1765437778","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/749b5fd8f0eda2c8a07064eaf8cdd0c0870d29ba.webp?v=1765437779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3155b16ec230bfb9e387bdce00370c47526f2b06.webp?v=1765437779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b50c84f245591d4ee970f00097f7c3dc1474dd35.webp?v=1765437780","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f3728fb086cd10aa3e2b6d06afea4a1e3633963.webp?v=1765437780"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bb5d8ef7a745d01db50c8ad541c489d8a92a86c.webp?v=1765437773","options":["color"],"media":[{"alt":null,"id":26494832410723,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bb5d8ef7a745d01db50c8ad541c489d8a92a86c.webp?v=1765437773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bb5d8ef7a745d01db50c8ad541c489d8a92a86c.webp?v=1765437773","width":2000},{"alt":null,"id":26494832541795,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95ce5f1f20077f8695af83369e167e19ee406c6e.webp?v=1765437774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95ce5f1f20077f8695af83369e167e19ee406c6e.webp?v=1765437774","width":2000},{"alt":null,"id":26494832705635,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0e628e3f145dd8e92caccb63754814d72567ac1.webp?v=1765437774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0e628e3f145dd8e92caccb63754814d72567ac1.webp?v=1765437774","width":2000},{"alt":null,"id":26494832836707,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0dab61f1a3f85f747334fbb3a8e09d8d04cea4f.webp?v=1765437775"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0dab61f1a3f85f747334fbb3a8e09d8d04cea4f.webp?v=1765437775","width":2000},{"alt":null,"id":26494833229923,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44437955474cf3a52a41ad03bc50a25b88af817b.webp?v=1765437777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44437955474cf3a52a41ad03bc50a25b88af817b.webp?v=1765437777","width":2000},{"alt":null,"id":26494833721443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdc03753be62eaad8ea4f93cb9fd657629416a00.webp?v=1765437778"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdc03753be62eaad8ea4f93cb9fd657629416a00.webp?v=1765437778","width":2000},{"alt":null,"id":26494833983587,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b1b463adc1d0220d6d8158fe4cd3869a807c9ac.webp?v=1765437778"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b1b463adc1d0220d6d8158fe4cd3869a807c9ac.webp?v=1765437778","width":2000},{"alt":null,"id":26494834311267,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/749b5fd8f0eda2c8a07064eaf8cdd0c0870d29ba.webp?v=1765437779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/749b5fd8f0eda2c8a07064eaf8cdd0c0870d29ba.webp?v=1765437779","width":2000},{"alt":null,"id":26494834638947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3155b16ec230bfb9e387bdce00370c47526f2b06.webp?v=1765437779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3155b16ec230bfb9e387bdce00370c47526f2b06.webp?v=1765437779","width":2000},{"alt":null,"id":26494834901091,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b50c84f245591d4ee970f00097f7c3dc1474dd35.webp?v=1765437780"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b50c84f245591d4ee970f00097f7c3dc1474dd35.webp?v=1765437780","width":2000},{"alt":null,"id":26494835130467,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f3728fb086cd10aa3e2b6d06afea4a1e3633963.webp?v=1765437780"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f3728fb086cd10aa3e2b6d06afea4a1e3633963.webp?v=1765437780","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43883834015843,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-XU17","requires_shipping":true,"taxable":true,"featured_image":{"id":34932462682211,"product_id":7937771274339,"position":9,"created_at":"2025-12-11T15:22:57+08:00","updated_at":"2025-12-11T15:22:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3155b16ec230bfb9e387bdce00370c47526f2b06.webp?v=1765437779","variant_ids":[43883834015843]},"available":true,"name":"iPhone 14 Pro Mod NX 進擊的巨人 Attack on Titan Q版巨人 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-XU17","featured_media":{"alt":null,"id":26494834638947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3155b16ec230bfb9e387bdce00370c47526f2b06.webp?v=1765437779"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883834048611,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-XU17","requires_shipping":true,"taxable":true,"featured_image":{"id":34932460453987,"product_id":7937771274339,"position":1,"created_at":"2025-12-11T15:22:51+08:00","updated_at":"2025-12-11T15:22:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bb5d8ef7a745d01db50c8ad541c489d8a92a86c.webp?v=1765437773","variant_ids":[43883834048611]},"available":true,"name":"iPhone 14 Pro Mod NX 進擊的巨人 Attack on Titan Q版巨人 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-XU17","featured_media":{"alt":null,"id":26494832410723,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bb5d8ef7a745d01db50c8ad541c489d8a92a86c.webp?v=1765437773"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43883834146915,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-XU17","requires_shipping":true,"taxable":true,"featured_image":{"id":34932461142115,"product_id":7937771274339,"position":5,"created_at":"2025-12-11T15:22:55+08:00","updated_at":"2025-12-11T15:22:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44437955474cf3a52a41ad03bc50a25b88af817b.webp?v=1765437777","variant_ids":[43883834146915]},"available":true,"name":"iPhone 14 Pro Mod NX 進擊的巨人 Attack on Titan Q版巨人 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-XU17","featured_media":{"alt":null,"id":26494833229923,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44437955474cf3a52a41ad03bc50a25b88af817b.webp?v=1765437777"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43883834015843,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-XU17","requires_shipping":true,"taxable":true,"featured_image":{"id":34932462682211,"product_id":7937771274339,"position":9,"created_at":"2025-12-11T15:22:57+08:00","updated_at":"2025-12-11T15:22:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3155b16ec230bfb9e387bdce00370c47526f2b06.webp?v=1765437779","variant_ids":[43883834015843]},"available":true,"name":"iPhone 14 Pro Mod NX 進擊的巨人 Attack on Titan Q版巨人 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-XU17","featured_media":{"alt":null,"id":26494834638947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3155b16ec230bfb9e387bdce00370c47526f2b06.webp?v=1765437779"}},"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: "停產" }