$product = {"id":7164390047843,"title":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 Pro - 【聯名設計款】 - Look - 大自然的傑作(錫安國家公園)","handle":"iphone-14-pro-jellytint-magsafe-af14","description":null,"published_at":"2024-01-31T11:12:09+08:00","created_at":"2024-01-30T22:53:48+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師JellyTint專區-Look","tags":["20%","20240304-reseller-\u003ereplace_to-","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 14 Pro","merge","reseller-jellytint-look","Top50","type-jellytint"],"price":135000,"price_min":135000,"price_max":135000,"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":41237370732643,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012620G-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":30868725530723,"product_id":7164390047843,"position":4,"created_at":"2024-01-30T22:53:59+08:00","updated_at":"2024-01-30T22:53:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45ec1858dc3fffa6cc31d6f98772bb97ec59e4b_fc49b1bd-94c9-4a54-90a0-7ed2186a7959.webp?v=1706626439","variant_ids":[41237370732643]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 Pro - 【聯名設計款】 - Look - 大自然的傑作(錫安國家公園) - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":135000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012620G-AF14","featured_media":{"alt":null,"id":23240115519587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45ec1858dc3fffa6cc31d6f98772bb97ec59e4b_fc49b1bd-94c9-4a54-90a0-7ed2186a7959.webp?v=1706626439"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41237370765411,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"MCN012620H-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":30868724678755,"product_id":7164390047843,"position":3,"created_at":"2024-01-30T22:53:56+08:00","updated_at":"2024-01-30T22:53:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e79580d7b7d94e27d0f0dbdd3827b9f5aaac896_f33bfa05-bc0a-4049-baeb-01cdce485c05.webp?v=1706626436","variant_ids":[41237370765411]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 Pro - 【聯名設計款】 - Look - 大自然的傑作(錫安國家公園) - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":135000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012620H-AF14","featured_media":{"alt":null,"id":23240114667619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e79580d7b7d94e27d0f0dbdd3827b9f5aaac896_f33bfa05-bc0a-4049-baeb-01cdce485c05.webp?v=1706626436"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41237370798179,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012620I-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":30868723138659,"product_id":7164390047843,"position":1,"created_at":"2024-01-30T22:53:51+08:00","updated_at":"2024-01-30T22:53:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14fa84fb13b8a178be04aa13412a64473382b1d0_e6358c19-e763-4b56-9ec1-da234932af8d.webp?v=1706626431","variant_ids":[41237370798179]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 Pro - 【聯名設計款】 - Look - 大自然的傑作(錫安國家公園) - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":135000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012620I-AF14","featured_media":{"alt":null,"id":23240113127523,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14fa84fb13b8a178be04aa13412a64473382b1d0_e6358c19-e763-4b56-9ec1-da234932af8d.webp?v=1706626431"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41237370830947,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012620J-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":30868726186083,"product_id":7164390047843,"position":5,"created_at":"2024-01-30T22:54:02+08:00","updated_at":"2024-01-30T22:54:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208ca983fc1073c60de93624fb479688168ef060_d9e0dda2-982c-4cc7-b9ad-5991da35cb08.webp?v=1706626442","variant_ids":[41237370830947]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 Pro - 【聯名設計款】 - Look - 大自然的傑作(錫安國家公園) - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":135000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012620J-AF14","featured_media":{"alt":null,"id":23240116174947,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208ca983fc1073c60de93624fb479688168ef060_d9e0dda2-982c-4cc7-b9ad-5991da35cb08.webp?v=1706626442"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14fa84fb13b8a178be04aa13412a64473382b1d0_e6358c19-e763-4b56-9ec1-da234932af8d.webp?v=1706626431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f35cfbc94c6b8dcc84789717046c53aa0762ffea_07c05f64-ede5-41b7-9aa4-f9609b406be2.webp?v=1706626433","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e79580d7b7d94e27d0f0dbdd3827b9f5aaac896_f33bfa05-bc0a-4049-baeb-01cdce485c05.webp?v=1706626436","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45ec1858dc3fffa6cc31d6f98772bb97ec59e4b_fc49b1bd-94c9-4a54-90a0-7ed2186a7959.webp?v=1706626439","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208ca983fc1073c60de93624fb479688168ef060_d9e0dda2-982c-4cc7-b9ad-5991da35cb08.webp?v=1706626442","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b3f77c2a484ce82d2d4f7e459d36bcea1626b62_20dc7002-3f42-4ee7-9c28-c0c8045fd49a.webp?v=1706626445"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14fa84fb13b8a178be04aa13412a64473382b1d0_e6358c19-e763-4b56-9ec1-da234932af8d.webp?v=1706626431","options":["color"],"media":[{"alt":null,"id":23240113127523,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14fa84fb13b8a178be04aa13412a64473382b1d0_e6358c19-e763-4b56-9ec1-da234932af8d.webp?v=1706626431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14fa84fb13b8a178be04aa13412a64473382b1d0_e6358c19-e763-4b56-9ec1-da234932af8d.webp?v=1706626431","width":2000},{"alt":null,"id":23240113946723,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f35cfbc94c6b8dcc84789717046c53aa0762ffea_07c05f64-ede5-41b7-9aa4-f9609b406be2.webp?v=1706626433"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f35cfbc94c6b8dcc84789717046c53aa0762ffea_07c05f64-ede5-41b7-9aa4-f9609b406be2.webp?v=1706626433","width":2000},{"alt":null,"id":23240114667619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e79580d7b7d94e27d0f0dbdd3827b9f5aaac896_f33bfa05-bc0a-4049-baeb-01cdce485c05.webp?v=1706626436"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e79580d7b7d94e27d0f0dbdd3827b9f5aaac896_f33bfa05-bc0a-4049-baeb-01cdce485c05.webp?v=1706626436","width":2000},{"alt":null,"id":23240115519587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45ec1858dc3fffa6cc31d6f98772bb97ec59e4b_fc49b1bd-94c9-4a54-90a0-7ed2186a7959.webp?v=1706626439"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45ec1858dc3fffa6cc31d6f98772bb97ec59e4b_fc49b1bd-94c9-4a54-90a0-7ed2186a7959.webp?v=1706626439","width":2000},{"alt":null,"id":23240116174947,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208ca983fc1073c60de93624fb479688168ef060_d9e0dda2-982c-4cc7-b9ad-5991da35cb08.webp?v=1706626442"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208ca983fc1073c60de93624fb479688168ef060_d9e0dda2-982c-4cc7-b9ad-5991da35cb08.webp?v=1706626442","width":2000},{"alt":null,"id":23240117190755,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b3f77c2a484ce82d2d4f7e459d36bcea1626b62_20dc7002-3f42-4ee7-9c28-c0c8045fd49a.webp?v=1706626445"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b3f77c2a484ce82d2d4f7e459d36bcea1626b62_20dc7002-3f42-4ee7-9c28-c0c8045fd49a.webp?v=1706626445","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41237370732643,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012620G-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":30868725530723,"product_id":7164390047843,"position":4,"created_at":"2024-01-30T22:53:59+08:00","updated_at":"2024-01-30T22:53:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45ec1858dc3fffa6cc31d6f98772bb97ec59e4b_fc49b1bd-94c9-4a54-90a0-7ed2186a7959.webp?v=1706626439","variant_ids":[41237370732643]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 Pro - 【聯名設計款】 - Look - 大自然的傑作(錫安國家公園) - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":135000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012620G-AF14","featured_media":{"alt":null,"id":23240115519587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45ec1858dc3fffa6cc31d6f98772bb97ec59e4b_fc49b1bd-94c9-4a54-90a0-7ed2186a7959.webp?v=1706626439"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41237370765411,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"MCN012620H-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":30868724678755,"product_id":7164390047843,"position":3,"created_at":"2024-01-30T22:53:56+08:00","updated_at":"2024-01-30T22:53:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e79580d7b7d94e27d0f0dbdd3827b9f5aaac896_f33bfa05-bc0a-4049-baeb-01cdce485c05.webp?v=1706626436","variant_ids":[41237370765411]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 Pro - 【聯名設計款】 - Look - 大自然的傑作(錫安國家公園) - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":135000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012620H-AF14","featured_media":{"alt":null,"id":23240114667619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e79580d7b7d94e27d0f0dbdd3827b9f5aaac896_f33bfa05-bc0a-4049-baeb-01cdce485c05.webp?v=1706626436"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41237370798179,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"MCN012620I-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":30868723138659,"product_id":7164390047843,"position":1,"created_at":"2024-01-30T22:53:51+08:00","updated_at":"2024-01-30T22:53:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14fa84fb13b8a178be04aa13412a64473382b1d0_e6358c19-e763-4b56-9ec1-da234932af8d.webp?v=1706626431","variant_ids":[41237370798179]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 Pro - 【聯名設計款】 - Look - 大自然的傑作(錫安國家公園) - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":135000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012620I-AF14","featured_media":{"alt":null,"id":23240113127523,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14fa84fb13b8a178be04aa13412a64473382b1d0_e6358c19-e763-4b56-9ec1-da234932af8d.webp?v=1706626431"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41237370830947,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012620J-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":30868726186083,"product_id":7164390047843,"position":5,"created_at":"2024-01-30T22:54:02+08:00","updated_at":"2024-01-30T22:54:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208ca983fc1073c60de93624fb479688168ef060_d9e0dda2-982c-4cc7-b9ad-5991da35cb08.webp?v=1706626442","variant_ids":[41237370830947]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 Pro - 【聯名設計款】 - Look - 大自然的傑作(錫安國家公園) - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":135000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012620J-AF14","featured_media":{"alt":null,"id":23240116174947,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208ca983fc1073c60de93624fb479688168ef060_d9e0dda2-982c-4cc7-b9ad-5991da35cb08.webp?v=1706626442"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41237370732643,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012620G-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":30868725530723,"product_id":7164390047843,"position":4,"created_at":"2024-01-30T22:53:59+08:00","updated_at":"2024-01-30T22:53:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45ec1858dc3fffa6cc31d6f98772bb97ec59e4b_fc49b1bd-94c9-4a54-90a0-7ed2186a7959.webp?v=1706626439","variant_ids":[41237370732643]},"available":true,"name":"犀牛盾Clear (MagSafe 兼容) 防摔背蓋手機殼 - iPhone 14 Pro - 【聯名設計款】 - Look - 大自然的傑作(錫安國家公園) - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":135000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012620G-AF14","featured_media":{"alt":null,"id":23240115519587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45ec1858dc3fffa6cc31d6f98772bb97ec59e4b_fc49b1bd-94c9-4a54-90a0-7ed2186a7959.webp?v=1706626439"}},"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: "停產" }