$product = {"id":7873231978595,"title":"iPhone 14 Pro Mod NX Keigo Relay Race","handle":"iphone-14-pro-mod-nx-printable-kei05","description":null,"published_at":"2025-09-01T11:09:37+08:00","created_at":"2025-09-01T09:30:11+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-keigo","device-iPhone 14 Pro","merge","reseller-keigo"],"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":43658407477347,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-KEI05","requires_shipping":true,"taxable":true,"featured_image":{"id":34409762193507,"product_id":7873231978595,"position":9,"created_at":"2025-09-01T09:30:21+08:00","updated_at":"2025-09-01T09:30:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba486dfea017c66756c5e90a30097f969fd942ad.webp?v=1756690223","variant_ids":[43658407477347]},"available":true,"name":"iPhone 14 Pro Mod NX Keigo Relay Race - 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-KEI05","featured_media":{"alt":null,"id":25982077370467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba486dfea017c66756c5e90a30097f969fd942ad.webp?v=1756690223"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658407608419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-KEI05","requires_shipping":true,"taxable":true,"featured_image":{"id":34409762357347,"product_id":7873231978595,"position":11,"created_at":"2025-09-01T09:30:22+08:00","updated_at":"2025-09-01T09:30:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef151747af3ebd0b5a90b0fa01fad32a0a78ce13.webp?v=1756690224","variant_ids":[43658407608419]},"available":true,"name":"iPhone 14 Pro Mod NX Keigo Relay Race - 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-KEI05","featured_media":{"alt":null,"id":25982077534307,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef151747af3ebd0b5a90b0fa01fad32a0a78ce13.webp?v=1756690224"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658407673955,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-KEI05","requires_shipping":true,"taxable":true,"featured_image":{"id":34409761374307,"product_id":7873231978595,"position":3,"created_at":"2025-09-01T09:30:16+08:00","updated_at":"2025-09-01T09:30:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9ce1420b5dba70dcc1646b31b52b5de30eb223.webp?v=1756690219","variant_ids":[43658407673955]},"available":true,"name":"iPhone 14 Pro Mod NX Keigo Relay Race - 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-KEI05","featured_media":{"alt":null,"id":25982076518499,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9ce1420b5dba70dcc1646b31b52b5de30eb223.webp?v=1756690219"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bed6829a2db22e2e6b5cf5d5afe134bed19c612.webp?v=1756690217","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0f1b8451e33af8520431178c9d8dbf74d5f761f.webp?v=1756690218","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9ce1420b5dba70dcc1646b31b52b5de30eb223.webp?v=1756690219","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae1a908c15b599335e86ec1045e7e3f4fd12fb90.webp?v=1756690219","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b71c764f7ed0ce3bea58b93e08afe1a9041cf420.webp?v=1756690220","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0615c5fd15fc8020cff42e4ef997aa9c8a00dcc.webp?v=1756690221","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b2e440c1bc10002bc84da22079d31a9371e829c.webp?v=1756690221","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6bc8b39c69af0e55bdc80f4eb2f20ad12c59132.webp?v=1756690222","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba486dfea017c66756c5e90a30097f969fd942ad.webp?v=1756690223","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/922aebabd046f1eb94d9db689a6ea32589ade94b.webp?v=1756690223","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef151747af3ebd0b5a90b0fa01fad32a0a78ce13.webp?v=1756690224","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f3ce3bf9537eb99c840891fbc9341ebf8032320.webp?v=1756690225"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bed6829a2db22e2e6b5cf5d5afe134bed19c612.webp?v=1756690217","options":["color"],"media":[{"alt":null,"id":25982076223587,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bed6829a2db22e2e6b5cf5d5afe134bed19c612.webp?v=1756690217"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bed6829a2db22e2e6b5cf5d5afe134bed19c612.webp?v=1756690217","width":2000},{"alt":null,"id":25982076420195,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0f1b8451e33af8520431178c9d8dbf74d5f761f.webp?v=1756690218"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0f1b8451e33af8520431178c9d8dbf74d5f761f.webp?v=1756690218","width":2000},{"alt":null,"id":25982076518499,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9ce1420b5dba70dcc1646b31b52b5de30eb223.webp?v=1756690219"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9ce1420b5dba70dcc1646b31b52b5de30eb223.webp?v=1756690219","width":2000},{"alt":null,"id":25982076649571,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae1a908c15b599335e86ec1045e7e3f4fd12fb90.webp?v=1756690219"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae1a908c15b599335e86ec1045e7e3f4fd12fb90.webp?v=1756690219","width":2000},{"alt":null,"id":25982076780643,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b71c764f7ed0ce3bea58b93e08afe1a9041cf420.webp?v=1756690220"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b71c764f7ed0ce3bea58b93e08afe1a9041cf420.webp?v=1756690220","width":2000},{"alt":null,"id":25982076911715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0615c5fd15fc8020cff42e4ef997aa9c8a00dcc.webp?v=1756690221"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0615c5fd15fc8020cff42e4ef997aa9c8a00dcc.webp?v=1756690221","width":2000},{"alt":null,"id":25982077010019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b2e440c1bc10002bc84da22079d31a9371e829c.webp?v=1756690221"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b2e440c1bc10002bc84da22079d31a9371e829c.webp?v=1756690221","width":2000},{"alt":null,"id":25982077206627,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6bc8b39c69af0e55bdc80f4eb2f20ad12c59132.webp?v=1756690222"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6bc8b39c69af0e55bdc80f4eb2f20ad12c59132.webp?v=1756690222","width":2000},{"alt":null,"id":25982077370467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba486dfea017c66756c5e90a30097f969fd942ad.webp?v=1756690223"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba486dfea017c66756c5e90a30097f969fd942ad.webp?v=1756690223","width":2000},{"alt":null,"id":25982077436003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/922aebabd046f1eb94d9db689a6ea32589ade94b.webp?v=1756690223"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/922aebabd046f1eb94d9db689a6ea32589ade94b.webp?v=1756690223","width":2000},{"alt":null,"id":25982077534307,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef151747af3ebd0b5a90b0fa01fad32a0a78ce13.webp?v=1756690224"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef151747af3ebd0b5a90b0fa01fad32a0a78ce13.webp?v=1756690224","width":2000},{"alt":null,"id":25982077763683,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f3ce3bf9537eb99c840891fbc9341ebf8032320.webp?v=1756690225"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f3ce3bf9537eb99c840891fbc9341ebf8032320.webp?v=1756690225","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43658407477347,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-KEI05","requires_shipping":true,"taxable":true,"featured_image":{"id":34409762193507,"product_id":7873231978595,"position":9,"created_at":"2025-09-01T09:30:21+08:00","updated_at":"2025-09-01T09:30:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba486dfea017c66756c5e90a30097f969fd942ad.webp?v=1756690223","variant_ids":[43658407477347]},"available":true,"name":"iPhone 14 Pro Mod NX Keigo Relay Race - 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-KEI05","featured_media":{"alt":null,"id":25982077370467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba486dfea017c66756c5e90a30097f969fd942ad.webp?v=1756690223"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658407608419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-KEI05","requires_shipping":true,"taxable":true,"featured_image":{"id":34409762357347,"product_id":7873231978595,"position":11,"created_at":"2025-09-01T09:30:22+08:00","updated_at":"2025-09-01T09:30:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef151747af3ebd0b5a90b0fa01fad32a0a78ce13.webp?v=1756690224","variant_ids":[43658407608419]},"available":true,"name":"iPhone 14 Pro Mod NX Keigo Relay Race - 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-KEI05","featured_media":{"alt":null,"id":25982077534307,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef151747af3ebd0b5a90b0fa01fad32a0a78ce13.webp?v=1756690224"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658407673955,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-KEI05","requires_shipping":true,"taxable":true,"featured_image":{"id":34409761374307,"product_id":7873231978595,"position":3,"created_at":"2025-09-01T09:30:16+08:00","updated_at":"2025-09-01T09:30:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9ce1420b5dba70dcc1646b31b52b5de30eb223.webp?v=1756690219","variant_ids":[43658407673955]},"available":true,"name":"iPhone 14 Pro Mod NX Keigo Relay Race - 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-KEI05","featured_media":{"alt":null,"id":25982076518499,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9ce1420b5dba70dcc1646b31b52b5de30eb223.webp?v=1756690219"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43658407477347,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-KEI05","requires_shipping":true,"taxable":true,"featured_image":{"id":34409762193507,"product_id":7873231978595,"position":9,"created_at":"2025-09-01T09:30:21+08:00","updated_at":"2025-09-01T09:30:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba486dfea017c66756c5e90a30097f969fd942ad.webp?v=1756690223","variant_ids":[43658407477347]},"available":true,"name":"iPhone 14 Pro Mod NX Keigo Relay Race - 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-KEI05","featured_media":{"alt":null,"id":25982077370467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba486dfea017c66756c5e90a30097f969fd942ad.webp?v=1756690223"}},"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: "停產" }