$product = {"id":7189461139555,"title":"犀牛盾SolidSuit手機殼 - iPhone XS - 【聯名設計款】 - Batman - 復古版","handle":"iphone-xs-solidsuit-classic-sb01","description":null,"published_at":"2024-02-27T14:46:47+08:00","created_at":"2024-02-23T18:20:05+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 XS","merge","reseller-solidsuit-batman","solidsuit","Top50","type-Solidsuit"],"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":41312518242403,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":30978119434339,"product_id":7189461139555,"position":9,"created_at":"2024-02-26T13:26:01+08:00","updated_at":"2024-02-26T13:26:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57cb2228a437cd23911acfef2ee454c0bf72fff0_6dc4602f-4fb4-4636-944b-04a73184f798.webp?v=1708925161","variant_ids":[41312518242403]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone XS - 【聯名設計款】 - Batman - 復古版 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":23354576437347,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57cb2228a437cd23911acfef2ee454c0bf72fff0_6dc4602f-4fb4-4636-944b-04a73184f798.webp?v=1708925161"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312518439011,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"SST01064P2-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":30978119925859,"product_id":7189461139555,"position":10,"created_at":"2024-02-26T13:26:03+08:00","updated_at":"2024-02-26T13:26:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eacba2cbb8c3b699a8bf4c8b547821702e7341ea_cd1a8ced-0bfd-43ce-9352-360926ef80b7.webp?v=1708925163","variant_ids":[41312518439011]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone XS - 【聯名設計款】 - Batman - 復古版 - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":23354576928867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eacba2cbb8c3b699a8bf4c8b547821702e7341ea_cd1a8ced-0bfd-43ce-9352-360926ef80b7.webp?v=1708925163"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57cb2228a437cd23911acfef2ee454c0bf72fff0_b23fa0da-9351-48ac-9c4f-a0613086440f.webp?v=1708683615","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e37bde6e216922c432e04d1b5388f267ee5462c_f6058adb-5991-4896-bad9-f83c926d206a.webp?v=1708683617","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57e78c08559b09a645817c21bfbb1e75c694e2a2_8e4359ee-593d-4b6c-be31-db51cae46723.webp?v=1708683620","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/283f1a8f4ec607d66b956be68c90d206fbc72fb9_6c36b1d9-4a73-4bc6-968c-d93c4f6fd6a3.webp?v=1708683622","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c20732bb47f2568b640acbae56fe69b7168e01ac_d5be1dc7-66b3-4925-8070-8b91fc7b3138.webp?v=1708925151","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57e78c08559b09a645817c21bfbb1e75c694e2a2_10df12e9-d467-47e5-ad87-6e5eaf5d7acf.webp?v=1708925153","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/283f1a8f4ec607d66b956be68c90d206fbc72fb9_f9a17cef-ea62-474b-ad66-4de75cdcd100.webp?v=1708925156","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd85a59a7f7a782f5426e692ee7a551e8698b29b_a035dac1-6fe9-4cac-9360-a7f8d406d85d.webp?v=1708925158","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57cb2228a437cd23911acfef2ee454c0bf72fff0_6dc4602f-4fb4-4636-944b-04a73184f798.webp?v=1708925161","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eacba2cbb8c3b699a8bf4c8b547821702e7341ea_cd1a8ced-0bfd-43ce-9352-360926ef80b7.webp?v=1708925163","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e37bde6e216922c432e04d1b5388f267ee5462c_9fc69761-f040-4f01-a757-2d2a3c968184.webp?v=1708925166"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57cb2228a437cd23911acfef2ee454c0bf72fff0_b23fa0da-9351-48ac-9c4f-a0613086440f.webp?v=1708683615","options":["color"],"media":[{"alt":null,"id":23337286828131,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57cb2228a437cd23911acfef2ee454c0bf72fff0_b23fa0da-9351-48ac-9c4f-a0613086440f.webp?v=1708683615"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57cb2228a437cd23911acfef2ee454c0bf72fff0_b23fa0da-9351-48ac-9c4f-a0613086440f.webp?v=1708683615","width":2000},{"alt":null,"id":23337287450723,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e37bde6e216922c432e04d1b5388f267ee5462c_f6058adb-5991-4896-bad9-f83c926d206a.webp?v=1708683617"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e37bde6e216922c432e04d1b5388f267ee5462c_f6058adb-5991-4896-bad9-f83c926d206a.webp?v=1708683617","width":2000},{"alt":null,"id":23337287909475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57e78c08559b09a645817c21bfbb1e75c694e2a2_8e4359ee-593d-4b6c-be31-db51cae46723.webp?v=1708683620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57e78c08559b09a645817c21bfbb1e75c694e2a2_8e4359ee-593d-4b6c-be31-db51cae46723.webp?v=1708683620","width":2000},{"alt":null,"id":23337289580643,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/283f1a8f4ec607d66b956be68c90d206fbc72fb9_6c36b1d9-4a73-4bc6-968c-d93c4f6fd6a3.webp?v=1708683622"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/283f1a8f4ec607d66b956be68c90d206fbc72fb9_6c36b1d9-4a73-4bc6-968c-d93c4f6fd6a3.webp?v=1708683622","width":2000},{"alt":null,"id":23354574766179,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c20732bb47f2568b640acbae56fe69b7168e01ac_d5be1dc7-66b3-4925-8070-8b91fc7b3138.webp?v=1708925151"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c20732bb47f2568b640acbae56fe69b7168e01ac_d5be1dc7-66b3-4925-8070-8b91fc7b3138.webp?v=1708925151","width":2000},{"alt":null,"id":23354575224931,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57e78c08559b09a645817c21bfbb1e75c694e2a2_10df12e9-d467-47e5-ad87-6e5eaf5d7acf.webp?v=1708925153"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57e78c08559b09a645817c21bfbb1e75c694e2a2_10df12e9-d467-47e5-ad87-6e5eaf5d7acf.webp?v=1708925153","width":2000},{"alt":null,"id":23354575552611,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/283f1a8f4ec607d66b956be68c90d206fbc72fb9_f9a17cef-ea62-474b-ad66-4de75cdcd100.webp?v=1708925156"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/283f1a8f4ec607d66b956be68c90d206fbc72fb9_f9a17cef-ea62-474b-ad66-4de75cdcd100.webp?v=1708925156","width":2000},{"alt":null,"id":23354576011363,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd85a59a7f7a782f5426e692ee7a551e8698b29b_a035dac1-6fe9-4cac-9360-a7f8d406d85d.webp?v=1708925158"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd85a59a7f7a782f5426e692ee7a551e8698b29b_a035dac1-6fe9-4cac-9360-a7f8d406d85d.webp?v=1708925158","width":2000},{"alt":null,"id":23354576437347,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57cb2228a437cd23911acfef2ee454c0bf72fff0_6dc4602f-4fb4-4636-944b-04a73184f798.webp?v=1708925161"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57cb2228a437cd23911acfef2ee454c0bf72fff0_6dc4602f-4fb4-4636-944b-04a73184f798.webp?v=1708925161","width":2000},{"alt":null,"id":23354576928867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eacba2cbb8c3b699a8bf4c8b547821702e7341ea_cd1a8ced-0bfd-43ce-9352-360926ef80b7.webp?v=1708925163"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eacba2cbb8c3b699a8bf4c8b547821702e7341ea_cd1a8ced-0bfd-43ce-9352-360926ef80b7.webp?v=1708925163","width":2000},{"alt":null,"id":23354577387619,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e37bde6e216922c432e04d1b5388f267ee5462c_9fc69761-f040-4f01-a757-2d2a3c968184.webp?v=1708925166"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e37bde6e216922c432e04d1b5388f267ee5462c_9fc69761-f040-4f01-a757-2d2a3c968184.webp?v=1708925166","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41312518242403,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":30978119434339,"product_id":7189461139555,"position":9,"created_at":"2024-02-26T13:26:01+08:00","updated_at":"2024-02-26T13:26:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57cb2228a437cd23911acfef2ee454c0bf72fff0_6dc4602f-4fb4-4636-944b-04a73184f798.webp?v=1708925161","variant_ids":[41312518242403]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone XS - 【聯名設計款】 - Batman - 復古版 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":23354576437347,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57cb2228a437cd23911acfef2ee454c0bf72fff0_6dc4602f-4fb4-4636-944b-04a73184f798.webp?v=1708925161"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312518439011,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"SST01064P2-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":30978119925859,"product_id":7189461139555,"position":10,"created_at":"2024-02-26T13:26:03+08:00","updated_at":"2024-02-26T13:26:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eacba2cbb8c3b699a8bf4c8b547821702e7341ea_cd1a8ced-0bfd-43ce-9352-360926ef80b7.webp?v=1708925163","variant_ids":[41312518439011]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone XS - 【聯名設計款】 - Batman - 復古版 - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":23354576928867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eacba2cbb8c3b699a8bf4c8b547821702e7341ea_cd1a8ced-0bfd-43ce-9352-360926ef80b7.webp?v=1708925163"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41312518242403,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":30978119434339,"product_id":7189461139555,"position":9,"created_at":"2024-02-26T13:26:01+08:00","updated_at":"2024-02-26T13:26:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57cb2228a437cd23911acfef2ee454c0bf72fff0_6dc4602f-4fb4-4636-944b-04a73184f798.webp?v=1708925161","variant_ids":[41312518242403]},"available":true,"name":"犀牛盾SolidSuit手機殼 - iPhone XS - 【聯名設計款】 - Batman - 復古版 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":23354576437347,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57cb2228a437cd23911acfef2ee454c0bf72fff0_6dc4602f-4fb4-4636-944b-04a73184f798.webp?v=1708925161"}},"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: "停產" }