$product = {"id":7155922796643,"title":"iPhone XS SolidSuit 1G J個好","handle":"iphone-xs-solidsuit-classic-iv08","description":null,"published_at":"2024-01-24T16:26:59+08:00","created_at":"2024-01-23T17:18:14+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit專區1G","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-1chun","device-iPhone XS","merge","reseller-1chun"],"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":41197342851171,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-IV08","requires_shipping":true,"taxable":true,"featured_image":{"id":36323853369443,"product_id":7155922796643,"position":9,"created_at":"2026-07-20T19:25:26+08:00","updated_at":"2026-07-20T19:25:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c92c5a2f402f9a5b7cfd701ffdffc2dd8981858_330a70e0-3982-4431-93d9-53f1f8a17a95.webp?v=1784546729","variant_ids":[41197342851171]},"available":true,"name":"iPhone XS SolidSuit 1G J個好 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0106452-IV08","featured_media":{"alt":null,"id":27827760529507,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c92c5a2f402f9a5b7cfd701ffdffc2dd8981858_330a70e0-3982-4431-93d9-53f1f8a17a95.webp?v=1784546729"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197343047779,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"SST01064P2-IV08","requires_shipping":true,"taxable":true,"featured_image":{"id":30837393555555,"product_id":7155922796643,"position":5,"created_at":"2024-01-24T11:07:46+08:00","updated_at":"2024-01-24T11:07:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e25b93151d495131bc22734b48d2ee8b4d70ad1_ccba6f34-03b0-46cc-9dc6-51550da49501.webp?v=1706065666","variant_ids":[41197343047779]},"available":true,"name":"iPhone XS SolidSuit 1G J個好 - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":23208311226467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e25b93151d495131bc22734b48d2ee8b4d70ad1_ccba6f34-03b0-46cc-9dc6-51550da49501.webp?v=1706065666"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d448c1d895b56a7f36d02e46bd08acbbdb413d3_3f0547d1-d6b0-4248-bccb-b0fc7da74752.webp?v=1706065656","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7df3f483b9a3ff79e42107c55984f6a4fb93d215_e6e40074-ff54-4026-ac45-0238c01a313c.webp?v=1706065658","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf2759e144a738907912f510fa8e4785cbe36527_7991e4e4-695d-4bc0-9a00-f29e1aee64b2.webp?v=1706065661","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0234965e7b15e472724dfa4bef67205aff2ea75_93842527-dc7f-4d05-a0e8-bb1dcc374ff0.webp?v=1706065663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e25b93151d495131bc22734b48d2ee8b4d70ad1_ccba6f34-03b0-46cc-9dc6-51550da49501.webp?v=1706065666","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45ea2f581b69dcf5d95b38cbdd6bbe0b96ae9d18_d771bda2-7d3c-4b20-8347-358528abc83f.webp?v=1706065668","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cab568e7113b7abf285af17f1e178163172762e0_df0ac8a3-33d0-4539-a6a4-613078c188c4.webp?v=1706065670","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c92c5a2f402f9a5b7cfd701ffdffc2dd8981858_4aa2ccec-c03b-43a9-9b1b-0c9fa4548594.webp?v=1782887763","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c92c5a2f402f9a5b7cfd701ffdffc2dd8981858_330a70e0-3982-4431-93d9-53f1f8a17a95.webp?v=1784546729"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d448c1d895b56a7f36d02e46bd08acbbdb413d3_3f0547d1-d6b0-4248-bccb-b0fc7da74752.webp?v=1706065656","options":["color"],"media":[{"alt":null,"id":23208308473955,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d448c1d895b56a7f36d02e46bd08acbbdb413d3_3f0547d1-d6b0-4248-bccb-b0fc7da74752.webp?v=1706065656"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d448c1d895b56a7f36d02e46bd08acbbdb413d3_3f0547d1-d6b0-4248-bccb-b0fc7da74752.webp?v=1706065656","width":2000},{"alt":null,"id":23208309031011,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7df3f483b9a3ff79e42107c55984f6a4fb93d215_e6e40074-ff54-4026-ac45-0238c01a313c.webp?v=1706065658"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7df3f483b9a3ff79e42107c55984f6a4fb93d215_e6e40074-ff54-4026-ac45-0238c01a313c.webp?v=1706065658","width":2000},{"alt":null,"id":23208309686371,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf2759e144a738907912f510fa8e4785cbe36527_7991e4e4-695d-4bc0-9a00-f29e1aee64b2.webp?v=1706065661"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf2759e144a738907912f510fa8e4785cbe36527_7991e4e4-695d-4bc0-9a00-f29e1aee64b2.webp?v=1706065661","width":2000},{"alt":null,"id":23208310308963,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0234965e7b15e472724dfa4bef67205aff2ea75_93842527-dc7f-4d05-a0e8-bb1dcc374ff0.webp?v=1706065663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0234965e7b15e472724dfa4bef67205aff2ea75_93842527-dc7f-4d05-a0e8-bb1dcc374ff0.webp?v=1706065663","width":2000},{"alt":null,"id":23208311226467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e25b93151d495131bc22734b48d2ee8b4d70ad1_ccba6f34-03b0-46cc-9dc6-51550da49501.webp?v=1706065666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e25b93151d495131bc22734b48d2ee8b4d70ad1_ccba6f34-03b0-46cc-9dc6-51550da49501.webp?v=1706065666","width":2000},{"alt":null,"id":23208311881827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45ea2f581b69dcf5d95b38cbdd6bbe0b96ae9d18_d771bda2-7d3c-4b20-8347-358528abc83f.webp?v=1706065668"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45ea2f581b69dcf5d95b38cbdd6bbe0b96ae9d18_d771bda2-7d3c-4b20-8347-358528abc83f.webp?v=1706065668","width":2000},{"alt":null,"id":23208312504419,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cab568e7113b7abf285af17f1e178163172762e0_df0ac8a3-33d0-4539-a6a4-613078c188c4.webp?v=1706065670"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cab568e7113b7abf285af17f1e178163172762e0_df0ac8a3-33d0-4539-a6a4-613078c188c4.webp?v=1706065670","width":2000},{"alt":null,"id":27649714421859,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c92c5a2f402f9a5b7cfd701ffdffc2dd8981858_4aa2ccec-c03b-43a9-9b1b-0c9fa4548594.webp?v=1782887763"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c92c5a2f402f9a5b7cfd701ffdffc2dd8981858_4aa2ccec-c03b-43a9-9b1b-0c9fa4548594.webp?v=1782887763","width":2000},{"alt":null,"id":27827760529507,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c92c5a2f402f9a5b7cfd701ffdffc2dd8981858_330a70e0-3982-4431-93d9-53f1f8a17a95.webp?v=1784546729"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c92c5a2f402f9a5b7cfd701ffdffc2dd8981858_330a70e0-3982-4431-93d9-53f1f8a17a95.webp?v=1784546729","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41197342851171,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-IV08","requires_shipping":true,"taxable":true,"featured_image":{"id":36323853369443,"product_id":7155922796643,"position":9,"created_at":"2026-07-20T19:25:26+08:00","updated_at":"2026-07-20T19:25:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c92c5a2f402f9a5b7cfd701ffdffc2dd8981858_330a70e0-3982-4431-93d9-53f1f8a17a95.webp?v=1784546729","variant_ids":[41197342851171]},"available":true,"name":"iPhone XS SolidSuit 1G J個好 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0106452-IV08","featured_media":{"alt":null,"id":27827760529507,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c92c5a2f402f9a5b7cfd701ffdffc2dd8981858_330a70e0-3982-4431-93d9-53f1f8a17a95.webp?v=1784546729"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197343047779,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"SST01064P2-IV08","requires_shipping":true,"taxable":true,"featured_image":{"id":30837393555555,"product_id":7155922796643,"position":5,"created_at":"2024-01-24T11:07:46+08:00","updated_at":"2024-01-24T11:07:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e25b93151d495131bc22734b48d2ee8b4d70ad1_ccba6f34-03b0-46cc-9dc6-51550da49501.webp?v=1706065666","variant_ids":[41197343047779]},"available":true,"name":"iPhone XS SolidSuit 1G J個好 - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":23208311226467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e25b93151d495131bc22734b48d2ee8b4d70ad1_ccba6f34-03b0-46cc-9dc6-51550da49501.webp?v=1706065666"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41197342851171,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-IV08","requires_shipping":true,"taxable":true,"featured_image":{"id":36323853369443,"product_id":7155922796643,"position":9,"created_at":"2026-07-20T19:25:26+08:00","updated_at":"2026-07-20T19:25:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c92c5a2f402f9a5b7cfd701ffdffc2dd8981858_330a70e0-3982-4431-93d9-53f1f8a17a95.webp?v=1784546729","variant_ids":[41197342851171]},"available":true,"name":"iPhone XS SolidSuit 1G J個好 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0106452-IV08","featured_media":{"alt":null,"id":27827760529507,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c92c5a2f402f9a5b7cfd701ffdffc2dd8981858_330a70e0-3982-4431-93d9-53f1f8a17a95.webp?v=1784546729"}},"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: "停產" }