$product = {"id":7158804578403,"title":"犀牛盾Clear 防摔背蓋手機殼 - iPhone 15 Pro - 【聯名設計款】 - Look - 大自然的傑作(錫安國家公園)","handle":"iphone-15-pro-jellytint-af14","description":null,"published_at":"2024-01-31T11:36:37+08:00","created_at":"2024-01-26T16:16:50+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":41211693826147,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":30847348375651,"product_id":7158804578403,"position":6,"created_at":"2024-01-26T16:17:09+08:00","updated_at":"2024-01-26T16:17:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00fd3b0476628528235d810520fcda2a3747b398_1b4072ee-4b59-40e9-a5c9-5e153154a46d.webp?v=1706257029","variant_ids":[41211693826147]},"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-AF14","featured_media":{"alt":null,"id":23218427461731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00fd3b0476628528235d810520fcda2a3747b398_1b4072ee-4b59-40e9-a5c9-5e153154a46d.webp?v=1706257029"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41211693858915,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012970H-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":30847342641251,"product_id":7158804578403,"position":2,"created_at":"2024-01-26T16:16:56+08:00","updated_at":"2024-01-26T16:16:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c091b2144bccc3563a7ab890462c55e2f62e932_d37ba1b5-428f-42b7-8ec7-9a547a06433e.webp?v=1706257016","variant_ids":[41211693858915]},"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-AF14","featured_media":{"alt":null,"id":23218421596259,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c091b2144bccc3563a7ab890462c55e2f62e932_d37ba1b5-428f-42b7-8ec7-9a547a06433e.webp?v=1706257016"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41211693891683,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012970I-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":30847343886435,"product_id":7158804578403,"position":3,"created_at":"2024-01-26T16:16:59+08:00","updated_at":"2024-01-26T16:16:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b859d91ab05bb1114eb3c301c4f685dd734beb9f_6bb7c6a1-eccc-4d9d-b816-504a506bff20.webp?v=1706257019","variant_ids":[41211693891683]},"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-AF14","featured_media":{"alt":null,"id":23218422874211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b859d91ab05bb1114eb3c301c4f685dd734beb9f_6bb7c6a1-eccc-4d9d-b816-504a506bff20.webp?v=1706257019"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41211693924451,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012970J-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":30847346344035,"product_id":7158804578403,"position":5,"created_at":"2024-01-26T16:17:04+08:00","updated_at":"2024-01-26T16:17:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c8c8f669ea13e940c076b3098ccba4224f047c_b0e26b5a-aca7-420b-b100-77102d56c554.webp?v=1706257024","variant_ids":[41211693924451]},"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-AF14","featured_media":{"alt":null,"id":23218425331811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c8c8f669ea13e940c076b3098ccba4224f047c_b0e26b5a-aca7-420b-b100-77102d56c554.webp?v=1706257024"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936890a07353c7cad2767bb4071e630519e1be5b_1a543706-d983-436d-a1c1-b95db81275bc.webp?v=1706257014","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c091b2144bccc3563a7ab890462c55e2f62e932_d37ba1b5-428f-42b7-8ec7-9a547a06433e.webp?v=1706257016","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b859d91ab05bb1114eb3c301c4f685dd734beb9f_6bb7c6a1-eccc-4d9d-b816-504a506bff20.webp?v=1706257019","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/837acd18aca764ac6589e3f2d9a204a3aed79f89_483cbe58-8711-49fe-8486-ca125a72f1ea.webp?v=1706257021","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c8c8f669ea13e940c076b3098ccba4224f047c_b0e26b5a-aca7-420b-b100-77102d56c554.webp?v=1706257024","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00fd3b0476628528235d810520fcda2a3747b398_1b4072ee-4b59-40e9-a5c9-5e153154a46d.webp?v=1706257029"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936890a07353c7cad2767bb4071e630519e1be5b_1a543706-d983-436d-a1c1-b95db81275bc.webp?v=1706257014","options":["color"],"media":[{"alt":null,"id":23218420580451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936890a07353c7cad2767bb4071e630519e1be5b_1a543706-d983-436d-a1c1-b95db81275bc.webp?v=1706257014"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936890a07353c7cad2767bb4071e630519e1be5b_1a543706-d983-436d-a1c1-b95db81275bc.webp?v=1706257014","width":2000},{"alt":null,"id":23218421596259,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c091b2144bccc3563a7ab890462c55e2f62e932_d37ba1b5-428f-42b7-8ec7-9a547a06433e.webp?v=1706257016"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c091b2144bccc3563a7ab890462c55e2f62e932_d37ba1b5-428f-42b7-8ec7-9a547a06433e.webp?v=1706257016","width":2000},{"alt":null,"id":23218422874211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b859d91ab05bb1114eb3c301c4f685dd734beb9f_6bb7c6a1-eccc-4d9d-b816-504a506bff20.webp?v=1706257019"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b859d91ab05bb1114eb3c301c4f685dd734beb9f_6bb7c6a1-eccc-4d9d-b816-504a506bff20.webp?v=1706257019","width":2000},{"alt":null,"id":23218424348771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/837acd18aca764ac6589e3f2d9a204a3aed79f89_483cbe58-8711-49fe-8486-ca125a72f1ea.webp?v=1706257021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/837acd18aca764ac6589e3f2d9a204a3aed79f89_483cbe58-8711-49fe-8486-ca125a72f1ea.webp?v=1706257021","width":2000},{"alt":null,"id":23218425331811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c8c8f669ea13e940c076b3098ccba4224f047c_b0e26b5a-aca7-420b-b100-77102d56c554.webp?v=1706257024"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c8c8f669ea13e940c076b3098ccba4224f047c_b0e26b5a-aca7-420b-b100-77102d56c554.webp?v=1706257024","width":2000},{"alt":null,"id":23218427461731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00fd3b0476628528235d810520fcda2a3747b398_1b4072ee-4b59-40e9-a5c9-5e153154a46d.webp?v=1706257029"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00fd3b0476628528235d810520fcda2a3747b398_1b4072ee-4b59-40e9-a5c9-5e153154a46d.webp?v=1706257029","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41211693826147,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":30847348375651,"product_id":7158804578403,"position":6,"created_at":"2024-01-26T16:17:09+08:00","updated_at":"2024-01-26T16:17:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00fd3b0476628528235d810520fcda2a3747b398_1b4072ee-4b59-40e9-a5c9-5e153154a46d.webp?v=1706257029","variant_ids":[41211693826147]},"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-AF14","featured_media":{"alt":null,"id":23218427461731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00fd3b0476628528235d810520fcda2a3747b398_1b4072ee-4b59-40e9-a5c9-5e153154a46d.webp?v=1706257029"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41211693858915,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012970H-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":30847342641251,"product_id":7158804578403,"position":2,"created_at":"2024-01-26T16:16:56+08:00","updated_at":"2024-01-26T16:16:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c091b2144bccc3563a7ab890462c55e2f62e932_d37ba1b5-428f-42b7-8ec7-9a547a06433e.webp?v=1706257016","variant_ids":[41211693858915]},"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-AF14","featured_media":{"alt":null,"id":23218421596259,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c091b2144bccc3563a7ab890462c55e2f62e932_d37ba1b5-428f-42b7-8ec7-9a547a06433e.webp?v=1706257016"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41211693891683,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012970I-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":30847343886435,"product_id":7158804578403,"position":3,"created_at":"2024-01-26T16:16:59+08:00","updated_at":"2024-01-26T16:16:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b859d91ab05bb1114eb3c301c4f685dd734beb9f_6bb7c6a1-eccc-4d9d-b816-504a506bff20.webp?v=1706257019","variant_ids":[41211693891683]},"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-AF14","featured_media":{"alt":null,"id":23218422874211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b859d91ab05bb1114eb3c301c4f685dd734beb9f_6bb7c6a1-eccc-4d9d-b816-504a506bff20.webp?v=1706257019"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41211693924451,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012970J-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":30847346344035,"product_id":7158804578403,"position":5,"created_at":"2024-01-26T16:17:04+08:00","updated_at":"2024-01-26T16:17:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c8c8f669ea13e940c076b3098ccba4224f047c_b0e26b5a-aca7-420b-b100-77102d56c554.webp?v=1706257024","variant_ids":[41211693924451]},"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-AF14","featured_media":{"alt":null,"id":23218425331811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c8c8f669ea13e940c076b3098ccba4224f047c_b0e26b5a-aca7-420b-b100-77102d56c554.webp?v=1706257024"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41211693826147,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":30847348375651,"product_id":7158804578403,"position":6,"created_at":"2024-01-26T16:17:09+08:00","updated_at":"2024-01-26T16:17:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00fd3b0476628528235d810520fcda2a3747b398_1b4072ee-4b59-40e9-a5c9-5e153154a46d.webp?v=1706257029","variant_ids":[41211693826147]},"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-AF14","featured_media":{"alt":null,"id":23218427461731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00fd3b0476628528235d810520fcda2a3747b398_1b4072ee-4b59-40e9-a5c9-5e153154a46d.webp?v=1706257029"}},"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: "停產" }