$product = {"id":7831381377123,"title":"iPhone 14 Pro Mod NX KID Outdoor滿版圖騰","handle":"iphone-14-pro-mod-nx-bumper-jo45","description":null,"published_at":"2025-07-04T16:10:48+08:00","created_at":"2025-07-04T15:36:40+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-kid","device-iPhone 14 Pro","merge","reseller-kid"],"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":43509127217251,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-JO45","requires_shipping":true,"taxable":true,"featured_image":{"id":34123343102051,"product_id":7831381377123,"position":12,"created_at":"2025-07-04T16:05:21+08:00","updated_at":"2025-07-04T16:05:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c86cd6810ec4fa6175045846a4f93081d4e3154.webp?v=1751616322","variant_ids":[43509127217251]},"available":true,"name":"iPhone 14 Pro Mod NX KID Outdoor滿版圖騰 - 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-JO45","featured_media":{"alt":null,"id":25774737162339,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c86cd6810ec4fa6175045846a4f93081d4e3154.webp?v=1751616322"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43509127282787,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-JO45","requires_shipping":true,"taxable":true,"featured_image":{"id":34123342512227,"product_id":7831381377123,"position":10,"created_at":"2025-07-04T16:05:19+08:00","updated_at":"2025-07-04T16:05:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde1704f4ce0a91ddf687760e21ec56f569bca7.webp?v=1751616321","variant_ids":[43509127282787]},"available":true,"name":"iPhone 14 Pro Mod NX KID Outdoor滿版圖騰 - 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-JO45","featured_media":{"alt":null,"id":25774736801891,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde1704f4ce0a91ddf687760e21ec56f569bca7.webp?v=1751616321"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43509127315555,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-JO45","requires_shipping":true,"taxable":true,"featured_image":{"id":34123341267043,"product_id":7831381377123,"position":6,"created_at":"2025-07-04T16:05:17+08:00","updated_at":"2025-07-04T16:05:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbffe1e170fd21379bbddfa8e49c55023f5f91a7.webp?v=1751616319","variant_ids":[43509127315555]},"available":true,"name":"iPhone 14 Pro Mod NX KID Outdoor滿版圖騰 - 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-JO45","featured_media":{"alt":null,"id":25774736146531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbffe1e170fd21379bbddfa8e49c55023f5f91a7.webp?v=1751616319"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdb1e1e92f4432df5a89602bcce414773499e27.webp?v=1751616317","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3232f891f4724cfd0a1e81c8435d11042b1a50b5.webp?v=1751616317","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204d180b094e495864089e3832099418e90f02d5.webp?v=1751616317","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40ecc549bd2a4b7cc1f27eee078aa4c3a2b0c683.webp?v=1751616318","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3d9c16ff3539c3512cdd3bbc5e705ab417ad619.webp?v=1751616319","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbffe1e170fd21379bbddfa8e49c55023f5f91a7.webp?v=1751616319","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76832c71490380cb5943a77c58bdd4898d449aba.webp?v=1751616320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7701713ff9140a0c41f34e8236d9c6ae78ff369.webp?v=1751616320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f0b93ea47f8ecc1b0504615889593d41b9600a.webp?v=1751616321","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde1704f4ce0a91ddf687760e21ec56f569bca7.webp?v=1751616321","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c93ea30cb5d52e601784c073ffe54a008e4bb21e.webp?v=1751616322","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c86cd6810ec4fa6175045846a4f93081d4e3154.webp?v=1751616322"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdb1e1e92f4432df5a89602bcce414773499e27.webp?v=1751616317","options":["color"],"media":[{"alt":null,"id":25774734934115,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdb1e1e92f4432df5a89602bcce414773499e27.webp?v=1751616317"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdb1e1e92f4432df5a89602bcce414773499e27.webp?v=1751616317","width":2000},{"alt":null,"id":25774735327331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3232f891f4724cfd0a1e81c8435d11042b1a50b5.webp?v=1751616317"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3232f891f4724cfd0a1e81c8435d11042b1a50b5.webp?v=1751616317","width":2000},{"alt":null,"id":25774735523939,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204d180b094e495864089e3832099418e90f02d5.webp?v=1751616317"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204d180b094e495864089e3832099418e90f02d5.webp?v=1751616317","width":2000},{"alt":null,"id":25774735753315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40ecc549bd2a4b7cc1f27eee078aa4c3a2b0c683.webp?v=1751616318"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40ecc549bd2a4b7cc1f27eee078aa4c3a2b0c683.webp?v=1751616318","width":2000},{"alt":null,"id":25774735949923,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3d9c16ff3539c3512cdd3bbc5e705ab417ad619.webp?v=1751616319"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3d9c16ff3539c3512cdd3bbc5e705ab417ad619.webp?v=1751616319","width":2000},{"alt":null,"id":25774736146531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbffe1e170fd21379bbddfa8e49c55023f5f91a7.webp?v=1751616319"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbffe1e170fd21379bbddfa8e49c55023f5f91a7.webp?v=1751616319","width":2000},{"alt":null,"id":25774736408675,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76832c71490380cb5943a77c58bdd4898d449aba.webp?v=1751616320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76832c71490380cb5943a77c58bdd4898d449aba.webp?v=1751616320","width":2000},{"alt":null,"id":25774736605283,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7701713ff9140a0c41f34e8236d9c6ae78ff369.webp?v=1751616320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7701713ff9140a0c41f34e8236d9c6ae78ff369.webp?v=1751616320","width":2000},{"alt":null,"id":25774736703587,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f0b93ea47f8ecc1b0504615889593d41b9600a.webp?v=1751616321"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f0b93ea47f8ecc1b0504615889593d41b9600a.webp?v=1751616321","width":2000},{"alt":null,"id":25774736801891,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde1704f4ce0a91ddf687760e21ec56f569bca7.webp?v=1751616321"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde1704f4ce0a91ddf687760e21ec56f569bca7.webp?v=1751616321","width":2000},{"alt":null,"id":25774736965731,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c93ea30cb5d52e601784c073ffe54a008e4bb21e.webp?v=1751616322"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c93ea30cb5d52e601784c073ffe54a008e4bb21e.webp?v=1751616322","width":2000},{"alt":null,"id":25774737162339,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c86cd6810ec4fa6175045846a4f93081d4e3154.webp?v=1751616322"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c86cd6810ec4fa6175045846a4f93081d4e3154.webp?v=1751616322","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43509127217251,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-JO45","requires_shipping":true,"taxable":true,"featured_image":{"id":34123343102051,"product_id":7831381377123,"position":12,"created_at":"2025-07-04T16:05:21+08:00","updated_at":"2025-07-04T16:05:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c86cd6810ec4fa6175045846a4f93081d4e3154.webp?v=1751616322","variant_ids":[43509127217251]},"available":true,"name":"iPhone 14 Pro Mod NX KID Outdoor滿版圖騰 - 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-JO45","featured_media":{"alt":null,"id":25774737162339,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c86cd6810ec4fa6175045846a4f93081d4e3154.webp?v=1751616322"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43509127282787,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-JO45","requires_shipping":true,"taxable":true,"featured_image":{"id":34123342512227,"product_id":7831381377123,"position":10,"created_at":"2025-07-04T16:05:19+08:00","updated_at":"2025-07-04T16:05:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde1704f4ce0a91ddf687760e21ec56f569bca7.webp?v=1751616321","variant_ids":[43509127282787]},"available":true,"name":"iPhone 14 Pro Mod NX KID Outdoor滿版圖騰 - 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-JO45","featured_media":{"alt":null,"id":25774736801891,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edde1704f4ce0a91ddf687760e21ec56f569bca7.webp?v=1751616321"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43509127315555,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-JO45","requires_shipping":true,"taxable":true,"featured_image":{"id":34123341267043,"product_id":7831381377123,"position":6,"created_at":"2025-07-04T16:05:17+08:00","updated_at":"2025-07-04T16:05:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbffe1e170fd21379bbddfa8e49c55023f5f91a7.webp?v=1751616319","variant_ids":[43509127315555]},"available":true,"name":"iPhone 14 Pro Mod NX KID Outdoor滿版圖騰 - 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-JO45","featured_media":{"alt":null,"id":25774736146531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbffe1e170fd21379bbddfa8e49c55023f5f91a7.webp?v=1751616319"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43509127217251,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-JO45","requires_shipping":true,"taxable":true,"featured_image":{"id":34123343102051,"product_id":7831381377123,"position":12,"created_at":"2025-07-04T16:05:21+08:00","updated_at":"2025-07-04T16:05:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c86cd6810ec4fa6175045846a4f93081d4e3154.webp?v=1751616322","variant_ids":[43509127217251]},"available":true,"name":"iPhone 14 Pro Mod NX KID Outdoor滿版圖騰 - 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-JO45","featured_media":{"alt":null,"id":25774737162339,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c86cd6810ec4fa6175045846a4f93081d4e3154.webp?v=1751616322"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }