$product = {"id":7150936293475,"title":"犀牛盾Clear防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Weiweiboy - 可愛大王上甜點","handle":"iphone-15-pro-max-jellytint-eo04","description":null,"published_at":"2024-02-02T09:59:20+08:00","created_at":"2024-01-18T14:49:00+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師JellyTint專區-Weiweiboy","tags":["20%","20240304-reseller-\u003ereplace_to-","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-weiweiboy","device-iPhone 15 Pro Max","merge","reseller-jellytint-weiweiboy","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":41175728193635,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012980G-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":30846681284707,"product_id":7150936293475,"position":9,"created_at":"2024-01-26T15:42:56+08:00","updated_at":"2024-01-26T15:42:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae719a2c0cc6b58582faf4ff5e9f8afdf7c36d4b_09a73bfe-d0f4-4377-bbce-5b434ee09844.webp?v=1706254976","variant_ids":[41175728193635,41175728259171,41175728291939]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Weiweiboy - 可愛大王上甜點 - 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":"CCN012980G-EO04","featured_media":{"alt":null,"id":23217758601315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae719a2c0cc6b58582faf4ff5e9f8afdf7c36d4b_09a73bfe-d0f4-4377-bbce-5b434ee09844.webp?v=1706254976"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41175728259171,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012980I-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":30846681284707,"product_id":7150936293475,"position":9,"created_at":"2024-01-26T15:42:56+08:00","updated_at":"2024-01-26T15:42:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae719a2c0cc6b58582faf4ff5e9f8afdf7c36d4b_09a73bfe-d0f4-4377-bbce-5b434ee09844.webp?v=1706254976","variant_ids":[41175728193635,41175728259171,41175728291939]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Weiweiboy - 可愛大王上甜點 - 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":"CCN012980I-EO04","featured_media":{"alt":null,"id":23217758601315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae719a2c0cc6b58582faf4ff5e9f8afdf7c36d4b_09a73bfe-d0f4-4377-bbce-5b434ee09844.webp?v=1706254976"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41175728291939,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012980J-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":30846681284707,"product_id":7150936293475,"position":9,"created_at":"2024-01-26T15:42:56+08:00","updated_at":"2024-01-26T15:42:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae719a2c0cc6b58582faf4ff5e9f8afdf7c36d4b_09a73bfe-d0f4-4377-bbce-5b434ee09844.webp?v=1706254976","variant_ids":[41175728193635,41175728259171,41175728291939]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Weiweiboy - 可愛大王上甜點 - 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":"CCN012980J-EO04","featured_media":{"alt":null,"id":23217758601315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae719a2c0cc6b58582faf4ff5e9f8afdf7c36d4b_09a73bfe-d0f4-4377-bbce-5b434ee09844.webp?v=1706254976"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/417a6a74149fcc53186832b51d8db67bed97e5dd_ea446485-0087-44d7-ab98-e05f658501a0.webp?v=1705560543","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5661c4418a2e48225d2e4078ba9e1ff8025918d2_545bf114-98ac-4cab-b4e0-a80b79dea604.webp?v=1705560546","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0d236550327df86c40200c85af128be4a6ddd12_d2834c42-996d-47ea-8e56-47edbf82f43d.webp?v=1705560550","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94314f6fe9b6fbecd32e46f14f1a9ebe9ba0cac3_2a078f1a-3dd2-4ffe-b495-c60131f00a53.webp?v=1705560554","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88f604f529e14f5efe4cf687096065e37181c361_7f8cc2dc-2d0b-4362-8521-c93064930e5a.webp?v=1705560557","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/186d0c4e093fe0b50e890f6e5086c69b890f45b5_e6793c29-5eb8-448e-b8a3-862f89ef2e2f.webp?v=1705560561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5be0f996aa03258d53ef0a5b75e89e4915d9fd30_50752f7e-0697-4528-b2ac-724db42effce.webp?v=1705560565","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a58e12bd39af77ce12febafd3e894a187135bc_3dfdb942-d021-4431-8870-24d545ecc5c2.webp?v=1705560569","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae719a2c0cc6b58582faf4ff5e9f8afdf7c36d4b_09a73bfe-d0f4-4377-bbce-5b434ee09844.webp?v=1706254976"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/417a6a74149fcc53186832b51d8db67bed97e5dd_ea446485-0087-44d7-ab98-e05f658501a0.webp?v=1705560543","options":["color"],"media":[{"alt":null,"id":23179205279843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/417a6a74149fcc53186832b51d8db67bed97e5dd_ea446485-0087-44d7-ab98-e05f658501a0.webp?v=1705560543"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/417a6a74149fcc53186832b51d8db67bed97e5dd_ea446485-0087-44d7-ab98-e05f658501a0.webp?v=1705560543","width":2000},{"alt":null,"id":23179206164579,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5661c4418a2e48225d2e4078ba9e1ff8025918d2_545bf114-98ac-4cab-b4e0-a80b79dea604.webp?v=1705560546"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5661c4418a2e48225d2e4078ba9e1ff8025918d2_545bf114-98ac-4cab-b4e0-a80b79dea604.webp?v=1705560546","width":2000},{"alt":null,"id":23179207508067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0d236550327df86c40200c85af128be4a6ddd12_d2834c42-996d-47ea-8e56-47edbf82f43d.webp?v=1705560550"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0d236550327df86c40200c85af128be4a6ddd12_d2834c42-996d-47ea-8e56-47edbf82f43d.webp?v=1705560550","width":2000},{"alt":null,"id":23179208654947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94314f6fe9b6fbecd32e46f14f1a9ebe9ba0cac3_2a078f1a-3dd2-4ffe-b495-c60131f00a53.webp?v=1705560554"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94314f6fe9b6fbecd32e46f14f1a9ebe9ba0cac3_2a078f1a-3dd2-4ffe-b495-c60131f00a53.webp?v=1705560554","width":2000},{"alt":null,"id":23179210096739,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88f604f529e14f5efe4cf687096065e37181c361_7f8cc2dc-2d0b-4362-8521-c93064930e5a.webp?v=1705560557"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88f604f529e14f5efe4cf687096065e37181c361_7f8cc2dc-2d0b-4362-8521-c93064930e5a.webp?v=1705560557","width":2000},{"alt":null,"id":23179211309155,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/186d0c4e093fe0b50e890f6e5086c69b890f45b5_e6793c29-5eb8-448e-b8a3-862f89ef2e2f.webp?v=1705560561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/186d0c4e093fe0b50e890f6e5086c69b890f45b5_e6793c29-5eb8-448e-b8a3-862f89ef2e2f.webp?v=1705560561","width":2000},{"alt":null,"id":23179213242467,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5be0f996aa03258d53ef0a5b75e89e4915d9fd30_50752f7e-0697-4528-b2ac-724db42effce.webp?v=1705560565"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5be0f996aa03258d53ef0a5b75e89e4915d9fd30_50752f7e-0697-4528-b2ac-724db42effce.webp?v=1705560565","width":2000},{"alt":null,"id":23179214585955,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a58e12bd39af77ce12febafd3e894a187135bc_3dfdb942-d021-4431-8870-24d545ecc5c2.webp?v=1705560569"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48a58e12bd39af77ce12febafd3e894a187135bc_3dfdb942-d021-4431-8870-24d545ecc5c2.webp?v=1705560569","width":2000},{"alt":null,"id":23217758601315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae719a2c0cc6b58582faf4ff5e9f8afdf7c36d4b_09a73bfe-d0f4-4377-bbce-5b434ee09844.webp?v=1706254976"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae719a2c0cc6b58582faf4ff5e9f8afdf7c36d4b_09a73bfe-d0f4-4377-bbce-5b434ee09844.webp?v=1706254976","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41175728193635,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012980G-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":30846681284707,"product_id":7150936293475,"position":9,"created_at":"2024-01-26T15:42:56+08:00","updated_at":"2024-01-26T15:42:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae719a2c0cc6b58582faf4ff5e9f8afdf7c36d4b_09a73bfe-d0f4-4377-bbce-5b434ee09844.webp?v=1706254976","variant_ids":[41175728193635,41175728259171,41175728291939]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Weiweiboy - 可愛大王上甜點 - 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":"CCN012980G-EO04","featured_media":{"alt":null,"id":23217758601315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae719a2c0cc6b58582faf4ff5e9f8afdf7c36d4b_09a73bfe-d0f4-4377-bbce-5b434ee09844.webp?v=1706254976"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41175728259171,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012980I-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":30846681284707,"product_id":7150936293475,"position":9,"created_at":"2024-01-26T15:42:56+08:00","updated_at":"2024-01-26T15:42:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae719a2c0cc6b58582faf4ff5e9f8afdf7c36d4b_09a73bfe-d0f4-4377-bbce-5b434ee09844.webp?v=1706254976","variant_ids":[41175728193635,41175728259171,41175728291939]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Weiweiboy - 可愛大王上甜點 - 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":"CCN012980I-EO04","featured_media":{"alt":null,"id":23217758601315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae719a2c0cc6b58582faf4ff5e9f8afdf7c36d4b_09a73bfe-d0f4-4377-bbce-5b434ee09844.webp?v=1706254976"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41175728291939,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012980J-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":30846681284707,"product_id":7150936293475,"position":9,"created_at":"2024-01-26T15:42:56+08:00","updated_at":"2024-01-26T15:42:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae719a2c0cc6b58582faf4ff5e9f8afdf7c36d4b_09a73bfe-d0f4-4377-bbce-5b434ee09844.webp?v=1706254976","variant_ids":[41175728193635,41175728259171,41175728291939]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Weiweiboy - 可愛大王上甜點 - 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":"CCN012980J-EO04","featured_media":{"alt":null,"id":23217758601315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae719a2c0cc6b58582faf4ff5e9f8afdf7c36d4b_09a73bfe-d0f4-4377-bbce-5b434ee09844.webp?v=1706254976"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41175728193635,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012980G-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":30846681284707,"product_id":7150936293475,"position":9,"created_at":"2024-01-26T15:42:56+08:00","updated_at":"2024-01-26T15:42:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae719a2c0cc6b58582faf4ff5e9f8afdf7c36d4b_09a73bfe-d0f4-4377-bbce-5b434ee09844.webp?v=1706254976","variant_ids":[41175728193635,41175728259171,41175728291939]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Weiweiboy - 可愛大王上甜點 - 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":"CCN012980G-EO04","featured_media":{"alt":null,"id":23217758601315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae719a2c0cc6b58582faf4ff5e9f8afdf7c36d4b_09a73bfe-d0f4-4377-bbce-5b434ee09844.webp?v=1706254976"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(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: "停產" }