$product = {"id":7189374894179,"title":"Xiaomi 13T SolidSuit Batman 蝙蝠俠 超級惡棍和蝙蝠俠Logo貼紙款","handle":"xiaomi-13t-solidsuit-android-sb10","description":null,"published_at":"2024-03-15T09:26:20+08:00","created_at":"2024-02-23T17:45:50+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit專區Batman","tags":["10%","20%","30%","40%","50%","brand-Xiaomi","designer","designer-batman","device-Xiaomi 13T","merge","reseller-batman"],"price":83000,"price_min":83000,"price_max":83000,"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":41312016269411,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST1431252-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":36320932266083,"product_id":7189374894179,"position":5,"created_at":"2026-07-20T14:38:43+08:00","updated_at":"2026-07-20T14:38:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08f7504d2359c75e3f46295ea2d19ff77b69a1a6_ac5be7a0-050a-40c2-bde5-cbc8d364f9ae.webp?v=1784529524","variant_ids":[41312016269411]},"available":true,"name":"Xiaomi 13T SolidSuit Batman 蝙蝠俠 超級惡棍和蝙蝠俠Logo貼紙款 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST1431252-SB10","featured_media":{"alt":null,"id":27824880451683,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08f7504d2359c75e3f46295ea2d19ff77b69a1a6_ac5be7a0-050a-40c2-bde5-cbc8d364f9ae.webp?v=1784529524"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312016334947,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"SST14312Z9-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":36320931872867,"product_id":7189374894179,"position":4,"created_at":"2026-07-20T14:38:42+08:00","updated_at":"2026-07-20T14:38:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398514049ccbd7aa3cc2141a4f9a09a9b81a2d0f_c9c2c95a-a761-4842-b8fc-29ff8b403058.webp?v=1784529524","variant_ids":[41312016334947]},"available":true,"name":"Xiaomi 13T SolidSuit Batman 蝙蝠俠 超級惡棍和蝙蝠俠Logo貼紙款 - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST14312Z9-SB10","featured_media":{"alt":null,"id":27824880091235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398514049ccbd7aa3cc2141a4f9a09a9b81a2d0f_c9c2c95a-a761-4842-b8fc-29ff8b403058.webp?v=1784529524"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a0ab738506f92bdcf8bf4201fa487bd44d58cb4_8b6ddb47-d49b-4c41-9a92-a66691b242e4.webp?v=1708922901","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df77fc442b82067a5c068aba294888c0ce5fc18a_617d1b6a-3ca7-4d34-8f4a-26b6151d69ba.webp?v=1708922904","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1de5298915e16a8f9bcdaed7626df90a9d0adc5e_985853da-1584-49e4-a4fa-9e5534e5c8a3.webp?v=1708922906","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398514049ccbd7aa3cc2141a4f9a09a9b81a2d0f_c9c2c95a-a761-4842-b8fc-29ff8b403058.webp?v=1784529524","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08f7504d2359c75e3f46295ea2d19ff77b69a1a6_ac5be7a0-050a-40c2-bde5-cbc8d364f9ae.webp?v=1784529524"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a0ab738506f92bdcf8bf4201fa487bd44d58cb4_8b6ddb47-d49b-4c41-9a92-a66691b242e4.webp?v=1708922901","options":["color"],"media":[{"alt":null,"id":23354006634595,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a0ab738506f92bdcf8bf4201fa487bd44d58cb4_8b6ddb47-d49b-4c41-9a92-a66691b242e4.webp?v=1708922901"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a0ab738506f92bdcf8bf4201fa487bd44d58cb4_8b6ddb47-d49b-4c41-9a92-a66691b242e4.webp?v=1708922901","width":2000},{"alt":null,"id":23354007257187,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df77fc442b82067a5c068aba294888c0ce5fc18a_617d1b6a-3ca7-4d34-8f4a-26b6151d69ba.webp?v=1708922904"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df77fc442b82067a5c068aba294888c0ce5fc18a_617d1b6a-3ca7-4d34-8f4a-26b6151d69ba.webp?v=1708922904","width":2000},{"alt":null,"id":23354008109155,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1de5298915e16a8f9bcdaed7626df90a9d0adc5e_985853da-1584-49e4-a4fa-9e5534e5c8a3.webp?v=1708922906"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1de5298915e16a8f9bcdaed7626df90a9d0adc5e_985853da-1584-49e4-a4fa-9e5534e5c8a3.webp?v=1708922906","width":2000},{"alt":null,"id":27824880091235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398514049ccbd7aa3cc2141a4f9a09a9b81a2d0f_c9c2c95a-a761-4842-b8fc-29ff8b403058.webp?v=1784529524"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398514049ccbd7aa3cc2141a4f9a09a9b81a2d0f_c9c2c95a-a761-4842-b8fc-29ff8b403058.webp?v=1784529524","width":2000},{"alt":null,"id":27824880451683,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08f7504d2359c75e3f46295ea2d19ff77b69a1a6_ac5be7a0-050a-40c2-bde5-cbc8d364f9ae.webp?v=1784529524"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08f7504d2359c75e3f46295ea2d19ff77b69a1a6_ac5be7a0-050a-40c2-bde5-cbc8d364f9ae.webp?v=1784529524","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41312016269411,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST1431252-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":36320932266083,"product_id":7189374894179,"position":5,"created_at":"2026-07-20T14:38:43+08:00","updated_at":"2026-07-20T14:38:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08f7504d2359c75e3f46295ea2d19ff77b69a1a6_ac5be7a0-050a-40c2-bde5-cbc8d364f9ae.webp?v=1784529524","variant_ids":[41312016269411]},"available":true,"name":"Xiaomi 13T SolidSuit Batman 蝙蝠俠 超級惡棍和蝙蝠俠Logo貼紙款 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST1431252-SB10","featured_media":{"alt":null,"id":27824880451683,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08f7504d2359c75e3f46295ea2d19ff77b69a1a6_ac5be7a0-050a-40c2-bde5-cbc8d364f9ae.webp?v=1784529524"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312016334947,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"SST14312Z9-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":36320931872867,"product_id":7189374894179,"position":4,"created_at":"2026-07-20T14:38:42+08:00","updated_at":"2026-07-20T14:38:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398514049ccbd7aa3cc2141a4f9a09a9b81a2d0f_c9c2c95a-a761-4842-b8fc-29ff8b403058.webp?v=1784529524","variant_ids":[41312016334947]},"available":true,"name":"Xiaomi 13T SolidSuit Batman 蝙蝠俠 超級惡棍和蝙蝠俠Logo貼紙款 - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST14312Z9-SB10","featured_media":{"alt":null,"id":27824880091235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398514049ccbd7aa3cc2141a4f9a09a9b81a2d0f_c9c2c95a-a761-4842-b8fc-29ff8b403058.webp?v=1784529524"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41312016269411,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST1431252-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":36320932266083,"product_id":7189374894179,"position":5,"created_at":"2026-07-20T14:38:43+08:00","updated_at":"2026-07-20T14:38:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08f7504d2359c75e3f46295ea2d19ff77b69a1a6_ac5be7a0-050a-40c2-bde5-cbc8d364f9ae.webp?v=1784529524","variant_ids":[41312016269411]},"available":true,"name":"Xiaomi 13T SolidSuit Batman 蝙蝠俠 超級惡棍和蝙蝠俠Logo貼紙款 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST1431252-SB10","featured_media":{"alt":null,"id":27824880451683,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08f7504d2359c75e3f46295ea2d19ff77b69a1a6_ac5be7a0-050a-40c2-bde5-cbc8d364f9ae.webp?v=1784529524"}},"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: "停產" }