$product = {"id":7158878240867,"title":"犀牛盾Clear 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - Look - 人在做 峇里島在看","handle":"iphone-15-pro-jellytint-af06","description":null,"published_at":"2024-01-31T11:23:10+08:00","created_at":"2024-01-26T16:29:56+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 15 Pro","merge","reseller-jellytint-look","Top50","type-jellytint"],"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":41212090581091,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-AF06","requires_shipping":true,"taxable":true,"featured_image":{"id":30847688507491,"product_id":7158878240867,"position":5,"created_at":"2024-01-26T16:30:12+08:00","updated_at":"2024-01-26T16:30:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5aea522ff460c8b44b3191b833101bddfa864b02_2748684d-16ee-4e6d-8f3e-a412d8f5eab5.webp?v=1706257812","variant_ids":[41212090581091]},"available":true,"name":"犀牛盾Clear 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - Look - 人在做 峇里島在看 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970G-AF06","featured_media":{"alt":null,"id":23218768412771,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5aea522ff460c8b44b3191b833101bddfa864b02_2748684d-16ee-4e6d-8f3e-a412d8f5eab5.webp?v=1706257812"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41212090613859,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012970H-AF06","requires_shipping":true,"taxable":true,"featured_image":{"id":30847689785443,"product_id":7158878240867,"position":6,"created_at":"2024-01-26T16:30:15+08:00","updated_at":"2024-01-26T16:30:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25214b9bd0eb410d0fa12364753d09799f9e1718_703bda76-e00c-461c-9051-fa6c651dc038.webp?v=1706257815","variant_ids":[41212090613859]},"available":true,"name":"犀牛盾Clear 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - Look - 人在做 峇里島在看 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970H-AF06","featured_media":{"alt":null,"id":23218769690723,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25214b9bd0eb410d0fa12364753d09799f9e1718_703bda76-e00c-461c-9051-fa6c651dc038.webp?v=1706257815"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41212090646627,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012970I-AF06","requires_shipping":true,"taxable":true,"featured_image":{"id":30847686344803,"product_id":7158878240867,"position":4,"created_at":"2024-01-26T16:30:07+08:00","updated_at":"2024-01-26T16:30:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64ef2ec8fa47313accb6da1716a417e1f99ef538_cf1d9f42-8a58-40d3-9431-ab9cdcbac94a.webp?v=1706257807","variant_ids":[41212090646627]},"available":true,"name":"犀牛盾Clear 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - Look - 人在做 峇里島在看 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970I-AF06","featured_media":{"alt":null,"id":23218766250083,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64ef2ec8fa47313accb6da1716a417e1f99ef538_cf1d9f42-8a58-40d3-9431-ab9cdcbac94a.webp?v=1706257807"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41212090679395,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012970J-AF06","requires_shipping":true,"taxable":true,"featured_image":{"id":30847683592291,"product_id":7158878240867,"position":1,"created_at":"2024-01-26T16:29:59+08:00","updated_at":"2024-01-26T16:29:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9a90a77581fb541ae368e167a09e6a126bc74d4_e56fbd1b-2dee-48a6-9df9-74fdf7dc451f.webp?v=1706257799","variant_ids":[41212090679395]},"available":true,"name":"犀牛盾Clear 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - Look - 人在做 峇里島在看 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970J-AF06","featured_media":{"alt":null,"id":23218763497571,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9a90a77581fb541ae368e167a09e6a126bc74d4_e56fbd1b-2dee-48a6-9df9-74fdf7dc451f.webp?v=1706257799"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9a90a77581fb541ae368e167a09e6a126bc74d4_e56fbd1b-2dee-48a6-9df9-74fdf7dc451f.webp?v=1706257799","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e435c2ee6434d653e63de8053c9485763b18126_aa40b4a8-b88d-442b-b5de-42b327bbd9b5.webp?v=1706257802","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86c60063eac3c873844353fe208e955ef9ee79ad_c943e6b8-52c1-4bad-a216-d67e01d757bb.webp?v=1706257804","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64ef2ec8fa47313accb6da1716a417e1f99ef538_cf1d9f42-8a58-40d3-9431-ab9cdcbac94a.webp?v=1706257807","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5aea522ff460c8b44b3191b833101bddfa864b02_2748684d-16ee-4e6d-8f3e-a412d8f5eab5.webp?v=1706257812","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25214b9bd0eb410d0fa12364753d09799f9e1718_703bda76-e00c-461c-9051-fa6c651dc038.webp?v=1706257815"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9a90a77581fb541ae368e167a09e6a126bc74d4_e56fbd1b-2dee-48a6-9df9-74fdf7dc451f.webp?v=1706257799","options":["color"],"media":[{"alt":null,"id":23218763497571,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9a90a77581fb541ae368e167a09e6a126bc74d4_e56fbd1b-2dee-48a6-9df9-74fdf7dc451f.webp?v=1706257799"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9a90a77581fb541ae368e167a09e6a126bc74d4_e56fbd1b-2dee-48a6-9df9-74fdf7dc451f.webp?v=1706257799","width":2000},{"alt":null,"id":23218764480611,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e435c2ee6434d653e63de8053c9485763b18126_aa40b4a8-b88d-442b-b5de-42b327bbd9b5.webp?v=1706257802"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e435c2ee6434d653e63de8053c9485763b18126_aa40b4a8-b88d-442b-b5de-42b327bbd9b5.webp?v=1706257802","width":2000},{"alt":null,"id":23218765332579,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86c60063eac3c873844353fe208e955ef9ee79ad_c943e6b8-52c1-4bad-a216-d67e01d757bb.webp?v=1706257804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86c60063eac3c873844353fe208e955ef9ee79ad_c943e6b8-52c1-4bad-a216-d67e01d757bb.webp?v=1706257804","width":2000},{"alt":null,"id":23218766250083,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64ef2ec8fa47313accb6da1716a417e1f99ef538_cf1d9f42-8a58-40d3-9431-ab9cdcbac94a.webp?v=1706257807"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64ef2ec8fa47313accb6da1716a417e1f99ef538_cf1d9f42-8a58-40d3-9431-ab9cdcbac94a.webp?v=1706257807","width":2000},{"alt":null,"id":23218768412771,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5aea522ff460c8b44b3191b833101bddfa864b02_2748684d-16ee-4e6d-8f3e-a412d8f5eab5.webp?v=1706257812"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5aea522ff460c8b44b3191b833101bddfa864b02_2748684d-16ee-4e6d-8f3e-a412d8f5eab5.webp?v=1706257812","width":2000},{"alt":null,"id":23218769690723,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25214b9bd0eb410d0fa12364753d09799f9e1718_703bda76-e00c-461c-9051-fa6c651dc038.webp?v=1706257815"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25214b9bd0eb410d0fa12364753d09799f9e1718_703bda76-e00c-461c-9051-fa6c651dc038.webp?v=1706257815","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41212090581091,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-AF06","requires_shipping":true,"taxable":true,"featured_image":{"id":30847688507491,"product_id":7158878240867,"position":5,"created_at":"2024-01-26T16:30:12+08:00","updated_at":"2024-01-26T16:30:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5aea522ff460c8b44b3191b833101bddfa864b02_2748684d-16ee-4e6d-8f3e-a412d8f5eab5.webp?v=1706257812","variant_ids":[41212090581091]},"available":true,"name":"犀牛盾Clear 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - Look - 人在做 峇里島在看 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970G-AF06","featured_media":{"alt":null,"id":23218768412771,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5aea522ff460c8b44b3191b833101bddfa864b02_2748684d-16ee-4e6d-8f3e-a412d8f5eab5.webp?v=1706257812"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41212090613859,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012970H-AF06","requires_shipping":true,"taxable":true,"featured_image":{"id":30847689785443,"product_id":7158878240867,"position":6,"created_at":"2024-01-26T16:30:15+08:00","updated_at":"2024-01-26T16:30:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25214b9bd0eb410d0fa12364753d09799f9e1718_703bda76-e00c-461c-9051-fa6c651dc038.webp?v=1706257815","variant_ids":[41212090613859]},"available":true,"name":"犀牛盾Clear 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - Look - 人在做 峇里島在看 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970H-AF06","featured_media":{"alt":null,"id":23218769690723,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25214b9bd0eb410d0fa12364753d09799f9e1718_703bda76-e00c-461c-9051-fa6c651dc038.webp?v=1706257815"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41212090646627,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012970I-AF06","requires_shipping":true,"taxable":true,"featured_image":{"id":30847686344803,"product_id":7158878240867,"position":4,"created_at":"2024-01-26T16:30:07+08:00","updated_at":"2024-01-26T16:30:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64ef2ec8fa47313accb6da1716a417e1f99ef538_cf1d9f42-8a58-40d3-9431-ab9cdcbac94a.webp?v=1706257807","variant_ids":[41212090646627]},"available":true,"name":"犀牛盾Clear 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - Look - 人在做 峇里島在看 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970I-AF06","featured_media":{"alt":null,"id":23218766250083,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64ef2ec8fa47313accb6da1716a417e1f99ef538_cf1d9f42-8a58-40d3-9431-ab9cdcbac94a.webp?v=1706257807"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41212090679395,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012970J-AF06","requires_shipping":true,"taxable":true,"featured_image":{"id":30847683592291,"product_id":7158878240867,"position":1,"created_at":"2024-01-26T16:29:59+08:00","updated_at":"2024-01-26T16:29:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9a90a77581fb541ae368e167a09e6a126bc74d4_e56fbd1b-2dee-48a6-9df9-74fdf7dc451f.webp?v=1706257799","variant_ids":[41212090679395]},"available":true,"name":"犀牛盾Clear 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - Look - 人在做 峇里島在看 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970J-AF06","featured_media":{"alt":null,"id":23218763497571,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9a90a77581fb541ae368e167a09e6a126bc74d4_e56fbd1b-2dee-48a6-9df9-74fdf7dc451f.webp?v=1706257799"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41212090581091,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-AF06","requires_shipping":true,"taxable":true,"featured_image":{"id":30847688507491,"product_id":7158878240867,"position":5,"created_at":"2024-01-26T16:30:12+08:00","updated_at":"2024-01-26T16:30:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5aea522ff460c8b44b3191b833101bddfa864b02_2748684d-16ee-4e6d-8f3e-a412d8f5eab5.webp?v=1706257812","variant_ids":[41212090581091]},"available":true,"name":"犀牛盾Clear 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - Look - 人在做 峇里島在看 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970G-AF06","featured_media":{"alt":null,"id":23218768412771,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5aea522ff460c8b44b3191b833101bddfa864b02_2748684d-16ee-4e6d-8f3e-a412d8f5eab5.webp?v=1706257812"}},"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: "停產" }