$product = {"id":7938054946915,"title":"iPhone 13 mini SolidSuit (MagSafe 兼容) 進擊的巨人 Attack on Titan 地鳴","handle":"iphone-13-mini-solidsuit-classic-magsafe-xw10","description":null,"published_at":"2025-12-12T10:04:45+08:00","created_at":"2025-12-11T16:52:53+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":43884929286243,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-XW10","requires_shipping":true,"taxable":true,"featured_image":{"id":34933661007971,"product_id":7938054946915,"position":5,"created_at":"2025-12-11T16:53:01+08:00","updated_at":"2025-12-11T16:53:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb570ba0f53b36c1cd73e04b808728bf2d9af5a7.webp?v=1765443183","variant_ids":[43884929286243]},"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-XW10","featured_media":{"alt":null,"id":26496030769251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb570ba0f53b36c1cd73e04b808728bf2d9af5a7.webp?v=1765443183"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884929319011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-XW10","requires_shipping":true,"taxable":true,"featured_image":{"id":34933661237347,"product_id":7938054946915,"position":6,"created_at":"2025-12-11T16:53:01+08:00","updated_at":"2025-12-11T16:53:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b3ecc388f6eb67232ef0f6ee383d2ded5e02dc4.webp?v=1765443183","variant_ids":[43884929319011]},"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-XW10","featured_media":{"alt":null,"id":26496030998627,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b3ecc388f6eb67232ef0f6ee383d2ded5e02dc4.webp?v=1765443183"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f707f8b0e9395b91f2b4a55962e7376ec2831acb.webp?v=1765443181","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88311a3151eaf92fca87ef24d4139aebd311470b.webp?v=1765443181","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e06df8455378bda9488a9d9f01c4b761690078e.webp?v=1765443182","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51bfb68821a1896e2ef3f227c40d61c2a5396a86.webp?v=1765443182","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb570ba0f53b36c1cd73e04b808728bf2d9af5a7.webp?v=1765443183","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b3ecc388f6eb67232ef0f6ee383d2ded5e02dc4.webp?v=1765443183","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/239a72ea27f1bbbd58d0d5a20764d79c6b91e1cf.webp?v=1765443184","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/617d05a18c42a666f7d74febaeb8c871157e900b.webp?v=1765443184"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f707f8b0e9395b91f2b4a55962e7376ec2831acb.webp?v=1765443181","options":["color"],"media":[{"alt":null,"id":26496029753443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f707f8b0e9395b91f2b4a55962e7376ec2831acb.webp?v=1765443181"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f707f8b0e9395b91f2b4a55962e7376ec2831acb.webp?v=1765443181","width":2000},{"alt":null,"id":26496029982819,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88311a3151eaf92fca87ef24d4139aebd311470b.webp?v=1765443181"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88311a3151eaf92fca87ef24d4139aebd311470b.webp?v=1765443181","width":2000},{"alt":null,"id":26496030244963,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e06df8455378bda9488a9d9f01c4b761690078e.webp?v=1765443182"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e06df8455378bda9488a9d9f01c4b761690078e.webp?v=1765443182","width":2000},{"alt":null,"id":26496030507107,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51bfb68821a1896e2ef3f227c40d61c2a5396a86.webp?v=1765443182"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51bfb68821a1896e2ef3f227c40d61c2a5396a86.webp?v=1765443182","width":2000},{"alt":null,"id":26496030769251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb570ba0f53b36c1cd73e04b808728bf2d9af5a7.webp?v=1765443183"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb570ba0f53b36c1cd73e04b808728bf2d9af5a7.webp?v=1765443183","width":2000},{"alt":null,"id":26496030998627,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b3ecc388f6eb67232ef0f6ee383d2ded5e02dc4.webp?v=1765443183"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b3ecc388f6eb67232ef0f6ee383d2ded5e02dc4.webp?v=1765443183","width":2000},{"alt":null,"id":26496031260771,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/239a72ea27f1bbbd58d0d5a20764d79c6b91e1cf.webp?v=1765443184"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/239a72ea27f1bbbd58d0d5a20764d79c6b91e1cf.webp?v=1765443184","width":2000},{"alt":null,"id":26496031490147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/617d05a18c42a666f7d74febaeb8c871157e900b.webp?v=1765443184"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/617d05a18c42a666f7d74febaeb8c871157e900b.webp?v=1765443184","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43884929286243,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-XW10","requires_shipping":true,"taxable":true,"featured_image":{"id":34933661007971,"product_id":7938054946915,"position":5,"created_at":"2025-12-11T16:53:01+08:00","updated_at":"2025-12-11T16:53:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb570ba0f53b36c1cd73e04b808728bf2d9af5a7.webp?v=1765443183","variant_ids":[43884929286243]},"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-XW10","featured_media":{"alt":null,"id":26496030769251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb570ba0f53b36c1cd73e04b808728bf2d9af5a7.webp?v=1765443183"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43884929319011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-XW10","requires_shipping":true,"taxable":true,"featured_image":{"id":34933661237347,"product_id":7938054946915,"position":6,"created_at":"2025-12-11T16:53:01+08:00","updated_at":"2025-12-11T16:53:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b3ecc388f6eb67232ef0f6ee383d2ded5e02dc4.webp?v=1765443183","variant_ids":[43884929319011]},"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-XW10","featured_media":{"alt":null,"id":26496030998627,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b3ecc388f6eb67232ef0f6ee383d2ded5e02dc4.webp?v=1765443183"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43884929286243,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-XW10","requires_shipping":true,"taxable":true,"featured_image":{"id":34933661007971,"product_id":7938054946915,"position":5,"created_at":"2025-12-11T16:53:01+08:00","updated_at":"2025-12-11T16:53:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb570ba0f53b36c1cd73e04b808728bf2d9af5a7.webp?v=1765443183","variant_ids":[43884929286243]},"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-XW10","featured_media":{"alt":null,"id":26496030769251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb570ba0f53b36c1cd73e04b808728bf2d9af5a7.webp?v=1765443183"}},"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: "停產" }