$product = {"id":7892082917475,"title":"iPhone 14 Pro Mod NX 咻咻熊 歪七扭八的熊們","handle":"iphone-14-pro-mod-nx-printable-fw55","description":null,"published_at":"2025-10-01T12:29:51+08:00","created_at":"2025-10-01T09:28:17+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-xiuxiubear","device-iPhone 14 Pro","merge","reseller-xiuxiubear"],"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":43754420895843,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-FW55","requires_shipping":true,"taxable":true,"featured_image":{"id":34540691259491,"product_id":7892082917475,"position":2,"created_at":"2025-10-01T09:28:21+08:00","updated_at":"2025-10-01T09:28:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5203bbdc41293fc5fc10d22ae3d59c9c89e3951.webp?v=1759282103","variant_ids":[43754420895843]},"available":true,"name":"iPhone 14 Pro Mod NX 咻咻熊 歪七扭八的熊們 - 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-FW55","featured_media":{"alt":null,"id":26110458396771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5203bbdc41293fc5fc10d22ae3d59c9c89e3951.webp?v=1759282103"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754421059683,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-FW55","requires_shipping":true,"taxable":true,"featured_image":{"id":34540693061731,"product_id":7892082917475,"position":12,"created_at":"2025-10-01T09:28:26+08:00","updated_at":"2025-10-01T09:28:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9e9de87c3655425f045c584661ca3fde8d6c9b3.webp?v=1759282108","variant_ids":[43754421059683]},"available":true,"name":"iPhone 14 Pro Mod NX 咻咻熊 歪七扭八的熊們 - 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-FW55","featured_media":{"alt":null,"id":26110460199011,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9e9de87c3655425f045c584661ca3fde8d6c9b3.webp?v=1759282108"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754421125219,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-FW55","requires_shipping":true,"taxable":true,"featured_image":{"id":34540692701283,"product_id":7892082917475,"position":10,"created_at":"2025-10-01T09:28:25+08:00","updated_at":"2025-10-01T09:28:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39a782c4147ab1310ce621d19952c055e7bfcbcc.webp?v=1759282107","variant_ids":[43754421125219]},"available":true,"name":"iPhone 14 Pro Mod NX 咻咻熊 歪七扭八的熊們 - 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-FW55","featured_media":{"alt":null,"id":26110459838563,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39a782c4147ab1310ce621d19952c055e7bfcbcc.webp?v=1759282107"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2ba1a3dd452ca3f97d7733b9b4e286bec8cf3c9.webp?v=1759282103","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5203bbdc41293fc5fc10d22ae3d59c9c89e3951.webp?v=1759282103","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a3c36fe693fc2755ee542f54cd8d5e2661c500a.webp?v=1759282103","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b003a7e66a0cd5d036fafbc8f42a28ec2feed44.webp?v=1759282104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea689062221e80db502bf2136ea04a13ea729531.webp?v=1759282104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee98c03729b353ff66931231f0d9a35524ee797b.webp?v=1759282105","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffc9a9649f16359da11656f7ecb0b8a9387362d3.webp?v=1759282105","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9691453af332bd196bb75d757b91cdefd928caac.webp?v=1759282106","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82d385b321b03a74e6bb5d72c478d5ce90d9828a.webp?v=1759282106","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39a782c4147ab1310ce621d19952c055e7bfcbcc.webp?v=1759282107","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/264b1720dd58d7f17898521a607d051792837893.webp?v=1759282107","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9e9de87c3655425f045c584661ca3fde8d6c9b3.webp?v=1759282108"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2ba1a3dd452ca3f97d7733b9b4e286bec8cf3c9.webp?v=1759282103","options":["color"],"media":[{"alt":null,"id":26110458101859,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2ba1a3dd452ca3f97d7733b9b4e286bec8cf3c9.webp?v=1759282103"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2ba1a3dd452ca3f97d7733b9b4e286bec8cf3c9.webp?v=1759282103","width":2000},{"alt":null,"id":26110458396771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5203bbdc41293fc5fc10d22ae3d59c9c89e3951.webp?v=1759282103"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5203bbdc41293fc5fc10d22ae3d59c9c89e3951.webp?v=1759282103","width":2000},{"alt":null,"id":26110458626147,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a3c36fe693fc2755ee542f54cd8d5e2661c500a.webp?v=1759282103"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a3c36fe693fc2755ee542f54cd8d5e2661c500a.webp?v=1759282103","width":2000},{"alt":null,"id":26110458757219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b003a7e66a0cd5d036fafbc8f42a28ec2feed44.webp?v=1759282104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b003a7e66a0cd5d036fafbc8f42a28ec2feed44.webp?v=1759282104","width":2000},{"alt":null,"id":26110458986595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea689062221e80db502bf2136ea04a13ea729531.webp?v=1759282104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea689062221e80db502bf2136ea04a13ea729531.webp?v=1759282104","width":2000},{"alt":null,"id":26110459215971,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee98c03729b353ff66931231f0d9a35524ee797b.webp?v=1759282105"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee98c03729b353ff66931231f0d9a35524ee797b.webp?v=1759282105","width":2000},{"alt":null,"id":26110459347043,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffc9a9649f16359da11656f7ecb0b8a9387362d3.webp?v=1759282105"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffc9a9649f16359da11656f7ecb0b8a9387362d3.webp?v=1759282105","width":2000},{"alt":null,"id":26110459543651,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9691453af332bd196bb75d757b91cdefd928caac.webp?v=1759282106"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9691453af332bd196bb75d757b91cdefd928caac.webp?v=1759282106","width":2000},{"alt":null,"id":26110459707491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82d385b321b03a74e6bb5d72c478d5ce90d9828a.webp?v=1759282106"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82d385b321b03a74e6bb5d72c478d5ce90d9828a.webp?v=1759282106","width":2000},{"alt":null,"id":26110459838563,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39a782c4147ab1310ce621d19952c055e7bfcbcc.webp?v=1759282107"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39a782c4147ab1310ce621d19952c055e7bfcbcc.webp?v=1759282107","width":2000},{"alt":null,"id":26110460035171,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/264b1720dd58d7f17898521a607d051792837893.webp?v=1759282107"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/264b1720dd58d7f17898521a607d051792837893.webp?v=1759282107","width":2000},{"alt":null,"id":26110460199011,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9e9de87c3655425f045c584661ca3fde8d6c9b3.webp?v=1759282108"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9e9de87c3655425f045c584661ca3fde8d6c9b3.webp?v=1759282108","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43754420895843,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-FW55","requires_shipping":true,"taxable":true,"featured_image":{"id":34540691259491,"product_id":7892082917475,"position":2,"created_at":"2025-10-01T09:28:21+08:00","updated_at":"2025-10-01T09:28:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5203bbdc41293fc5fc10d22ae3d59c9c89e3951.webp?v=1759282103","variant_ids":[43754420895843]},"available":true,"name":"iPhone 14 Pro Mod NX 咻咻熊 歪七扭八的熊們 - 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-FW55","featured_media":{"alt":null,"id":26110458396771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5203bbdc41293fc5fc10d22ae3d59c9c89e3951.webp?v=1759282103"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754421059683,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-FW55","requires_shipping":true,"taxable":true,"featured_image":{"id":34540693061731,"product_id":7892082917475,"position":12,"created_at":"2025-10-01T09:28:26+08:00","updated_at":"2025-10-01T09:28:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9e9de87c3655425f045c584661ca3fde8d6c9b3.webp?v=1759282108","variant_ids":[43754421059683]},"available":true,"name":"iPhone 14 Pro Mod NX 咻咻熊 歪七扭八的熊們 - 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-FW55","featured_media":{"alt":null,"id":26110460199011,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9e9de87c3655425f045c584661ca3fde8d6c9b3.webp?v=1759282108"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754421125219,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-FW55","requires_shipping":true,"taxable":true,"featured_image":{"id":34540692701283,"product_id":7892082917475,"position":10,"created_at":"2025-10-01T09:28:25+08:00","updated_at":"2025-10-01T09:28:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39a782c4147ab1310ce621d19952c055e7bfcbcc.webp?v=1759282107","variant_ids":[43754421125219]},"available":true,"name":"iPhone 14 Pro Mod NX 咻咻熊 歪七扭八的熊們 - 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-FW55","featured_media":{"alt":null,"id":26110459838563,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39a782c4147ab1310ce621d19952c055e7bfcbcc.webp?v=1759282107"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43754420895843,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-FW55","requires_shipping":true,"taxable":true,"featured_image":{"id":34540691259491,"product_id":7892082917475,"position":2,"created_at":"2025-10-01T09:28:21+08:00","updated_at":"2025-10-01T09:28:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5203bbdc41293fc5fc10d22ae3d59c9c89e3951.webp?v=1759282103","variant_ids":[43754420895843]},"available":true,"name":"iPhone 14 Pro Mod NX 咻咻熊 歪七扭八的熊們 - 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-FW55","featured_media":{"alt":null,"id":26110458396771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5203bbdc41293fc5fc10d22ae3d59c9c89e3951.webp?v=1759282103"}},"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: "停產" }