$product = {"id":7888515399779,"title":"iPhone X Mod NX 布朗尼 annnbrownie 晚安熊熊","handle":"iphone-x-mod-nx-printable-es06","description":null,"published_at":"2025-09-23T09:12:18+08:00","created_at":"2025-09-22T16:00:45+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-annnbrownie","device-iPhone X","merge","reseller-annnbrownie"],"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":43743420612707,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0106424-ES06","requires_shipping":true,"taxable":true,"featured_image":{"id":34514731073635,"product_id":7888515399779,"position":5,"created_at":"2025-09-22T16:00:51+08:00","updated_at":"2025-09-22T16:00:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22f59a297803a6b35f60a87e66e0cdbf3bfe73f.webp?v=1758528053","variant_ids":[43743420612707]},"available":true,"name":"iPhone X Mod NX 布朗尼 annnbrownie 晚安熊熊 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0106424-ES06","featured_media":{"alt":null,"id":26085173526627,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22f59a297803a6b35f60a87e66e0cdbf3bfe73f.webp?v=1758528053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/363a1b622b67717c822056d28bd1507e4b918b8b.webp?v=1758528051","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc3f936a10a5121a28c8a519c04e7bdd9f62ac4f.webp?v=1758528052","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f60a2c2466c3220f712b2beb8b40c0c990c31ff.webp?v=1758528052","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1878e5a8d2949ba1876e7e36d8783de16ac81bad.webp?v=1758528053","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22f59a297803a6b35f60a87e66e0cdbf3bfe73f.webp?v=1758528053","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d24db00eec4569ebcf921f02c63bd4f6a2f9bd9.webp?v=1758528054","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6662f6d643a09f624e768fed65b7197937dec68.webp?v=1758528054","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a77d117f78455d3810a31eca1e39f10c76b634e.webp?v=1758528055","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/930c5dcbe02b69c5a523f40e0f2f783e35b34110.webp?v=1758528055","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3667db5f2c7c5cefafb846e1c81482b0dfb8d571.webp?v=1758528056"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/363a1b622b67717c822056d28bd1507e4b918b8b.webp?v=1758528051","options":["color"],"media":[{"alt":null,"id":26085172871267,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/363a1b622b67717c822056d28bd1507e4b918b8b.webp?v=1758528051"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/363a1b622b67717c822056d28bd1507e4b918b8b.webp?v=1758528051","width":2000},{"alt":null,"id":26085173100643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc3f936a10a5121a28c8a519c04e7bdd9f62ac4f.webp?v=1758528052"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc3f936a10a5121a28c8a519c04e7bdd9f62ac4f.webp?v=1758528052","width":2000},{"alt":null,"id":26085173231715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f60a2c2466c3220f712b2beb8b40c0c990c31ff.webp?v=1758528052"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f60a2c2466c3220f712b2beb8b40c0c990c31ff.webp?v=1758528052","width":2000},{"alt":null,"id":26085173362787,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1878e5a8d2949ba1876e7e36d8783de16ac81bad.webp?v=1758528053"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1878e5a8d2949ba1876e7e36d8783de16ac81bad.webp?v=1758528053","width":2000},{"alt":null,"id":26085173526627,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22f59a297803a6b35f60a87e66e0cdbf3bfe73f.webp?v=1758528053"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22f59a297803a6b35f60a87e66e0cdbf3bfe73f.webp?v=1758528053","width":2000},{"alt":null,"id":26085173756003,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d24db00eec4569ebcf921f02c63bd4f6a2f9bd9.webp?v=1758528054"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d24db00eec4569ebcf921f02c63bd4f6a2f9bd9.webp?v=1758528054","width":2000},{"alt":null,"id":26085174083683,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6662f6d643a09f624e768fed65b7197937dec68.webp?v=1758528054"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6662f6d643a09f624e768fed65b7197937dec68.webp?v=1758528054","width":2000},{"alt":null,"id":26085174247523,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a77d117f78455d3810a31eca1e39f10c76b634e.webp?v=1758528055"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a77d117f78455d3810a31eca1e39f10c76b634e.webp?v=1758528055","width":2000},{"alt":null,"id":26085174411363,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/930c5dcbe02b69c5a523f40e0f2f783e35b34110.webp?v=1758528055"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/930c5dcbe02b69c5a523f40e0f2f783e35b34110.webp?v=1758528055","width":2000},{"alt":null,"id":26085174575203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3667db5f2c7c5cefafb846e1c81482b0dfb8d571.webp?v=1758528056"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3667db5f2c7c5cefafb846e1c81482b0dfb8d571.webp?v=1758528056","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43743420612707,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0106424-ES06","requires_shipping":true,"taxable":true,"featured_image":{"id":34514731073635,"product_id":7888515399779,"position":5,"created_at":"2025-09-22T16:00:51+08:00","updated_at":"2025-09-22T16:00:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22f59a297803a6b35f60a87e66e0cdbf3bfe73f.webp?v=1758528053","variant_ids":[43743420612707]},"available":true,"name":"iPhone X Mod NX 布朗尼 annnbrownie 晚安熊熊 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0106424-ES06","featured_media":{"alt":null,"id":26085173526627,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22f59a297803a6b35f60a87e66e0cdbf3bfe73f.webp?v=1758528053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43743420612707,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0106424-ES06","requires_shipping":true,"taxable":true,"featured_image":{"id":34514731073635,"product_id":7888515399779,"position":5,"created_at":"2025-09-22T16:00:51+08:00","updated_at":"2025-09-22T16:00:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22f59a297803a6b35f60a87e66e0cdbf3bfe73f.webp?v=1758528053","variant_ids":[43743420612707]},"available":true,"name":"iPhone X Mod NX 布朗尼 annnbrownie 晚安熊熊 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0106424-ES06","featured_media":{"alt":null,"id":26085173526627,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22f59a297803a6b35f60a87e66e0cdbf3bfe73f.webp?v=1758528053"}},"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: "停產" }