$product = {"id":7921108025443,"title":"iPhone 14 Pro Mod NX Incrediville 怪奇事物所 台式夜遊者","handle":"iphone-14-pro-mod-nx-hd73","description":null,"published_at":"2025-11-13T09:52:54+08:00","created_at":"2025-11-11T09:31:16+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-incrediville","device-iPhone 14 Pro","merge","reseller-incrediville"],"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":43830787702883,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-HD73","requires_shipping":true,"taxable":true,"featured_image":{"id":34785859895395,"product_id":7921108025443,"position":1,"created_at":"2025-11-11T09:31:21+08:00","updated_at":"2025-11-11T09:31:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0591f6560f257ec16861a6e97fd07bd434f2d62.webp?v=1762824683","variant_ids":[43830787702883]},"available":true,"name":"iPhone 14 Pro Mod NX Incrediville 怪奇事物所 台式夜遊者 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-HD73","featured_media":{"alt":null,"id":26351317024867,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0591f6560f257ec16861a6e97fd07bd434f2d62.webp?v=1762824683"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830787866723,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-HD73","requires_shipping":true,"taxable":true,"featured_image":{"id":34785861795939,"product_id":7921108025443,"position":9,"created_at":"2025-11-11T09:31:26+08:00","updated_at":"2025-11-11T09:31:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d76fa8b84e0ad069b1f79c0948a9d04c1857208a.webp?v=1762824688","variant_ids":[43830787866723]},"available":true,"name":"iPhone 14 Pro Mod NX Incrediville 怪奇事物所 台式夜遊者 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-HD73","featured_media":{"alt":null,"id":26351318990947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d76fa8b84e0ad069b1f79c0948a9d04c1857208a.webp?v=1762824688"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830788030563,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-HD73","requires_shipping":true,"taxable":true,"featured_image":{"id":34785862418531,"product_id":7921108025443,"position":12,"created_at":"2025-11-11T09:31:28+08:00","updated_at":"2025-11-11T09:31:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fe4973b91386c12b58a2793600e6406f2425ed2.webp?v=1762824690","variant_ids":[43830788030563]},"available":true,"name":"iPhone 14 Pro Mod NX Incrediville 怪奇事物所 台式夜遊者 - 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":"NPB01262J5-HD73","featured_media":{"alt":null,"id":26351319613539,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fe4973b91386c12b58a2793600e6406f2425ed2.webp?v=1762824690"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0591f6560f257ec16861a6e97fd07bd434f2d62.webp?v=1762824683","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cb435679072894e35a81de3226c8f40b424c834.webp?v=1762824683","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7bf9a5fe46b0c156d1b382578dde1f5cdab0ade.webp?v=1762824684","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9af83b8a6b3ba919c29de65db7daf44a85fc2db.webp?v=1762824684","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/188323de6ff68671b598048fed44dc3f193d4681.webp?v=1762824685","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65a4697196866e43bd99602a3b240b1effb4c90e.webp?v=1762824686","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/037f4432ec6d0ea5b5b4d3b1256c6315421e0e7b.webp?v=1762824686","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64a3534321a84906d6bc289281dd653cc025aeca.webp?v=1762824687","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d76fa8b84e0ad069b1f79c0948a9d04c1857208a.webp?v=1762824688","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dcf0e367e43cc6e8cce8bf3b57a84b44b43a913.webp?v=1762824688","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94abb6c45dc0ed460825bd7c777cd7a30f80452a.webp?v=1762824689","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fe4973b91386c12b58a2793600e6406f2425ed2.webp?v=1762824690"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0591f6560f257ec16861a6e97fd07bd434f2d62.webp?v=1762824683","options":["color"],"media":[{"alt":null,"id":26351317024867,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0591f6560f257ec16861a6e97fd07bd434f2d62.webp?v=1762824683"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0591f6560f257ec16861a6e97fd07bd434f2d62.webp?v=1762824683","width":2000},{"alt":null,"id":26351317254243,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cb435679072894e35a81de3226c8f40b424c834.webp?v=1762824683"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cb435679072894e35a81de3226c8f40b424c834.webp?v=1762824683","width":2000},{"alt":null,"id":26351317418083,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7bf9a5fe46b0c156d1b382578dde1f5cdab0ade.webp?v=1762824684"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7bf9a5fe46b0c156d1b382578dde1f5cdab0ade.webp?v=1762824684","width":2000},{"alt":null,"id":26351317680227,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9af83b8a6b3ba919c29de65db7daf44a85fc2db.webp?v=1762824684"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9af83b8a6b3ba919c29de65db7daf44a85fc2db.webp?v=1762824684","width":2000},{"alt":null,"id":26351317909603,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/188323de6ff68671b598048fed44dc3f193d4681.webp?v=1762824685"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/188323de6ff68671b598048fed44dc3f193d4681.webp?v=1762824685","width":2000},{"alt":null,"id":26351318335587,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65a4697196866e43bd99602a3b240b1effb4c90e.webp?v=1762824686"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65a4697196866e43bd99602a3b240b1effb4c90e.webp?v=1762824686","width":2000},{"alt":null,"id":26351318597731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/037f4432ec6d0ea5b5b4d3b1256c6315421e0e7b.webp?v=1762824686"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/037f4432ec6d0ea5b5b4d3b1256c6315421e0e7b.webp?v=1762824686","width":2000},{"alt":null,"id":26351318827107,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64a3534321a84906d6bc289281dd653cc025aeca.webp?v=1762824687"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64a3534321a84906d6bc289281dd653cc025aeca.webp?v=1762824687","width":2000},{"alt":null,"id":26351318990947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d76fa8b84e0ad069b1f79c0948a9d04c1857208a.webp?v=1762824688"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d76fa8b84e0ad069b1f79c0948a9d04c1857208a.webp?v=1762824688","width":2000},{"alt":null,"id":26351319187555,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dcf0e367e43cc6e8cce8bf3b57a84b44b43a913.webp?v=1762824688"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dcf0e367e43cc6e8cce8bf3b57a84b44b43a913.webp?v=1762824688","width":2000},{"alt":null,"id":26351319384163,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94abb6c45dc0ed460825bd7c777cd7a30f80452a.webp?v=1762824689"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94abb6c45dc0ed460825bd7c777cd7a30f80452a.webp?v=1762824689","width":2000},{"alt":null,"id":26351319613539,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fe4973b91386c12b58a2793600e6406f2425ed2.webp?v=1762824690"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fe4973b91386c12b58a2793600e6406f2425ed2.webp?v=1762824690","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43830787702883,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-HD73","requires_shipping":true,"taxable":true,"featured_image":{"id":34785859895395,"product_id":7921108025443,"position":1,"created_at":"2025-11-11T09:31:21+08:00","updated_at":"2025-11-11T09:31:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0591f6560f257ec16861a6e97fd07bd434f2d62.webp?v=1762824683","variant_ids":[43830787702883]},"available":true,"name":"iPhone 14 Pro Mod NX Incrediville 怪奇事物所 台式夜遊者 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-HD73","featured_media":{"alt":null,"id":26351317024867,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0591f6560f257ec16861a6e97fd07bd434f2d62.webp?v=1762824683"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830787866723,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-HD73","requires_shipping":true,"taxable":true,"featured_image":{"id":34785861795939,"product_id":7921108025443,"position":9,"created_at":"2025-11-11T09:31:26+08:00","updated_at":"2025-11-11T09:31:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d76fa8b84e0ad069b1f79c0948a9d04c1857208a.webp?v=1762824688","variant_ids":[43830787866723]},"available":true,"name":"iPhone 14 Pro Mod NX Incrediville 怪奇事物所 台式夜遊者 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-HD73","featured_media":{"alt":null,"id":26351318990947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d76fa8b84e0ad069b1f79c0948a9d04c1857208a.webp?v=1762824688"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830788030563,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-HD73","requires_shipping":true,"taxable":true,"featured_image":{"id":34785862418531,"product_id":7921108025443,"position":12,"created_at":"2025-11-11T09:31:28+08:00","updated_at":"2025-11-11T09:31:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fe4973b91386c12b58a2793600e6406f2425ed2.webp?v=1762824690","variant_ids":[43830788030563]},"available":true,"name":"iPhone 14 Pro Mod NX Incrediville 怪奇事物所 台式夜遊者 - 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":"NPB01262J5-HD73","featured_media":{"alt":null,"id":26351319613539,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fe4973b91386c12b58a2793600e6406f2425ed2.webp?v=1762824690"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43830787702883,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-HD73","requires_shipping":true,"taxable":true,"featured_image":{"id":34785859895395,"product_id":7921108025443,"position":1,"created_at":"2025-11-11T09:31:21+08:00","updated_at":"2025-11-11T09:31:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0591f6560f257ec16861a6e97fd07bd434f2d62.webp?v=1762824683","variant_ids":[43830787702883]},"available":true,"name":"iPhone 14 Pro Mod NX Incrediville 怪奇事物所 台式夜遊者 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-HD73","featured_media":{"alt":null,"id":26351317024867,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0591f6560f257ec16861a6e97fd07bd434f2d62.webp?v=1762824683"}},"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: "停產" }