$product = {"id":7848003731555,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 嗨小強 Peekaboo","handle":"iphone-14-plus-mod-nx-magsafe-bumper-crossover-design-fv61","description":null,"published_at":"2025-08-07T09:28:14+08:00","created_at":"2025-08-05T09:32:39+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-hijohnnn","device-iPhone 14 Plus","merge","reseller-hijohnnn"],"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":43562725015651,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-FV61","requires_shipping":true,"taxable":true,"featured_image":{"id":34287535947875,"product_id":7848003731555,"position":8,"created_at":"2025-08-05T09:32:47+08:00","updated_at":"2025-08-05T09:32:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c16754f301099f9f7dd8b68087bda7938decda03.webp?v=1754357569","variant_ids":[43562725015651]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 嗨小強 Peekaboo - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-FV61","featured_media":{"alt":null,"id":25888716718179,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c16754f301099f9f7dd8b68087bda7938decda03.webp?v=1754357569"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ddd7fc3b8bd63d37a19cf66a2fc0e13b54db558.webp?v=1754357565","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd8d10f5eaae4e0703e992198e6ca36ae4dae6cb.webp?v=1754357566","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/544418ae37b6f50f8bb85a92f3214830db6e367f.webp?v=1754357566","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/996d786b7a3f649d79ef2466dbeb12cce81e736b.webp?v=1754357567","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef6c8e8e30b079f4febcdb0e8b29738951717e5f.webp?v=1754357568","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fb3d4ec6e6bb0ac6c8020b416e8ecf5715257d7.webp?v=1754357568","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57b725ee2bde915c2dd2e87256b1ecbeab264b21.webp?v=1754357569","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c16754f301099f9f7dd8b68087bda7938decda03.webp?v=1754357569","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a3c07890a6c1a6d2fe71b3a97881d2a8f856861.webp?v=1754357570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f149472df292e498ef614293fc9451a720eb6e27.webp?v=1754357571","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/524322fe27b58faa77e9a291c89fe7ed238e2414.webp?v=1754357571","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a94ea847a639db92f394b9441b1c9c61afc46be3.webp?v=1754357572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c52c363c1daa50365b0b5168427111736b33d23.webp?v=1754357572"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ddd7fc3b8bd63d37a19cf66a2fc0e13b54db558.webp?v=1754357565","options":["color"],"media":[{"alt":null,"id":25888715636835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ddd7fc3b8bd63d37a19cf66a2fc0e13b54db558.webp?v=1754357565"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ddd7fc3b8bd63d37a19cf66a2fc0e13b54db558.webp?v=1754357565","width":2000},{"alt":null,"id":25888715735139,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd8d10f5eaae4e0703e992198e6ca36ae4dae6cb.webp?v=1754357566"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd8d10f5eaae4e0703e992198e6ca36ae4dae6cb.webp?v=1754357566","width":2000},{"alt":null,"id":25888715931747,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/544418ae37b6f50f8bb85a92f3214830db6e367f.webp?v=1754357566"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/544418ae37b6f50f8bb85a92f3214830db6e367f.webp?v=1754357566","width":2000},{"alt":null,"id":25888716095587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/996d786b7a3f649d79ef2466dbeb12cce81e736b.webp?v=1754357567"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/996d786b7a3f649d79ef2466dbeb12cce81e736b.webp?v=1754357567","width":2000},{"alt":null,"id":25888716226659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef6c8e8e30b079f4febcdb0e8b29738951717e5f.webp?v=1754357568"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef6c8e8e30b079f4febcdb0e8b29738951717e5f.webp?v=1754357568","width":2000},{"alt":null,"id":25888716357731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fb3d4ec6e6bb0ac6c8020b416e8ecf5715257d7.webp?v=1754357568"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fb3d4ec6e6bb0ac6c8020b416e8ecf5715257d7.webp?v=1754357568","width":2000},{"alt":null,"id":25888716554339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57b725ee2bde915c2dd2e87256b1ecbeab264b21.webp?v=1754357569"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57b725ee2bde915c2dd2e87256b1ecbeab264b21.webp?v=1754357569","width":2000},{"alt":null,"id":25888716718179,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c16754f301099f9f7dd8b68087bda7938decda03.webp?v=1754357569"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c16754f301099f9f7dd8b68087bda7938decda03.webp?v=1754357569","width":2000},{"alt":null,"id":25888717045859,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a3c07890a6c1a6d2fe71b3a97881d2a8f856861.webp?v=1754357570"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a3c07890a6c1a6d2fe71b3a97881d2a8f856861.webp?v=1754357570","width":2000},{"alt":null,"id":25888717308003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f149472df292e498ef614293fc9451a720eb6e27.webp?v=1754357571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f149472df292e498ef614293fc9451a720eb6e27.webp?v=1754357571","width":2000},{"alt":null,"id":25888717504611,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/524322fe27b58faa77e9a291c89fe7ed238e2414.webp?v=1754357571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/524322fe27b58faa77e9a291c89fe7ed238e2414.webp?v=1754357571","width":2000},{"alt":null,"id":25888717766755,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a94ea847a639db92f394b9441b1c9c61afc46be3.webp?v=1754357572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a94ea847a639db92f394b9441b1c9c61afc46be3.webp?v=1754357572","width":2000},{"alt":null,"id":25888717963363,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c52c363c1daa50365b0b5168427111736b33d23.webp?v=1754357572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c52c363c1daa50365b0b5168427111736b33d23.webp?v=1754357572","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43562725015651,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-FV61","requires_shipping":true,"taxable":true,"featured_image":{"id":34287535947875,"product_id":7848003731555,"position":8,"created_at":"2025-08-05T09:32:47+08:00","updated_at":"2025-08-05T09:32:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c16754f301099f9f7dd8b68087bda7938decda03.webp?v=1754357569","variant_ids":[43562725015651]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 嗨小強 Peekaboo - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-FV61","featured_media":{"alt":null,"id":25888716718179,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c16754f301099f9f7dd8b68087bda7938decda03.webp?v=1754357569"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43562725015651,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-FV61","requires_shipping":true,"taxable":true,"featured_image":{"id":34287535947875,"product_id":7848003731555,"position":8,"created_at":"2025-08-05T09:32:47+08:00","updated_at":"2025-08-05T09:32:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c16754f301099f9f7dd8b68087bda7938decda03.webp?v=1754357569","variant_ids":[43562725015651]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 嗨小強 Peekaboo - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-FV61","featured_media":{"alt":null,"id":25888716718179,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c16754f301099f9f7dd8b68087bda7938decda03.webp?v=1754357569"}},"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: "停產" }