$product = {"id":7921147379811,"title":"iPhone 14 Pro Mod NX Incrediville 怪奇事物所 所長的酒池肉林","handle":"iphone-14-pro-mod-nx-hd70","description":null,"published_at":"2025-11-13T09:47:22+08:00","created_at":"2025-11-11T09:50:26+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":43830950658147,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-HD70","requires_shipping":true,"taxable":true,"featured_image":{"id":34786265170019,"product_id":7921147379811,"position":2,"created_at":"2025-11-11T09:50:31+08:00","updated_at":"2025-11-11T09:50:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f505bc1f51130575e1870b8111aa10168c02ac98.webp?v=1762825833","variant_ids":[43830950658147]},"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-HD70","featured_media":{"alt":null,"id":26351722102883,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f505bc1f51130575e1870b8111aa10168c02ac98.webp?v=1762825833"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830950821987,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-HD70","requires_shipping":true,"taxable":true,"featured_image":{"id":34786266251363,"product_id":7921147379811,"position":8,"created_at":"2025-11-11T09:50:35+08:00","updated_at":"2025-11-11T09:50:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187452bf420b46f809643cac3f97a4df23aaa9c7.webp?v=1762825837","variant_ids":[43830950821987]},"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-HD70","featured_media":{"alt":null,"id":26351723216995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187452bf420b46f809643cac3f97a4df23aaa9c7.webp?v=1762825837"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830950985827,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-HD70","requires_shipping":true,"taxable":true,"featured_image":{"id":34786265366627,"product_id":7921147379811,"position":3,"created_at":"2025-11-11T09:50:32+08:00","updated_at":"2025-11-11T09:50:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad97999539ee6f1449ae7965f0ef2dbaf61e88b5.webp?v=1762825834","variant_ids":[43830950985827]},"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-HD70","featured_media":{"alt":null,"id":26351722299491,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad97999539ee6f1449ae7965f0ef2dbaf61e88b5.webp?v=1762825834"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9ab8165983ee9dc23b6adc6cc1da14c93e8f881.webp?v=1762825832","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f505bc1f51130575e1870b8111aa10168c02ac98.webp?v=1762825833","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad97999539ee6f1449ae7965f0ef2dbaf61e88b5.webp?v=1762825834","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/961aeb4a7725b85920f056d7a83f51223d3ad745.webp?v=1762825835","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfd5cc46038e7ddf45021f19d56adc26cbe5888c.webp?v=1762825835","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7641e6dee929fcc194b29b897876a40fddc4058d.webp?v=1762825836","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0d3632d2ef15151a608d497dab996803849fe57.webp?v=1762825837","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187452bf420b46f809643cac3f97a4df23aaa9c7.webp?v=1762825837","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52e4f76bd823e113a054b6c1a86427a1a42a6b5.webp?v=1762825838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a5a7a3a6e852d763ebc94d56ea6882b1027ad43.webp?v=1762825839","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d68efcaa52aec2f73574dbaf212d29ee4ba3b64a.webp?v=1762825839","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17c30f91cb60802ba1165649230c7f30ef2a9942.webp?v=1762825840"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9ab8165983ee9dc23b6adc6cc1da14c93e8f881.webp?v=1762825832","options":["color"],"media":[{"alt":null,"id":26351721873507,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9ab8165983ee9dc23b6adc6cc1da14c93e8f881.webp?v=1762825832"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9ab8165983ee9dc23b6adc6cc1da14c93e8f881.webp?v=1762825832","width":2000},{"alt":null,"id":26351722102883,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f505bc1f51130575e1870b8111aa10168c02ac98.webp?v=1762825833"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f505bc1f51130575e1870b8111aa10168c02ac98.webp?v=1762825833","width":2000},{"alt":null,"id":26351722299491,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad97999539ee6f1449ae7965f0ef2dbaf61e88b5.webp?v=1762825834"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad97999539ee6f1449ae7965f0ef2dbaf61e88b5.webp?v=1762825834","width":2000},{"alt":null,"id":26351722430563,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/961aeb4a7725b85920f056d7a83f51223d3ad745.webp?v=1762825835"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/961aeb4a7725b85920f056d7a83f51223d3ad745.webp?v=1762825835","width":2000},{"alt":null,"id":26351722561635,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfd5cc46038e7ddf45021f19d56adc26cbe5888c.webp?v=1762825835"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfd5cc46038e7ddf45021f19d56adc26cbe5888c.webp?v=1762825835","width":2000},{"alt":null,"id":26351722692707,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7641e6dee929fcc194b29b897876a40fddc4058d.webp?v=1762825836"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7641e6dee929fcc194b29b897876a40fddc4058d.webp?v=1762825836","width":2000},{"alt":null,"id":26351722954851,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0d3632d2ef15151a608d497dab996803849fe57.webp?v=1762825837"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0d3632d2ef15151a608d497dab996803849fe57.webp?v=1762825837","width":2000},{"alt":null,"id":26351723216995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187452bf420b46f809643cac3f97a4df23aaa9c7.webp?v=1762825837"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187452bf420b46f809643cac3f97a4df23aaa9c7.webp?v=1762825837","width":2000},{"alt":null,"id":26351723446371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52e4f76bd823e113a054b6c1a86427a1a42a6b5.webp?v=1762825838"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52e4f76bd823e113a054b6c1a86427a1a42a6b5.webp?v=1762825838","width":2000},{"alt":null,"id":26351723675747,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a5a7a3a6e852d763ebc94d56ea6882b1027ad43.webp?v=1762825839"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a5a7a3a6e852d763ebc94d56ea6882b1027ad43.webp?v=1762825839","width":2000},{"alt":null,"id":26351724036195,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d68efcaa52aec2f73574dbaf212d29ee4ba3b64a.webp?v=1762825839"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d68efcaa52aec2f73574dbaf212d29ee4ba3b64a.webp?v=1762825839","width":2000},{"alt":null,"id":26351724232803,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17c30f91cb60802ba1165649230c7f30ef2a9942.webp?v=1762825840"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17c30f91cb60802ba1165649230c7f30ef2a9942.webp?v=1762825840","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43830950658147,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-HD70","requires_shipping":true,"taxable":true,"featured_image":{"id":34786265170019,"product_id":7921147379811,"position":2,"created_at":"2025-11-11T09:50:31+08:00","updated_at":"2025-11-11T09:50:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f505bc1f51130575e1870b8111aa10168c02ac98.webp?v=1762825833","variant_ids":[43830950658147]},"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-HD70","featured_media":{"alt":null,"id":26351722102883,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f505bc1f51130575e1870b8111aa10168c02ac98.webp?v=1762825833"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830950821987,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-HD70","requires_shipping":true,"taxable":true,"featured_image":{"id":34786266251363,"product_id":7921147379811,"position":8,"created_at":"2025-11-11T09:50:35+08:00","updated_at":"2025-11-11T09:50:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187452bf420b46f809643cac3f97a4df23aaa9c7.webp?v=1762825837","variant_ids":[43830950821987]},"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-HD70","featured_media":{"alt":null,"id":26351723216995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187452bf420b46f809643cac3f97a4df23aaa9c7.webp?v=1762825837"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43830950985827,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-HD70","requires_shipping":true,"taxable":true,"featured_image":{"id":34786265366627,"product_id":7921147379811,"position":3,"created_at":"2025-11-11T09:50:32+08:00","updated_at":"2025-11-11T09:50:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad97999539ee6f1449ae7965f0ef2dbaf61e88b5.webp?v=1762825834","variant_ids":[43830950985827]},"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-HD70","featured_media":{"alt":null,"id":26351722299491,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad97999539ee6f1449ae7965f0ef2dbaf61e88b5.webp?v=1762825834"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43830950658147,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-HD70","requires_shipping":true,"taxable":true,"featured_image":{"id":34786265170019,"product_id":7921147379811,"position":2,"created_at":"2025-11-11T09:50:31+08:00","updated_at":"2025-11-11T09:50:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f505bc1f51130575e1870b8111aa10168c02ac98.webp?v=1762825833","variant_ids":[43830950658147]},"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-HD70","featured_media":{"alt":null,"id":26351722102883,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f505bc1f51130575e1870b8111aa10168c02ac98.webp?v=1762825833"}},"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: "停產" }