$product = {"id":7838026498147,"title":"iPhone 13 Pro Max Mod NX BOUNCE Bounce Universe","handle":"iphone-13-pro-max-mod-nx-hk61","description":null,"published_at":"2025-07-16T12:01:44+08:00","created_at":"2025-07-16T09:37:44+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-bounce","device-iPhone 13 Pro Max","merge","reseller-bounce"],"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":43528526430307,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0123224-HK61","requires_shipping":true,"taxable":true,"featured_image":{"id":34193054662755,"product_id":7838026498147,"position":6,"created_at":"2025-07-16T09:37:51+08:00","updated_at":"2025-07-16T09:37:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/165a36588a1159070b59d14c586abfb770a98b6d.webp?v=1752629873","variant_ids":[43528526430307]},"available":true,"name":"iPhone 13 Pro Max Mod NX BOUNCE Bounce Universe - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-HK61","featured_media":{"alt":null,"id":25827248210019,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/165a36588a1159070b59d14c586abfb770a98b6d.webp?v=1752629873"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43528526561379,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01232J5-HK61","requires_shipping":true,"taxable":true,"featured_image":{"id":34193053745251,"product_id":7838026498147,"position":3,"created_at":"2025-07-16T09:37:50+08:00","updated_at":"2025-07-16T09:37:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f37c5539ece720fb1543fde9e231019ca0d5217.webp?v=1752629871","variant_ids":[43528526561379]},"available":true,"name":"iPhone 13 Pro Max Mod NX BOUNCE Bounce Universe - 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":"NPB01232J5-HK61","featured_media":{"alt":null,"id":25827247915107,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f37c5539ece720fb1543fde9e231019ca0d5217.webp?v=1752629871"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95818c91d08ebf16eeadc202e75f91914f9290fb.webp?v=1752629870","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81cc0cc3f7e4809709265d61cff8a4fc0f799c10.webp?v=1752629871","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f37c5539ece720fb1543fde9e231019ca0d5217.webp?v=1752629871","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f57e1d2a295062e7d57e37a1cc6cf665512b1ef7.webp?v=1752629872","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ade2787f8f6de66f742b98b61136d545af78284.webp?v=1752629873","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/165a36588a1159070b59d14c586abfb770a98b6d.webp?v=1752629873","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86d29f8b06174d0c4c66313c4461d5dac9686333.webp?v=1752629874","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98344868d9b391f61f9d23384ac7beea70e7a3e1.webp?v=1752629874","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3614d7d7e770c67cf42c086af21371a29ddc78c.webp?v=1752629875","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f647ac4c88edb8a1e8e73328695f6bb80ce61fa.webp?v=1752629875"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95818c91d08ebf16eeadc202e75f91914f9290fb.webp?v=1752629870","options":["color"],"media":[{"alt":null,"id":25827247292515,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95818c91d08ebf16eeadc202e75f91914f9290fb.webp?v=1752629870"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95818c91d08ebf16eeadc202e75f91914f9290fb.webp?v=1752629870","width":2000},{"alt":null,"id":25827247751267,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81cc0cc3f7e4809709265d61cff8a4fc0f799c10.webp?v=1752629871"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81cc0cc3f7e4809709265d61cff8a4fc0f799c10.webp?v=1752629871","width":2000},{"alt":null,"id":25827247915107,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f37c5539ece720fb1543fde9e231019ca0d5217.webp?v=1752629871"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f37c5539ece720fb1543fde9e231019ca0d5217.webp?v=1752629871","width":2000},{"alt":null,"id":25827248046179,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f57e1d2a295062e7d57e37a1cc6cf665512b1ef7.webp?v=1752629872"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f57e1d2a295062e7d57e37a1cc6cf665512b1ef7.webp?v=1752629872","width":2000},{"alt":null,"id":25827248144483,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ade2787f8f6de66f742b98b61136d545af78284.webp?v=1752629873"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ade2787f8f6de66f742b98b61136d545af78284.webp?v=1752629873","width":2000},{"alt":null,"id":25827248210019,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/165a36588a1159070b59d14c586abfb770a98b6d.webp?v=1752629873"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/165a36588a1159070b59d14c586abfb770a98b6d.webp?v=1752629873","width":2000},{"alt":null,"id":25827248472163,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86d29f8b06174d0c4c66313c4461d5dac9686333.webp?v=1752629874"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86d29f8b06174d0c4c66313c4461d5dac9686333.webp?v=1752629874","width":2000},{"alt":null,"id":25827248603235,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98344868d9b391f61f9d23384ac7beea70e7a3e1.webp?v=1752629874"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98344868d9b391f61f9d23384ac7beea70e7a3e1.webp?v=1752629874","width":2000},{"alt":null,"id":25827248832611,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3614d7d7e770c67cf42c086af21371a29ddc78c.webp?v=1752629875"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3614d7d7e770c67cf42c086af21371a29ddc78c.webp?v=1752629875","width":2000},{"alt":null,"id":25827248996451,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f647ac4c88edb8a1e8e73328695f6bb80ce61fa.webp?v=1752629875"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f647ac4c88edb8a1e8e73328695f6bb80ce61fa.webp?v=1752629875","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43528526430307,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0123224-HK61","requires_shipping":true,"taxable":true,"featured_image":{"id":34193054662755,"product_id":7838026498147,"position":6,"created_at":"2025-07-16T09:37:51+08:00","updated_at":"2025-07-16T09:37:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/165a36588a1159070b59d14c586abfb770a98b6d.webp?v=1752629873","variant_ids":[43528526430307]},"available":true,"name":"iPhone 13 Pro Max Mod NX BOUNCE Bounce Universe - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-HK61","featured_media":{"alt":null,"id":25827248210019,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/165a36588a1159070b59d14c586abfb770a98b6d.webp?v=1752629873"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43528526561379,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01232J5-HK61","requires_shipping":true,"taxable":true,"featured_image":{"id":34193053745251,"product_id":7838026498147,"position":3,"created_at":"2025-07-16T09:37:50+08:00","updated_at":"2025-07-16T09:37:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f37c5539ece720fb1543fde9e231019ca0d5217.webp?v=1752629871","variant_ids":[43528526561379]},"available":true,"name":"iPhone 13 Pro Max Mod NX BOUNCE Bounce Universe - 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":"NPB01232J5-HK61","featured_media":{"alt":null,"id":25827247915107,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f37c5539ece720fb1543fde9e231019ca0d5217.webp?v=1752629871"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43528526430307,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0123224-HK61","requires_shipping":true,"taxable":true,"featured_image":{"id":34193054662755,"product_id":7838026498147,"position":6,"created_at":"2025-07-16T09:37:51+08:00","updated_at":"2025-07-16T09:37:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/165a36588a1159070b59d14c586abfb770a98b6d.webp?v=1752629873","variant_ids":[43528526430307]},"available":true,"name":"iPhone 13 Pro Max Mod NX BOUNCE Bounce Universe - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-HK61","featured_media":{"alt":null,"id":25827248210019,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/165a36588a1159070b59d14c586abfb770a98b6d.webp?v=1752629873"}},"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: "停產" }