$product = {"id":7222421979235,"title":"iPhone 13 Clear (MagSafe 兼容) 懶散兔與啾先生 蒲公英","handle":"iphone-13-jellytint-magsafe-ec36","description":null,"published_at":"2024-03-15T15:00:11+08:00","created_at":"2024-03-13T14:50:24+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-bylobster","device-iPhone 13","merge","reseller-bylobster"],"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":41403850096739,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012600G-EC36","requires_shipping":true,"taxable":true,"featured_image":{"id":35448651481187,"product_id":7222421979235,"position":6,"created_at":"2026-03-13T10:05:13+08:00","updated_at":"2026-03-13T10:05:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2885ab637bc26507a70946c53d4d5684547bbda_6b7d317a-a5c1-4b99-b8de-22ddb35aeae1.webp?v=1773367515","variant_ids":[41403850096739]},"available":true,"name":"iPhone 13 Clear (MagSafe 兼容) 懶散兔與啾先生 蒲公英 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012600G-EC36","featured_media":{"alt":null,"id":26984479817827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2885ab637bc26507a70946c53d4d5684547bbda_6b7d317a-a5c1-4b99-b8de-22ddb35aeae1.webp?v=1773367515"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-260-EC36_7be45dc5-fb81-429e-81dd-6d5fa778548d.png?v=1710312626","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd54363e2015de2ae95e3df3cc305d6b6fdf10b9.webp?v=1773367026","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2885ab637bc26507a70946c53d4d5684547bbda.webp?v=1773367027","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3baa3feeba4742ba717a23961c93f28284c5a551.webp?v=1773367027","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd54363e2015de2ae95e3df3cc305d6b6fdf10b9_68e7494f-d61d-4a5a-af4a-8212400cc93b.webp?v=1773367514","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2885ab637bc26507a70946c53d4d5684547bbda_6b7d317a-a5c1-4b99-b8de-22ddb35aeae1.webp?v=1773367515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3baa3feeba4742ba717a23961c93f28284c5a551_f34df140-3c90-40e0-87c6-3ed4fc450905.webp?v=1773367515"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-260-EC36_7be45dc5-fb81-429e-81dd-6d5fa778548d.png?v=1710312626","options":["color"],"media":[{"alt":null,"id":23438475919459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-260-EC36_7be45dc5-fb81-429e-81dd-6d5fa778548d.png?v=1710312626"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-260-EC36_7be45dc5-fb81-429e-81dd-6d5fa778548d.png?v=1710312626","width":2000},{"alt":null,"id":26984405663843,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd54363e2015de2ae95e3df3cc305d6b6fdf10b9.webp?v=1773367026"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd54363e2015de2ae95e3df3cc305d6b6fdf10b9.webp?v=1773367026","width":2000},{"alt":null,"id":26984405893219,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2885ab637bc26507a70946c53d4d5684547bbda.webp?v=1773367027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2885ab637bc26507a70946c53d4d5684547bbda.webp?v=1773367027","width":2000},{"alt":null,"id":26984406253667,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3baa3feeba4742ba717a23961c93f28284c5a551.webp?v=1773367027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3baa3feeba4742ba717a23961c93f28284c5a551.webp?v=1773367027","width":2000},{"alt":null,"id":26984479457379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd54363e2015de2ae95e3df3cc305d6b6fdf10b9_68e7494f-d61d-4a5a-af4a-8212400cc93b.webp?v=1773367514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd54363e2015de2ae95e3df3cc305d6b6fdf10b9_68e7494f-d61d-4a5a-af4a-8212400cc93b.webp?v=1773367514","width":2000},{"alt":null,"id":26984479817827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2885ab637bc26507a70946c53d4d5684547bbda_6b7d317a-a5c1-4b99-b8de-22ddb35aeae1.webp?v=1773367515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2885ab637bc26507a70946c53d4d5684547bbda_6b7d317a-a5c1-4b99-b8de-22ddb35aeae1.webp?v=1773367515","width":2000},{"alt":null,"id":26984480145507,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3baa3feeba4742ba717a23961c93f28284c5a551_f34df140-3c90-40e0-87c6-3ed4fc450905.webp?v=1773367515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3baa3feeba4742ba717a23961c93f28284c5a551_f34df140-3c90-40e0-87c6-3ed4fc450905.webp?v=1773367515","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41403850096739,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012600G-EC36","requires_shipping":true,"taxable":true,"featured_image":{"id":35448651481187,"product_id":7222421979235,"position":6,"created_at":"2026-03-13T10:05:13+08:00","updated_at":"2026-03-13T10:05:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2885ab637bc26507a70946c53d4d5684547bbda_6b7d317a-a5c1-4b99-b8de-22ddb35aeae1.webp?v=1773367515","variant_ids":[41403850096739]},"available":true,"name":"iPhone 13 Clear (MagSafe 兼容) 懶散兔與啾先生 蒲公英 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012600G-EC36","featured_media":{"alt":null,"id":26984479817827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2885ab637bc26507a70946c53d4d5684547bbda_6b7d317a-a5c1-4b99-b8de-22ddb35aeae1.webp?v=1773367515"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41403850096739,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012600G-EC36","requires_shipping":true,"taxable":true,"featured_image":{"id":35448651481187,"product_id":7222421979235,"position":6,"created_at":"2026-03-13T10:05:13+08:00","updated_at":"2026-03-13T10:05:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2885ab637bc26507a70946c53d4d5684547bbda_6b7d317a-a5c1-4b99-b8de-22ddb35aeae1.webp?v=1773367515","variant_ids":[41403850096739]},"available":true,"name":"iPhone 13 Clear (MagSafe 兼容) 懶散兔與啾先生 蒲公英 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012600G-EC36","featured_media":{"alt":null,"id":26984479817827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2885ab637bc26507a70946c53d4d5684547bbda_6b7d317a-a5c1-4b99-b8de-22ddb35aeae1.webp?v=1773367515"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }