$product = {"id":7937997897827,"title":"iPhone 13 mini SolidSuit (MagSafe 兼容) 進擊的巨人 Attack on Titan 全員集結","handle":"iphone-13-mini-solidsuit-classic-magsafe-xw08","description":null,"published_at":"2025-12-12T10:16:58+08:00","created_at":"2025-12-11T16:38:36+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-attack-on-titan","device-iPhone 13 Mini","merge","reseller-attack-on-titan"],"price":125000,"price_min":125000,"price_max":125000,"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":43884707348579,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-XW08","requires_shipping":true,"taxable":true,"featured_image":{"id":34933426552931,"product_id":7937997897827,"position":8,"created_at":"2025-12-11T16:38:44+08:00","updated_at":"2025-12-11T16:38:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb9af61a2dafdc49eb25577f992f9bd70219a1f.webp?v=1765442326","variant_ids":[43884707348579]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 進擊的巨人 Attack on Titan 全員集結 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-XW08","featured_media":{"alt":null,"id":26495797231715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb9af61a2dafdc49eb25577f992f9bd70219a1f.webp?v=1765442326"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884707381347,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-XW08","requires_shipping":true,"taxable":true,"featured_image":{"id":34933425733731,"product_id":7937997897827,"position":3,"created_at":"2025-12-11T16:38:41+08:00","updated_at":"2025-12-11T16:38:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4c3dcbe60d0ab24273e0f2155ce03fb955a3dd5.webp?v=1765442323","variant_ids":[43884707381347]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 進擊的巨人 Attack on Titan 全員集結 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-XW08","featured_media":{"alt":null,"id":26495796314211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4c3dcbe60d0ab24273e0f2155ce03fb955a3dd5.webp?v=1765442323"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6826322dc64d5a827c8256b8b3f711feed2ae481.webp?v=1765442322","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2125961d7dcbe030b349bfe1d420fd538b922331.webp?v=1765442323","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4c3dcbe60d0ab24273e0f2155ce03fb955a3dd5.webp?v=1765442323","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a276d2dc4f36f5cf3b82ffcba8d547301ba4654.webp?v=1765442324","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4615b2bb5ce4d26eb5c32a7f291a7d6e6d3dfb6.webp?v=1765442324","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94c828e26a28b1e1953c412e96d761b3d3fd11fd.webp?v=1765442325","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/649f0ee7b756e8b8e45342ad20924a984f45e37d.webp?v=1765442325","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb9af61a2dafdc49eb25577f992f9bd70219a1f.webp?v=1765442326"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6826322dc64d5a827c8256b8b3f711feed2ae481.webp?v=1765442322","options":["color"],"media":[{"alt":null,"id":26495795855459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6826322dc64d5a827c8256b8b3f711feed2ae481.webp?v=1765442322"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6826322dc64d5a827c8256b8b3f711feed2ae481.webp?v=1765442322","width":2000},{"alt":null,"id":26495796117603,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2125961d7dcbe030b349bfe1d420fd538b922331.webp?v=1765442323"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2125961d7dcbe030b349bfe1d420fd538b922331.webp?v=1765442323","width":2000},{"alt":null,"id":26495796314211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4c3dcbe60d0ab24273e0f2155ce03fb955a3dd5.webp?v=1765442323"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4c3dcbe60d0ab24273e0f2155ce03fb955a3dd5.webp?v=1765442323","width":2000},{"alt":null,"id":26495796510819,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a276d2dc4f36f5cf3b82ffcba8d547301ba4654.webp?v=1765442324"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a276d2dc4f36f5cf3b82ffcba8d547301ba4654.webp?v=1765442324","width":2000},{"alt":null,"id":26495796674659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4615b2bb5ce4d26eb5c32a7f291a7d6e6d3dfb6.webp?v=1765442324"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4615b2bb5ce4d26eb5c32a7f291a7d6e6d3dfb6.webp?v=1765442324","width":2000},{"alt":null,"id":26495796838499,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94c828e26a28b1e1953c412e96d761b3d3fd11fd.webp?v=1765442325"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94c828e26a28b1e1953c412e96d761b3d3fd11fd.webp?v=1765442325","width":2000},{"alt":null,"id":26495797002339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/649f0ee7b756e8b8e45342ad20924a984f45e37d.webp?v=1765442325"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/649f0ee7b756e8b8e45342ad20924a984f45e37d.webp?v=1765442325","width":2000},{"alt":null,"id":26495797231715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb9af61a2dafdc49eb25577f992f9bd70219a1f.webp?v=1765442326"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb9af61a2dafdc49eb25577f992f9bd70219a1f.webp?v=1765442326","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43884707348579,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-XW08","requires_shipping":true,"taxable":true,"featured_image":{"id":34933426552931,"product_id":7937997897827,"position":8,"created_at":"2025-12-11T16:38:44+08:00","updated_at":"2025-12-11T16:38:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb9af61a2dafdc49eb25577f992f9bd70219a1f.webp?v=1765442326","variant_ids":[43884707348579]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 進擊的巨人 Attack on Titan 全員集結 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-XW08","featured_media":{"alt":null,"id":26495797231715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb9af61a2dafdc49eb25577f992f9bd70219a1f.webp?v=1765442326"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884707381347,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-XW08","requires_shipping":true,"taxable":true,"featured_image":{"id":34933425733731,"product_id":7937997897827,"position":3,"created_at":"2025-12-11T16:38:41+08:00","updated_at":"2025-12-11T16:38:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4c3dcbe60d0ab24273e0f2155ce03fb955a3dd5.webp?v=1765442323","variant_ids":[43884707381347]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 進擊的巨人 Attack on Titan 全員集結 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-XW08","featured_media":{"alt":null,"id":26495796314211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4c3dcbe60d0ab24273e0f2155ce03fb955a3dd5.webp?v=1765442323"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43884707348579,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-XW08","requires_shipping":true,"taxable":true,"featured_image":{"id":34933426552931,"product_id":7937997897827,"position":8,"created_at":"2025-12-11T16:38:44+08:00","updated_at":"2025-12-11T16:38:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb9af61a2dafdc49eb25577f992f9bd70219a1f.webp?v=1765442326","variant_ids":[43884707348579]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 進擊的巨人 Attack on Titan 全員集結 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-XW08","featured_media":{"alt":null,"id":26495797231715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb9af61a2dafdc49eb25577f992f9bd70219a1f.webp?v=1765442326"}},"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: "停產" }