$product = {"id":7729049960547,"title":"【合圖用】iPhone 16 Pro 犀牛盾JellyTint (相機按鈕) 透明手機殼","handle":"iphone-16-pro-jellytint-with-capture-button-for-merge","description":null,"published_at":"2025-02-06T14:05:49+08:00","created_at":"2025-02-05T17:17:43+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["brand-Apple","bumper-for-merge","device-iPhone 16 Pro","reseller-jellytint-with-capture-button","type-jellytint-with-capture-button"],"price":108000,"price_min":108000,"price_max":108000,"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":43157701787747,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"JTB013270H-","requires_shipping":true,"taxable":true,"featured_image":{"id":33338984824931,"product_id":7729049960547,"position":4,"created_at":"2025-02-05T17:17:46+08:00","updated_at":"2025-02-05T17:17:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c422a95611da007a559d6b132412baf3d65082e6_213be2ba-7bbf-42a7-bfc8-aca32605e0cd.webp?v=1738747068","variant_ids":[43157701787747]},"available":true,"name":"【合圖用】iPhone 16 Pro 犀牛盾JellyTint (相機按鈕) 透明手機殼 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013270H-","featured_media":{"alt":null,"id":25255832551523,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c422a95611da007a559d6b132412baf3d65082e6_213be2ba-7bbf-42a7-bfc8-aca32605e0cd.webp?v=1738747068"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43157701820515,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"JTB013270I-","requires_shipping":true,"taxable":true,"featured_image":{"id":33338984857699,"product_id":7729049960547,"position":3,"created_at":"2025-02-05T17:17:45+08:00","updated_at":"2025-02-05T17:17:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d3b440665778807d209d208f77b3f1ec36d025c_924013d5-e721-4432-b5fb-5e2b79048b18.webp?v=1738747068","variant_ids":[43157701820515]},"available":true,"name":"【合圖用】iPhone 16 Pro 犀牛盾JellyTint (相機按鈕) 透明手機殼 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013270I-","featured_media":{"alt":null,"id":25255832453219,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d3b440665778807d209d208f77b3f1ec36d025c_924013d5-e721-4432-b5fb-5e2b79048b18.webp?v=1738747068"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43157701853283,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"JTB013270J-","requires_shipping":true,"taxable":true,"featured_image":{"id":33338984333411,"product_id":7729049960547,"position":1,"created_at":"2025-02-05T17:17:44+08:00","updated_at":"2025-02-05T17:17:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe426d635516629fbae24ea6c3c9e29e376d2e6_f54b8d2c-399b-4138-9153-6eb10d81b505.webp?v=1738747067","variant_ids":[43157701853283]},"available":true,"name":"【合圖用】iPhone 16 Pro 犀牛盾JellyTint (相機按鈕) 透明手機殼 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013270J-","featured_media":{"alt":null,"id":25255831863395,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe426d635516629fbae24ea6c3c9e29e376d2e6_f54b8d2c-399b-4138-9153-6eb10d81b505.webp?v=1738747067"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43157701886051,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"JTB013270G-","requires_shipping":true,"taxable":true,"featured_image":{"id":33338984661091,"product_id":7729049960547,"position":2,"created_at":"2025-02-05T17:17:44+08:00","updated_at":"2025-02-05T17:17:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/554ea052a9e2ec3deebb80f085ef97c79ae106de_ddaf8ca0-d52c-44f9-b7f7-3d7c079f745d.webp?v=1738747067","variant_ids":[43157701886051]},"available":true,"name":"【合圖用】iPhone 16 Pro 犀牛盾JellyTint (相機按鈕) 透明手機殼 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013270G-","featured_media":{"alt":null,"id":25255832223843,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/554ea052a9e2ec3deebb80f085ef97c79ae106de_ddaf8ca0-d52c-44f9-b7f7-3d7c079f745d.webp?v=1738747067"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe426d635516629fbae24ea6c3c9e29e376d2e6_f54b8d2c-399b-4138-9153-6eb10d81b505.webp?v=1738747067","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/554ea052a9e2ec3deebb80f085ef97c79ae106de_ddaf8ca0-d52c-44f9-b7f7-3d7c079f745d.webp?v=1738747067","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d3b440665778807d209d208f77b3f1ec36d025c_924013d5-e721-4432-b5fb-5e2b79048b18.webp?v=1738747068","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c422a95611da007a559d6b132412baf3d65082e6_213be2ba-7bbf-42a7-bfc8-aca32605e0cd.webp?v=1738747068"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe426d635516629fbae24ea6c3c9e29e376d2e6_f54b8d2c-399b-4138-9153-6eb10d81b505.webp?v=1738747067","options":["color"],"media":[{"alt":null,"id":25255831863395,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe426d635516629fbae24ea6c3c9e29e376d2e6_f54b8d2c-399b-4138-9153-6eb10d81b505.webp?v=1738747067"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe426d635516629fbae24ea6c3c9e29e376d2e6_f54b8d2c-399b-4138-9153-6eb10d81b505.webp?v=1738747067","width":2000},{"alt":null,"id":25255832223843,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/554ea052a9e2ec3deebb80f085ef97c79ae106de_ddaf8ca0-d52c-44f9-b7f7-3d7c079f745d.webp?v=1738747067"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/554ea052a9e2ec3deebb80f085ef97c79ae106de_ddaf8ca0-d52c-44f9-b7f7-3d7c079f745d.webp?v=1738747067","width":2000},{"alt":null,"id":25255832453219,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d3b440665778807d209d208f77b3f1ec36d025c_924013d5-e721-4432-b5fb-5e2b79048b18.webp?v=1738747068"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d3b440665778807d209d208f77b3f1ec36d025c_924013d5-e721-4432-b5fb-5e2b79048b18.webp?v=1738747068","width":2000},{"alt":null,"id":25255832551523,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c422a95611da007a559d6b132412baf3d65082e6_213be2ba-7bbf-42a7-bfc8-aca32605e0cd.webp?v=1738747068"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c422a95611da007a559d6b132412baf3d65082e6_213be2ba-7bbf-42a7-bfc8-aca32605e0cd.webp?v=1738747068","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43157701787747,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"JTB013270H-","requires_shipping":true,"taxable":true,"featured_image":{"id":33338984824931,"product_id":7729049960547,"position":4,"created_at":"2025-02-05T17:17:46+08:00","updated_at":"2025-02-05T17:17:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c422a95611da007a559d6b132412baf3d65082e6_213be2ba-7bbf-42a7-bfc8-aca32605e0cd.webp?v=1738747068","variant_ids":[43157701787747]},"available":true,"name":"【合圖用】iPhone 16 Pro 犀牛盾JellyTint (相機按鈕) 透明手機殼 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013270H-","featured_media":{"alt":null,"id":25255832551523,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c422a95611da007a559d6b132412baf3d65082e6_213be2ba-7bbf-42a7-bfc8-aca32605e0cd.webp?v=1738747068"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43157701820515,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"JTB013270I-","requires_shipping":true,"taxable":true,"featured_image":{"id":33338984857699,"product_id":7729049960547,"position":3,"created_at":"2025-02-05T17:17:45+08:00","updated_at":"2025-02-05T17:17:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d3b440665778807d209d208f77b3f1ec36d025c_924013d5-e721-4432-b5fb-5e2b79048b18.webp?v=1738747068","variant_ids":[43157701820515]},"available":true,"name":"【合圖用】iPhone 16 Pro 犀牛盾JellyTint (相機按鈕) 透明手機殼 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013270I-","featured_media":{"alt":null,"id":25255832453219,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d3b440665778807d209d208f77b3f1ec36d025c_924013d5-e721-4432-b5fb-5e2b79048b18.webp?v=1738747068"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43157701853283,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"JTB013270J-","requires_shipping":true,"taxable":true,"featured_image":{"id":33338984333411,"product_id":7729049960547,"position":1,"created_at":"2025-02-05T17:17:44+08:00","updated_at":"2025-02-05T17:17:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe426d635516629fbae24ea6c3c9e29e376d2e6_f54b8d2c-399b-4138-9153-6eb10d81b505.webp?v=1738747067","variant_ids":[43157701853283]},"available":true,"name":"【合圖用】iPhone 16 Pro 犀牛盾JellyTint (相機按鈕) 透明手機殼 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013270J-","featured_media":{"alt":null,"id":25255831863395,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe426d635516629fbae24ea6c3c9e29e376d2e6_f54b8d2c-399b-4138-9153-6eb10d81b505.webp?v=1738747067"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43157701886051,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"JTB013270G-","requires_shipping":true,"taxable":true,"featured_image":{"id":33338984661091,"product_id":7729049960547,"position":2,"created_at":"2025-02-05T17:17:44+08:00","updated_at":"2025-02-05T17:17:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/554ea052a9e2ec3deebb80f085ef97c79ae106de_ddaf8ca0-d52c-44f9-b7f7-3d7c079f745d.webp?v=1738747067","variant_ids":[43157701886051]},"available":true,"name":"【合圖用】iPhone 16 Pro 犀牛盾JellyTint (相機按鈕) 透明手機殼 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013270G-","featured_media":{"alt":null,"id":25255832223843,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/554ea052a9e2ec3deebb80f085ef97c79ae106de_ddaf8ca0-d52c-44f9-b7f7-3d7c079f745d.webp?v=1738747067"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43157701787747,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"JTB013270H-","requires_shipping":true,"taxable":true,"featured_image":{"id":33338984824931,"product_id":7729049960547,"position":4,"created_at":"2025-02-05T17:17:46+08:00","updated_at":"2025-02-05T17:17:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c422a95611da007a559d6b132412baf3d65082e6_213be2ba-7bbf-42a7-bfc8-aca32605e0cd.webp?v=1738747068","variant_ids":[43157701787747]},"available":true,"name":"【合圖用】iPhone 16 Pro 犀牛盾JellyTint (相機按鈕) 透明手機殼 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013270H-","featured_media":{"alt":null,"id":25255832551523,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c422a95611da007a559d6b132412baf3d65082e6_213be2ba-7bbf-42a7-bfc8-aca32605e0cd.webp?v=1738747068"}},"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: "停產" }