$product = {"id":4718671691875,"title":"iPhone 12 mini SolidSuit 太空 桑尼科夫海峽浮冰","handle":"iphone-12-mini-solidsuit-classic-xk09","description":"\u003cp\u003e\u003c\/p\u003e","published_at":"2021-01-18T15:35:57+08:00","created_at":"2020-10-07T11:34:10+08:00","vendor":"Rhinoshield","type":"設計師SolidSuit專區-Xrage","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-nasa","device-iPhone 12 Mini","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":33286092783715,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-XK09","requires_shipping":true,"taxable":true,"featured_image":{"id":36254612258915,"product_id":4718671691875,"position":2,"created_at":"2026-07-14T09:48:40+08:00","updated_at":"2026-07-14T09:48:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/744432a51ad831d18a61714e4d576cf02a97a220.webp?v=1783993722","variant_ids":[33286092783715]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 桑尼科夫海峽浮冰 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0118452-XK09","featured_media":{"alt":null,"id":27758727200867,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/744432a51ad831d18a61714e4d576cf02a97a220.webp?v=1783993722"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40306211946595,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-XK09","requires_shipping":true,"taxable":true,"featured_image":{"id":36254612914275,"product_id":4718671691875,"position":3,"created_at":"2026-07-14T09:48:43+08:00","updated_at":"2026-07-14T09:48:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d24c7cffddb147ac9648a3ea1fae752e364a2add.webp?v=1783993725","variant_ids":[40306211946595]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 桑尼科夫海峽浮冰 - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01184O9-XK09","featured_media":{"alt":null,"id":27758727856227,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d24c7cffddb147ac9648a3ea1fae752e364a2add.webp?v=1783993725"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40555907285091,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-XK09","requires_shipping":true,"taxable":true,"featured_image":{"id":36254614945891,"product_id":4718671691875,"position":6,"created_at":"2026-07-14T09:48:49+08:00","updated_at":"2026-07-14T09:48:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64b2968d172b9e314db506269cbdba178128afc8.webp?v=1783993731","variant_ids":[40555907285091]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 桑尼科夫海峽浮冰 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST011840B-XK09","featured_media":{"alt":null,"id":27758729887843,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64b2968d172b9e314db506269cbdba178128afc8.webp?v=1783993731"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0118453-XK09_a49c189a-b6a1-43b6-997b-d29889e908fa.png?v=1679988855","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/744432a51ad831d18a61714e4d576cf02a97a220.webp?v=1783993722","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d24c7cffddb147ac9648a3ea1fae752e364a2add.webp?v=1783993725","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78c358cfd21ffedf07fc9df797f81640bed58433.webp?v=1783993726","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7fe307235cc7682010967eda12d6d78e712691b.webp?v=1783993729","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64b2968d172b9e314db506269cbdba178128afc8.webp?v=1783993731","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65d505500c1910b9fd65b48f69acf671f43f4974.webp?v=1783993733"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0118453-XK09_a49c189a-b6a1-43b6-997b-d29889e908fa.png?v=1679988855","options":["color"],"media":[{"alt":null,"id":22295414603875,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0118453-XK09_a49c189a-b6a1-43b6-997b-d29889e908fa.png?v=1679988855"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0118453-XK09_a49c189a-b6a1-43b6-997b-d29889e908fa.png?v=1679988855","width":2000},{"alt":null,"id":27758727200867,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/744432a51ad831d18a61714e4d576cf02a97a220.webp?v=1783993722"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/744432a51ad831d18a61714e4d576cf02a97a220.webp?v=1783993722","width":2000},{"alt":null,"id":27758727856227,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d24c7cffddb147ac9648a3ea1fae752e364a2add.webp?v=1783993725"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d24c7cffddb147ac9648a3ea1fae752e364a2add.webp?v=1783993725","width":2000},{"alt":null,"id":27758728085603,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78c358cfd21ffedf07fc9df797f81640bed58433.webp?v=1783993726"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78c358cfd21ffedf07fc9df797f81640bed58433.webp?v=1783993726","width":2000},{"alt":null,"id":27758728937571,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7fe307235cc7682010967eda12d6d78e712691b.webp?v=1783993729"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7fe307235cc7682010967eda12d6d78e712691b.webp?v=1783993729","width":2000},{"alt":null,"id":27758729887843,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64b2968d172b9e314db506269cbdba178128afc8.webp?v=1783993731"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64b2968d172b9e314db506269cbdba178128afc8.webp?v=1783993731","width":2000},{"alt":null,"id":27758730903651,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65d505500c1910b9fd65b48f69acf671f43f4974.webp?v=1783993733"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65d505500c1910b9fd65b48f69acf671f43f4974.webp?v=1783993733","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003c\/p\u003e"}; $isMerge = null; $variants = [{"id":33286092783715,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-XK09","requires_shipping":true,"taxable":true,"featured_image":{"id":36254612258915,"product_id":4718671691875,"position":2,"created_at":"2026-07-14T09:48:40+08:00","updated_at":"2026-07-14T09:48:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/744432a51ad831d18a61714e4d576cf02a97a220.webp?v=1783993722","variant_ids":[33286092783715]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 桑尼科夫海峽浮冰 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0118452-XK09","featured_media":{"alt":null,"id":27758727200867,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/744432a51ad831d18a61714e4d576cf02a97a220.webp?v=1783993722"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40306211946595,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-XK09","requires_shipping":true,"taxable":true,"featured_image":{"id":36254612914275,"product_id":4718671691875,"position":3,"created_at":"2026-07-14T09:48:43+08:00","updated_at":"2026-07-14T09:48:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d24c7cffddb147ac9648a3ea1fae752e364a2add.webp?v=1783993725","variant_ids":[40306211946595]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 桑尼科夫海峽浮冰 - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01184O9-XK09","featured_media":{"alt":null,"id":27758727856227,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d24c7cffddb147ac9648a3ea1fae752e364a2add.webp?v=1783993725"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40555907285091,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-XK09","requires_shipping":true,"taxable":true,"featured_image":{"id":36254614945891,"product_id":4718671691875,"position":6,"created_at":"2026-07-14T09:48:49+08:00","updated_at":"2026-07-14T09:48:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64b2968d172b9e314db506269cbdba178128afc8.webp?v=1783993731","variant_ids":[40555907285091]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 桑尼科夫海峽浮冰 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST011840B-XK09","featured_media":{"alt":null,"id":27758729887843,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64b2968d172b9e314db506269cbdba178128afc8.webp?v=1783993731"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":33286092783715,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-XK09","requires_shipping":true,"taxable":true,"featured_image":{"id":36254612258915,"product_id":4718671691875,"position":2,"created_at":"2026-07-14T09:48:40+08:00","updated_at":"2026-07-14T09:48:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/744432a51ad831d18a61714e4d576cf02a97a220.webp?v=1783993722","variant_ids":[33286092783715]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 桑尼科夫海峽浮冰 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":830,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0118452-XK09","featured_media":{"alt":null,"id":27758727200867,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/744432a51ad831d18a61714e4d576cf02a97a220.webp?v=1783993722"}},"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: "停產" }