$product = {"id":7921930928227,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 阿媽家的吻","handle":"iphone-12-mini-mod-nx-magsafe-hd74","description":null,"published_at":"2025-11-13T09:45:40+08:00","created_at":"2025-11-13T09:27:31+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-incrediville","device-iPhone 12 Mini","merge","reseller-incrediville"],"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":43834581024867,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-HD74","requires_shipping":true,"taxable":true,"featured_image":{"id":34793916924003,"product_id":7921930928227,"position":1,"created_at":"2025-11-13T09:27:35+08:00","updated_at":"2025-11-13T09:27:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a9f4299bdd75c2b202b92323f61521eb4365f0.webp?v=1762997257","variant_ids":[43834581024867]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 阿媽家的吻 - 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-HD74","featured_media":{"alt":null,"id":26359337222243,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a9f4299bdd75c2b202b92323f61521eb4365f0.webp?v=1762997257"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a9f4299bdd75c2b202b92323f61521eb4365f0.webp?v=1762997257","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62434246b34bbff47781466c9900c83a7913d064.webp?v=1762997258","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/836f1aeb4f7a1e8249b70b80172ca0d40e8a6cf9.webp?v=1762997258","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97ac4f1c1cccce2ec94a684aef6a065c57f919bb.webp?v=1762997259","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e80e86deb78b871b35f7c8412c149096b582ddb.webp?v=1762997260","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58899dcef386054098abae936cee3095dc634047.webp?v=1762997260","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2fc884b030731a433c71930604746a1775c8efe.webp?v=1762997261","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62286520235afaf0fe9702ac3fd8437c7034ba02.webp?v=1762997262","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9715837b8fb07e79710e614aae20c915bffe60bb.webp?v=1762997262","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03380adab1e4ba5e92edc94cbcc3dcb6b4d6635a.webp?v=1762997263","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5562fe8fcbd98305f6cd8fc0d3788c0e36e8aeb.webp?v=1762997264"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a9f4299bdd75c2b202b92323f61521eb4365f0.webp?v=1762997257","options":["color"],"media":[{"alt":null,"id":26359337222243,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a9f4299bdd75c2b202b92323f61521eb4365f0.webp?v=1762997257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a9f4299bdd75c2b202b92323f61521eb4365f0.webp?v=1762997257","width":2000},{"alt":null,"id":26359337320547,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62434246b34bbff47781466c9900c83a7913d064.webp?v=1762997258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62434246b34bbff47781466c9900c83a7913d064.webp?v=1762997258","width":2000},{"alt":null,"id":26359337648227,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/836f1aeb4f7a1e8249b70b80172ca0d40e8a6cf9.webp?v=1762997258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/836f1aeb4f7a1e8249b70b80172ca0d40e8a6cf9.webp?v=1762997258","width":2000},{"alt":null,"id":26359337779299,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97ac4f1c1cccce2ec94a684aef6a065c57f919bb.webp?v=1762997259"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97ac4f1c1cccce2ec94a684aef6a065c57f919bb.webp?v=1762997259","width":2000},{"alt":null,"id":26359337975907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e80e86deb78b871b35f7c8412c149096b582ddb.webp?v=1762997260"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e80e86deb78b871b35f7c8412c149096b582ddb.webp?v=1762997260","width":2000},{"alt":null,"id":26359338139747,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58899dcef386054098abae936cee3095dc634047.webp?v=1762997260"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58899dcef386054098abae936cee3095dc634047.webp?v=1762997260","width":2000},{"alt":null,"id":26359338336355,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2fc884b030731a433c71930604746a1775c8efe.webp?v=1762997261"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2fc884b030731a433c71930604746a1775c8efe.webp?v=1762997261","width":2000},{"alt":null,"id":26359338860643,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62286520235afaf0fe9702ac3fd8437c7034ba02.webp?v=1762997262"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62286520235afaf0fe9702ac3fd8437c7034ba02.webp?v=1762997262","width":2000},{"alt":null,"id":26359339090019,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9715837b8fb07e79710e614aae20c915bffe60bb.webp?v=1762997262"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9715837b8fb07e79710e614aae20c915bffe60bb.webp?v=1762997262","width":2000},{"alt":null,"id":26359339352163,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03380adab1e4ba5e92edc94cbcc3dcb6b4d6635a.webp?v=1762997263"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03380adab1e4ba5e92edc94cbcc3dcb6b4d6635a.webp?v=1762997263","width":2000},{"alt":null,"id":26359339581539,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5562fe8fcbd98305f6cd8fc0d3788c0e36e8aeb.webp?v=1762997264"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5562fe8fcbd98305f6cd8fc0d3788c0e36e8aeb.webp?v=1762997264","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43834581024867,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-HD74","requires_shipping":true,"taxable":true,"featured_image":{"id":34793916924003,"product_id":7921930928227,"position":1,"created_at":"2025-11-13T09:27:35+08:00","updated_at":"2025-11-13T09:27:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a9f4299bdd75c2b202b92323f61521eb4365f0.webp?v=1762997257","variant_ids":[43834581024867]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 阿媽家的吻 - 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-HD74","featured_media":{"alt":null,"id":26359337222243,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a9f4299bdd75c2b202b92323f61521eb4365f0.webp?v=1762997257"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43834581024867,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-HD74","requires_shipping":true,"taxable":true,"featured_image":{"id":34793916924003,"product_id":7921930928227,"position":1,"created_at":"2025-11-13T09:27:35+08:00","updated_at":"2025-11-13T09:27:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a9f4299bdd75c2b202b92323f61521eb4365f0.webp?v=1762997257","variant_ids":[43834581024867]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) Incrediville 怪奇事物所 阿媽家的吻 - 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-HD74","featured_media":{"alt":null,"id":26359337222243,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a9f4299bdd75c2b202b92323f61521eb4365f0.webp?v=1762997257"}},"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: "停產" }