$product = {"id":7942094651491,"title":"iPhone 14 Pro Mod NX Nyangsongi 搗蛋鬼","handle":"iphone-14-pro-mod-nx-nya04","description":null,"published_at":"2025-12-23T09:59:14+08:00","created_at":"2025-12-22T12:25:04+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":43903490457699,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-NYA04","requires_shipping":true,"taxable":true,"featured_image":{"id":34986158293091,"product_id":7942094651491,"position":3,"created_at":"2025-12-22T12:25:36+08:00","updated_at":"2025-12-22T12:25:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72484e9e4e67be47eddc72a7802c486a2b31543c.webp?v=1766377538","variant_ids":[43903490457699]},"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-NYA04","featured_media":{"alt":null,"id":26547231031395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72484e9e4e67be47eddc72a7802c486a2b31543c.webp?v=1766377538"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43903490588771,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-NYA04","requires_shipping":true,"taxable":true,"featured_image":{"id":34986158194787,"product_id":7942094651491,"position":2,"created_at":"2025-12-22T12:25:36+08:00","updated_at":"2025-12-22T12:25:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b87d65290bf7e15fc47228ce0d41c0140419e8b8.webp?v=1766377538","variant_ids":[43903490588771]},"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-NYA04","featured_media":{"alt":null,"id":26547230933091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b87d65290bf7e15fc47228ce0d41c0140419e8b8.webp?v=1766377538"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43903491178595,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-NYA04","requires_shipping":true,"taxable":true,"featured_image":{"id":34986159079523,"product_id":7942094651491,"position":10,"created_at":"2025-12-22T12:25:41+08:00","updated_at":"2025-12-22T12:25:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ce420b79d704a5f6268aec00b5f443a59d360cc.webp?v=1766377543","variant_ids":[43903491178595]},"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-NYA04","featured_media":{"alt":null,"id":26547231817827,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ce420b79d704a5f6268aec00b5f443a59d360cc.webp?v=1766377543"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/582864e92f970c149a5af40ff069fca69fdac4ba.webp?v=1766377537","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b87d65290bf7e15fc47228ce0d41c0140419e8b8.webp?v=1766377538","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72484e9e4e67be47eddc72a7802c486a2b31543c.webp?v=1766377538","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c279ce6396ee1141e2f87564cda706614cafe08.webp?v=1766377539","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5bea1809d2bd6fcf3cd4ac94b6563fa43df09ef.webp?v=1766377539","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d250519c969a1d63bc205e9a17ca30b649f82fc.webp?v=1766377540","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2591bceea35babfe4460c1627281cefc296fd304.webp?v=1766377541","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/838238703c0b4adf6988bf4469a83aca3b5db92c.webp?v=1766377542","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dc21bd58a33ebf4264624879efb3420cefa9e5d.webp?v=1766377542","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ce420b79d704a5f6268aec00b5f443a59d360cc.webp?v=1766377543","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/378fbd77d85191a442ff603cf17d78ef92e08017.webp?v=1766377543"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/582864e92f970c149a5af40ff069fca69fdac4ba.webp?v=1766377537","options":["color"],"media":[{"alt":null,"id":26547230834787,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/582864e92f970c149a5af40ff069fca69fdac4ba.webp?v=1766377537"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/582864e92f970c149a5af40ff069fca69fdac4ba.webp?v=1766377537","width":2000},{"alt":null,"id":26547230933091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b87d65290bf7e15fc47228ce0d41c0140419e8b8.webp?v=1766377538"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b87d65290bf7e15fc47228ce0d41c0140419e8b8.webp?v=1766377538","width":2000},{"alt":null,"id":26547231031395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72484e9e4e67be47eddc72a7802c486a2b31543c.webp?v=1766377538"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72484e9e4e67be47eddc72a7802c486a2b31543c.webp?v=1766377538","width":2000},{"alt":null,"id":26547231096931,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c279ce6396ee1141e2f87564cda706614cafe08.webp?v=1766377539"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c279ce6396ee1141e2f87564cda706614cafe08.webp?v=1766377539","width":2000},{"alt":null,"id":26547231195235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5bea1809d2bd6fcf3cd4ac94b6563fa43df09ef.webp?v=1766377539"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5bea1809d2bd6fcf3cd4ac94b6563fa43df09ef.webp?v=1766377539","width":2000},{"alt":null,"id":26547231293539,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d250519c969a1d63bc205e9a17ca30b649f82fc.webp?v=1766377540"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d250519c969a1d63bc205e9a17ca30b649f82fc.webp?v=1766377540","width":2000},{"alt":null,"id":26547231391843,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2591bceea35babfe4460c1627281cefc296fd304.webp?v=1766377541"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2591bceea35babfe4460c1627281cefc296fd304.webp?v=1766377541","width":2000},{"alt":null,"id":26547231490147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/838238703c0b4adf6988bf4469a83aca3b5db92c.webp?v=1766377542"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/838238703c0b4adf6988bf4469a83aca3b5db92c.webp?v=1766377542","width":2000},{"alt":null,"id":26547231588451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dc21bd58a33ebf4264624879efb3420cefa9e5d.webp?v=1766377542"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dc21bd58a33ebf4264624879efb3420cefa9e5d.webp?v=1766377542","width":2000},{"alt":null,"id":26547231817827,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ce420b79d704a5f6268aec00b5f443a59d360cc.webp?v=1766377543"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ce420b79d704a5f6268aec00b5f443a59d360cc.webp?v=1766377543","width":2000},{"alt":null,"id":26547231948899,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/378fbd77d85191a442ff603cf17d78ef92e08017.webp?v=1766377543"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/378fbd77d85191a442ff603cf17d78ef92e08017.webp?v=1766377543","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43903490457699,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-NYA04","requires_shipping":true,"taxable":true,"featured_image":{"id":34986158293091,"product_id":7942094651491,"position":3,"created_at":"2025-12-22T12:25:36+08:00","updated_at":"2025-12-22T12:25:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72484e9e4e67be47eddc72a7802c486a2b31543c.webp?v=1766377538","variant_ids":[43903490457699]},"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-NYA04","featured_media":{"alt":null,"id":26547231031395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72484e9e4e67be47eddc72a7802c486a2b31543c.webp?v=1766377538"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43903490588771,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-NYA04","requires_shipping":true,"taxable":true,"featured_image":{"id":34986158194787,"product_id":7942094651491,"position":2,"created_at":"2025-12-22T12:25:36+08:00","updated_at":"2025-12-22T12:25:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b87d65290bf7e15fc47228ce0d41c0140419e8b8.webp?v=1766377538","variant_ids":[43903490588771]},"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-NYA04","featured_media":{"alt":null,"id":26547230933091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b87d65290bf7e15fc47228ce0d41c0140419e8b8.webp?v=1766377538"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43903491178595,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-NYA04","requires_shipping":true,"taxable":true,"featured_image":{"id":34986159079523,"product_id":7942094651491,"position":10,"created_at":"2025-12-22T12:25:41+08:00","updated_at":"2025-12-22T12:25:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ce420b79d704a5f6268aec00b5f443a59d360cc.webp?v=1766377543","variant_ids":[43903491178595]},"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-NYA04","featured_media":{"alt":null,"id":26547231817827,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ce420b79d704a5f6268aec00b5f443a59d360cc.webp?v=1766377543"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43903490457699,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-NYA04","requires_shipping":true,"taxable":true,"featured_image":{"id":34986158293091,"product_id":7942094651491,"position":3,"created_at":"2025-12-22T12:25:36+08:00","updated_at":"2025-12-22T12:25:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72484e9e4e67be47eddc72a7802c486a2b31543c.webp?v=1766377538","variant_ids":[43903490457699]},"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-NYA04","featured_media":{"alt":null,"id":26547231031395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72484e9e4e67be47eddc72a7802c486a2b31543c.webp?v=1766377538"}},"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: "停產" }