$product = {"id":7873297055843,"title":"iPhone 13 mini Mod NX (MagSafe 兼容) Keigo Loudspeaker","handle":"iphone-13-mini-mod-nx-magsafe-printable-kei03","description":null,"published_at":"2025-09-01T10:43:43+08:00","created_at":"2025-09-01T09:46:44+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-keigo","device-iPhone 13 Mini","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":43658658119779,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-KEI03","requires_shipping":true,"taxable":true,"featured_image":{"id":34410007527523,"product_id":7873297055843,"position":5,"created_at":"2025-09-01T09:46:51+08:00","updated_at":"2025-09-01T09:46:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbfab330f0f8aac5f93eb591512bd03becf4bdbd.webp?v=1756691213","variant_ids":[43658658119779]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) Keigo Loudspeaker - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-KEI03","featured_media":{"alt":null,"id":25982322507875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbfab330f0f8aac5f93eb591512bd03becf4bdbd.webp?v=1756691213"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658658218083,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-KEI03","requires_shipping":true,"taxable":true,"featured_image":{"id":34410007953507,"product_id":7873297055843,"position":8,"created_at":"2025-09-01T09:46:53+08:00","updated_at":"2025-09-01T09:46:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e24926ce5bf9a682834cefa5760d641766d17f04.webp?v=1756691215","variant_ids":[43658658218083]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) Keigo Loudspeaker - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-KEI03","featured_media":{"alt":null,"id":25982322933859,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e24926ce5bf9a682834cefa5760d641766d17f04.webp?v=1756691215"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658658250851,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-KEI03","requires_shipping":true,"taxable":true,"featured_image":{"id":34410007789667,"product_id":7873297055843,"position":7,"created_at":"2025-09-01T09:46:53+08:00","updated_at":"2025-09-01T09:46:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1473e608f2c3ed62ba1610bf15df1089d9d09b45.webp?v=1756691214","variant_ids":[43658658250851]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) Keigo Loudspeaker - 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":"MPB01228J5-KEI03","featured_media":{"alt":null,"id":25982322770019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1473e608f2c3ed62ba1610bf15df1089d9d09b45.webp?v=1756691214"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35e0af15c8ae6a945b234d5d4b8edc077a370645.webp?v=1756691210","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd2f9ec0fa3fbdd4fa13ebc9c1d5b65d827507e.webp?v=1756691211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea102f3e3f7c8572083f9fd3460e7b94c3443af2.webp?v=1756691212","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07e82232ff61c798c85d392b2ef603e50c49e128.webp?v=1756691213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbfab330f0f8aac5f93eb591512bd03becf4bdbd.webp?v=1756691213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a66751335e59841ac4d9b54a9a2424820a6a442e.webp?v=1756691214","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1473e608f2c3ed62ba1610bf15df1089d9d09b45.webp?v=1756691214","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e24926ce5bf9a682834cefa5760d641766d17f04.webp?v=1756691215","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87e52eca4fb96c8d825f9ee328b0983384427e28.webp?v=1756691216","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74b38c06c737b0b124d95cf96f6ccd2349f4ebd2.webp?v=1756691217"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35e0af15c8ae6a945b234d5d4b8edc077a370645.webp?v=1756691210","options":["color"],"media":[{"alt":null,"id":25982321655907,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35e0af15c8ae6a945b234d5d4b8edc077a370645.webp?v=1756691210"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35e0af15c8ae6a945b234d5d4b8edc077a370645.webp?v=1756691210","width":2000},{"alt":null,"id":25982321885283,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd2f9ec0fa3fbdd4fa13ebc9c1d5b65d827507e.webp?v=1756691211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd2f9ec0fa3fbdd4fa13ebc9c1d5b65d827507e.webp?v=1756691211","width":2000},{"alt":null,"id":25982322081891,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea102f3e3f7c8572083f9fd3460e7b94c3443af2.webp?v=1756691212"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea102f3e3f7c8572083f9fd3460e7b94c3443af2.webp?v=1756691212","width":2000},{"alt":null,"id":25982322278499,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07e82232ff61c798c85d392b2ef603e50c49e128.webp?v=1756691213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07e82232ff61c798c85d392b2ef603e50c49e128.webp?v=1756691213","width":2000},{"alt":null,"id":25982322507875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbfab330f0f8aac5f93eb591512bd03becf4bdbd.webp?v=1756691213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbfab330f0f8aac5f93eb591512bd03becf4bdbd.webp?v=1756691213","width":2000},{"alt":null,"id":25982322638947,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a66751335e59841ac4d9b54a9a2424820a6a442e.webp?v=1756691214"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a66751335e59841ac4d9b54a9a2424820a6a442e.webp?v=1756691214","width":2000},{"alt":null,"id":25982322770019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1473e608f2c3ed62ba1610bf15df1089d9d09b45.webp?v=1756691214"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1473e608f2c3ed62ba1610bf15df1089d9d09b45.webp?v=1756691214","width":2000},{"alt":null,"id":25982322933859,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e24926ce5bf9a682834cefa5760d641766d17f04.webp?v=1756691215"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e24926ce5bf9a682834cefa5760d641766d17f04.webp?v=1756691215","width":2000},{"alt":null,"id":25982323163235,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87e52eca4fb96c8d825f9ee328b0983384427e28.webp?v=1756691216"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87e52eca4fb96c8d825f9ee328b0983384427e28.webp?v=1756691216","width":2000},{"alt":null,"id":25982323359843,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74b38c06c737b0b124d95cf96f6ccd2349f4ebd2.webp?v=1756691217"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74b38c06c737b0b124d95cf96f6ccd2349f4ebd2.webp?v=1756691217","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43658658119779,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-KEI03","requires_shipping":true,"taxable":true,"featured_image":{"id":34410007527523,"product_id":7873297055843,"position":5,"created_at":"2025-09-01T09:46:51+08:00","updated_at":"2025-09-01T09:46:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbfab330f0f8aac5f93eb591512bd03becf4bdbd.webp?v=1756691213","variant_ids":[43658658119779]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) Keigo Loudspeaker - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-KEI03","featured_media":{"alt":null,"id":25982322507875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbfab330f0f8aac5f93eb591512bd03becf4bdbd.webp?v=1756691213"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658658218083,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-KEI03","requires_shipping":true,"taxable":true,"featured_image":{"id":34410007953507,"product_id":7873297055843,"position":8,"created_at":"2025-09-01T09:46:53+08:00","updated_at":"2025-09-01T09:46:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e24926ce5bf9a682834cefa5760d641766d17f04.webp?v=1756691215","variant_ids":[43658658218083]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) Keigo Loudspeaker - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-KEI03","featured_media":{"alt":null,"id":25982322933859,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e24926ce5bf9a682834cefa5760d641766d17f04.webp?v=1756691215"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658658250851,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-KEI03","requires_shipping":true,"taxable":true,"featured_image":{"id":34410007789667,"product_id":7873297055843,"position":7,"created_at":"2025-09-01T09:46:53+08:00","updated_at":"2025-09-01T09:46:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1473e608f2c3ed62ba1610bf15df1089d9d09b45.webp?v=1756691214","variant_ids":[43658658250851]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) Keigo Loudspeaker - 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":"MPB01228J5-KEI03","featured_media":{"alt":null,"id":25982322770019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1473e608f2c3ed62ba1610bf15df1089d9d09b45.webp?v=1756691214"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43658658119779,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-KEI03","requires_shipping":true,"taxable":true,"featured_image":{"id":34410007527523,"product_id":7873297055843,"position":5,"created_at":"2025-09-01T09:46:51+08:00","updated_at":"2025-09-01T09:46:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbfab330f0f8aac5f93eb591512bd03becf4bdbd.webp?v=1756691213","variant_ids":[43658658119779]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) Keigo Loudspeaker - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-KEI03","featured_media":{"alt":null,"id":25982322507875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbfab330f0f8aac5f93eb591512bd03becf4bdbd.webp?v=1756691213"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }