$product = {"id":7920349282403,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Big Catto","handle":"iphone-12-mini-mod-nx-magsafe-ltc03","description":null,"published_at":"2025-11-11T09:27:06+08:00","created_at":"2025-11-10T11:06:11+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-littlecattos","device-iPhone 12 Mini","merge","reseller-littlecattos"],"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":43828300447843,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-LTC03","requires_shipping":true,"taxable":true,"featured_image":{"id":34780720005219,"product_id":7920349282403,"position":1,"created_at":"2025-11-10T11:06:12+08:00","updated_at":"2025-11-10T11:06:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e507e19b0d7423099a27fe3de3796e9a8ed377.webp?v=1762743974","variant_ids":[43828300447843]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Big Catto - 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-LTC03","featured_media":{"alt":null,"id":26346856349795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e507e19b0d7423099a27fe3de3796e9a8ed377.webp?v=1762743974"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e507e19b0d7423099a27fe3de3796e9a8ed377.webp?v=1762743974","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e59d014ff44a6bfd889e17d96cf66d91a9afb6d1.webp?v=1762743975","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/932b041e1256928e83ea96bc575b84001d0c67b6.webp?v=1762743976","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aac276d0b173029905cc36a57d0854481eb1a22e.webp?v=1762743977","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc73c706151d9f31dfc95971b18480602b642093.webp?v=1762743978","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73eeae3562b3a33125f3f4bd3194a125c8909851.webp?v=1762743979","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35c15167c087f54b43e9a183defb67570e8616b8.webp?v=1762743980","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/645f340600fa8107e6ed76d322f4268d1d3b019d.webp?v=1762743980","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19d5ebb180a3accbb4fad82adad311ee8d7c9aa8.webp?v=1762743981","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e27e853e0f744c6a013f8cfdb872d359efa416a3.webp?v=1762743982","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/895a3e1be7563cfe91f6a81a0de228bf6975a095.webp?v=1762743983"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e507e19b0d7423099a27fe3de3796e9a8ed377.webp?v=1762743974","options":["color"],"media":[{"alt":null,"id":26346856349795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e507e19b0d7423099a27fe3de3796e9a8ed377.webp?v=1762743974"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e507e19b0d7423099a27fe3de3796e9a8ed377.webp?v=1762743974","width":2000},{"alt":null,"id":26346856546403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e59d014ff44a6bfd889e17d96cf66d91a9afb6d1.webp?v=1762743975"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e59d014ff44a6bfd889e17d96cf66d91a9afb6d1.webp?v=1762743975","width":2000},{"alt":null,"id":26346856743011,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/932b041e1256928e83ea96bc575b84001d0c67b6.webp?v=1762743976"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/932b041e1256928e83ea96bc575b84001d0c67b6.webp?v=1762743976","width":2000},{"alt":null,"id":26346857136227,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aac276d0b173029905cc36a57d0854481eb1a22e.webp?v=1762743977"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aac276d0b173029905cc36a57d0854481eb1a22e.webp?v=1762743977","width":2000},{"alt":null,"id":26346857463907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc73c706151d9f31dfc95971b18480602b642093.webp?v=1762743978"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc73c706151d9f31dfc95971b18480602b642093.webp?v=1762743978","width":2000},{"alt":null,"id":26346857791587,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73eeae3562b3a33125f3f4bd3194a125c8909851.webp?v=1762743979"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73eeae3562b3a33125f3f4bd3194a125c8909851.webp?v=1762743979","width":2000},{"alt":null,"id":26346858086499,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35c15167c087f54b43e9a183defb67570e8616b8.webp?v=1762743980"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35c15167c087f54b43e9a183defb67570e8616b8.webp?v=1762743980","width":2000},{"alt":null,"id":26346858315875,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/645f340600fa8107e6ed76d322f4268d1d3b019d.webp?v=1762743980"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/645f340600fa8107e6ed76d322f4268d1d3b019d.webp?v=1762743980","width":2000},{"alt":null,"id":26346858479715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19d5ebb180a3accbb4fad82adad311ee8d7c9aa8.webp?v=1762743981"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19d5ebb180a3accbb4fad82adad311ee8d7c9aa8.webp?v=1762743981","width":2000},{"alt":null,"id":26346858643555,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e27e853e0f744c6a013f8cfdb872d359efa416a3.webp?v=1762743982"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e27e853e0f744c6a013f8cfdb872d359efa416a3.webp?v=1762743982","width":2000},{"alt":null,"id":26346858774627,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/895a3e1be7563cfe91f6a81a0de228bf6975a095.webp?v=1762743983"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/895a3e1be7563cfe91f6a81a0de228bf6975a095.webp?v=1762743983","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43828300447843,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-LTC03","requires_shipping":true,"taxable":true,"featured_image":{"id":34780720005219,"product_id":7920349282403,"position":1,"created_at":"2025-11-10T11:06:12+08:00","updated_at":"2025-11-10T11:06:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e507e19b0d7423099a27fe3de3796e9a8ed377.webp?v=1762743974","variant_ids":[43828300447843]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Big Catto - 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-LTC03","featured_media":{"alt":null,"id":26346856349795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e507e19b0d7423099a27fe3de3796e9a8ed377.webp?v=1762743974"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43828300447843,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-LTC03","requires_shipping":true,"taxable":true,"featured_image":{"id":34780720005219,"product_id":7920349282403,"position":1,"created_at":"2025-11-10T11:06:12+08:00","updated_at":"2025-11-10T11:06:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e507e19b0d7423099a27fe3de3796e9a8ed377.webp?v=1762743974","variant_ids":[43828300447843]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Big Catto - 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-LTC03","featured_media":{"alt":null,"id":26346856349795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e507e19b0d7423099a27fe3de3796e9a8ed377.webp?v=1762743974"}},"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: "停產" }