$product = {"id":7848049082467,"title":"iPhone 14 Pro Mod NX 嗨小強 Peekaboo","handle":"iphone-14-pro-mod-nx-bumper-crossover-design-fv61","description":null,"published_at":"2025-08-07T09:15:56+08:00","created_at":"2025-08-05T09:40:29+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-hijohnnn","device-iPhone 14 Pro","merge","reseller-hijohnnn"],"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":43562874732643,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-FV61","requires_shipping":true,"taxable":true,"featured_image":{"id":34287789506659,"product_id":7848049082467,"position":5,"created_at":"2025-08-05T09:40:35+08:00","updated_at":"2025-08-05T09:40:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/420994644d3cc1f7d38ef7a429b0b79959315e56.webp?v=1754358037","variant_ids":[43562874732643]},"available":true,"name":"iPhone 14 Pro Mod NX 嗨小強 Peekaboo - 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-FV61","featured_media":{"alt":null,"id":25888844152931,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/420994644d3cc1f7d38ef7a429b0b79959315e56.webp?v=1754358037"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43562874863715,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-FV61","requires_shipping":true,"taxable":true,"featured_image":{"id":34287788589155,"product_id":7848049082467,"position":3,"created_at":"2025-08-05T09:40:34+08:00","updated_at":"2025-08-05T09:40:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff29b85c1897386876062a568f5672b0da7875ea.webp?v=1754358036","variant_ids":[43562874863715]},"available":true,"name":"iPhone 14 Pro Mod NX 嗨小強 Peekaboo - 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-FV61","featured_media":{"alt":null,"id":25888843759715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff29b85c1897386876062a568f5672b0da7875ea.webp?v=1754358036"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43562874929251,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-FV61","requires_shipping":true,"taxable":true,"featured_image":{"id":34287790784611,"product_id":7848049082467,"position":8,"created_at":"2025-08-05T09:40:37+08:00","updated_at":"2025-08-05T09:40:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cedab89cde2fedfa1962fd0dd8e776e5f8f68b4f.webp?v=1754358039","variant_ids":[43562874929251]},"available":true,"name":"iPhone 14 Pro Mod NX 嗨小強 Peekaboo - 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-FV61","featured_media":{"alt":null,"id":25888844742755,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cedab89cde2fedfa1962fd0dd8e776e5f8f68b4f.webp?v=1754358039"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d261e3f6773ff477a88e27c68552b22b5a0c166.webp?v=1754358035","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a69db1dc43273a2417bdfbf2e4e97926fcd30679.webp?v=1754358036","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff29b85c1897386876062a568f5672b0da7875ea.webp?v=1754358036","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b472e1c96c813d3a7fbd7258dcd9bf3caef58ef.webp?v=1754358037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/420994644d3cc1f7d38ef7a429b0b79959315e56.webp?v=1754358037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3704879f37062e7bd00fbc6d78893f7db4ac6b0f.webp?v=1754358038","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757490157a1aae7345648e7fd630ed7f79c1d7e8.webp?v=1754358039","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cedab89cde2fedfa1962fd0dd8e776e5f8f68b4f.webp?v=1754358039","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8a073807ba4afaf4d7a8bad83a0cbfabe098a90.webp?v=1754358040","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f13dfb89911cb56d279807517f829e04e72e12f.webp?v=1754358040","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffe7a30dbc9c493187bdcd76d808e9a3beb1e50a.webp?v=1754358041","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab81d061ec63934bcf3d2adce362de72a629772f.webp?v=1754358042"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d261e3f6773ff477a88e27c68552b22b5a0c166.webp?v=1754358035","options":["color"],"media":[{"alt":null,"id":25888843300963,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d261e3f6773ff477a88e27c68552b22b5a0c166.webp?v=1754358035"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d261e3f6773ff477a88e27c68552b22b5a0c166.webp?v=1754358035","width":2000},{"alt":null,"id":25888843563107,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a69db1dc43273a2417bdfbf2e4e97926fcd30679.webp?v=1754358036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a69db1dc43273a2417bdfbf2e4e97926fcd30679.webp?v=1754358036","width":2000},{"alt":null,"id":25888843759715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff29b85c1897386876062a568f5672b0da7875ea.webp?v=1754358036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff29b85c1897386876062a568f5672b0da7875ea.webp?v=1754358036","width":2000},{"alt":null,"id":25888843923555,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b472e1c96c813d3a7fbd7258dcd9bf3caef58ef.webp?v=1754358037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b472e1c96c813d3a7fbd7258dcd9bf3caef58ef.webp?v=1754358037","width":2000},{"alt":null,"id":25888844152931,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/420994644d3cc1f7d38ef7a429b0b79959315e56.webp?v=1754358037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/420994644d3cc1f7d38ef7a429b0b79959315e56.webp?v=1754358037","width":2000},{"alt":null,"id":25888844447843,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3704879f37062e7bd00fbc6d78893f7db4ac6b0f.webp?v=1754358038"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3704879f37062e7bd00fbc6d78893f7db4ac6b0f.webp?v=1754358038","width":2000},{"alt":null,"id":25888844611683,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757490157a1aae7345648e7fd630ed7f79c1d7e8.webp?v=1754358039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757490157a1aae7345648e7fd630ed7f79c1d7e8.webp?v=1754358039","width":2000},{"alt":null,"id":25888844742755,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cedab89cde2fedfa1962fd0dd8e776e5f8f68b4f.webp?v=1754358039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cedab89cde2fedfa1962fd0dd8e776e5f8f68b4f.webp?v=1754358039","width":2000},{"alt":null,"id":25888844906595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8a073807ba4afaf4d7a8bad83a0cbfabe098a90.webp?v=1754358040"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8a073807ba4afaf4d7a8bad83a0cbfabe098a90.webp?v=1754358040","width":2000},{"alt":null,"id":25888845070435,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f13dfb89911cb56d279807517f829e04e72e12f.webp?v=1754358040"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f13dfb89911cb56d279807517f829e04e72e12f.webp?v=1754358040","width":2000},{"alt":null,"id":25888845234275,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffe7a30dbc9c493187bdcd76d808e9a3beb1e50a.webp?v=1754358041"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffe7a30dbc9c493187bdcd76d808e9a3beb1e50a.webp?v=1754358041","width":2000},{"alt":null,"id":25888845430883,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab81d061ec63934bcf3d2adce362de72a629772f.webp?v=1754358042"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab81d061ec63934bcf3d2adce362de72a629772f.webp?v=1754358042","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43562874732643,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-FV61","requires_shipping":true,"taxable":true,"featured_image":{"id":34287789506659,"product_id":7848049082467,"position":5,"created_at":"2025-08-05T09:40:35+08:00","updated_at":"2025-08-05T09:40:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/420994644d3cc1f7d38ef7a429b0b79959315e56.webp?v=1754358037","variant_ids":[43562874732643]},"available":true,"name":"iPhone 14 Pro Mod NX 嗨小強 Peekaboo - 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-FV61","featured_media":{"alt":null,"id":25888844152931,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/420994644d3cc1f7d38ef7a429b0b79959315e56.webp?v=1754358037"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43562874863715,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-FV61","requires_shipping":true,"taxable":true,"featured_image":{"id":34287788589155,"product_id":7848049082467,"position":3,"created_at":"2025-08-05T09:40:34+08:00","updated_at":"2025-08-05T09:40:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff29b85c1897386876062a568f5672b0da7875ea.webp?v=1754358036","variant_ids":[43562874863715]},"available":true,"name":"iPhone 14 Pro Mod NX 嗨小強 Peekaboo - 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-FV61","featured_media":{"alt":null,"id":25888843759715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff29b85c1897386876062a568f5672b0da7875ea.webp?v=1754358036"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43562874929251,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-FV61","requires_shipping":true,"taxable":true,"featured_image":{"id":34287790784611,"product_id":7848049082467,"position":8,"created_at":"2025-08-05T09:40:37+08:00","updated_at":"2025-08-05T09:40:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cedab89cde2fedfa1962fd0dd8e776e5f8f68b4f.webp?v=1754358039","variant_ids":[43562874929251]},"available":true,"name":"iPhone 14 Pro Mod NX 嗨小強 Peekaboo - 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-FV61","featured_media":{"alt":null,"id":25888844742755,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cedab89cde2fedfa1962fd0dd8e776e5f8f68b4f.webp?v=1754358039"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43562874732643,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-FV61","requires_shipping":true,"taxable":true,"featured_image":{"id":34287789506659,"product_id":7848049082467,"position":5,"created_at":"2025-08-05T09:40:35+08:00","updated_at":"2025-08-05T09:40:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/420994644d3cc1f7d38ef7a429b0b79959315e56.webp?v=1754358037","variant_ids":[43562874732643]},"available":true,"name":"iPhone 14 Pro Mod NX 嗨小強 Peekaboo - 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-FV61","featured_media":{"alt":null,"id":25888844152931,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/420994644d3cc1f7d38ef7a429b0b79959315e56.webp?v=1754358037"}},"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: "停產" }