$product = {"id":7164414328931,"title":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 開心小花","handle":"iphone-15-pro-max-jellytint-magsafe-pl65","description":null,"published_at":"2024-01-30T23:28:31+08:00","created_at":"2024-01-30T23:28:14+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師JellyTint專區-Snoopy 史努比","tags":["20%","20240304-reseller-\u003ereplace_to-","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-snoopy","device-iPhone 15 Pro Max","merge","reseller-jellytint-snoopy","Top50","type-jellytint"],"price":168000,"price_min":168000,"price_max":168000,"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":41237524709475,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012980G-PL65","requires_shipping":true,"taxable":true,"featured_image":{"id":30868910702691,"product_id":7164414328931,"position":2,"created_at":"2024-01-30T23:28:20+08:00","updated_at":"2024-01-30T23:28:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64c817341ae3ae81df10cadbf9731b6c5378535f_5830eaf7-6b67-462d-95e9-714b3fc9e0d2.webp?v=1706628500","variant_ids":[41237524709475]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 開心小花 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":168000,"weight":1680,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980G-PL65","featured_media":{"alt":null,"id":23240301641827,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64c817341ae3ae81df10cadbf9731b6c5378535f_5830eaf7-6b67-462d-95e9-714b3fc9e0d2.webp?v=1706628500"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41237524775011,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012980I-PL65","requires_shipping":true,"taxable":true,"featured_image":{"id":30868912210019,"product_id":7164414328931,"position":4,"created_at":"2024-01-30T23:28:24+08:00","updated_at":"2024-01-30T23:28:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa0124a995bb7004a8bf8e8f816a768a63ef4ae_ee4f8c8e-42ac-4e30-ba7b-0bc931a2755d.webp?v=1706628504","variant_ids":[41237524775011]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 開心小花 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":168000,"weight":1680,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980I-PL65","featured_media":{"alt":null,"id":23240303149155,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa0124a995bb7004a8bf8e8f816a768a63ef4ae_ee4f8c8e-42ac-4e30-ba7b-0bc931a2755d.webp?v=1706628504"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41237524807779,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012980J-PL65","requires_shipping":true,"taxable":true,"featured_image":{"id":30868912865379,"product_id":7164414328931,"position":5,"created_at":"2024-01-30T23:28:27+08:00","updated_at":"2024-01-30T23:28:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1005491f9071dded83dde93d6f30856072f46cc_2ad231ab-753a-4c2a-a6ce-9f5a72087b9d.webp?v=1706628507","variant_ids":[41237524807779]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 開心小花 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":168000,"weight":1680,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980J-PL65","featured_media":{"alt":null,"id":23240303804515,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1005491f9071dded83dde93d6f30856072f46cc_2ad231ab-753a-4c2a-a6ce-9f5a72087b9d.webp?v=1706628507"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d10233f3ed39e4e96babe10c1822e1d3cb4eebad_9430030b-4129-49cf-89b7-7039138ff4a4.webp?v=1706628497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64c817341ae3ae81df10cadbf9731b6c5378535f_5830eaf7-6b67-462d-95e9-714b3fc9e0d2.webp?v=1706628500","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d25dbfd5fe8a45f2b4dc4f5eb9568d1a6fd1ceb_5ca17d4a-f690-4dd2-ae39-cfabe34918cb.webp?v=1706628502","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa0124a995bb7004a8bf8e8f816a768a63ef4ae_ee4f8c8e-42ac-4e30-ba7b-0bc931a2755d.webp?v=1706628504","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1005491f9071dded83dde93d6f30856072f46cc_2ad231ab-753a-4c2a-a6ce-9f5a72087b9d.webp?v=1706628507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c954b5551d808e2d037848bca7125e418b09f660_b6c3b924-b0b3-40a0-a709-0811c17eedd0.webp?v=1706628510"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d10233f3ed39e4e96babe10c1822e1d3cb4eebad_9430030b-4129-49cf-89b7-7039138ff4a4.webp?v=1706628497","options":["color"],"media":[{"alt":null,"id":23240300789859,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d10233f3ed39e4e96babe10c1822e1d3cb4eebad_9430030b-4129-49cf-89b7-7039138ff4a4.webp?v=1706628497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d10233f3ed39e4e96babe10c1822e1d3cb4eebad_9430030b-4129-49cf-89b7-7039138ff4a4.webp?v=1706628497","width":2000},{"alt":null,"id":23240301641827,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64c817341ae3ae81df10cadbf9731b6c5378535f_5830eaf7-6b67-462d-95e9-714b3fc9e0d2.webp?v=1706628500"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64c817341ae3ae81df10cadbf9731b6c5378535f_5830eaf7-6b67-462d-95e9-714b3fc9e0d2.webp?v=1706628500","width":2000},{"alt":null,"id":23240302362723,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d25dbfd5fe8a45f2b4dc4f5eb9568d1a6fd1ceb_5ca17d4a-f690-4dd2-ae39-cfabe34918cb.webp?v=1706628502"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d25dbfd5fe8a45f2b4dc4f5eb9568d1a6fd1ceb_5ca17d4a-f690-4dd2-ae39-cfabe34918cb.webp?v=1706628502","width":2000},{"alt":null,"id":23240303149155,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa0124a995bb7004a8bf8e8f816a768a63ef4ae_ee4f8c8e-42ac-4e30-ba7b-0bc931a2755d.webp?v=1706628504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa0124a995bb7004a8bf8e8f816a768a63ef4ae_ee4f8c8e-42ac-4e30-ba7b-0bc931a2755d.webp?v=1706628504","width":2000},{"alt":null,"id":23240303804515,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1005491f9071dded83dde93d6f30856072f46cc_2ad231ab-753a-4c2a-a6ce-9f5a72087b9d.webp?v=1706628507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1005491f9071dded83dde93d6f30856072f46cc_2ad231ab-753a-4c2a-a6ce-9f5a72087b9d.webp?v=1706628507","width":2000},{"alt":null,"id":23240304689251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c954b5551d808e2d037848bca7125e418b09f660_b6c3b924-b0b3-40a0-a709-0811c17eedd0.webp?v=1706628510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c954b5551d808e2d037848bca7125e418b09f660_b6c3b924-b0b3-40a0-a709-0811c17eedd0.webp?v=1706628510","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41237524709475,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012980G-PL65","requires_shipping":true,"taxable":true,"featured_image":{"id":30868910702691,"product_id":7164414328931,"position":2,"created_at":"2024-01-30T23:28:20+08:00","updated_at":"2024-01-30T23:28:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64c817341ae3ae81df10cadbf9731b6c5378535f_5830eaf7-6b67-462d-95e9-714b3fc9e0d2.webp?v=1706628500","variant_ids":[41237524709475]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 開心小花 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":168000,"weight":1680,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980G-PL65","featured_media":{"alt":null,"id":23240301641827,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64c817341ae3ae81df10cadbf9731b6c5378535f_5830eaf7-6b67-462d-95e9-714b3fc9e0d2.webp?v=1706628500"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41237524775011,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012980I-PL65","requires_shipping":true,"taxable":true,"featured_image":{"id":30868912210019,"product_id":7164414328931,"position":4,"created_at":"2024-01-30T23:28:24+08:00","updated_at":"2024-01-30T23:28:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa0124a995bb7004a8bf8e8f816a768a63ef4ae_ee4f8c8e-42ac-4e30-ba7b-0bc931a2755d.webp?v=1706628504","variant_ids":[41237524775011]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 開心小花 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":168000,"weight":1680,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980I-PL65","featured_media":{"alt":null,"id":23240303149155,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa0124a995bb7004a8bf8e8f816a768a63ef4ae_ee4f8c8e-42ac-4e30-ba7b-0bc931a2755d.webp?v=1706628504"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41237524807779,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012980J-PL65","requires_shipping":true,"taxable":true,"featured_image":{"id":30868912865379,"product_id":7164414328931,"position":5,"created_at":"2024-01-30T23:28:27+08:00","updated_at":"2024-01-30T23:28:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1005491f9071dded83dde93d6f30856072f46cc_2ad231ab-753a-4c2a-a6ce-9f5a72087b9d.webp?v=1706628507","variant_ids":[41237524807779]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 開心小花 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":168000,"weight":1680,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980J-PL65","featured_media":{"alt":null,"id":23240303804515,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1005491f9071dded83dde93d6f30856072f46cc_2ad231ab-753a-4c2a-a6ce-9f5a72087b9d.webp?v=1706628507"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41237524709475,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012980G-PL65","requires_shipping":true,"taxable":true,"featured_image":{"id":30868910702691,"product_id":7164414328931,"position":2,"created_at":"2024-01-30T23:28:20+08:00","updated_at":"2024-01-30T23:28:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64c817341ae3ae81df10cadbf9731b6c5378535f_5830eaf7-6b67-462d-95e9-714b3fc9e0d2.webp?v=1706628500","variant_ids":[41237524709475]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 開心小花 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":168000,"weight":1680,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980G-PL65","featured_media":{"alt":null,"id":23240301641827,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64c817341ae3ae81df10cadbf9731b6c5378535f_5830eaf7-6b67-462d-95e9-714b3fc9e0d2.webp?v=1706628500"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }