$product = {"id":7920338305123,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Nothing Matters","handle":"iphone-12-mini-mod-nx-magsafe-ltc02","description":null,"published_at":"2025-11-11T09:29:03+08:00","created_at":"2025-11-10T11:03:37+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":43828260667491,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-LTC02","requires_shipping":true,"taxable":true,"featured_image":{"id":34780678652003,"product_id":7920338305123,"position":5,"created_at":"2025-11-10T11:03:44+08:00","updated_at":"2025-11-10T11:03:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fffed1fe2393c629c028bcaa6072bc76334bd4b1.webp?v=1762743825","variant_ids":[43828260667491]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Nothing Matters - 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-LTC02","featured_media":{"alt":null,"id":26346814898275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fffed1fe2393c629c028bcaa6072bc76334bd4b1.webp?v=1762743825"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca19663403d95733ecf7451cc8333ed119cbe386.webp?v=1762743822","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/614104f3c639519f74d5edcd318d8f045836cf89.webp?v=1762743823","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9467cb905450230e67b155e716cfe09d0e96c9bb.webp?v=1762743824","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6d1f9ff8ac736275b5da0f312524dc32eeb5fcf.webp?v=1762743825","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fffed1fe2393c629c028bcaa6072bc76334bd4b1.webp?v=1762743825","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/489a8fbc65d720ba8d4fe5366a68d2a6526f7e39.webp?v=1762743826","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/612920e3335c6f1a100372c2c969322f624ec9f1.webp?v=1762743828","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89ef0c1ac13d0b8e55d3f15118940a795141abc2.webp?v=1762743828","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60374e5ee11d1236a49b0d2a1b33534d886c59c.webp?v=1762743829","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88086a81d613baf629f77d248df6908683dbc80f.webp?v=1762743830","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec89770e93440bcd0d3115dab9b7d8515a4b4a43.webp?v=1762743831"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca19663403d95733ecf7451cc8333ed119cbe386.webp?v=1762743822","options":["color"],"media":[{"alt":null,"id":26346814308451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca19663403d95733ecf7451cc8333ed119cbe386.webp?v=1762743822"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca19663403d95733ecf7451cc8333ed119cbe386.webp?v=1762743822","width":2000},{"alt":null,"id":26346814373987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/614104f3c639519f74d5edcd318d8f045836cf89.webp?v=1762743823"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/614104f3c639519f74d5edcd318d8f045836cf89.webp?v=1762743823","width":2000},{"alt":null,"id":26346814570595,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9467cb905450230e67b155e716cfe09d0e96c9bb.webp?v=1762743824"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9467cb905450230e67b155e716cfe09d0e96c9bb.webp?v=1762743824","width":2000},{"alt":null,"id":26346814734435,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6d1f9ff8ac736275b5da0f312524dc32eeb5fcf.webp?v=1762743825"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6d1f9ff8ac736275b5da0f312524dc32eeb5fcf.webp?v=1762743825","width":2000},{"alt":null,"id":26346814898275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fffed1fe2393c629c028bcaa6072bc76334bd4b1.webp?v=1762743825"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fffed1fe2393c629c028bcaa6072bc76334bd4b1.webp?v=1762743825","width":2000},{"alt":null,"id":26346815029347,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/489a8fbc65d720ba8d4fe5366a68d2a6526f7e39.webp?v=1762743826"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/489a8fbc65d720ba8d4fe5366a68d2a6526f7e39.webp?v=1762743826","width":2000},{"alt":null,"id":26346815258723,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/612920e3335c6f1a100372c2c969322f624ec9f1.webp?v=1762743828"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/612920e3335c6f1a100372c2c969322f624ec9f1.webp?v=1762743828","width":2000},{"alt":null,"id":26346815684707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89ef0c1ac13d0b8e55d3f15118940a795141abc2.webp?v=1762743828"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89ef0c1ac13d0b8e55d3f15118940a795141abc2.webp?v=1762743828","width":2000},{"alt":null,"id":26346816077923,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60374e5ee11d1236a49b0d2a1b33534d886c59c.webp?v=1762743829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b60374e5ee11d1236a49b0d2a1b33534d886c59c.webp?v=1762743829","width":2000},{"alt":null,"id":26346816438371,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88086a81d613baf629f77d248df6908683dbc80f.webp?v=1762743830"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88086a81d613baf629f77d248df6908683dbc80f.webp?v=1762743830","width":2000},{"alt":null,"id":26346816700515,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec89770e93440bcd0d3115dab9b7d8515a4b4a43.webp?v=1762743831"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec89770e93440bcd0d3115dab9b7d8515a4b4a43.webp?v=1762743831","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43828260667491,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-LTC02","requires_shipping":true,"taxable":true,"featured_image":{"id":34780678652003,"product_id":7920338305123,"position":5,"created_at":"2025-11-10T11:03:44+08:00","updated_at":"2025-11-10T11:03:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fffed1fe2393c629c028bcaa6072bc76334bd4b1.webp?v=1762743825","variant_ids":[43828260667491]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Nothing Matters - 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-LTC02","featured_media":{"alt":null,"id":26346814898275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fffed1fe2393c629c028bcaa6072bc76334bd4b1.webp?v=1762743825"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43828260667491,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-LTC02","requires_shipping":true,"taxable":true,"featured_image":{"id":34780678652003,"product_id":7920338305123,"position":5,"created_at":"2025-11-10T11:03:44+08:00","updated_at":"2025-11-10T11:03:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fffed1fe2393c629c028bcaa6072bc76334bd4b1.webp?v=1762743825","variant_ids":[43828260667491]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Nothing Matters - 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-LTC02","featured_media":{"alt":null,"id":26346814898275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fffed1fe2393c629c028bcaa6072bc76334bd4b1.webp?v=1762743825"}},"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: "停產" }