$product = {"id":7838059298915,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) BOUNCE Hello 棒小兔","handle":"iphone-14-plus-mod-nx-magsafe-hk67","description":null,"published_at":"2025-07-16T11:49:17+08:00","created_at":"2025-07-16T09:48:05+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-bounce","device-iPhone 14 Plus","merge","reseller-bounce"],"price":110000,"price_min":110000,"price_max":110000,"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":43528654880867,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-HK67","requires_shipping":true,"taxable":true,"featured_image":{"id":34193323458659,"product_id":7838059298915,"position":3,"created_at":"2025-07-16T09:48:10+08:00","updated_at":"2025-07-16T09:48:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e56daf75ad4228ce609aed15319e5f56848de7e0.webp?v=1752630492","variant_ids":[43528654880867]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) BOUNCE Hello 棒小兔 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-HK67","featured_media":{"alt":null,"id":25827394912355,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e56daf75ad4228ce609aed15319e5f56848de7e0.webp?v=1752630492"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e497a5e4255410779425f0c309ca73da38de3670.webp?v=1752630491","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b401aa2549f480b774353542bfff1b2110523c74.webp?v=1752630492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e56daf75ad4228ce609aed15319e5f56848de7e0.webp?v=1752630492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0261d6cc125b82f86be069dad069eb66a274328.webp?v=1752630493","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91bb69f76fa8020f8d0cfe8087b339e242d7aadf.webp?v=1752630493","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69d94c676827c1c8f71d467dee23b8bc92037741.webp?v=1752630494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fe0c32ec5b398441e1c0df3123b17305b176958.webp?v=1752630494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d2548ab5949121ed2c851065f79c87317901df2.webp?v=1752630495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3284b216573e5ac061db4c939bc1995ed0f326d7.webp?v=1752630495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a67dcfc9fd1846f30058a359e60ebf1779f62d63.webp?v=1752630496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63961f3b77c2b27cd9f25d14fcf93d7a87877a60.webp?v=1752630497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20c171d534e9b026531bc424ca37cf71688d7c4a.webp?v=1752630497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/485f40f77bc2816ccc81f130328790ec37d7e4ea.webp?v=1752630498"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e497a5e4255410779425f0c309ca73da38de3670.webp?v=1752630491","options":["color"],"media":[{"alt":null,"id":25827394388067,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e497a5e4255410779425f0c309ca73da38de3670.webp?v=1752630491"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e497a5e4255410779425f0c309ca73da38de3670.webp?v=1752630491","width":2000},{"alt":null,"id":25827394748515,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b401aa2549f480b774353542bfff1b2110523c74.webp?v=1752630492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b401aa2549f480b774353542bfff1b2110523c74.webp?v=1752630492","width":2000},{"alt":null,"id":25827394912355,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e56daf75ad4228ce609aed15319e5f56848de7e0.webp?v=1752630492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e56daf75ad4228ce609aed15319e5f56848de7e0.webp?v=1752630492","width":2000},{"alt":null,"id":25827395043427,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0261d6cc125b82f86be069dad069eb66a274328.webp?v=1752630493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0261d6cc125b82f86be069dad069eb66a274328.webp?v=1752630493","width":2000},{"alt":null,"id":25827395240035,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91bb69f76fa8020f8d0cfe8087b339e242d7aadf.webp?v=1752630493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91bb69f76fa8020f8d0cfe8087b339e242d7aadf.webp?v=1752630493","width":2000},{"alt":null,"id":25827395371107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69d94c676827c1c8f71d467dee23b8bc92037741.webp?v=1752630494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69d94c676827c1c8f71d467dee23b8bc92037741.webp?v=1752630494","width":2000},{"alt":null,"id":25827395600483,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fe0c32ec5b398441e1c0df3123b17305b176958.webp?v=1752630494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fe0c32ec5b398441e1c0df3123b17305b176958.webp?v=1752630494","width":2000},{"alt":null,"id":25827396059235,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d2548ab5949121ed2c851065f79c87317901df2.webp?v=1752630495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d2548ab5949121ed2c851065f79c87317901df2.webp?v=1752630495","width":2000},{"alt":null,"id":25827396223075,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3284b216573e5ac061db4c939bc1995ed0f326d7.webp?v=1752630495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3284b216573e5ac061db4c939bc1995ed0f326d7.webp?v=1752630495","width":2000},{"alt":null,"id":25827396517987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a67dcfc9fd1846f30058a359e60ebf1779f62d63.webp?v=1752630496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a67dcfc9fd1846f30058a359e60ebf1779f62d63.webp?v=1752630496","width":2000},{"alt":null,"id":25827396747363,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63961f3b77c2b27cd9f25d14fcf93d7a87877a60.webp?v=1752630497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63961f3b77c2b27cd9f25d14fcf93d7a87877a60.webp?v=1752630497","width":2000},{"alt":null,"id":25827397009507,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20c171d534e9b026531bc424ca37cf71688d7c4a.webp?v=1752630497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20c171d534e9b026531bc424ca37cf71688d7c4a.webp?v=1752630497","width":2000},{"alt":null,"id":25827397206115,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/485f40f77bc2816ccc81f130328790ec37d7e4ea.webp?v=1752630498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/485f40f77bc2816ccc81f130328790ec37d7e4ea.webp?v=1752630498","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43528654880867,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-HK67","requires_shipping":true,"taxable":true,"featured_image":{"id":34193323458659,"product_id":7838059298915,"position":3,"created_at":"2025-07-16T09:48:10+08:00","updated_at":"2025-07-16T09:48:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e56daf75ad4228ce609aed15319e5f56848de7e0.webp?v=1752630492","variant_ids":[43528654880867]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) BOUNCE Hello 棒小兔 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-HK67","featured_media":{"alt":null,"id":25827394912355,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e56daf75ad4228ce609aed15319e5f56848de7e0.webp?v=1752630492"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43528654880867,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-HK67","requires_shipping":true,"taxable":true,"featured_image":{"id":34193323458659,"product_id":7838059298915,"position":3,"created_at":"2025-07-16T09:48:10+08:00","updated_at":"2025-07-16T09:48:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e56daf75ad4228ce609aed15319e5f56848de7e0.webp?v=1752630492","variant_ids":[43528654880867]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) BOUNCE Hello 棒小兔 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-HK67","featured_media":{"alt":null,"id":25827394912355,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e56daf75ad4228ce609aed15319e5f56848de7e0.webp?v=1752630492"}},"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: "停產" }