$product = {"id":7937885143139,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 艾蓮","handle":"iphone-12-mini-mod-nx-magsafe-xu05","description":null,"published_at":"2025-12-12T10:39:59+08:00","created_at":"2025-12-11T15:50:18+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-attack-on-titan","device-iPhone 12 Mini","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":43884281987171,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34932947419235,"product_id":7937885143139,"position":4,"created_at":"2025-12-11T15:50:24+08:00","updated_at":"2025-12-11T15:50:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e4b3129f950e22a81b831897378729c84d763d3.webp?v=1765439426","variant_ids":[43884281987171]},"available":true,"name":"iPhone 12 mini 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":"MPB0118424-XU05","featured_media":{"alt":null,"id":26495319179363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e4b3129f950e22a81b831897378729c84d763d3.webp?v=1765439426"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7867ae66be0ca60ef8a7b45fc472416dac3aed05.webp?v=1765439424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9aecbfa2e0469518eb6ae0da99ea1bb0a08b3bb7.webp?v=1765439425","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c8e6de121e3409b1b9fa9149f93b26d3a870b79.webp?v=1765439425","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e4b3129f950e22a81b831897378729c84d763d3.webp?v=1765439426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5a43fc5e51033b68dadb59229b51d628fb1d3c8.webp?v=1765439426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9b7b197105ea8cab788bb66d5ef23d659d857f1.webp?v=1765439427","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f391f66f572f50335284f1efab09802d6178f9.webp?v=1765439427","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc54e8172745e82b18f72ccb7e68ecef482b2553.webp?v=1765439428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3673b6c667d508bd46ed1a17ed3c7ae85d80f41d.webp?v=1765439429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2113e4c230d27754c445f83eb4a61db84ffbfeef.webp?v=1765439429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6d45b92191e2242a7f22efd4cfea84444dad660.webp?v=1765439430"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7867ae66be0ca60ef8a7b45fc472416dac3aed05.webp?v=1765439424","options":["color"],"media":[{"alt":null,"id":26495318655075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7867ae66be0ca60ef8a7b45fc472416dac3aed05.webp?v=1765439424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7867ae66be0ca60ef8a7b45fc472416dac3aed05.webp?v=1765439424","width":2000},{"alt":null,"id":26495318949987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9aecbfa2e0469518eb6ae0da99ea1bb0a08b3bb7.webp?v=1765439425"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9aecbfa2e0469518eb6ae0da99ea1bb0a08b3bb7.webp?v=1765439425","width":2000},{"alt":null,"id":26495319048291,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c8e6de121e3409b1b9fa9149f93b26d3a870b79.webp?v=1765439425"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c8e6de121e3409b1b9fa9149f93b26d3a870b79.webp?v=1765439425","width":2000},{"alt":null,"id":26495319179363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e4b3129f950e22a81b831897378729c84d763d3.webp?v=1765439426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e4b3129f950e22a81b831897378729c84d763d3.webp?v=1765439426","width":2000},{"alt":null,"id":26495319244899,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5a43fc5e51033b68dadb59229b51d628fb1d3c8.webp?v=1765439426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5a43fc5e51033b68dadb59229b51d628fb1d3c8.webp?v=1765439426","width":2000},{"alt":null,"id":26495319343203,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9b7b197105ea8cab788bb66d5ef23d659d857f1.webp?v=1765439427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9b7b197105ea8cab788bb66d5ef23d659d857f1.webp?v=1765439427","width":2000},{"alt":null,"id":26495319375971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f391f66f572f50335284f1efab09802d6178f9.webp?v=1765439427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f391f66f572f50335284f1efab09802d6178f9.webp?v=1765439427","width":2000},{"alt":null,"id":26495319441507,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc54e8172745e82b18f72ccb7e68ecef482b2553.webp?v=1765439428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc54e8172745e82b18f72ccb7e68ecef482b2553.webp?v=1765439428","width":2000},{"alt":null,"id":26495319670883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3673b6c667d508bd46ed1a17ed3c7ae85d80f41d.webp?v=1765439429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3673b6c667d508bd46ed1a17ed3c7ae85d80f41d.webp?v=1765439429","width":2000},{"alt":null,"id":26495319736419,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2113e4c230d27754c445f83eb4a61db84ffbfeef.webp?v=1765439429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2113e4c230d27754c445f83eb4a61db84ffbfeef.webp?v=1765439429","width":2000},{"alt":null,"id":26495319834723,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6d45b92191e2242a7f22efd4cfea84444dad660.webp?v=1765439430"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6d45b92191e2242a7f22efd4cfea84444dad660.webp?v=1765439430","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43884281987171,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34932947419235,"product_id":7937885143139,"position":4,"created_at":"2025-12-11T15:50:24+08:00","updated_at":"2025-12-11T15:50:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e4b3129f950e22a81b831897378729c84d763d3.webp?v=1765439426","variant_ids":[43884281987171]},"available":true,"name":"iPhone 12 mini 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":"MPB0118424-XU05","featured_media":{"alt":null,"id":26495319179363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e4b3129f950e22a81b831897378729c84d763d3.webp?v=1765439426"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43884281987171,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34932947419235,"product_id":7937885143139,"position":4,"created_at":"2025-12-11T15:50:24+08:00","updated_at":"2025-12-11T15:50:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e4b3129f950e22a81b831897378729c84d763d3.webp?v=1765439426","variant_ids":[43884281987171]},"available":true,"name":"iPhone 12 mini 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":"MPB0118424-XU05","featured_media":{"alt":null,"id":26495319179363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e4b3129f950e22a81b831897378729c84d763d3.webp?v=1765439426"}},"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: "停產" }