$product = {"id":7838035017827,"title":"iPhone 14 Plus Mod NX BOUNCE 棒棒獸","handle":"iphone-14-plus-mod-nx-hk66","description":null,"published_at":"2025-07-16T11:58:15+08:00","created_at":"2025-07-16T09:39:34+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":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":43528559689827,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-HK66","requires_shipping":true,"taxable":true,"featured_image":{"id":34193124524131,"product_id":7838035017827,"position":8,"created_at":"2025-07-16T09:39:41+08:00","updated_at":"2025-07-16T09:39:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e84a407b9f18add72e6069dde21748c8d836a60.webp?v=1752629984","variant_ids":[43528559689827]},"available":true,"name":"iPhone 14 Plus Mod NX BOUNCE 棒棒獸 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-HK66","featured_media":{"alt":null,"id":25827284910179,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e84a407b9f18add72e6069dde21748c8d836a60.webp?v=1752629984"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e527800b83a223798055568dc6db87971de7c5.webp?v=1752629979","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f22a785b793985a88ffdefd1d600ed6dd989724.webp?v=1752629980","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d38bc12b97dd964cac122d220ef24e27c8c33f2.webp?v=1752629980","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7db62395096f9706541da8e4583a7a87ad3e1574.webp?v=1752629981","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be10dec276e58c422ca8a04b1d361a1d1a7f7e80.webp?v=1752629982","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1d0b840705a9c475a9925562dfa9c0c9a1ef210.webp?v=1752629982","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac1e4da981dc0de15b52adf6c4d037e4507e5daf.webp?v=1752629983","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e84a407b9f18add72e6069dde21748c8d836a60.webp?v=1752629984","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f557caa1d10139c9ea96051adc320c26f9c9d692.webp?v=1752629984","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b993bcbc9402e2cb49727a558d3fcff5e49cff50.webp?v=1752629984","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e798aa77babc76564276c88f899b4ca50227394.webp?v=1752629985","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b2cf742384298c71fec66965d19e5eee50f0a0.webp?v=1752629985","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e68c6cb9b44a6903ae1ce2efaa6ed7e68c1fba4.webp?v=1752629986"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e527800b83a223798055568dc6db87971de7c5.webp?v=1752629979","options":["color"],"media":[{"alt":null,"id":25827283140707,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e527800b83a223798055568dc6db87971de7c5.webp?v=1752629979"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e527800b83a223798055568dc6db87971de7c5.webp?v=1752629979","width":2000},{"alt":null,"id":25827283304547,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f22a785b793985a88ffdefd1d600ed6dd989724.webp?v=1752629980"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f22a785b793985a88ffdefd1d600ed6dd989724.webp?v=1752629980","width":2000},{"alt":null,"id":25827283664995,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d38bc12b97dd964cac122d220ef24e27c8c33f2.webp?v=1752629980"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d38bc12b97dd964cac122d220ef24e27c8c33f2.webp?v=1752629980","width":2000},{"alt":null,"id":25827283828835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7db62395096f9706541da8e4583a7a87ad3e1574.webp?v=1752629981"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7db62395096f9706541da8e4583a7a87ad3e1574.webp?v=1752629981","width":2000},{"alt":null,"id":25827284090979,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be10dec276e58c422ca8a04b1d361a1d1a7f7e80.webp?v=1752629982"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be10dec276e58c422ca8a04b1d361a1d1a7f7e80.webp?v=1752629982","width":2000},{"alt":null,"id":25827284353123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1d0b840705a9c475a9925562dfa9c0c9a1ef210.webp?v=1752629982"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1d0b840705a9c475a9925562dfa9c0c9a1ef210.webp?v=1752629982","width":2000},{"alt":null,"id":25827284615267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac1e4da981dc0de15b52adf6c4d037e4507e5daf.webp?v=1752629983"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac1e4da981dc0de15b52adf6c4d037e4507e5daf.webp?v=1752629983","width":2000},{"alt":null,"id":25827284910179,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e84a407b9f18add72e6069dde21748c8d836a60.webp?v=1752629984"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e84a407b9f18add72e6069dde21748c8d836a60.webp?v=1752629984","width":2000},{"alt":null,"id":25827285041251,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f557caa1d10139c9ea96051adc320c26f9c9d692.webp?v=1752629984"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f557caa1d10139c9ea96051adc320c26f9c9d692.webp?v=1752629984","width":2000},{"alt":null,"id":25827285172323,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b993bcbc9402e2cb49727a558d3fcff5e49cff50.webp?v=1752629984"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b993bcbc9402e2cb49727a558d3fcff5e49cff50.webp?v=1752629984","width":2000},{"alt":null,"id":25827285532771,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e798aa77babc76564276c88f899b4ca50227394.webp?v=1752629985"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e798aa77babc76564276c88f899b4ca50227394.webp?v=1752629985","width":2000},{"alt":null,"id":25827285794915,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b2cf742384298c71fec66965d19e5eee50f0a0.webp?v=1752629985"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b2cf742384298c71fec66965d19e5eee50f0a0.webp?v=1752629985","width":2000},{"alt":null,"id":25827286024291,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e68c6cb9b44a6903ae1ce2efaa6ed7e68c1fba4.webp?v=1752629986"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e68c6cb9b44a6903ae1ce2efaa6ed7e68c1fba4.webp?v=1752629986","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43528559689827,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-HK66","requires_shipping":true,"taxable":true,"featured_image":{"id":34193124524131,"product_id":7838035017827,"position":8,"created_at":"2025-07-16T09:39:41+08:00","updated_at":"2025-07-16T09:39:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e84a407b9f18add72e6069dde21748c8d836a60.webp?v=1752629984","variant_ids":[43528559689827]},"available":true,"name":"iPhone 14 Plus Mod NX BOUNCE 棒棒獸 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-HK66","featured_media":{"alt":null,"id":25827284910179,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e84a407b9f18add72e6069dde21748c8d836a60.webp?v=1752629984"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43528559689827,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-HK66","requires_shipping":true,"taxable":true,"featured_image":{"id":34193124524131,"product_id":7838035017827,"position":8,"created_at":"2025-07-16T09:39:41+08:00","updated_at":"2025-07-16T09:39:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e84a407b9f18add72e6069dde21748c8d836a60.webp?v=1752629984","variant_ids":[43528559689827]},"available":true,"name":"iPhone 14 Plus Mod NX BOUNCE 棒棒獸 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-HK66","featured_media":{"alt":null,"id":25827284910179,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e84a407b9f18add72e6069dde21748c8d836a60.webp?v=1752629984"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (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: "停產" }