$product = {"id":7931782955107,"title":"iPhone 13 Clear (MagSafe 兼容) 產房 • 廢料棲息地 鯨魚:海洋的長老","handle":"iphone-13-jellytint-magsafe-bir01","description":null,"published_at":"2026-01-27T14:04:59+08:00","created_at":"2025-11-28T11:55:01+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-everydayishappybirthday","device-iPhone 13","merge","reseller-everydayishappybirthday"],"price":148000,"price_min":148000,"price_max":148000,"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":43861737603171,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012600G-BIR01","requires_shipping":true,"taxable":true,"featured_image":{"id":36347770077283,"product_id":7931782955107,"position":5,"created_at":"2026-07-22T18:11:53+08:00","updated_at":"2026-07-22T18:11:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2e7163f62e3db37d660e315db5af92af1b169f0_c7ab9f5e-1c52-49a5-81cc-2ea1e7d1b8e1.webp?v=1784715115","variant_ids":[43861737603171]},"available":true,"name":"iPhone 13 Clear (MagSafe 兼容) 產房 • 廢料棲息地 鯨魚:海洋的長老 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012600G-BIR01","featured_media":{"alt":null,"id":27851625365603,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2e7163f62e3db37d660e315db5af92af1b169f0_c7ab9f5e-1c52-49a5-81cc-2ea1e7d1b8e1.webp?v=1784715115"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861737635939,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"MCN012600H-BIR01","requires_shipping":true,"taxable":true,"featured_image":{"id":34864442966115,"product_id":7931782955107,"position":3,"created_at":"2025-11-28T11:55:06+08:00","updated_at":"2025-11-28T11:55:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26a53d91130372d68c8567f5bcd9f5dd2be0e84a_06cadef4-eeb5-4c9c-bce9-4f3c51bb35c0.webp?v=1764302108","variant_ids":[43861737635939]},"available":true,"name":"iPhone 13 Clear (MagSafe 兼容) 產房 • 廢料棲息地 鯨魚:海洋的長老 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012600H-BIR01","featured_media":{"alt":null,"id":26428861874275,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26a53d91130372d68c8567f5bcd9f5dd2be0e84a_06cadef4-eeb5-4c9c-bce9-4f3c51bb35c0.webp?v=1764302108"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fca3a86d4237a89bb1c96777e926e097dac925f_e25e2402-9ef6-459c-b56d-f4571ab9ccbb.webp?v=1764302107","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e02b636770d945354703f37ca94d53f76d0b958_62b4060e-b54f-4536-a745-82f57f95c261.webp?v=1764302107","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26a53d91130372d68c8567f5bcd9f5dd2be0e84a_06cadef4-eeb5-4c9c-bce9-4f3c51bb35c0.webp?v=1764302108","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2e7163f62e3db37d660e315db5af92af1b169f0_431beb2d-0e5d-492a-b822-5784f105e9bb.webp?v=1764302108","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2e7163f62e3db37d660e315db5af92af1b169f0_c7ab9f5e-1c52-49a5-81cc-2ea1e7d1b8e1.webp?v=1784715115"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fca3a86d4237a89bb1c96777e926e097dac925f_e25e2402-9ef6-459c-b56d-f4571ab9ccbb.webp?v=1764302107","options":["color"],"media":[{"alt":null,"id":26428859973731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fca3a86d4237a89bb1c96777e926e097dac925f_e25e2402-9ef6-459c-b56d-f4571ab9ccbb.webp?v=1764302107"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fca3a86d4237a89bb1c96777e926e097dac925f_e25e2402-9ef6-459c-b56d-f4571ab9ccbb.webp?v=1764302107","width":2000},{"alt":null,"id":26428860924003,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e02b636770d945354703f37ca94d53f76d0b958_62b4060e-b54f-4536-a745-82f57f95c261.webp?v=1764302107"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e02b636770d945354703f37ca94d53f76d0b958_62b4060e-b54f-4536-a745-82f57f95c261.webp?v=1764302107","width":2000},{"alt":null,"id":26428861874275,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26a53d91130372d68c8567f5bcd9f5dd2be0e84a_06cadef4-eeb5-4c9c-bce9-4f3c51bb35c0.webp?v=1764302108"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26a53d91130372d68c8567f5bcd9f5dd2be0e84a_06cadef4-eeb5-4c9c-bce9-4f3c51bb35c0.webp?v=1764302108","width":2000},{"alt":null,"id":26428862857315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2e7163f62e3db37d660e315db5af92af1b169f0_431beb2d-0e5d-492a-b822-5784f105e9bb.webp?v=1764302108"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2e7163f62e3db37d660e315db5af92af1b169f0_431beb2d-0e5d-492a-b822-5784f105e9bb.webp?v=1764302108","width":2000},{"alt":null,"id":27851625365603,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2e7163f62e3db37d660e315db5af92af1b169f0_c7ab9f5e-1c52-49a5-81cc-2ea1e7d1b8e1.webp?v=1784715115"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2e7163f62e3db37d660e315db5af92af1b169f0_c7ab9f5e-1c52-49a5-81cc-2ea1e7d1b8e1.webp?v=1784715115","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43861737603171,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012600G-BIR01","requires_shipping":true,"taxable":true,"featured_image":{"id":36347770077283,"product_id":7931782955107,"position":5,"created_at":"2026-07-22T18:11:53+08:00","updated_at":"2026-07-22T18:11:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2e7163f62e3db37d660e315db5af92af1b169f0_c7ab9f5e-1c52-49a5-81cc-2ea1e7d1b8e1.webp?v=1784715115","variant_ids":[43861737603171]},"available":true,"name":"iPhone 13 Clear (MagSafe 兼容) 產房 • 廢料棲息地 鯨魚:海洋的長老 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012600G-BIR01","featured_media":{"alt":null,"id":27851625365603,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2e7163f62e3db37d660e315db5af92af1b169f0_c7ab9f5e-1c52-49a5-81cc-2ea1e7d1b8e1.webp?v=1784715115"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861737635939,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"MCN012600H-BIR01","requires_shipping":true,"taxable":true,"featured_image":{"id":34864442966115,"product_id":7931782955107,"position":3,"created_at":"2025-11-28T11:55:06+08:00","updated_at":"2025-11-28T11:55:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26a53d91130372d68c8567f5bcd9f5dd2be0e84a_06cadef4-eeb5-4c9c-bce9-4f3c51bb35c0.webp?v=1764302108","variant_ids":[43861737635939]},"available":true,"name":"iPhone 13 Clear (MagSafe 兼容) 產房 • 廢料棲息地 鯨魚:海洋的長老 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012600H-BIR01","featured_media":{"alt":null,"id":26428861874275,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26a53d91130372d68c8567f5bcd9f5dd2be0e84a_06cadef4-eeb5-4c9c-bce9-4f3c51bb35c0.webp?v=1764302108"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43861737603171,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012600G-BIR01","requires_shipping":true,"taxable":true,"featured_image":{"id":36347770077283,"product_id":7931782955107,"position":5,"created_at":"2026-07-22T18:11:53+08:00","updated_at":"2026-07-22T18:11:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2e7163f62e3db37d660e315db5af92af1b169f0_c7ab9f5e-1c52-49a5-81cc-2ea1e7d1b8e1.webp?v=1784715115","variant_ids":[43861737603171]},"available":true,"name":"iPhone 13 Clear (MagSafe 兼容) 產房 • 廢料棲息地 鯨魚:海洋的長老 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012600G-BIR01","featured_media":{"alt":null,"id":27851625365603,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2e7163f62e3db37d660e315db5af92af1b169f0_c7ab9f5e-1c52-49a5-81cc-2ea1e7d1b8e1.webp?v=1784715115"}},"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: "停產" }