$product = {"id":4509067116643,"title":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 凸月","handle":"iphone-8-solidsuit-classic-xk05","description":"\u003cp\u003e\u003c\/p\u003e","published_at":"2020-03-18T17:30:25+08:00","created_at":"2020-03-18T15:58:57+08:00","vendor":"Rhinoshield","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-nasa","device-iPhone 8","merge","reseller-nasa"],"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":33369985810531,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-XK05","requires_shipping":true,"taxable":true,"featured_image":{"id":36256332578915,"product_id":4509067116643,"position":5,"created_at":"2026-07-14T11:57:48+08:00","updated_at":"2026-07-14T11:57:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4073e88918b06c0fee2386c7784929680d52f8cc.webp?v=1784001470","variant_ids":[33369985810531]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 凸月 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116452-XK05","featured_media":{"alt":null,"id":27760442146915,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4073e88918b06c0fee2386c7784929680d52f8cc.webp?v=1784001470"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":33369985843299,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0116453-XK05","requires_shipping":true,"taxable":true,"featured_image":{"id":36256330416227,"product_id":4509067116643,"position":2,"created_at":"2026-07-14T11:57:44+08:00","updated_at":"2026-07-14T11:57:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8963c4a0d6bc5cea1137e017817bc64dbc9079c1.webp?v=1784001466","variant_ids":[33369985843299]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 凸月 - White","public_title":"White","options":["White"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116453-XK05","featured_media":{"alt":null,"id":27760439984227,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8963c4a0d6bc5cea1137e017817bc64dbc9079c1.webp?v=1784001466"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40305999347811,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01164O8-XK05","requires_shipping":true,"taxable":true,"featured_image":{"id":36256331202659,"product_id":4509067116643,"position":3,"created_at":"2026-07-14T11:57:46+08:00","updated_at":"2026-07-14T11:57:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae62f9dd69a2f0e960c50cc81459c043b12c544.webp?v=1784001468","variant_ids":[40305999347811]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 凸月 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01164O8-XK05","featured_media":{"alt":null,"id":27760440770659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae62f9dd69a2f0e960c50cc81459c043b12c544.webp?v=1784001468"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK05_fbc9597c-916c-4884-a2b3-4f7e3b22f82d.png?v=1679986874","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8963c4a0d6bc5cea1137e017817bc64dbc9079c1.webp?v=1784001466","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae62f9dd69a2f0e960c50cc81459c043b12c544.webp?v=1784001468","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f26c7443b8ea8ab7af987c65c9ee0395ef26eefb.webp?v=1784001469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4073e88918b06c0fee2386c7784929680d52f8cc.webp?v=1784001470","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6c490b29b84b720195919f45f2384108c8eee3.webp?v=1784001471","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b84be19ae7c191006e35acf6100c6f25c34fda4f.webp?v=1784001473","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddb2c914be6c91bc52a7ff7858ffa1c270802142.webp?v=1784001474"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK05_fbc9597c-916c-4884-a2b3-4f7e3b22f82d.png?v=1679986874","options":["color"],"media":[{"alt":null,"id":22295126573155,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK05_fbc9597c-916c-4884-a2b3-4f7e3b22f82d.png?v=1679986874"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0116453-XK05_fbc9597c-916c-4884-a2b3-4f7e3b22f82d.png?v=1679986874","width":2000},{"alt":null,"id":27760439984227,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8963c4a0d6bc5cea1137e017817bc64dbc9079c1.webp?v=1784001466"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8963c4a0d6bc5cea1137e017817bc64dbc9079c1.webp?v=1784001466","width":2000},{"alt":null,"id":27760440770659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae62f9dd69a2f0e960c50cc81459c043b12c544.webp?v=1784001468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae62f9dd69a2f0e960c50cc81459c043b12c544.webp?v=1784001468","width":2000},{"alt":null,"id":27760441524323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f26c7443b8ea8ab7af987c65c9ee0395ef26eefb.webp?v=1784001469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f26c7443b8ea8ab7af987c65c9ee0395ef26eefb.webp?v=1784001469","width":2000},{"alt":null,"id":27760442146915,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4073e88918b06c0fee2386c7784929680d52f8cc.webp?v=1784001470"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4073e88918b06c0fee2386c7784929680d52f8cc.webp?v=1784001470","width":2000},{"alt":null,"id":27760442605667,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6c490b29b84b720195919f45f2384108c8eee3.webp?v=1784001471"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a6c490b29b84b720195919f45f2384108c8eee3.webp?v=1784001471","width":2000},{"alt":null,"id":27760444244067,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b84be19ae7c191006e35acf6100c6f25c34fda4f.webp?v=1784001473"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b84be19ae7c191006e35acf6100c6f25c34fda4f.webp?v=1784001473","width":2000},{"alt":null,"id":27760445161571,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddb2c914be6c91bc52a7ff7858ffa1c270802142.webp?v=1784001474"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddb2c914be6c91bc52a7ff7858ffa1c270802142.webp?v=1784001474","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003c\/p\u003e"}; $isMerge = null; $variants = [{"id":33369985810531,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-XK05","requires_shipping":true,"taxable":true,"featured_image":{"id":36256332578915,"product_id":4509067116643,"position":5,"created_at":"2026-07-14T11:57:48+08:00","updated_at":"2026-07-14T11:57:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4073e88918b06c0fee2386c7784929680d52f8cc.webp?v=1784001470","variant_ids":[33369985810531]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 凸月 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116452-XK05","featured_media":{"alt":null,"id":27760442146915,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4073e88918b06c0fee2386c7784929680d52f8cc.webp?v=1784001470"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":33369985843299,"title":"White","option1":"White","option2":null,"option3":null,"sku":"SST0116453-XK05","requires_shipping":true,"taxable":true,"featured_image":{"id":36256330416227,"product_id":4509067116643,"position":2,"created_at":"2026-07-14T11:57:44+08:00","updated_at":"2026-07-14T11:57:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8963c4a0d6bc5cea1137e017817bc64dbc9079c1.webp?v=1784001466","variant_ids":[33369985843299]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 凸月 - White","public_title":"White","options":["White"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116453-XK05","featured_media":{"alt":null,"id":27760439984227,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8963c4a0d6bc5cea1137e017817bc64dbc9079c1.webp?v=1784001466"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40305999347811,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"SST01164O8-XK05","requires_shipping":true,"taxable":true,"featured_image":{"id":36256331202659,"product_id":4509067116643,"position":3,"created_at":"2026-07-14T11:57:46+08:00","updated_at":"2026-07-14T11:57:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae62f9dd69a2f0e960c50cc81459c043b12c544.webp?v=1784001468","variant_ids":[40305999347811]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 凸月 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01164O8-XK05","featured_media":{"alt":null,"id":27760440770659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae62f9dd69a2f0e960c50cc81459c043b12c544.webp?v=1784001468"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":33369985810531,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0116452-XK05","requires_shipping":true,"taxable":true,"featured_image":{"id":36256332578915,"product_id":4509067116643,"position":5,"created_at":"2026-07-14T11:57:48+08:00","updated_at":"2026-07-14T11:57:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4073e88918b06c0fee2386c7784929680d52f8cc.webp?v=1784001470","variant_ids":[33369985810531]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 SolidSuit 太空 凸月 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0116452-XK05","featured_media":{"alt":null,"id":27760442146915,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4073e88918b06c0fee2386c7784929680d52f8cc.webp?v=1784001470"}},"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: "停產" }