$product = {"id":7937930362979,"title":"iPhone 15 Plus Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 自由之翼小徽章","handle":"iphone-15-plus-mod-nx-magsafe-xu16","description":null,"published_at":"2025-12-12T10:30:14+08:00","created_at":"2025-12-11T16:00:44+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-attack-on-titan","device-iPhone 15 Plus","merge","reseller-attack-on-titan"],"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":43884451692643,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"MPB0129657-XU16","requires_shipping":true,"taxable":true,"featured_image":{"id":34933132656739,"product_id":7937930362979,"position":7,"created_at":"2025-12-11T16:00:51+08:00","updated_at":"2025-12-11T16:00:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5145ba32412652f87b3aac3100ec3daaf97fe7ee.webp?v=1765440053","variant_ids":[43884451692643]},"available":true,"name":"iPhone 15 Plus Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 自由之翼小徽章 - 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-XU16","featured_media":{"alt":null,"id":26495504351331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5145ba32412652f87b3aac3100ec3daaf97fe7ee.webp?v=1765440053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884451725411,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0129624-XU16","requires_shipping":true,"taxable":true,"featured_image":{"id":34933132099683,"product_id":7937930362979,"position":4,"created_at":"2025-12-11T16:00:49+08:00","updated_at":"2025-12-11T16:00:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58bffeb3d06d9c883c4f78f05d41c1afdba08092.webp?v=1765440051","variant_ids":[43884451725411]},"available":true,"name":"iPhone 15 Plus Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 自由之翼小徽章 - 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-XU16","featured_media":{"alt":null,"id":26495503794275,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58bffeb3d06d9c883c4f78f05d41c1afdba08092.webp?v=1765440051"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d7688dcfcc1365390678afed05b4f75de3ea57f.webp?v=1765440049","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f41da857ce69f9ace576390b224e2f751601cc7.webp?v=1765440050","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/627ba4b4d579dc82f19a3e499538726c6e8b6d2b.webp?v=1765440050","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58bffeb3d06d9c883c4f78f05d41c1afdba08092.webp?v=1765440051","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/724def6cb81ce0e170f0480fb0262b477eae4012.webp?v=1765440052","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b42dc9e4bc977309ceec5f73845d26bc3cb05ac5.webp?v=1765440052","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5145ba32412652f87b3aac3100ec3daaf97fe7ee.webp?v=1765440053","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a752767fb087b5dd37b26fad6f99f482ea498481.webp?v=1765440054","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b50c16705485b6589ba15663116077b33ec23f4.webp?v=1765440054"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d7688dcfcc1365390678afed05b4f75de3ea57f.webp?v=1765440049","options":["color"],"media":[{"alt":null,"id":26495503302755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d7688dcfcc1365390678afed05b4f75de3ea57f.webp?v=1765440049"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d7688dcfcc1365390678afed05b4f75de3ea57f.webp?v=1765440049","width":2000},{"alt":null,"id":26495503466595,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f41da857ce69f9ace576390b224e2f751601cc7.webp?v=1765440050"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f41da857ce69f9ace576390b224e2f751601cc7.webp?v=1765440050","width":2000},{"alt":null,"id":26495503630435,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/627ba4b4d579dc82f19a3e499538726c6e8b6d2b.webp?v=1765440050"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/627ba4b4d579dc82f19a3e499538726c6e8b6d2b.webp?v=1765440050","width":2000},{"alt":null,"id":26495503794275,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58bffeb3d06d9c883c4f78f05d41c1afdba08092.webp?v=1765440051"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58bffeb3d06d9c883c4f78f05d41c1afdba08092.webp?v=1765440051","width":2000},{"alt":null,"id":26495503990883,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/724def6cb81ce0e170f0480fb0262b477eae4012.webp?v=1765440052"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/724def6cb81ce0e170f0480fb0262b477eae4012.webp?v=1765440052","width":2000},{"alt":null,"id":26495504154723,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b42dc9e4bc977309ceec5f73845d26bc3cb05ac5.webp?v=1765440052"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b42dc9e4bc977309ceec5f73845d26bc3cb05ac5.webp?v=1765440052","width":2000},{"alt":null,"id":26495504351331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5145ba32412652f87b3aac3100ec3daaf97fe7ee.webp?v=1765440053"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5145ba32412652f87b3aac3100ec3daaf97fe7ee.webp?v=1765440053","width":2000},{"alt":null,"id":26495504515171,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a752767fb087b5dd37b26fad6f99f482ea498481.webp?v=1765440054"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a752767fb087b5dd37b26fad6f99f482ea498481.webp?v=1765440054","width":2000},{"alt":null,"id":26495504679011,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b50c16705485b6589ba15663116077b33ec23f4.webp?v=1765440054"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b50c16705485b6589ba15663116077b33ec23f4.webp?v=1765440054","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43884451692643,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"MPB0129657-XU16","requires_shipping":true,"taxable":true,"featured_image":{"id":34933132656739,"product_id":7937930362979,"position":7,"created_at":"2025-12-11T16:00:51+08:00","updated_at":"2025-12-11T16:00:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5145ba32412652f87b3aac3100ec3daaf97fe7ee.webp?v=1765440053","variant_ids":[43884451692643]},"available":true,"name":"iPhone 15 Plus Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 自由之翼小徽章 - 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-XU16","featured_media":{"alt":null,"id":26495504351331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5145ba32412652f87b3aac3100ec3daaf97fe7ee.webp?v=1765440053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884451725411,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0129624-XU16","requires_shipping":true,"taxable":true,"featured_image":{"id":34933132099683,"product_id":7937930362979,"position":4,"created_at":"2025-12-11T16:00:49+08:00","updated_at":"2025-12-11T16:00:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58bffeb3d06d9c883c4f78f05d41c1afdba08092.webp?v=1765440051","variant_ids":[43884451725411]},"available":true,"name":"iPhone 15 Plus Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 自由之翼小徽章 - 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-XU16","featured_media":{"alt":null,"id":26495503794275,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58bffeb3d06d9c883c4f78f05d41c1afdba08092.webp?v=1765440051"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43884451692643,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"MPB0129657-XU16","requires_shipping":true,"taxable":true,"featured_image":{"id":34933132656739,"product_id":7937930362979,"position":7,"created_at":"2025-12-11T16:00:51+08:00","updated_at":"2025-12-11T16:00:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5145ba32412652f87b3aac3100ec3daaf97fe7ee.webp?v=1765440053","variant_ids":[43884451692643]},"available":true,"name":"iPhone 15 Plus Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 自由之翼小徽章 - 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-XU16","featured_media":{"alt":null,"id":26495504351331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5145ba32412652f87b3aac3100ec3daaf97fe7ee.webp?v=1765440053"}},"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: "停產" }