$product = {"id":7189398552675,"title":"犀牛盾SolidSuit手機殼 - iPhone 11 Pro - 【聯名設計款】 - Batman - 超級惡棍和蝙蝠俠Logo貼紙款","handle":"iphone-11-pro-solidsuit-classic-sb10","description":null,"published_at":"2024-02-27T15:16:36+08:00","created_at":"2024-02-23T17:55:21+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit專區Batman","tags":["20%","20240304-reseller-\u003ereplace_to-","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 11 Pro","merge","reseller-solidsuit-batman","solidsuit","Top50","type-Solidsuit"],"price":98000,"price_min":98000,"price_max":98000,"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":41312153501795,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0114752-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":30978117173347,"product_id":7189398552675,"position":6,"created_at":"2024-02-26T13:25:47+08:00","updated_at":"2024-02-26T13:25:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906fe794a6464cc8995949d02e8ed676185eec67.webp?v=1708925147","variant_ids":[41312153501795]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone 11 Pro - 【聯名設計款】 - Batman - 超級惡棍和蝙蝠俠Logo貼紙款 - Black","public_title":"Black","options":["Black"],"price":98000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0114752-SB10","featured_media":{"alt":null,"id":23354574176355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906fe794a6464cc8995949d02e8ed676185eec67.webp?v=1708925147"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312153567331,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"SST0114757-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":30978115633251,"product_id":7189398552675,"position":2,"created_at":"2024-02-26T13:25:37+08:00","updated_at":"2024-02-26T13:25:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2b60193b751a1fabf2a584c0419e6f3528d1743.webp?v=1708925137","variant_ids":[41312153567331]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone 11 Pro - 【聯名設計款】 - Batman - 超級惡棍和蝙蝠俠Logo貼紙款 - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":98000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0114757-SB10","featured_media":{"alt":null,"id":23354572636259,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2b60193b751a1fabf2a584c0419e6f3528d1743.webp?v=1708925137"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312153698403,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"SST01147P2-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":30978115141731,"product_id":7189398552675,"position":1,"created_at":"2024-02-26T13:25:34+08:00","updated_at":"2024-02-26T13:25:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8358bcff2c1b8d96b9e2098c3dbfb8f8579a4bd.webp?v=1708925134","variant_ids":[41312153698403]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone 11 Pro - 【聯名設計款】 - Batman - 超級惡棍和蝙蝠俠Logo貼紙款 - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":98000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01147P2-SB10","featured_media":{"alt":null,"id":23354572144739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8358bcff2c1b8d96b9e2098c3dbfb8f8579a4bd.webp?v=1708925134"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8358bcff2c1b8d96b9e2098c3dbfb8f8579a4bd.webp?v=1708925134","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2b60193b751a1fabf2a584c0419e6f3528d1743.webp?v=1708925137","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaab76fb64ed34c3d96102a05cb4a72408e8dcdf.webp?v=1708925139","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86fbce9ae7ed1db110db0198f5eacf377d49da36.webp?v=1708925142","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cda412497690f051aa4f0de0e3eb69ff86b713de.webp?v=1708925144","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906fe794a6464cc8995949d02e8ed676185eec67.webp?v=1708925147","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a52bd8fcf979d8e12c4cd073a02378f3d850932.webp?v=1708925150"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8358bcff2c1b8d96b9e2098c3dbfb8f8579a4bd.webp?v=1708925134","options":["color"],"media":[{"alt":null,"id":23354572144739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8358bcff2c1b8d96b9e2098c3dbfb8f8579a4bd.webp?v=1708925134"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8358bcff2c1b8d96b9e2098c3dbfb8f8579a4bd.webp?v=1708925134","width":2000},{"alt":null,"id":23354572636259,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2b60193b751a1fabf2a584c0419e6f3528d1743.webp?v=1708925137"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2b60193b751a1fabf2a584c0419e6f3528d1743.webp?v=1708925137","width":2000},{"alt":null,"id":23354573062243,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaab76fb64ed34c3d96102a05cb4a72408e8dcdf.webp?v=1708925139"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaab76fb64ed34c3d96102a05cb4a72408e8dcdf.webp?v=1708925139","width":2000},{"alt":null,"id":23354573488227,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86fbce9ae7ed1db110db0198f5eacf377d49da36.webp?v=1708925142"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86fbce9ae7ed1db110db0198f5eacf377d49da36.webp?v=1708925142","width":2000},{"alt":null,"id":23354573815907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cda412497690f051aa4f0de0e3eb69ff86b713de.webp?v=1708925144"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cda412497690f051aa4f0de0e3eb69ff86b713de.webp?v=1708925144","width":2000},{"alt":null,"id":23354574176355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906fe794a6464cc8995949d02e8ed676185eec67.webp?v=1708925147"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906fe794a6464cc8995949d02e8ed676185eec67.webp?v=1708925147","width":2000},{"alt":null,"id":23354574602339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a52bd8fcf979d8e12c4cd073a02378f3d850932.webp?v=1708925150"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a52bd8fcf979d8e12c4cd073a02378f3d850932.webp?v=1708925150","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41312153501795,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0114752-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":30978117173347,"product_id":7189398552675,"position":6,"created_at":"2024-02-26T13:25:47+08:00","updated_at":"2024-02-26T13:25:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906fe794a6464cc8995949d02e8ed676185eec67.webp?v=1708925147","variant_ids":[41312153501795]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone 11 Pro - 【聯名設計款】 - Batman - 超級惡棍和蝙蝠俠Logo貼紙款 - Black","public_title":"Black","options":["Black"],"price":98000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0114752-SB10","featured_media":{"alt":null,"id":23354574176355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906fe794a6464cc8995949d02e8ed676185eec67.webp?v=1708925147"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312153567331,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"SST0114757-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":30978115633251,"product_id":7189398552675,"position":2,"created_at":"2024-02-26T13:25:37+08:00","updated_at":"2024-02-26T13:25:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2b60193b751a1fabf2a584c0419e6f3528d1743.webp?v=1708925137","variant_ids":[41312153567331]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone 11 Pro - 【聯名設計款】 - Batman - 超級惡棍和蝙蝠俠Logo貼紙款 - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":98000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0114757-SB10","featured_media":{"alt":null,"id":23354572636259,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2b60193b751a1fabf2a584c0419e6f3528d1743.webp?v=1708925137"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312153698403,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"SST01147P2-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":30978115141731,"product_id":7189398552675,"position":1,"created_at":"2024-02-26T13:25:34+08:00","updated_at":"2024-02-26T13:25:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8358bcff2c1b8d96b9e2098c3dbfb8f8579a4bd.webp?v=1708925134","variant_ids":[41312153698403]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone 11 Pro - 【聯名設計款】 - Batman - 超級惡棍和蝙蝠俠Logo貼紙款 - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":98000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01147P2-SB10","featured_media":{"alt":null,"id":23354572144739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8358bcff2c1b8d96b9e2098c3dbfb8f8579a4bd.webp?v=1708925134"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41312153501795,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0114752-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":30978117173347,"product_id":7189398552675,"position":6,"created_at":"2024-02-26T13:25:47+08:00","updated_at":"2024-02-26T13:25:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906fe794a6464cc8995949d02e8ed676185eec67.webp?v=1708925147","variant_ids":[41312153501795]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone 11 Pro - 【聯名設計款】 - Batman - 超級惡棍和蝙蝠俠Logo貼紙款 - Black","public_title":"Black","options":["Black"],"price":98000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0114752-SB10","featured_media":{"alt":null,"id":23354574176355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906fe794a6464cc8995949d02e8ed676185eec67.webp?v=1708925147"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }