$product = {"id":7909919883363,"title":"iPhone 13 mini SolidSuit (MagSafe 兼容) 海綿寶寶 名畫系列-遇見海綿寶寶","handle":"iphone-13-mini-solidsuit-classic-magsafe-yq34","description":null,"published_at":"2026-01-28T11:47:31+08:00","created_at":"2025-10-31T17:09:22+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-spongebob","device-iPhone 13 Mini","merge","reseller-spongebob"],"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":43805459873891,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-YQ34","requires_shipping":true,"taxable":true,"featured_image":{"id":34718780883043,"product_id":7909919883363,"position":4,"created_at":"2025-10-31T17:10:54+08:00","updated_at":"2025-10-31T17:10:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc86bb7101cc04a066573bf798bc2131c8020439.webp?v=1761901856","variant_ids":[43805459873891]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 海綿寶寶 名畫系列-遇見海綿寶寶 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-YQ34","featured_media":{"alt":null,"id":26286986952803,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc86bb7101cc04a066573bf798bc2131c8020439.webp?v=1761901856"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43805459939427,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-YQ34","requires_shipping":true,"taxable":true,"featured_image":{"id":34718780194915,"product_id":7909919883363,"position":1,"created_at":"2025-10-31T17:10:47+08:00","updated_at":"2025-10-31T17:10:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757d8efe31213f27c81435d1d0dee7fc873f68c0.webp?v=1761901849","variant_ids":[43805459939427]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 海綿寶寶 名畫系列-遇見海綿寶寶 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-YQ34","featured_media":{"alt":null,"id":26286986264675,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757d8efe31213f27c81435d1d0dee7fc873f68c0.webp?v=1761901849"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757d8efe31213f27c81435d1d0dee7fc873f68c0.webp?v=1761901849","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e687cea142c29e19c4ef8169f05e41f5aa91fa68.webp?v=1761901852","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8570d0dec6b5d2cbff224b31fe3d1f60eae31e04.webp?v=1761901855","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc86bb7101cc04a066573bf798bc2131c8020439.webp?v=1761901856","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0822119b1d2d7f99d38b2a00ae44f51cdaf0cca.webp?v=1761901857","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ebe7610d7ca7b5ec855aed0f2cd17a40069d2a7.webp?v=1761901858","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66ee86894811e68973918f7eee61247568ab6ff7.webp?v=1761901859","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83fe2b6bff23f50be52033f038148fa96714eaae.webp?v=1761901859","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/469e4b911acf8d5e0642c2ff2e3c6fcbdf90362c.webp?v=1761901860","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/524506239528cb00eb2a83939ecd5b9e4a1149a1.webp?v=1761901863"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757d8efe31213f27c81435d1d0dee7fc873f68c0.webp?v=1761901849","options":["color"],"media":[{"alt":null,"id":26286986264675,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757d8efe31213f27c81435d1d0dee7fc873f68c0.webp?v=1761901849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757d8efe31213f27c81435d1d0dee7fc873f68c0.webp?v=1761901849","width":2000},{"alt":null,"id":26286986592355,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e687cea142c29e19c4ef8169f05e41f5aa91fa68.webp?v=1761901852"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e687cea142c29e19c4ef8169f05e41f5aa91fa68.webp?v=1761901852","width":2000},{"alt":null,"id":26286986821731,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8570d0dec6b5d2cbff224b31fe3d1f60eae31e04.webp?v=1761901855"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8570d0dec6b5d2cbff224b31fe3d1f60eae31e04.webp?v=1761901855","width":2000},{"alt":null,"id":26286986952803,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc86bb7101cc04a066573bf798bc2131c8020439.webp?v=1761901856"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc86bb7101cc04a066573bf798bc2131c8020439.webp?v=1761901856","width":2000},{"alt":null,"id":26286986985571,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0822119b1d2d7f99d38b2a00ae44f51cdaf0cca.webp?v=1761901857"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0822119b1d2d7f99d38b2a00ae44f51cdaf0cca.webp?v=1761901857","width":2000},{"alt":null,"id":26286987018339,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ebe7610d7ca7b5ec855aed0f2cd17a40069d2a7.webp?v=1761901858"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ebe7610d7ca7b5ec855aed0f2cd17a40069d2a7.webp?v=1761901858","width":2000},{"alt":null,"id":26286987280483,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66ee86894811e68973918f7eee61247568ab6ff7.webp?v=1761901859"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66ee86894811e68973918f7eee61247568ab6ff7.webp?v=1761901859","width":2000},{"alt":null,"id":26286987346019,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83fe2b6bff23f50be52033f038148fa96714eaae.webp?v=1761901859"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83fe2b6bff23f50be52033f038148fa96714eaae.webp?v=1761901859","width":2000},{"alt":null,"id":26286987378787,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/469e4b911acf8d5e0642c2ff2e3c6fcbdf90362c.webp?v=1761901860"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/469e4b911acf8d5e0642c2ff2e3c6fcbdf90362c.webp?v=1761901860","width":2000},{"alt":null,"id":26286987673699,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/524506239528cb00eb2a83939ecd5b9e4a1149a1.webp?v=1761901863"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/524506239528cb00eb2a83939ecd5b9e4a1149a1.webp?v=1761901863","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43805459873891,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-YQ34","requires_shipping":true,"taxable":true,"featured_image":{"id":34718780883043,"product_id":7909919883363,"position":4,"created_at":"2025-10-31T17:10:54+08:00","updated_at":"2025-10-31T17:10:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc86bb7101cc04a066573bf798bc2131c8020439.webp?v=1761901856","variant_ids":[43805459873891]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 海綿寶寶 名畫系列-遇見海綿寶寶 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-YQ34","featured_media":{"alt":null,"id":26286986952803,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc86bb7101cc04a066573bf798bc2131c8020439.webp?v=1761901856"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43805459939427,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-YQ34","requires_shipping":true,"taxable":true,"featured_image":{"id":34718780194915,"product_id":7909919883363,"position":1,"created_at":"2025-10-31T17:10:47+08:00","updated_at":"2025-10-31T17:10:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757d8efe31213f27c81435d1d0dee7fc873f68c0.webp?v=1761901849","variant_ids":[43805459939427]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 海綿寶寶 名畫系列-遇見海綿寶寶 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-YQ34","featured_media":{"alt":null,"id":26286986264675,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757d8efe31213f27c81435d1d0dee7fc873f68c0.webp?v=1761901849"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43805459873891,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-YQ34","requires_shipping":true,"taxable":true,"featured_image":{"id":34718780883043,"product_id":7909919883363,"position":4,"created_at":"2025-10-31T17:10:54+08:00","updated_at":"2025-10-31T17:10:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc86bb7101cc04a066573bf798bc2131c8020439.webp?v=1761901856","variant_ids":[43805459873891]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 海綿寶寶 名畫系列-遇見海綿寶寶 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-YQ34","featured_media":{"alt":null,"id":26286986952803,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc86bb7101cc04a066573bf798bc2131c8020439.webp?v=1761901856"}},"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: "停產" }