$product = {"id":7189387706467,"title":"犀牛盾SolidSuit手機殼 - iPhone X - 【聯名設計款】 - Batman - 蝙蝠車","handle":"iphone-x-solidsuit-classic-sb05","description":null,"published_at":"2024-02-27T15:21:56+08:00","created_at":"2024-02-23T17:51:19+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 X","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":41312095633507,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-SB05","requires_shipping":true,"taxable":true,"featured_image":{"id":30976501547107,"product_id":7189387706467,"position":5,"created_at":"2024-02-26T11:59:34+08:00","updated_at":"2024-02-26T11:59:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581d99dd57038def2d2860700dc2bf32e11a73ff_86e7e270-8719-478d-ab0b-f1c19348c4eb.webp?v=1708919974","variant_ids":[41312095633507]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone X - 【聯名設計款】 - Batman - 蝙蝠車 - Black","public_title":"Black","options":["Black"],"price":98000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":23352881610851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581d99dd57038def2d2860700dc2bf32e11a73ff_86e7e270-8719-478d-ab0b-f1c19348c4eb.webp?v=1708919974"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312095666275,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0106453-SB05","requires_shipping":true,"taxable":true,"featured_image":{"id":30976500564067,"product_id":7189387706467,"position":4,"created_at":"2024-02-26T11:59:32+08:00","updated_at":"2024-02-26T11:59:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038fb1858b0572d40a87abf2a7c863924553e15b_3c2a84f7-fa47-4bc5-8a0f-16ac29c51120.webp?v=1708919972","variant_ids":[41312095666275]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone X - 【聯名設計款】 - Batman - 蝙蝠車 - White","public_title":"White","options":["White"],"price":98000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":23352880627811,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038fb1858b0572d40a87abf2a7c863924553e15b_3c2a84f7-fa47-4bc5-8a0f-16ac29c51120.webp?v=1708919972"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312095699043,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"SST0106457-SB05","requires_shipping":true,"taxable":true,"featured_image":{"id":30976498597987,"product_id":7189387706467,"position":1,"created_at":"2024-02-26T11:59:25+08:00","updated_at":"2024-02-26T11:59:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40fa7c83627ed4fe81fc2537993f9542fe356904_fca973d5-203d-4171-89fa-5f3686ebd0aa.webp?v=1708919965","variant_ids":[41312095699043]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone X - 【聯名設計款】 - Batman - 蝙蝠車 - 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":null,"featured_media":{"alt":null,"id":23352878661731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40fa7c83627ed4fe81fc2537993f9542fe356904_fca973d5-203d-4171-89fa-5f3686ebd0aa.webp?v=1708919965"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312095830115,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"SST01064P2-SB05","requires_shipping":true,"taxable":true,"featured_image":{"id":30976503218275,"product_id":7189387706467,"position":7,"created_at":"2024-02-26T11:59:39+08:00","updated_at":"2024-02-26T11:59:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/904e7aa11e8bbe5994a066fd003586d8f469ed89_dd44c8ad-2217-4cc6-af23-34190f434232.webp?v=1708919979","variant_ids":[41312095830115]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone X - 【聯名設計款】 - Batman - 蝙蝠車 - 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":null,"featured_media":{"alt":null,"id":23352883282019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/904e7aa11e8bbe5994a066fd003586d8f469ed89_dd44c8ad-2217-4cc6-af23-34190f434232.webp?v=1708919979"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40fa7c83627ed4fe81fc2537993f9542fe356904_fca973d5-203d-4171-89fa-5f3686ebd0aa.webp?v=1708919965","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0311a32374bb1e20b7be4b723c0b38537498ebca_ee0423d8-0f6e-4b04-9f87-4a5936d4b24c.webp?v=1708919967","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bd4236e87666c2f7a86368dfc8d78fc94e1f508_f85cfe13-b063-446c-8dc8-cbab17cacb26.webp?v=1708919969","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038fb1858b0572d40a87abf2a7c863924553e15b_3c2a84f7-fa47-4bc5-8a0f-16ac29c51120.webp?v=1708919972","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581d99dd57038def2d2860700dc2bf32e11a73ff_86e7e270-8719-478d-ab0b-f1c19348c4eb.webp?v=1708919974","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818b3de3e15d6f23c4b81205f0acbb6ac7d7a72d_ee9148e8-e671-44ed-b524-96df7dc39230.webp?v=1708919977","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/904e7aa11e8bbe5994a066fd003586d8f469ed89_dd44c8ad-2217-4cc6-af23-34190f434232.webp?v=1708919979"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40fa7c83627ed4fe81fc2537993f9542fe356904_fca973d5-203d-4171-89fa-5f3686ebd0aa.webp?v=1708919965","options":["color"],"media":[{"alt":null,"id":23352878661731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40fa7c83627ed4fe81fc2537993f9542fe356904_fca973d5-203d-4171-89fa-5f3686ebd0aa.webp?v=1708919965"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40fa7c83627ed4fe81fc2537993f9542fe356904_fca973d5-203d-4171-89fa-5f3686ebd0aa.webp?v=1708919965","width":2000},{"alt":null,"id":23352879349859,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0311a32374bb1e20b7be4b723c0b38537498ebca_ee0423d8-0f6e-4b04-9f87-4a5936d4b24c.webp?v=1708919967"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0311a32374bb1e20b7be4b723c0b38537498ebca_ee0423d8-0f6e-4b04-9f87-4a5936d4b24c.webp?v=1708919967","width":2000},{"alt":null,"id":23352879972451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bd4236e87666c2f7a86368dfc8d78fc94e1f508_f85cfe13-b063-446c-8dc8-cbab17cacb26.webp?v=1708919969"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bd4236e87666c2f7a86368dfc8d78fc94e1f508_f85cfe13-b063-446c-8dc8-cbab17cacb26.webp?v=1708919969","width":2000},{"alt":null,"id":23352880627811,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038fb1858b0572d40a87abf2a7c863924553e15b_3c2a84f7-fa47-4bc5-8a0f-16ac29c51120.webp?v=1708919972"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038fb1858b0572d40a87abf2a7c863924553e15b_3c2a84f7-fa47-4bc5-8a0f-16ac29c51120.webp?v=1708919972","width":2000},{"alt":null,"id":23352881610851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581d99dd57038def2d2860700dc2bf32e11a73ff_86e7e270-8719-478d-ab0b-f1c19348c4eb.webp?v=1708919974"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581d99dd57038def2d2860700dc2bf32e11a73ff_86e7e270-8719-478d-ab0b-f1c19348c4eb.webp?v=1708919974","width":2000},{"alt":null,"id":23352882397283,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818b3de3e15d6f23c4b81205f0acbb6ac7d7a72d_ee9148e8-e671-44ed-b524-96df7dc39230.webp?v=1708919977"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818b3de3e15d6f23c4b81205f0acbb6ac7d7a72d_ee9148e8-e671-44ed-b524-96df7dc39230.webp?v=1708919977","width":2000},{"alt":null,"id":23352883282019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/904e7aa11e8bbe5994a066fd003586d8f469ed89_dd44c8ad-2217-4cc6-af23-34190f434232.webp?v=1708919979"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/904e7aa11e8bbe5994a066fd003586d8f469ed89_dd44c8ad-2217-4cc6-af23-34190f434232.webp?v=1708919979","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41312095633507,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-SB05","requires_shipping":true,"taxable":true,"featured_image":{"id":30976501547107,"product_id":7189387706467,"position":5,"created_at":"2024-02-26T11:59:34+08:00","updated_at":"2024-02-26T11:59:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581d99dd57038def2d2860700dc2bf32e11a73ff_86e7e270-8719-478d-ab0b-f1c19348c4eb.webp?v=1708919974","variant_ids":[41312095633507]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone X - 【聯名設計款】 - Batman - 蝙蝠車 - Black","public_title":"Black","options":["Black"],"price":98000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":23352881610851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581d99dd57038def2d2860700dc2bf32e11a73ff_86e7e270-8719-478d-ab0b-f1c19348c4eb.webp?v=1708919974"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312095666275,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0106453-SB05","requires_shipping":true,"taxable":true,"featured_image":{"id":30976500564067,"product_id":7189387706467,"position":4,"created_at":"2024-02-26T11:59:32+08:00","updated_at":"2024-02-26T11:59:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038fb1858b0572d40a87abf2a7c863924553e15b_3c2a84f7-fa47-4bc5-8a0f-16ac29c51120.webp?v=1708919972","variant_ids":[41312095666275]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone X - 【聯名設計款】 - Batman - 蝙蝠車 - White","public_title":"White","options":["White"],"price":98000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":23352880627811,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038fb1858b0572d40a87abf2a7c863924553e15b_3c2a84f7-fa47-4bc5-8a0f-16ac29c51120.webp?v=1708919972"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312095699043,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"SST0106457-SB05","requires_shipping":true,"taxable":true,"featured_image":{"id":30976498597987,"product_id":7189387706467,"position":1,"created_at":"2024-02-26T11:59:25+08:00","updated_at":"2024-02-26T11:59:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40fa7c83627ed4fe81fc2537993f9542fe356904_fca973d5-203d-4171-89fa-5f3686ebd0aa.webp?v=1708919965","variant_ids":[41312095699043]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone X - 【聯名設計款】 - Batman - 蝙蝠車 - 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":null,"featured_media":{"alt":null,"id":23352878661731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40fa7c83627ed4fe81fc2537993f9542fe356904_fca973d5-203d-4171-89fa-5f3686ebd0aa.webp?v=1708919965"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312095830115,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"SST01064P2-SB05","requires_shipping":true,"taxable":true,"featured_image":{"id":30976503218275,"product_id":7189387706467,"position":7,"created_at":"2024-02-26T11:59:39+08:00","updated_at":"2024-02-26T11:59:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/904e7aa11e8bbe5994a066fd003586d8f469ed89_dd44c8ad-2217-4cc6-af23-34190f434232.webp?v=1708919979","variant_ids":[41312095830115]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone X - 【聯名設計款】 - Batman - 蝙蝠車 - 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":null,"featured_media":{"alt":null,"id":23352883282019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/904e7aa11e8bbe5994a066fd003586d8f469ed89_dd44c8ad-2217-4cc6-af23-34190f434232.webp?v=1708919979"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41312095633507,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-SB05","requires_shipping":true,"taxable":true,"featured_image":{"id":30976501547107,"product_id":7189387706467,"position":5,"created_at":"2024-02-26T11:59:34+08:00","updated_at":"2024-02-26T11:59:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581d99dd57038def2d2860700dc2bf32e11a73ff_86e7e270-8719-478d-ab0b-f1c19348c4eb.webp?v=1708919974","variant_ids":[41312095633507]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone X - 【聯名設計款】 - Batman - 蝙蝠車 - Black","public_title":"Black","options":["Black"],"price":98000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":23352881610851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581d99dd57038def2d2860700dc2bf32e11a73ff_86e7e270-8719-478d-ab0b-f1c19348c4eb.webp?v=1708919974"}},"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: "停產" }