$product = {"id":7942094880867,"title":"iPhone 14 Pro Mod NX Nyangsongi 小貓的夜曲","handle":"iphone-14-pro-mod-nx-nya10","description":null,"published_at":"2025-12-23T09:59:10+08:00","created_at":"2025-12-22T12:25:52+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-nyangsongi","device-iPhone 14 Pro","merge","reseller-nyangsongi"],"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":43903495897187,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-NYA10","requires_shipping":true,"taxable":true,"featured_image":{"id":34986164355171,"product_id":7942094880867,"position":4,"created_at":"2025-12-22T12:26:36+08:00","updated_at":"2025-12-22T12:26:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc5a8e67f93103f1cc934e65cdcd1bc22e2b667e.webp?v=1766377598","variant_ids":[43903495897187]},"available":true,"name":"iPhone 14 Pro Mod NX Nyangsongi 小貓的夜曲 - 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-NYA10","featured_media":{"alt":null,"id":26547236929635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc5a8e67f93103f1cc934e65cdcd1bc22e2b667e.webp?v=1766377598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43903495995491,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-NYA10","requires_shipping":true,"taxable":true,"featured_image":{"id":34986164551779,"product_id":7942094880867,"position":6,"created_at":"2025-12-22T12:26:36+08:00","updated_at":"2025-12-22T12:26:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb62551d2f9c2dc7f6a1194b83905e62f6dc3f13.webp?v=1766377598","variant_ids":[43903495995491]},"available":true,"name":"iPhone 14 Pro Mod NX Nyangsongi 小貓的夜曲 - 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-NYA10","featured_media":{"alt":null,"id":26547237126243,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb62551d2f9c2dc7f6a1194b83905e62f6dc3f13.webp?v=1766377598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43903496847459,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-NYA10","requires_shipping":true,"taxable":true,"featured_image":{"id":34986164224099,"product_id":7942094880867,"position":3,"created_at":"2025-12-22T12:26:35+08:00","updated_at":"2025-12-22T12:26:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/638f9cbd9446e0ca49aecd7696846357b28f18a3.webp?v=1766377597","variant_ids":[43903496847459]},"available":true,"name":"iPhone 14 Pro Mod NX Nyangsongi 小貓的夜曲 - 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-NYA10","featured_media":{"alt":null,"id":26547236798563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/638f9cbd9446e0ca49aecd7696846357b28f18a3.webp?v=1766377597"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60c6850093f81360f0d6cb64093a45c79a1c9a6a.webp?v=1766377596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/108fea0fa4351b86c46bd4ec058fd6465beff343.webp?v=1766377597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/638f9cbd9446e0ca49aecd7696846357b28f18a3.webp?v=1766377597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc5a8e67f93103f1cc934e65cdcd1bc22e2b667e.webp?v=1766377598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f214f9b719ed9c6f7f24bbd09212679b92d6a06.webp?v=1766377598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb62551d2f9c2dc7f6a1194b83905e62f6dc3f13.webp?v=1766377598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99d156f060be958faf6d43de9a3a92de3d4a47a6.webp?v=1766377599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7e56b0c75fdfac7d6efbdba12d0f907b04a8a6b.webp?v=1766377599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe05898876ed33a2a6e1c48e27e98496fac89071.webp?v=1766377600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72f79c61de883770a893582f12e647fcb19ef7b5.webp?v=1766377600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a800f3a2b3f0b3e0052504cf7712bf0c55b9d311.webp?v=1766377601"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60c6850093f81360f0d6cb64093a45c79a1c9a6a.webp?v=1766377596","options":["color"],"media":[{"alt":null,"id":26547236503651,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60c6850093f81360f0d6cb64093a45c79a1c9a6a.webp?v=1766377596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60c6850093f81360f0d6cb64093a45c79a1c9a6a.webp?v=1766377596","width":2000},{"alt":null,"id":26547236634723,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/108fea0fa4351b86c46bd4ec058fd6465beff343.webp?v=1766377597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/108fea0fa4351b86c46bd4ec058fd6465beff343.webp?v=1766377597","width":2000},{"alt":null,"id":26547236798563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/638f9cbd9446e0ca49aecd7696846357b28f18a3.webp?v=1766377597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/638f9cbd9446e0ca49aecd7696846357b28f18a3.webp?v=1766377597","width":2000},{"alt":null,"id":26547236929635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc5a8e67f93103f1cc934e65cdcd1bc22e2b667e.webp?v=1766377598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc5a8e67f93103f1cc934e65cdcd1bc22e2b667e.webp?v=1766377598","width":2000},{"alt":null,"id":26547237027939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f214f9b719ed9c6f7f24bbd09212679b92d6a06.webp?v=1766377598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f214f9b719ed9c6f7f24bbd09212679b92d6a06.webp?v=1766377598","width":2000},{"alt":null,"id":26547237126243,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb62551d2f9c2dc7f6a1194b83905e62f6dc3f13.webp?v=1766377598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb62551d2f9c2dc7f6a1194b83905e62f6dc3f13.webp?v=1766377598","width":2000},{"alt":null,"id":26547237322851,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99d156f060be958faf6d43de9a3a92de3d4a47a6.webp?v=1766377599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99d156f060be958faf6d43de9a3a92de3d4a47a6.webp?v=1766377599","width":2000},{"alt":null,"id":26547237388387,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7e56b0c75fdfac7d6efbdba12d0f907b04a8a6b.webp?v=1766377599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7e56b0c75fdfac7d6efbdba12d0f907b04a8a6b.webp?v=1766377599","width":2000},{"alt":null,"id":26547237453923,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe05898876ed33a2a6e1c48e27e98496fac89071.webp?v=1766377600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe05898876ed33a2a6e1c48e27e98496fac89071.webp?v=1766377600","width":2000},{"alt":null,"id":26547237519459,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72f79c61de883770a893582f12e647fcb19ef7b5.webp?v=1766377600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72f79c61de883770a893582f12e647fcb19ef7b5.webp?v=1766377600","width":2000},{"alt":null,"id":26547237584995,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a800f3a2b3f0b3e0052504cf7712bf0c55b9d311.webp?v=1766377601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a800f3a2b3f0b3e0052504cf7712bf0c55b9d311.webp?v=1766377601","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43903495897187,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-NYA10","requires_shipping":true,"taxable":true,"featured_image":{"id":34986164355171,"product_id":7942094880867,"position":4,"created_at":"2025-12-22T12:26:36+08:00","updated_at":"2025-12-22T12:26:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc5a8e67f93103f1cc934e65cdcd1bc22e2b667e.webp?v=1766377598","variant_ids":[43903495897187]},"available":true,"name":"iPhone 14 Pro Mod NX Nyangsongi 小貓的夜曲 - 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-NYA10","featured_media":{"alt":null,"id":26547236929635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc5a8e67f93103f1cc934e65cdcd1bc22e2b667e.webp?v=1766377598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43903495995491,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-NYA10","requires_shipping":true,"taxable":true,"featured_image":{"id":34986164551779,"product_id":7942094880867,"position":6,"created_at":"2025-12-22T12:26:36+08:00","updated_at":"2025-12-22T12:26:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb62551d2f9c2dc7f6a1194b83905e62f6dc3f13.webp?v=1766377598","variant_ids":[43903495995491]},"available":true,"name":"iPhone 14 Pro Mod NX Nyangsongi 小貓的夜曲 - 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-NYA10","featured_media":{"alt":null,"id":26547237126243,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb62551d2f9c2dc7f6a1194b83905e62f6dc3f13.webp?v=1766377598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43903496847459,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-NYA10","requires_shipping":true,"taxable":true,"featured_image":{"id":34986164224099,"product_id":7942094880867,"position":3,"created_at":"2025-12-22T12:26:35+08:00","updated_at":"2025-12-22T12:26:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/638f9cbd9446e0ca49aecd7696846357b28f18a3.webp?v=1766377597","variant_ids":[43903496847459]},"available":true,"name":"iPhone 14 Pro Mod NX Nyangsongi 小貓的夜曲 - 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-NYA10","featured_media":{"alt":null,"id":26547236798563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/638f9cbd9446e0ca49aecd7696846357b28f18a3.webp?v=1766377597"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43903495897187,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-NYA10","requires_shipping":true,"taxable":true,"featured_image":{"id":34986164355171,"product_id":7942094880867,"position":4,"created_at":"2025-12-22T12:26:36+08:00","updated_at":"2025-12-22T12:26:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc5a8e67f93103f1cc934e65cdcd1bc22e2b667e.webp?v=1766377598","variant_ids":[43903495897187]},"available":true,"name":"iPhone 14 Pro Mod NX Nyangsongi 小貓的夜曲 - 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-NYA10","featured_media":{"alt":null,"id":26547236929635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc5a8e67f93103f1cc934e65cdcd1bc22e2b667e.webp?v=1766377598"}},"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: "停產" }