$product = {"id":7873317011555,"title":"iPhone 15 Plus Mod NX (MagSafe 兼容) Keigo Deep Sea","handle":"iphone-15-plus-mod-nx-magsafe-printable-kei09","description":null,"published_at":"2025-09-01T10:35:42+08:00","created_at":"2025-09-01T09:51:57+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-keigo","device-iPhone 15 Plus","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":43658738860131,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0129624-KEI09","requires_shipping":true,"taxable":true,"featured_image":{"id":34410089513059,"product_id":7873317011555,"position":8,"created_at":"2025-09-01T09:52:06+08:00","updated_at":"2025-09-01T09:52:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adc239b39f32721ac48c256f32f0be3d53061ae3.webp?v=1756691528","variant_ids":[43658738860131]},"available":true,"name":"iPhone 15 Plus Mod NX (MagSafe 兼容) Keigo Deep Sea - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-KEI09","featured_media":{"alt":null,"id":25982404493411,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adc239b39f32721ac48c256f32f0be3d53061ae3.webp?v=1756691528"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658739023971,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"MPB0129657-KEI09","requires_shipping":true,"taxable":true,"featured_image":{"id":34410088202339,"product_id":7873317011555,"position":3,"created_at":"2025-09-01T09:52:02+08:00","updated_at":"2025-09-01T09:52:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557977c69de2b20aa2b71103fe3b193e61e486e6.webp?v=1756691524","variant_ids":[43658739023971]},"available":true,"name":"iPhone 15 Plus Mod NX (MagSafe 兼容) Keigo Deep Sea - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-KEI09","featured_media":{"alt":null,"id":25982403215459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557977c69de2b20aa2b71103fe3b193e61e486e6.webp?v=1756691524"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60dc6c238e6b4d5a65eeedcc7fd7390b9432e101.webp?v=1756691523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85bdda0d99156f536e9a5f1ac18c34082339cc89.webp?v=1756691524","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557977c69de2b20aa2b71103fe3b193e61e486e6.webp?v=1756691524","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f851b048e7d23169ccbd62a93d3be93078275a70.webp?v=1756691525","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d11e8f74d52eeb58bf13fb0b7da355d4cfb665e6.webp?v=1756691526","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a651ea85d2e3f539ae1843a7275ff613f84c967.webp?v=1756691527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f37623f64dbceca7fda760059ec29a90cfab01f.webp?v=1756691528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adc239b39f32721ac48c256f32f0be3d53061ae3.webp?v=1756691528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d202ac3a27eb534b566f69fa30b660d3c7da71a.webp?v=1756691529"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60dc6c238e6b4d5a65eeedcc7fd7390b9432e101.webp?v=1756691523","options":["color"],"media":[{"alt":null,"id":25982402756707,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60dc6c238e6b4d5a65eeedcc7fd7390b9432e101.webp?v=1756691523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60dc6c238e6b4d5a65eeedcc7fd7390b9432e101.webp?v=1756691523","width":2000},{"alt":null,"id":25982403051619,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85bdda0d99156f536e9a5f1ac18c34082339cc89.webp?v=1756691524"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85bdda0d99156f536e9a5f1ac18c34082339cc89.webp?v=1756691524","width":2000},{"alt":null,"id":25982403215459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557977c69de2b20aa2b71103fe3b193e61e486e6.webp?v=1756691524"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557977c69de2b20aa2b71103fe3b193e61e486e6.webp?v=1756691524","width":2000},{"alt":null,"id":25982403346531,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f851b048e7d23169ccbd62a93d3be93078275a70.webp?v=1756691525"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f851b048e7d23169ccbd62a93d3be93078275a70.webp?v=1756691525","width":2000},{"alt":null,"id":25982403641443,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d11e8f74d52eeb58bf13fb0b7da355d4cfb665e6.webp?v=1756691526"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d11e8f74d52eeb58bf13fb0b7da355d4cfb665e6.webp?v=1756691526","width":2000},{"alt":null,"id":25982403870819,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a651ea85d2e3f539ae1843a7275ff613f84c967.webp?v=1756691527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a651ea85d2e3f539ae1843a7275ff613f84c967.webp?v=1756691527","width":2000},{"alt":null,"id":25982404132963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f37623f64dbceca7fda760059ec29a90cfab01f.webp?v=1756691528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f37623f64dbceca7fda760059ec29a90cfab01f.webp?v=1756691528","width":2000},{"alt":null,"id":25982404493411,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adc239b39f32721ac48c256f32f0be3d53061ae3.webp?v=1756691528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adc239b39f32721ac48c256f32f0be3d53061ae3.webp?v=1756691528","width":2000},{"alt":null,"id":25982404821091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d202ac3a27eb534b566f69fa30b660d3c7da71a.webp?v=1756691529"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d202ac3a27eb534b566f69fa30b660d3c7da71a.webp?v=1756691529","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43658738860131,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0129624-KEI09","requires_shipping":true,"taxable":true,"featured_image":{"id":34410089513059,"product_id":7873317011555,"position":8,"created_at":"2025-09-01T09:52:06+08:00","updated_at":"2025-09-01T09:52:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adc239b39f32721ac48c256f32f0be3d53061ae3.webp?v=1756691528","variant_ids":[43658738860131]},"available":true,"name":"iPhone 15 Plus Mod NX (MagSafe 兼容) Keigo Deep Sea - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-KEI09","featured_media":{"alt":null,"id":25982404493411,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adc239b39f32721ac48c256f32f0be3d53061ae3.webp?v=1756691528"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658739023971,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"MPB0129657-KEI09","requires_shipping":true,"taxable":true,"featured_image":{"id":34410088202339,"product_id":7873317011555,"position":3,"created_at":"2025-09-01T09:52:02+08:00","updated_at":"2025-09-01T09:52:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557977c69de2b20aa2b71103fe3b193e61e486e6.webp?v=1756691524","variant_ids":[43658739023971]},"available":true,"name":"iPhone 15 Plus Mod NX (MagSafe 兼容) Keigo Deep Sea - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-KEI09","featured_media":{"alt":null,"id":25982403215459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557977c69de2b20aa2b71103fe3b193e61e486e6.webp?v=1756691524"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43658738860131,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0129624-KEI09","requires_shipping":true,"taxable":true,"featured_image":{"id":34410089513059,"product_id":7873317011555,"position":8,"created_at":"2025-09-01T09:52:06+08:00","updated_at":"2025-09-01T09:52:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adc239b39f32721ac48c256f32f0be3d53061ae3.webp?v=1756691528","variant_ids":[43658738860131]},"available":true,"name":"iPhone 15 Plus Mod NX (MagSafe 兼容) Keigo Deep Sea - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-KEI09","featured_media":{"alt":null,"id":25982404493411,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adc239b39f32721ac48c256f32f0be3d53061ae3.webp?v=1756691528"}},"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: "停產" }