$product = {"id":7150833205347,"title":"犀牛盾Clear防摔背蓋手機殼 - iPhone 14 - 【聯名設計款】 - Weiweiboy - 超級可愛大王","handle":"iphone-14-jellytint-eo01","description":null,"published_at":"2024-02-02T09:59:46+08:00","created_at":"2024-01-18T14:33:03+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 14","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":41175335141475,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-EO01","requires_shipping":true,"taxable":true,"featured_image":{"id":30848460783715,"product_id":7150833205347,"position":9,"created_at":"2024-01-26T17:56:11+08:00","updated_at":"2024-01-26T17:56:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16bfbb8fd8771ce612c018496aa72fe6f5b18c31_18f95a6a-f7b5-4c7e-8e7e-cdcb8c5ee708.webp?v=1706262971","variant_ids":[41175335141475,41175335239779,41175335272547]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 14 - 【聯名設計款】 - 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":"CCN012600G-EO01","featured_media":{"alt":null,"id":23219545145443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16bfbb8fd8771ce612c018496aa72fe6f5b18c31_18f95a6a-f7b5-4c7e-8e7e-cdcb8c5ee708.webp?v=1706262971"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41175335239779,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012600I-EO01","requires_shipping":true,"taxable":true,"featured_image":{"id":30848460783715,"product_id":7150833205347,"position":9,"created_at":"2024-01-26T17:56:11+08:00","updated_at":"2024-01-26T17:56:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16bfbb8fd8771ce612c018496aa72fe6f5b18c31_18f95a6a-f7b5-4c7e-8e7e-cdcb8c5ee708.webp?v=1706262971","variant_ids":[41175335141475,41175335239779,41175335272547]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 14 - 【聯名設計款】 - 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":"CCN012600I-EO01","featured_media":{"alt":null,"id":23219545145443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16bfbb8fd8771ce612c018496aa72fe6f5b18c31_18f95a6a-f7b5-4c7e-8e7e-cdcb8c5ee708.webp?v=1706262971"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41175335272547,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-EO01","requires_shipping":true,"taxable":true,"featured_image":{"id":30848460783715,"product_id":7150833205347,"position":9,"created_at":"2024-01-26T17:56:11+08:00","updated_at":"2024-01-26T17:56:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16bfbb8fd8771ce612c018496aa72fe6f5b18c31_18f95a6a-f7b5-4c7e-8e7e-cdcb8c5ee708.webp?v=1706262971","variant_ids":[41175335141475,41175335239779,41175335272547]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 14 - 【聯名設計款】 - 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":"CCN012600J-EO01","featured_media":{"alt":null,"id":23219545145443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16bfbb8fd8771ce612c018496aa72fe6f5b18c31_18f95a6a-f7b5-4c7e-8e7e-cdcb8c5ee708.webp?v=1706262971"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e28cc3a2903991626d7927ee7d9f3943f60a8bd9_4c0c52d1-01f4-4dbd-809d-b8adc2c35c3a.webp?v=1705559587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83d67c8c772e476fc86ac819d5ab20de4779dae7_91599376-8b8a-4d06-995c-2b0ae3c5c6c8.webp?v=1705559590","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e79a64c7f75062ad6d2791ad027d8b48e7a7ddde_464288a2-3941-493b-b83f-923c3884a65d.webp?v=1705559594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc6aa59394a16037566e67a90645cce5e13de5a2_86b13699-ba5f-4c95-a255-f21db8c1f478.webp?v=1705559598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/725fb5eb032277c5459b40dc0bc61e5f5af687aa_0eade0ad-a20b-4963-b9ae-2b74c49dcf07.webp?v=1705559603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4333fc130ba862e8c741e34cbca4b496afa5d89d_8e33dbd7-6efc-4eae-8576-2ffad8fa0087.webp?v=1705559607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4d03406ae154b3e73f30fc001f920ef3a12078a_b246d77e-30e9-40c2-9298-3c235c7d5d70.webp?v=1705559611","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7387eb23c46ac3920aa1a24f17f704a6897c5fff_c686a4fe-89b1-4950-916f-98f47ad9ec42.webp?v=1705559615","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16bfbb8fd8771ce612c018496aa72fe6f5b18c31_18f95a6a-f7b5-4c7e-8e7e-cdcb8c5ee708.webp?v=1706262971"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e28cc3a2903991626d7927ee7d9f3943f60a8bd9_4c0c52d1-01f4-4dbd-809d-b8adc2c35c3a.webp?v=1705559587","options":["color"],"media":[{"alt":null,"id":23178676437091,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e28cc3a2903991626d7927ee7d9f3943f60a8bd9_4c0c52d1-01f4-4dbd-809d-b8adc2c35c3a.webp?v=1705559587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e28cc3a2903991626d7927ee7d9f3943f60a8bd9_4c0c52d1-01f4-4dbd-809d-b8adc2c35c3a.webp?v=1705559587","width":2000},{"alt":null,"id":23178678075491,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83d67c8c772e476fc86ac819d5ab20de4779dae7_91599376-8b8a-4d06-995c-2b0ae3c5c6c8.webp?v=1705559590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83d67c8c772e476fc86ac819d5ab20de4779dae7_91599376-8b8a-4d06-995c-2b0ae3c5c6c8.webp?v=1705559590","width":2000},{"alt":null,"id":23178680991843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e79a64c7f75062ad6d2791ad027d8b48e7a7ddde_464288a2-3941-493b-b83f-923c3884a65d.webp?v=1705559594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e79a64c7f75062ad6d2791ad027d8b48e7a7ddde_464288a2-3941-493b-b83f-923c3884a65d.webp?v=1705559594","width":2000},{"alt":null,"id":23178684301411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc6aa59394a16037566e67a90645cce5e13de5a2_86b13699-ba5f-4c95-a255-f21db8c1f478.webp?v=1705559598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc6aa59394a16037566e67a90645cce5e13de5a2_86b13699-ba5f-4c95-a255-f21db8c1f478.webp?v=1705559598","width":2000},{"alt":null,"id":23178687348835,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/725fb5eb032277c5459b40dc0bc61e5f5af687aa_0eade0ad-a20b-4963-b9ae-2b74c49dcf07.webp?v=1705559603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/725fb5eb032277c5459b40dc0bc61e5f5af687aa_0eade0ad-a20b-4963-b9ae-2b74c49dcf07.webp?v=1705559603","width":2000},{"alt":null,"id":23178690265187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4333fc130ba862e8c741e34cbca4b496afa5d89d_8e33dbd7-6efc-4eae-8576-2ffad8fa0087.webp?v=1705559607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4333fc130ba862e8c741e34cbca4b496afa5d89d_8e33dbd7-6efc-4eae-8576-2ffad8fa0087.webp?v=1705559607","width":2000},{"alt":null,"id":23178693378147,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4d03406ae154b3e73f30fc001f920ef3a12078a_b246d77e-30e9-40c2-9298-3c235c7d5d70.webp?v=1705559611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4d03406ae154b3e73f30fc001f920ef3a12078a_b246d77e-30e9-40c2-9298-3c235c7d5d70.webp?v=1705559611","width":2000},{"alt":null,"id":23178696261731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7387eb23c46ac3920aa1a24f17f704a6897c5fff_c686a4fe-89b1-4950-916f-98f47ad9ec42.webp?v=1705559615"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7387eb23c46ac3920aa1a24f17f704a6897c5fff_c686a4fe-89b1-4950-916f-98f47ad9ec42.webp?v=1705559615","width":2000},{"alt":null,"id":23219545145443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16bfbb8fd8771ce612c018496aa72fe6f5b18c31_18f95a6a-f7b5-4c7e-8e7e-cdcb8c5ee708.webp?v=1706262971"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16bfbb8fd8771ce612c018496aa72fe6f5b18c31_18f95a6a-f7b5-4c7e-8e7e-cdcb8c5ee708.webp?v=1706262971","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41175335141475,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-EO01","requires_shipping":true,"taxable":true,"featured_image":{"id":30848460783715,"product_id":7150833205347,"position":9,"created_at":"2024-01-26T17:56:11+08:00","updated_at":"2024-01-26T17:56:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16bfbb8fd8771ce612c018496aa72fe6f5b18c31_18f95a6a-f7b5-4c7e-8e7e-cdcb8c5ee708.webp?v=1706262971","variant_ids":[41175335141475,41175335239779,41175335272547]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 14 - 【聯名設計款】 - 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":"CCN012600G-EO01","featured_media":{"alt":null,"id":23219545145443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16bfbb8fd8771ce612c018496aa72fe6f5b18c31_18f95a6a-f7b5-4c7e-8e7e-cdcb8c5ee708.webp?v=1706262971"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41175335239779,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012600I-EO01","requires_shipping":true,"taxable":true,"featured_image":{"id":30848460783715,"product_id":7150833205347,"position":9,"created_at":"2024-01-26T17:56:11+08:00","updated_at":"2024-01-26T17:56:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16bfbb8fd8771ce612c018496aa72fe6f5b18c31_18f95a6a-f7b5-4c7e-8e7e-cdcb8c5ee708.webp?v=1706262971","variant_ids":[41175335141475,41175335239779,41175335272547]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 14 - 【聯名設計款】 - 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":"CCN012600I-EO01","featured_media":{"alt":null,"id":23219545145443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16bfbb8fd8771ce612c018496aa72fe6f5b18c31_18f95a6a-f7b5-4c7e-8e7e-cdcb8c5ee708.webp?v=1706262971"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41175335272547,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-EO01","requires_shipping":true,"taxable":true,"featured_image":{"id":30848460783715,"product_id":7150833205347,"position":9,"created_at":"2024-01-26T17:56:11+08:00","updated_at":"2024-01-26T17:56:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16bfbb8fd8771ce612c018496aa72fe6f5b18c31_18f95a6a-f7b5-4c7e-8e7e-cdcb8c5ee708.webp?v=1706262971","variant_ids":[41175335141475,41175335239779,41175335272547]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 14 - 【聯名設計款】 - 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":"CCN012600J-EO01","featured_media":{"alt":null,"id":23219545145443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16bfbb8fd8771ce612c018496aa72fe6f5b18c31_18f95a6a-f7b5-4c7e-8e7e-cdcb8c5ee708.webp?v=1706262971"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41175335141475,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-EO01","requires_shipping":true,"taxable":true,"featured_image":{"id":30848460783715,"product_id":7150833205347,"position":9,"created_at":"2024-01-26T17:56:11+08:00","updated_at":"2024-01-26T17:56:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16bfbb8fd8771ce612c018496aa72fe6f5b18c31_18f95a6a-f7b5-4c7e-8e7e-cdcb8c5ee708.webp?v=1706262971","variant_ids":[41175335141475,41175335239779,41175335272547]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 14 - 【聯名設計款】 - 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":"CCN012600G-EO01","featured_media":{"alt":null,"id":23219545145443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16bfbb8fd8771ce612c018496aa72fe6f5b18c31_18f95a6a-f7b5-4c7e-8e7e-cdcb8c5ee708.webp?v=1706262971"}},"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: "停產" }