$product = {"id":7956201996387,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) Emerald Studio 羽扇豆・春分 土地的守護","handle":"iphone-12-mini-mod-nx-magsafe-eme08","description":null,"published_at":"2026-01-28T09:43:59+08:00","created_at":"2026-01-26T14:37:23+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-emerald","device-iPhone 12 Mini","merge","reseller-emerald"],"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":43966961844323,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-EME08","requires_shipping":true,"taxable":true,"featured_image":{"id":35147168415843,"product_id":7956201996387,"position":10,"created_at":"2026-01-26T14:38:13+08:00","updated_at":"2026-01-26T14:38:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3b4df6507bb1093cfeabd0ff3a990945d57e5d.webp?v=1769409495","variant_ids":[43966961844323]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) Emerald Studio 羽扇豆・春分 土地的守護 - 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-EME08","featured_media":{"alt":null,"id":26703406923875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3b4df6507bb1093cfeabd0ff3a990945d57e5d.webp?v=1769409495"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb988dc9c36081b4a814ed764b49af956b22f870.webp?v=1769409489","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d08e1a78b42a9b6f8523a48c71457ce22b37614a.webp?v=1769409491","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae43962ca6e41b5846fed4bcd2e8618c15a5c2f.webp?v=1769409491","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e31e85332c7e8ea47a606056e704c5a172a4e7de.webp?v=1769409492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2644555a84d2fb4fe31d37ec03297a097d747909.webp?v=1769409492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91358fb4087d4dce442767e63b60dc77827e9a58.webp?v=1769409493","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d40103a5593dd1943b08cd28cc41902b033bf82.webp?v=1769409494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d3d1a0e3c10ed0ffcdb3aa6f53539c97c041acf.webp?v=1769409494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9801d7002ab60c8e67aa1e5da4ff72df19530c0c.webp?v=1769409495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3b4df6507bb1093cfeabd0ff3a990945d57e5d.webp?v=1769409495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4703a7ece2b9fd4b67c6dfb700fbf36a267f19ce.webp?v=1769409496"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb988dc9c36081b4a814ed764b49af956b22f870.webp?v=1769409489","options":["color"],"media":[{"alt":null,"id":26703404040291,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb988dc9c36081b4a814ed764b49af956b22f870.webp?v=1769409489"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb988dc9c36081b4a814ed764b49af956b22f870.webp?v=1769409489","width":2000},{"alt":null,"id":26703404564579,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d08e1a78b42a9b6f8523a48c71457ce22b37614a.webp?v=1769409491"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d08e1a78b42a9b6f8523a48c71457ce22b37614a.webp?v=1769409491","width":2000},{"alt":null,"id":26703405252707,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae43962ca6e41b5846fed4bcd2e8618c15a5c2f.webp?v=1769409491"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae43962ca6e41b5846fed4bcd2e8618c15a5c2f.webp?v=1769409491","width":2000},{"alt":null,"id":26703405776995,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e31e85332c7e8ea47a606056e704c5a172a4e7de.webp?v=1769409492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e31e85332c7e8ea47a606056e704c5a172a4e7de.webp?v=1769409492","width":2000},{"alt":null,"id":26703406071907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2644555a84d2fb4fe31d37ec03297a097d747909.webp?v=1769409492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2644555a84d2fb4fe31d37ec03297a097d747909.webp?v=1769409492","width":2000},{"alt":null,"id":26703406334051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91358fb4087d4dce442767e63b60dc77827e9a58.webp?v=1769409493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91358fb4087d4dce442767e63b60dc77827e9a58.webp?v=1769409493","width":2000},{"alt":null,"id":26703406497891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d40103a5593dd1943b08cd28cc41902b033bf82.webp?v=1769409494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d40103a5593dd1943b08cd28cc41902b033bf82.webp?v=1769409494","width":2000},{"alt":null,"id":26703406760035,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d3d1a0e3c10ed0ffcdb3aa6f53539c97c041acf.webp?v=1769409494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d3d1a0e3c10ed0ffcdb3aa6f53539c97c041acf.webp?v=1769409494","width":2000},{"alt":null,"id":26703406858339,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9801d7002ab60c8e67aa1e5da4ff72df19530c0c.webp?v=1769409495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9801d7002ab60c8e67aa1e5da4ff72df19530c0c.webp?v=1769409495","width":2000},{"alt":null,"id":26703406923875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3b4df6507bb1093cfeabd0ff3a990945d57e5d.webp?v=1769409495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3b4df6507bb1093cfeabd0ff3a990945d57e5d.webp?v=1769409495","width":2000},{"alt":null,"id":26703407054947,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4703a7ece2b9fd4b67c6dfb700fbf36a267f19ce.webp?v=1769409496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4703a7ece2b9fd4b67c6dfb700fbf36a267f19ce.webp?v=1769409496","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43966961844323,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-EME08","requires_shipping":true,"taxable":true,"featured_image":{"id":35147168415843,"product_id":7956201996387,"position":10,"created_at":"2026-01-26T14:38:13+08:00","updated_at":"2026-01-26T14:38:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3b4df6507bb1093cfeabd0ff3a990945d57e5d.webp?v=1769409495","variant_ids":[43966961844323]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) Emerald Studio 羽扇豆・春分 土地的守護 - 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-EME08","featured_media":{"alt":null,"id":26703406923875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3b4df6507bb1093cfeabd0ff3a990945d57e5d.webp?v=1769409495"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43966961844323,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-EME08","requires_shipping":true,"taxable":true,"featured_image":{"id":35147168415843,"product_id":7956201996387,"position":10,"created_at":"2026-01-26T14:38:13+08:00","updated_at":"2026-01-26T14:38:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3b4df6507bb1093cfeabd0ff3a990945d57e5d.webp?v=1769409495","variant_ids":[43966961844323]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) Emerald Studio 羽扇豆・春分 土地的守護 - 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-EME08","featured_media":{"alt":null,"id":26703406923875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3b4df6507bb1093cfeabd0ff3a990945d57e5d.webp?v=1769409495"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (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: "停產" }