$product = {"id":7228074950755,"title":"iPhone 13 JellyTint (MagSafe 兼容)","handle":"iphone-13-jellytint-magsafe-bumper-featured-product","description":"","published_at":"2024-03-14T15:12:45+08:00","created_at":"2024-03-14T15:12:53+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"JellyTint MagSafe","tags":["20%","20240304-reseller-\u003ereplace_to-","25%","30%","35%","40%","45%","45degree","50%","B2B","brand-Apple","device-iPhone 13","discountable-item","dropdownCollection-jellytint","dropdownDevice-Apple iPhone 13","featured-product","member","quickbuy","reseller","reseller-jellytint-magsafe","reseller-jellytint_magsafe","Top50","type-jellytint-magsafe"],"price":128000,"price_min":128000,"price_max":128000,"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":41419901272163,"title":"酷墨灰","option1":"酷墨灰","option2":null,"option3":null,"sku":"MCN012600G","requires_shipping":true,"taxable":true,"featured_image":{"id":31068522315875,"product_id":7228074950755,"position":4,"created_at":"2024-03-14T15:12:54+08:00","updated_at":"2024-03-14T15:12:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/b6d3d69289b4867c1e313fe7ce2eea2114c6a852_8b5c5803-d12e-475a-8ff3-77c4d8bf9626.webp?v=1710400374","variant_ids":[41419901272163]},"available":true,"name":"iPhone 13 JellyTint (MagSafe 兼容) - 酷墨灰","public_title":"酷墨灰","options":["酷墨灰"],"price":128000,"weight":1280,"compare_at_price":null,"inventory_quantity":999999991,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366131074","featured_media":{"alt":null,"id":23448660246627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/b6d3d69289b4867c1e313fe7ce2eea2114c6a852_8b5c5803-d12e-475a-8ff3-77c4d8bf9626.webp?v=1710400374"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41419901304931,"title":"憂墨綠","option1":"憂墨綠","option2":null,"option3":null,"sku":"MCN012600H","requires_shipping":true,"taxable":true,"featured_image":{"id":31068522283107,"product_id":7228074950755,"position":3,"created_at":"2024-03-14T15:12:54+08:00","updated_at":"2024-03-14T15:12:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/6ac432792b34ffd8784457a9bec599dd2b0befaf_fa2d128c-1e59-49fb-a034-3bfef9f71578.webp?v=1710400374","variant_ids":[41419901304931]},"available":true,"name":"iPhone 13 JellyTint (MagSafe 兼容) - 憂墨綠","public_title":"憂墨綠","options":["憂墨綠"],"price":128000,"weight":1280,"compare_at_price":null,"inventory_quantity":999999992,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366131081","featured_media":{"alt":null,"id":23448660213859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/6ac432792b34ffd8784457a9bec599dd2b0befaf_fa2d128c-1e59-49fb-a034-3bfef9f71578.webp?v=1710400374"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41419901337699,"title":"激光藍","option1":"激光藍","option2":null,"option3":null,"sku":"MCN012600I","requires_shipping":true,"taxable":true,"featured_image":{"id":31068522217571,"product_id":7228074950755,"position":2,"created_at":"2024-03-14T15:12:54+08:00","updated_at":"2024-03-14T15:12:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/1ef12f4d8f5dc84f74265f66037faa87d54929a2_062cc41c-26d7-46df-8b15-1be39aac0ca8.webp?v=1710400374","variant_ids":[41419901337699]},"available":true,"name":"iPhone 13 JellyTint (MagSafe 兼容) - 激光藍","public_title":"激光藍","options":["激光藍"],"price":128000,"weight":1280,"compare_at_price":null,"inventory_quantity":999999996,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366131098","featured_media":{"alt":null,"id":23448660181091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/1ef12f4d8f5dc84f74265f66037faa87d54929a2_062cc41c-26d7-46df-8b15-1be39aac0ca8.webp?v=1710400374"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41419901370467,"title":"粉漾桃","option1":"粉漾桃","option2":null,"option3":null,"sku":"MCN012600J","requires_shipping":true,"taxable":true,"featured_image":{"id":31068522184803,"product_id":7228074950755,"position":1,"created_at":"2024-03-14T15:12:54+08:00","updated_at":"2024-03-14T15:12:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/3d25f23351ba47277bc74bec0089663ef2374c32_502fe980-f54a-406c-94b6-5eb2863c5659.webp?v=1710400374","variant_ids":[41419901370467]},"available":true,"name":"iPhone 13 JellyTint (MagSafe 兼容) - 粉漾桃","public_title":"粉漾桃","options":["粉漾桃"],"price":128000,"weight":1280,"compare_at_price":null,"inventory_quantity":999999995,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366131104","featured_media":{"alt":null,"id":23448660148323,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/3d25f23351ba47277bc74bec0089663ef2374c32_502fe980-f54a-406c-94b6-5eb2863c5659.webp?v=1710400374"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/3d25f23351ba47277bc74bec0089663ef2374c32_502fe980-f54a-406c-94b6-5eb2863c5659.webp?v=1710400374","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/1ef12f4d8f5dc84f74265f66037faa87d54929a2_062cc41c-26d7-46df-8b15-1be39aac0ca8.webp?v=1710400374","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/6ac432792b34ffd8784457a9bec599dd2b0befaf_fa2d128c-1e59-49fb-a034-3bfef9f71578.webp?v=1710400374","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/b6d3d69289b4867c1e313fe7ce2eea2114c6a852_8b5c5803-d12e-475a-8ff3-77c4d8bf9626.webp?v=1710400374"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/3d25f23351ba47277bc74bec0089663ef2374c32_502fe980-f54a-406c-94b6-5eb2863c5659.webp?v=1710400374","options":["color"],"media":[{"alt":null,"id":23448660148323,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/3d25f23351ba47277bc74bec0089663ef2374c32_502fe980-f54a-406c-94b6-5eb2863c5659.webp?v=1710400374"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/3d25f23351ba47277bc74bec0089663ef2374c32_502fe980-f54a-406c-94b6-5eb2863c5659.webp?v=1710400374","width":2000},{"alt":null,"id":23448660181091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/1ef12f4d8f5dc84f74265f66037faa87d54929a2_062cc41c-26d7-46df-8b15-1be39aac0ca8.webp?v=1710400374"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/1ef12f4d8f5dc84f74265f66037faa87d54929a2_062cc41c-26d7-46df-8b15-1be39aac0ca8.webp?v=1710400374","width":2000},{"alt":null,"id":23448660213859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/6ac432792b34ffd8784457a9bec599dd2b0befaf_fa2d128c-1e59-49fb-a034-3bfef9f71578.webp?v=1710400374"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/6ac432792b34ffd8784457a9bec599dd2b0befaf_fa2d128c-1e59-49fb-a034-3bfef9f71578.webp?v=1710400374","width":2000},{"alt":null,"id":23448660246627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/b6d3d69289b4867c1e313fe7ce2eea2114c6a852_8b5c5803-d12e-475a-8ff3-77c4d8bf9626.webp?v=1710400374"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/b6d3d69289b4867c1e313fe7ce2eea2114c6a852_8b5c5803-d12e-475a-8ff3-77c4d8bf9626.webp?v=1710400374","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""}; $bumper = null; $variants = [{"id":41419901272163,"title":"酷墨灰","option1":"酷墨灰","option2":null,"option3":null,"sku":"MCN012600G","requires_shipping":true,"taxable":true,"featured_image":{"id":31068522315875,"product_id":7228074950755,"position":4,"created_at":"2024-03-14T15:12:54+08:00","updated_at":"2024-03-14T15:12:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/b6d3d69289b4867c1e313fe7ce2eea2114c6a852_8b5c5803-d12e-475a-8ff3-77c4d8bf9626.webp?v=1710400374","variant_ids":[41419901272163]},"available":true,"name":"iPhone 13 JellyTint (MagSafe 兼容) - 酷墨灰","public_title":"酷墨灰","options":["酷墨灰"],"price":128000,"weight":1280,"compare_at_price":null,"inventory_quantity":999999991,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366131074","featured_media":{"alt":null,"id":23448660246627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/b6d3d69289b4867c1e313fe7ce2eea2114c6a852_8b5c5803-d12e-475a-8ff3-77c4d8bf9626.webp?v=1710400374"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41419901304931,"title":"憂墨綠","option1":"憂墨綠","option2":null,"option3":null,"sku":"MCN012600H","requires_shipping":true,"taxable":true,"featured_image":{"id":31068522283107,"product_id":7228074950755,"position":3,"created_at":"2024-03-14T15:12:54+08:00","updated_at":"2024-03-14T15:12:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/6ac432792b34ffd8784457a9bec599dd2b0befaf_fa2d128c-1e59-49fb-a034-3bfef9f71578.webp?v=1710400374","variant_ids":[41419901304931]},"available":true,"name":"iPhone 13 JellyTint (MagSafe 兼容) - 憂墨綠","public_title":"憂墨綠","options":["憂墨綠"],"price":128000,"weight":1280,"compare_at_price":null,"inventory_quantity":999999992,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366131081","featured_media":{"alt":null,"id":23448660213859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/6ac432792b34ffd8784457a9bec599dd2b0befaf_fa2d128c-1e59-49fb-a034-3bfef9f71578.webp?v=1710400374"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41419901337699,"title":"激光藍","option1":"激光藍","option2":null,"option3":null,"sku":"MCN012600I","requires_shipping":true,"taxable":true,"featured_image":{"id":31068522217571,"product_id":7228074950755,"position":2,"created_at":"2024-03-14T15:12:54+08:00","updated_at":"2024-03-14T15:12:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/1ef12f4d8f5dc84f74265f66037faa87d54929a2_062cc41c-26d7-46df-8b15-1be39aac0ca8.webp?v=1710400374","variant_ids":[41419901337699]},"available":true,"name":"iPhone 13 JellyTint (MagSafe 兼容) - 激光藍","public_title":"激光藍","options":["激光藍"],"price":128000,"weight":1280,"compare_at_price":null,"inventory_quantity":999999996,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366131098","featured_media":{"alt":null,"id":23448660181091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/1ef12f4d8f5dc84f74265f66037faa87d54929a2_062cc41c-26d7-46df-8b15-1be39aac0ca8.webp?v=1710400374"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41419901370467,"title":"粉漾桃","option1":"粉漾桃","option2":null,"option3":null,"sku":"MCN012600J","requires_shipping":true,"taxable":true,"featured_image":{"id":31068522184803,"product_id":7228074950755,"position":1,"created_at":"2024-03-14T15:12:54+08:00","updated_at":"2024-03-14T15:12:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/3d25f23351ba47277bc74bec0089663ef2374c32_502fe980-f54a-406c-94b6-5eb2863c5659.webp?v=1710400374","variant_ids":[41419901370467]},"available":true,"name":"iPhone 13 JellyTint (MagSafe 兼容) - 粉漾桃","public_title":"粉漾桃","options":["粉漾桃"],"price":128000,"weight":1280,"compare_at_price":null,"inventory_quantity":999999995,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366131104","featured_media":{"alt":null,"id":23448660148323,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/3d25f23351ba47277bc74bec0089663ef2374c32_502fe980-f54a-406c-94b6-5eb2863c5659.webp?v=1710400374"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41419901272163,"title":"酷墨灰","option1":"酷墨灰","option2":null,"option3":null,"sku":"MCN012600G","requires_shipping":true,"taxable":true,"featured_image":{"id":31068522315875,"product_id":7228074950755,"position":4,"created_at":"2024-03-14T15:12:54+08:00","updated_at":"2024-03-14T15:12:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/b6d3d69289b4867c1e313fe7ce2eea2114c6a852_8b5c5803-d12e-475a-8ff3-77c4d8bf9626.webp?v=1710400374","variant_ids":[41419901272163]},"available":true,"name":"iPhone 13 JellyTint (MagSafe 兼容) - 酷墨灰","public_title":"酷墨灰","options":["酷墨灰"],"price":128000,"weight":1280,"compare_at_price":null,"inventory_quantity":999999991,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366131074","featured_media":{"alt":null,"id":23448660246627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/b6d3d69289b4867c1e313fe7ce2eea2114c6a852_8b5c5803-d12e-475a-8ff3-77c4d8bf9626.webp?v=1710400374"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; var sellingStatus; $device_handle = null 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 storedData = sessionStorage.getItem('sellingStatusData'); try { sellingStatusData = JSON.parse(storedData) } catch (error) { console.error('JSON.parse Error', error) sellingStatusData = null } $(document).ready(function() { handleSellingStatus($defaultVariant.sku, sellingStatusData); }); function handleSellingStatus(currentSku, sellingStatusData) { const sellingStatusElement = document.getElementById('selling-status') const addToCartButton = document.getElementById('AddToCart-product-template') const currentProductSku = currentSku.replace(/-(.*)$/, '-') if ($variants) { const matchSellingStatusProduct = sellingStatusData.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, sellingStatusData) }); });
// 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: "停產" }