$product = {"id":7838040883299,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) BOUNCE Bomb the system","handle":"iphone-14-plus-mod-nx-magsafe-hk64","description":null,"published_at":"2025-07-16T11:56:22+08:00","created_at":"2025-07-16T09:44:11+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":43528581415011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-HK64","requires_shipping":true,"taxable":true,"featured_image":{"id":34193175576675,"product_id":7838040883299,"position":10,"created_at":"2025-07-16T09:44:20+08:00","updated_at":"2025-07-16T09:44:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40c7481179257e93d0461eae4c12fd8bf438af65.webp?v=1752630262","variant_ids":[43528581415011]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) BOUNCE Bomb the system - 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-HK64","featured_media":{"alt":null,"id":25827316269155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40c7481179257e93d0461eae4c12fd8bf438af65.webp?v=1752630262"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/459c499ca3a7c0fc2365e5a31b29759d7675f281.webp?v=1752630257","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/043f399191cdddf4fa11d4a5f7cec44803e4787e.webp?v=1752630258","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25635929f42914baab8848bdd845ddbbb66c25a9.webp?v=1752630258","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9fe6594892b833c232e8644504c471549c63aad.webp?v=1752630259","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bb78e750a3a096cd7622a688ce357c6401cac79.webp?v=1752630259","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a2c5c147c9db4b83cc9986ede7b33d26a9e2c96.webp?v=1752630260","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2e948169ba98df29a1dfd6d566cb97a5b3132ad.webp?v=1752630261","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84314fda4059accd842e8860975df8b33c1e1990.webp?v=1752630261","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5de1ddbcdc496c1caf8026900a260c5501adf3e.webp?v=1752630262","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40c7481179257e93d0461eae4c12fd8bf438af65.webp?v=1752630262","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2580b116e25dddb51b3f220b05daebc76f9d0e72.webp?v=1752630263","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/225912d470d5d38e3e2709d7d3a7553ec3cd9d42.webp?v=1752630263","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a68c076c0722adfd598ac00be6cf3b500737a5.webp?v=1752630264"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/459c499ca3a7c0fc2365e5a31b29759d7675f281.webp?v=1752630257","options":["color"],"media":[{"alt":null,"id":25827314630755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/459c499ca3a7c0fc2365e5a31b29759d7675f281.webp?v=1752630257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/459c499ca3a7c0fc2365e5a31b29759d7675f281.webp?v=1752630257","width":2000},{"alt":null,"id":25827314729059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/043f399191cdddf4fa11d4a5f7cec44803e4787e.webp?v=1752630258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/043f399191cdddf4fa11d4a5f7cec44803e4787e.webp?v=1752630258","width":2000},{"alt":null,"id":25827314892899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25635929f42914baab8848bdd845ddbbb66c25a9.webp?v=1752630258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25635929f42914baab8848bdd845ddbbb66c25a9.webp?v=1752630258","width":2000},{"alt":null,"id":25827314925667,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9fe6594892b833c232e8644504c471549c63aad.webp?v=1752630259"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9fe6594892b833c232e8644504c471549c63aad.webp?v=1752630259","width":2000},{"alt":null,"id":25827314991203,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bb78e750a3a096cd7622a688ce357c6401cac79.webp?v=1752630259"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bb78e750a3a096cd7622a688ce357c6401cac79.webp?v=1752630259","width":2000},{"alt":null,"id":25827315351651,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a2c5c147c9db4b83cc9986ede7b33d26a9e2c96.webp?v=1752630260"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a2c5c147c9db4b83cc9986ede7b33d26a9e2c96.webp?v=1752630260","width":2000},{"alt":null,"id":25827315646563,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2e948169ba98df29a1dfd6d566cb97a5b3132ad.webp?v=1752630261"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2e948169ba98df29a1dfd6d566cb97a5b3132ad.webp?v=1752630261","width":2000},{"alt":null,"id":25827315810403,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84314fda4059accd842e8860975df8b33c1e1990.webp?v=1752630261"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84314fda4059accd842e8860975df8b33c1e1990.webp?v=1752630261","width":2000},{"alt":null,"id":25827315974243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5de1ddbcdc496c1caf8026900a260c5501adf3e.webp?v=1752630262"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5de1ddbcdc496c1caf8026900a260c5501adf3e.webp?v=1752630262","width":2000},{"alt":null,"id":25827316269155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40c7481179257e93d0461eae4c12fd8bf438af65.webp?v=1752630262"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40c7481179257e93d0461eae4c12fd8bf438af65.webp?v=1752630262","width":2000},{"alt":null,"id":25827316498531,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2580b116e25dddb51b3f220b05daebc76f9d0e72.webp?v=1752630263"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2580b116e25dddb51b3f220b05daebc76f9d0e72.webp?v=1752630263","width":2000},{"alt":null,"id":25827316662371,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/225912d470d5d38e3e2709d7d3a7553ec3cd9d42.webp?v=1752630263"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/225912d470d5d38e3e2709d7d3a7553ec3cd9d42.webp?v=1752630263","width":2000},{"alt":null,"id":25827316793443,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a68c076c0722adfd598ac00be6cf3b500737a5.webp?v=1752630264"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a68c076c0722adfd598ac00be6cf3b500737a5.webp?v=1752630264","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43528581415011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-HK64","requires_shipping":true,"taxable":true,"featured_image":{"id":34193175576675,"product_id":7838040883299,"position":10,"created_at":"2025-07-16T09:44:20+08:00","updated_at":"2025-07-16T09:44:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40c7481179257e93d0461eae4c12fd8bf438af65.webp?v=1752630262","variant_ids":[43528581415011]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) BOUNCE Bomb the system - 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-HK64","featured_media":{"alt":null,"id":25827316269155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40c7481179257e93d0461eae4c12fd8bf438af65.webp?v=1752630262"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43528581415011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-HK64","requires_shipping":true,"taxable":true,"featured_image":{"id":34193175576675,"product_id":7838040883299,"position":10,"created_at":"2025-07-16T09:44:20+08:00","updated_at":"2025-07-16T09:44:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40c7481179257e93d0461eae4c12fd8bf438af65.webp?v=1752630262","variant_ids":[43528581415011]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) BOUNCE Bomb the system - 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-HK64","featured_media":{"alt":null,"id":25827316269155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40c7481179257e93d0461eae4c12fd8bf438af65.webp?v=1752630262"}},"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: "停產" }