$product = {"id":7921264492643,"title":"iPhone X Mod NX 懶散兔與啾先生 Fly Freely","handle":"iphone-x-mod-nx-ec81","description":null,"published_at":"2025-11-14T10:32:13+08:00","created_at":"2025-11-11T10:33:00+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-bylobster","device-iPhone X","merge","reseller-bylobster"],"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":43831380476003,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0106424-EC81","requires_shipping":true,"taxable":true,"featured_image":{"id":34786825338979,"product_id":7921264492643,"position":2,"created_at":"2025-11-11T10:33:02+08:00","updated_at":"2025-11-11T10:33:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/184cd9b69260adaa70d3d00344f723b398445e2c.webp?v=1762828384","variant_ids":[43831380476003]},"available":true,"name":"iPhone X Mod NX 懶散兔與啾先生 Fly Freely - 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-EC81","featured_media":{"alt":null,"id":26352281518179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/184cd9b69260adaa70d3d00344f723b398445e2c.webp?v=1762828384"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3680bc02a5fc45ec7ac365345651d42a9111d1ac.webp?v=1762828383","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/184cd9b69260adaa70d3d00344f723b398445e2c.webp?v=1762828384","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/588aace201df7ab3f0f3e952eaa81140da9e7839.webp?v=1762828385","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9042c8e7d91db9818f61a6c3a200424741460b5.webp?v=1762828385","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a77f147a540d0cc1fe85c84814221ba6fb3d20f0.webp?v=1762828386","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17d093fb93afdf53455cf95ea9d7a9f47ab00331.webp?v=1762828387","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e070b65614379aee755a204bc135166a74e9b6.webp?v=1762828388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a36cca72790bda2ad786f77ff398a49d3c5510ac.webp?v=1762828388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be82fa22c56cda43228389e7eb2b4bb4a0844798.webp?v=1762828389","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d13140deba947d2ecddfa80ec77adf62b3a0c1.webp?v=1762828391"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3680bc02a5fc45ec7ac365345651d42a9111d1ac.webp?v=1762828383","options":["color"],"media":[{"alt":null,"id":26352281354339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3680bc02a5fc45ec7ac365345651d42a9111d1ac.webp?v=1762828383"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3680bc02a5fc45ec7ac365345651d42a9111d1ac.webp?v=1762828383","width":2000},{"alt":null,"id":26352281518179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/184cd9b69260adaa70d3d00344f723b398445e2c.webp?v=1762828384"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/184cd9b69260adaa70d3d00344f723b398445e2c.webp?v=1762828384","width":2000},{"alt":null,"id":26352281714787,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/588aace201df7ab3f0f3e952eaa81140da9e7839.webp?v=1762828385"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/588aace201df7ab3f0f3e952eaa81140da9e7839.webp?v=1762828385","width":2000},{"alt":null,"id":26352281944163,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9042c8e7d91db9818f61a6c3a200424741460b5.webp?v=1762828385"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9042c8e7d91db9818f61a6c3a200424741460b5.webp?v=1762828385","width":2000},{"alt":null,"id":26352282075235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a77f147a540d0cc1fe85c84814221ba6fb3d20f0.webp?v=1762828386"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a77f147a540d0cc1fe85c84814221ba6fb3d20f0.webp?v=1762828386","width":2000},{"alt":null,"id":26352282337379,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17d093fb93afdf53455cf95ea9d7a9f47ab00331.webp?v=1762828387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17d093fb93afdf53455cf95ea9d7a9f47ab00331.webp?v=1762828387","width":2000},{"alt":null,"id":26352282763363,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e070b65614379aee755a204bc135166a74e9b6.webp?v=1762828388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e070b65614379aee755a204bc135166a74e9b6.webp?v=1762828388","width":2000},{"alt":null,"id":26352283091043,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a36cca72790bda2ad786f77ff398a49d3c5510ac.webp?v=1762828388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a36cca72790bda2ad786f77ff398a49d3c5510ac.webp?v=1762828388","width":2000},{"alt":null,"id":26352283418723,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be82fa22c56cda43228389e7eb2b4bb4a0844798.webp?v=1762828389"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be82fa22c56cda43228389e7eb2b4bb4a0844798.webp?v=1762828389","width":2000},{"alt":null,"id":26352283877475,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d13140deba947d2ecddfa80ec77adf62b3a0c1.webp?v=1762828391"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12d13140deba947d2ecddfa80ec77adf62b3a0c1.webp?v=1762828391","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43831380476003,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0106424-EC81","requires_shipping":true,"taxable":true,"featured_image":{"id":34786825338979,"product_id":7921264492643,"position":2,"created_at":"2025-11-11T10:33:02+08:00","updated_at":"2025-11-11T10:33:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/184cd9b69260adaa70d3d00344f723b398445e2c.webp?v=1762828384","variant_ids":[43831380476003]},"available":true,"name":"iPhone X Mod NX 懶散兔與啾先生 Fly Freely - 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-EC81","featured_media":{"alt":null,"id":26352281518179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/184cd9b69260adaa70d3d00344f723b398445e2c.webp?v=1762828384"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43831380476003,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0106424-EC81","requires_shipping":true,"taxable":true,"featured_image":{"id":34786825338979,"product_id":7921264492643,"position":2,"created_at":"2025-11-11T10:33:02+08:00","updated_at":"2025-11-11T10:33:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/184cd9b69260adaa70d3d00344f723b398445e2c.webp?v=1762828384","variant_ids":[43831380476003]},"available":true,"name":"iPhone X Mod NX 懶散兔與啾先生 Fly Freely - 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-EC81","featured_media":{"alt":null,"id":26352281518179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/184cd9b69260adaa70d3d00344f723b398445e2c.webp?v=1762828384"}},"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: "停產" }