$product = {"id":7189500297315,"title":"iPhone 13 mini SolidSuit (MagSafe 兼容) Batman 蝙蝠俠 Logo","handle":"iphone-13-mini-solidsuit-classic-magsafe-sb16","description":null,"published_at":"2024-02-27T14:26:15+08:00","created_at":"2024-02-23T18:36:01+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit MagSafe專區-Batman","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-batman","device-iPhone 13 Mini","merge","reseller-batman"],"price":125000,"price_min":125000,"price_max":125000,"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":41312753057891,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-SB16","requires_shipping":true,"taxable":true,"featured_image":{"id":36319002787939,"product_id":7189500297315,"position":16,"created_at":"2026-07-20T12:34:17+08:00","updated_at":"2026-07-20T12:34:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38998e3e54714f4f12b00f026cc53488c6cc2081.webp?v=1784522059","variant_ids":[41312753057891]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) Batman 蝙蝠俠 Logo - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-SB16","featured_media":{"alt":null,"id":27822955069539,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38998e3e54714f4f12b00f026cc53488c6cc2081.webp?v=1784522059"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312753320035,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-SB16","requires_shipping":true,"taxable":true,"featured_image":{"id":36319002525795,"product_id":7189500297315,"position":15,"created_at":"2026-07-20T12:34:16+08:00","updated_at":"2026-07-20T12:34:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e72e1cb9590a02a5f477f0daeca60ab91ba22837.webp?v=1784522058","variant_ids":[41312753320035]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) Batman 蝙蝠俠 Logo - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-SB16","featured_media":{"alt":null,"id":27822954774627,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e72e1cb9590a02a5f477f0daeca60ab91ba22837.webp?v=1784522058"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b640737077f4681e6e2ccf1623a0cf9c5ce8d9b3.webp?v=1708924470","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe23bbca2373a020c1643860ba29f9a398f82748.webp?v=1708924475","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea921f1dab6145fc7475431e2d94870297690b94.webp?v=1708924480","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2692a056d1ffec056d13c6b47a0551d9365e4281.webp?v=1708924482","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187d4b566c46d2ecadf046cf78afe831c1dbf6c8.webp?v=1708924484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42bac1fd348362764d2bff4ce949199740b561a2.webp?v=1708924486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f463e3b14c932b6a6427dd1d16f532a30c6dc02a.webp?v=1708924489","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12af02b298680d0ac06892ad3bf30e840cb4eb8c.webp?v=1708924491","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d87580a3c6cae975ca31e6518f12829ae2aa676.webp?v=1708924493","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6b0d33fa621672982c8518815effa5cab2d23f8.webp?v=1708924495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872282440205e6fd32b3b798e6e068d5aaca1731.webp?v=1708924497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbf78e19154d0d74b207669e8ff6d3297a1a0fec.webp?v=1708924500","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/850ba2c56f7c8457425bb6101dac733f19fe6f18.webp?v=1708924502","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4827632bcef13f7a6fcbed2952851f59beccc17.webp?v=1708924504","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e72e1cb9590a02a5f477f0daeca60ab91ba22837.webp?v=1784522058","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38998e3e54714f4f12b00f026cc53488c6cc2081.webp?v=1784522059"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b640737077f4681e6e2ccf1623a0cf9c5ce8d9b3.webp?v=1708924470","options":["color"],"media":[{"alt":null,"id":23354466828387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b640737077f4681e6e2ccf1623a0cf9c5ce8d9b3.webp?v=1708924470"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b640737077f4681e6e2ccf1623a0cf9c5ce8d9b3.webp?v=1708924470","width":2000},{"alt":null,"id":23354467778659,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe23bbca2373a020c1643860ba29f9a398f82748.webp?v=1708924475"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe23bbca2373a020c1643860ba29f9a398f82748.webp?v=1708924475","width":2000},{"alt":null,"id":23354468630627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea921f1dab6145fc7475431e2d94870297690b94.webp?v=1708924480"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea921f1dab6145fc7475431e2d94870297690b94.webp?v=1708924480","width":2000},{"alt":null,"id":23354469023843,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2692a056d1ffec056d13c6b47a0551d9365e4281.webp?v=1708924482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2692a056d1ffec056d13c6b47a0551d9365e4281.webp?v=1708924482","width":2000},{"alt":null,"id":23354469515363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187d4b566c46d2ecadf046cf78afe831c1dbf6c8.webp?v=1708924484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187d4b566c46d2ecadf046cf78afe831c1dbf6c8.webp?v=1708924484","width":2000},{"alt":null,"id":23354469843043,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42bac1fd348362764d2bff4ce949199740b561a2.webp?v=1708924486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42bac1fd348362764d2bff4ce949199740b561a2.webp?v=1708924486","width":2000},{"alt":null,"id":23354470137955,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f463e3b14c932b6a6427dd1d16f532a30c6dc02a.webp?v=1708924489"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f463e3b14c932b6a6427dd1d16f532a30c6dc02a.webp?v=1708924489","width":2000},{"alt":null,"id":23354470432867,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12af02b298680d0ac06892ad3bf30e840cb4eb8c.webp?v=1708924491"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12af02b298680d0ac06892ad3bf30e840cb4eb8c.webp?v=1708924491","width":2000},{"alt":null,"id":23354470760547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d87580a3c6cae975ca31e6518f12829ae2aa676.webp?v=1708924493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d87580a3c6cae975ca31e6518f12829ae2aa676.webp?v=1708924493","width":2000},{"alt":null,"id":23354471120995,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6b0d33fa621672982c8518815effa5cab2d23f8.webp?v=1708924495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6b0d33fa621672982c8518815effa5cab2d23f8.webp?v=1708924495","width":2000},{"alt":null,"id":23354471448675,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872282440205e6fd32b3b798e6e068d5aaca1731.webp?v=1708924497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872282440205e6fd32b3b798e6e068d5aaca1731.webp?v=1708924497","width":2000},{"alt":null,"id":23354471874659,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbf78e19154d0d74b207669e8ff6d3297a1a0fec.webp?v=1708924500"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbf78e19154d0d74b207669e8ff6d3297a1a0fec.webp?v=1708924500","width":2000},{"alt":null,"id":23354472267875,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/850ba2c56f7c8457425bb6101dac733f19fe6f18.webp?v=1708924502"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/850ba2c56f7c8457425bb6101dac733f19fe6f18.webp?v=1708924502","width":2000},{"alt":null,"id":23354472759395,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4827632bcef13f7a6fcbed2952851f59beccc17.webp?v=1708924504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4827632bcef13f7a6fcbed2952851f59beccc17.webp?v=1708924504","width":2000},{"alt":null,"id":27822954774627,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e72e1cb9590a02a5f477f0daeca60ab91ba22837.webp?v=1784522058"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e72e1cb9590a02a5f477f0daeca60ab91ba22837.webp?v=1784522058","width":2000},{"alt":null,"id":27822955069539,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38998e3e54714f4f12b00f026cc53488c6cc2081.webp?v=1784522059"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38998e3e54714f4f12b00f026cc53488c6cc2081.webp?v=1784522059","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41312753057891,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-SB16","requires_shipping":true,"taxable":true,"featured_image":{"id":36319002787939,"product_id":7189500297315,"position":16,"created_at":"2026-07-20T12:34:17+08:00","updated_at":"2026-07-20T12:34:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38998e3e54714f4f12b00f026cc53488c6cc2081.webp?v=1784522059","variant_ids":[41312753057891]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) Batman 蝙蝠俠 Logo - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-SB16","featured_media":{"alt":null,"id":27822955069539,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38998e3e54714f4f12b00f026cc53488c6cc2081.webp?v=1784522059"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312753320035,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-SB16","requires_shipping":true,"taxable":true,"featured_image":{"id":36319002525795,"product_id":7189500297315,"position":15,"created_at":"2026-07-20T12:34:16+08:00","updated_at":"2026-07-20T12:34:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e72e1cb9590a02a5f477f0daeca60ab91ba22837.webp?v=1784522058","variant_ids":[41312753320035]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) Batman 蝙蝠俠 Logo - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-SB16","featured_media":{"alt":null,"id":27822954774627,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e72e1cb9590a02a5f477f0daeca60ab91ba22837.webp?v=1784522058"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41312753057891,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-SB16","requires_shipping":true,"taxable":true,"featured_image":{"id":36319002787939,"product_id":7189500297315,"position":16,"created_at":"2026-07-20T12:34:17+08:00","updated_at":"2026-07-20T12:34:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38998e3e54714f4f12b00f026cc53488c6cc2081.webp?v=1784522059","variant_ids":[41312753057891]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) Batman 蝙蝠俠 Logo - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-SB16","featured_media":{"alt":null,"id":27822955069539,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38998e3e54714f4f12b00f026cc53488c6cc2081.webp?v=1784522059"}},"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: "停產" }