$product = {"id":7873211170915,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Barber","handle":"iphone-14-pro-mod-nx-magsafe-printable-kei01","description":null,"published_at":"2025-09-01T11:19:08+08:00","created_at":"2025-09-01T09:24:44+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":110000,"price_min":110000,"price_max":110000,"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":43658328965219,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-KEI01","requires_shipping":true,"taxable":true,"featured_image":{"id":34409685712995,"product_id":7873211170915,"position":11,"created_at":"2025-09-01T09:24:58+08:00","updated_at":"2025-09-01T09:25:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9ad216dc5498d1ba56d8d8cfab59bdcd14860b6.webp?v=1756689900","variant_ids":[43658328965219]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Barber - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-KEI01","featured_media":{"alt":null,"id":25982000726115,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9ad216dc5498d1ba56d8d8cfab59bdcd14860b6.webp?v=1756689900"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658329096291,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-KEI01","requires_shipping":true,"taxable":true,"featured_image":{"id":34409683419235,"product_id":7873211170915,"position":1,"created_at":"2025-09-01T09:24:48+08:00","updated_at":"2025-09-01T09:24:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd43cc5835a8f6f0e5309a209f1d1f1f6326553c.webp?v=1756689890","variant_ids":[43658329096291]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Barber - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-KEI01","featured_media":{"alt":null,"id":25981998432355,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd43cc5835a8f6f0e5309a209f1d1f1f6326553c.webp?v=1756689890"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658329161827,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-KEI01","requires_shipping":true,"taxable":true,"featured_image":{"id":34409685581923,"product_id":7873211170915,"position":10,"created_at":"2025-09-01T09:24:57+08:00","updated_at":"2025-09-01T09:24:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c18ba62453631d20275adee26f9d5660267295a1.webp?v=1756689899","variant_ids":[43658329161827]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Barber - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-KEI01","featured_media":{"alt":null,"id":25982000595043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c18ba62453631d20275adee26f9d5660267295a1.webp?v=1756689899"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd43cc5835a8f6f0e5309a209f1d1f1f6326553c.webp?v=1756689890","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/123d89aaf4762bde31911a26407bf122f23c5adf.webp?v=1756689891","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0b11ee10cf82009a20928e9c33ac136e1325d0f.webp?v=1756689892","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c4d5d891d57869f91e9b3484ac0d40ce000007b.webp?v=1756689893","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85a5d7da202df266db2f05ac4c3d76b4256b0c5e.webp?v=1756689893","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4237ab05c81e101c5486599958e63fe9cb0c0363.webp?v=1756689894","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/111cea608f8be1509cde57cf55008d3d3507bde0.webp?v=1756689895","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae483f033b8fae6e723e454d47a0cf2c60cb85c4.webp?v=1756689896","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f95ac5fcd64a5e6539f762c2f21e74c4aa4e35fe.webp?v=1756689898","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c18ba62453631d20275adee26f9d5660267295a1.webp?v=1756689899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9ad216dc5498d1ba56d8d8cfab59bdcd14860b6.webp?v=1756689900","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/553647b4b52d7b29a348b5531d0507a59b220001.webp?v=1756689901"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd43cc5835a8f6f0e5309a209f1d1f1f6326553c.webp?v=1756689890","options":["color"],"media":[{"alt":null,"id":25981998432355,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd43cc5835a8f6f0e5309a209f1d1f1f6326553c.webp?v=1756689890"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd43cc5835a8f6f0e5309a209f1d1f1f6326553c.webp?v=1756689890","width":2000},{"alt":null,"id":25981998661731,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/123d89aaf4762bde31911a26407bf122f23c5adf.webp?v=1756689891"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/123d89aaf4762bde31911a26407bf122f23c5adf.webp?v=1756689891","width":2000},{"alt":null,"id":25981998891107,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0b11ee10cf82009a20928e9c33ac136e1325d0f.webp?v=1756689892"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0b11ee10cf82009a20928e9c33ac136e1325d0f.webp?v=1756689892","width":2000},{"alt":null,"id":25981999087715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c4d5d891d57869f91e9b3484ac0d40ce000007b.webp?v=1756689893"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c4d5d891d57869f91e9b3484ac0d40ce000007b.webp?v=1756689893","width":2000},{"alt":null,"id":25981999251555,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85a5d7da202df266db2f05ac4c3d76b4256b0c5e.webp?v=1756689893"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85a5d7da202df266db2f05ac4c3d76b4256b0c5e.webp?v=1756689893","width":2000},{"alt":null,"id":25981999415395,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4237ab05c81e101c5486599958e63fe9cb0c0363.webp?v=1756689894"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4237ab05c81e101c5486599958e63fe9cb0c0363.webp?v=1756689894","width":2000},{"alt":null,"id":25981999513699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/111cea608f8be1509cde57cf55008d3d3507bde0.webp?v=1756689895"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/111cea608f8be1509cde57cf55008d3d3507bde0.webp?v=1756689895","width":2000},{"alt":null,"id":25981999841379,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae483f033b8fae6e723e454d47a0cf2c60cb85c4.webp?v=1756689896"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae483f033b8fae6e723e454d47a0cf2c60cb85c4.webp?v=1756689896","width":2000},{"alt":null,"id":25982000365667,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f95ac5fcd64a5e6539f762c2f21e74c4aa4e35fe.webp?v=1756689898"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f95ac5fcd64a5e6539f762c2f21e74c4aa4e35fe.webp?v=1756689898","width":2000},{"alt":null,"id":25982000595043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c18ba62453631d20275adee26f9d5660267295a1.webp?v=1756689899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c18ba62453631d20275adee26f9d5660267295a1.webp?v=1756689899","width":2000},{"alt":null,"id":25982000726115,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9ad216dc5498d1ba56d8d8cfab59bdcd14860b6.webp?v=1756689900"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9ad216dc5498d1ba56d8d8cfab59bdcd14860b6.webp?v=1756689900","width":2000},{"alt":null,"id":25982000922723,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/553647b4b52d7b29a348b5531d0507a59b220001.webp?v=1756689901"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/553647b4b52d7b29a348b5531d0507a59b220001.webp?v=1756689901","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43658328965219,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-KEI01","requires_shipping":true,"taxable":true,"featured_image":{"id":34409685712995,"product_id":7873211170915,"position":11,"created_at":"2025-09-01T09:24:58+08:00","updated_at":"2025-09-01T09:25:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9ad216dc5498d1ba56d8d8cfab59bdcd14860b6.webp?v=1756689900","variant_ids":[43658328965219]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Barber - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-KEI01","featured_media":{"alt":null,"id":25982000726115,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9ad216dc5498d1ba56d8d8cfab59bdcd14860b6.webp?v=1756689900"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658329096291,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-KEI01","requires_shipping":true,"taxable":true,"featured_image":{"id":34409683419235,"product_id":7873211170915,"position":1,"created_at":"2025-09-01T09:24:48+08:00","updated_at":"2025-09-01T09:24:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd43cc5835a8f6f0e5309a209f1d1f1f6326553c.webp?v=1756689890","variant_ids":[43658329096291]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Barber - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-KEI01","featured_media":{"alt":null,"id":25981998432355,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd43cc5835a8f6f0e5309a209f1d1f1f6326553c.webp?v=1756689890"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658329161827,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-KEI01","requires_shipping":true,"taxable":true,"featured_image":{"id":34409685581923,"product_id":7873211170915,"position":10,"created_at":"2025-09-01T09:24:57+08:00","updated_at":"2025-09-01T09:24:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c18ba62453631d20275adee26f9d5660267295a1.webp?v=1756689899","variant_ids":[43658329161827]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Barber - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-KEI01","featured_media":{"alt":null,"id":25982000595043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c18ba62453631d20275adee26f9d5660267295a1.webp?v=1756689899"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43658328965219,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-KEI01","requires_shipping":true,"taxable":true,"featured_image":{"id":34409685712995,"product_id":7873211170915,"position":11,"created_at":"2025-09-01T09:24:58+08:00","updated_at":"2025-09-01T09:25:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9ad216dc5498d1ba56d8d8cfab59bdcd14860b6.webp?v=1756689900","variant_ids":[43658328965219]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) Keigo Barber - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-KEI01","featured_media":{"alt":null,"id":25982000726115,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9ad216dc5498d1ba56d8d8cfab59bdcd14860b6.webp?v=1756689900"}},"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: "停產" }