$product = {"id":7921241882723,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) 懶散兔與啾先生 Happy pet Happy life","handle":"iphone-12-mini-mod-nx-magsafe-ec80","description":null,"published_at":"2025-11-14T10:36:25+08:00","created_at":"2025-11-11T10:28:05+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-bylobster","device-iPhone 12 Mini","merge","reseller-bylobster"],"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":43831292264547,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-EC80","requires_shipping":true,"taxable":true,"featured_image":{"id":36053759164515,"product_id":7921241882723,"position":12,"created_at":"2026-06-23T09:24:47+08:00","updated_at":"2026-06-23T09:24:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0384313b7a614f9b3d00d98bc772e997a1f4e3eb_a3142797-b45d-41c0-b390-3ddeedde9bce.webp?v=1782177889","variant_ids":[43831292264547]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 懶散兔與啾先生 Happy pet Happy life - 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-EC80","featured_media":{"alt":null,"id":27566609694819,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0384313b7a614f9b3d00d98bc772e997a1f4e3eb_a3142797-b45d-41c0-b390-3ddeedde9bce.webp?v=1782177889"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b54cd37e0f378c9392afca5a9202cae5cd873773.webp?v=1762828088","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d125cd2e0e7c099f2488a0df37c8db30e314a38.webp?v=1762828089","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecce6ca60806386c6f91f892e8dbc9ecbbdc95de.webp?v=1762828089","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dccdc49e0692e47c97ba73b1f770b4f4112410d1.webp?v=1762828090","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d696d63393f104920a95fb99dad4c53322f5b575.webp?v=1762828091","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9fec60fdeec2eeb8149fbf7201a04783273ada0.webp?v=1762828091","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72d6360cdd74947d771fe8c1fae4cc1dbccd3dd6.webp?v=1762828092","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0384313b7a614f9b3d00d98bc772e997a1f4e3eb.webp?v=1762828093","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab57a228113fc1180cae876781029016a7a49d65.webp?v=1762828093","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f751b6f1623f6125ad810c6561f47d6cbc5e9f6b.webp?v=1762828095","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70a434140dcf83e9286df5de9f9c9af58bdf1f83.webp?v=1762828096","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0384313b7a614f9b3d00d98bc772e997a1f4e3eb_a3142797-b45d-41c0-b390-3ddeedde9bce.webp?v=1782177889"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b54cd37e0f378c9392afca5a9202cae5cd873773.webp?v=1762828088","options":["color"],"media":[{"alt":null,"id":26352188260451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b54cd37e0f378c9392afca5a9202cae5cd873773.webp?v=1762828088"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b54cd37e0f378c9392afca5a9202cae5cd873773.webp?v=1762828088","width":2000},{"alt":null,"id":26352188555363,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d125cd2e0e7c099f2488a0df37c8db30e314a38.webp?v=1762828089"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d125cd2e0e7c099f2488a0df37c8db30e314a38.webp?v=1762828089","width":2000},{"alt":null,"id":26352188883043,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecce6ca60806386c6f91f892e8dbc9ecbbdc95de.webp?v=1762828089"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecce6ca60806386c6f91f892e8dbc9ecbbdc95de.webp?v=1762828089","width":2000},{"alt":null,"id":26352189177955,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dccdc49e0692e47c97ba73b1f770b4f4112410d1.webp?v=1762828090"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dccdc49e0692e47c97ba73b1f770b4f4112410d1.webp?v=1762828090","width":2000},{"alt":null,"id":26352189440099,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d696d63393f104920a95fb99dad4c53322f5b575.webp?v=1762828091"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d696d63393f104920a95fb99dad4c53322f5b575.webp?v=1762828091","width":2000},{"alt":null,"id":26352189702243,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9fec60fdeec2eeb8149fbf7201a04783273ada0.webp?v=1762828091"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9fec60fdeec2eeb8149fbf7201a04783273ada0.webp?v=1762828091","width":2000},{"alt":null,"id":26352189931619,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72d6360cdd74947d771fe8c1fae4cc1dbccd3dd6.webp?v=1762828092"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72d6360cdd74947d771fe8c1fae4cc1dbccd3dd6.webp?v=1762828092","width":2000},{"alt":null,"id":26352190193763,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0384313b7a614f9b3d00d98bc772e997a1f4e3eb.webp?v=1762828093"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0384313b7a614f9b3d00d98bc772e997a1f4e3eb.webp?v=1762828093","width":2000},{"alt":null,"id":26352190390371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab57a228113fc1180cae876781029016a7a49d65.webp?v=1762828093"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab57a228113fc1180cae876781029016a7a49d65.webp?v=1762828093","width":2000},{"alt":null,"id":26352191012963,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f751b6f1623f6125ad810c6561f47d6cbc5e9f6b.webp?v=1762828095"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f751b6f1623f6125ad810c6561f47d6cbc5e9f6b.webp?v=1762828095","width":2000},{"alt":null,"id":26352191373411,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70a434140dcf83e9286df5de9f9c9af58bdf1f83.webp?v=1762828096"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70a434140dcf83e9286df5de9f9c9af58bdf1f83.webp?v=1762828096","width":2000},{"alt":null,"id":27566609694819,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0384313b7a614f9b3d00d98bc772e997a1f4e3eb_a3142797-b45d-41c0-b390-3ddeedde9bce.webp?v=1782177889"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0384313b7a614f9b3d00d98bc772e997a1f4e3eb_a3142797-b45d-41c0-b390-3ddeedde9bce.webp?v=1782177889","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43831292264547,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-EC80","requires_shipping":true,"taxable":true,"featured_image":{"id":36053759164515,"product_id":7921241882723,"position":12,"created_at":"2026-06-23T09:24:47+08:00","updated_at":"2026-06-23T09:24:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0384313b7a614f9b3d00d98bc772e997a1f4e3eb_a3142797-b45d-41c0-b390-3ddeedde9bce.webp?v=1782177889","variant_ids":[43831292264547]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 懶散兔與啾先生 Happy pet Happy life - 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-EC80","featured_media":{"alt":null,"id":27566609694819,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0384313b7a614f9b3d00d98bc772e997a1f4e3eb_a3142797-b45d-41c0-b390-3ddeedde9bce.webp?v=1782177889"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43831292264547,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-EC80","requires_shipping":true,"taxable":true,"featured_image":{"id":36053759164515,"product_id":7921241882723,"position":12,"created_at":"2026-06-23T09:24:47+08:00","updated_at":"2026-06-23T09:24:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0384313b7a614f9b3d00d98bc772e997a1f4e3eb_a3142797-b45d-41c0-b390-3ddeedde9bce.webp?v=1782177889","variant_ids":[43831292264547]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 懶散兔與啾先生 Happy pet Happy life - 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-EC80","featured_media":{"alt":null,"id":27566609694819,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0384313b7a614f9b3d00d98bc772e997a1f4e3eb_a3142797-b45d-41c0-b390-3ddeedde9bce.webp?v=1782177889"}},"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: "停產" }