$product = {"id":7150843789411,"title":"犀牛盾Clear防摔背蓋手機殼 - iPhone 14 Plus - 【聯名設計款】 - Weiweiboy - 可愛大王喜樂無常","handle":"iphone-14-plus-jellytint-eo03","description":null,"published_at":"2024-02-02T09:59:44+08:00","created_at":"2024-01-18T14:33:57+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 Plus","merge","reseller-jellytint-weiweiboy","Top50","type-jellytint"],"price":108000,"price_min":108000,"price_max":108000,"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":41175397072995,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012610G-EO03","requires_shipping":true,"taxable":true,"featured_image":{"id":30848513015907,"product_id":7150843789411,"position":9,"created_at":"2024-01-26T18:00:58+08:00","updated_at":"2024-01-26T18:00:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a812f2cdd298444146a2335ac1d83359672e50_0120afae-4b8f-419f-ae42-69db962a4714.webp?v=1706263258","variant_ids":[41175397072995,41175397138531,41175397171299]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 14 Plus - 【聯名設計款】 - Weiweiboy - 可愛大王喜樂無常 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":108000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012610G-EO03","featured_media":{"alt":null,"id":23219597508707,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a812f2cdd298444146a2335ac1d83359672e50_0120afae-4b8f-419f-ae42-69db962a4714.webp?v=1706263258"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41175397138531,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012610H-EO03","requires_shipping":true,"taxable":true,"featured_image":{"id":30848513015907,"product_id":7150843789411,"position":9,"created_at":"2024-01-26T18:00:58+08:00","updated_at":"2024-01-26T18:00:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a812f2cdd298444146a2335ac1d83359672e50_0120afae-4b8f-419f-ae42-69db962a4714.webp?v=1706263258","variant_ids":[41175397072995,41175397138531,41175397171299]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 14 Plus - 【聯名設計款】 - Weiweiboy - 可愛大王喜樂無常 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":108000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012610H-EO03","featured_media":{"alt":null,"id":23219597508707,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a812f2cdd298444146a2335ac1d83359672e50_0120afae-4b8f-419f-ae42-69db962a4714.webp?v=1706263258"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41175397171299,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012610I-EO03","requires_shipping":true,"taxable":true,"featured_image":{"id":30848513015907,"product_id":7150843789411,"position":9,"created_at":"2024-01-26T18:00:58+08:00","updated_at":"2024-01-26T18:00:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a812f2cdd298444146a2335ac1d83359672e50_0120afae-4b8f-419f-ae42-69db962a4714.webp?v=1706263258","variant_ids":[41175397072995,41175397138531,41175397171299]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 14 Plus - 【聯名設計款】 - Weiweiboy - 可愛大王喜樂無常 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":108000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012610I-EO03","featured_media":{"alt":null,"id":23219597508707,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a812f2cdd298444146a2335ac1d83359672e50_0120afae-4b8f-419f-ae42-69db962a4714.webp?v=1706263258"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1dfdbee88157a58e237c8bfa1112bbacd664dc4.webp?v=1705559645","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/242f06837ce5ef3143ef01f947d356031aeef748_a601f0f2-bc52-409a-821f-eb9ba2e85146.webp?v=1705559649","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/761295061e4de1244896a3842b217f6770750a7a.webp?v=1705559654","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03bedb526ad52e71f10f019e9ae81458ca062bee_6d35324d-b93f-4ba3-a2c0-235d13fcfc70.webp?v=1705559658","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05268c82cdec824c6925c33e1527cad13db75841_0aa35022-10bc-440a-bce0-83d05463881c.webp?v=1705559662","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21323331deee914aa614f2265a07f08e6b430e2e_33b9c1ed-898f-49a5-97a5-0391b686ba2e.webp?v=1705559666","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/809d9c92d3f937a911ba38cb1a0c9f9ff7d47c99.webp?v=1705559670","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6154a5803ff29e397a58b603814b7e4e56f3a251.webp?v=1705559674","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a812f2cdd298444146a2335ac1d83359672e50_0120afae-4b8f-419f-ae42-69db962a4714.webp?v=1706263258"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1dfdbee88157a58e237c8bfa1112bbacd664dc4.webp?v=1705559645","options":["color"],"media":[{"alt":null,"id":23178716315747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1dfdbee88157a58e237c8bfa1112bbacd664dc4.webp?v=1705559645"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1dfdbee88157a58e237c8bfa1112bbacd664dc4.webp?v=1705559645","width":2000},{"alt":null,"id":23178719199331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/242f06837ce5ef3143ef01f947d356031aeef748_a601f0f2-bc52-409a-821f-eb9ba2e85146.webp?v=1705559649"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/242f06837ce5ef3143ef01f947d356031aeef748_a601f0f2-bc52-409a-821f-eb9ba2e85146.webp?v=1705559649","width":2000},{"alt":null,"id":23178721984611,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/761295061e4de1244896a3842b217f6770750a7a.webp?v=1705559654"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/761295061e4de1244896a3842b217f6770750a7a.webp?v=1705559654","width":2000},{"alt":null,"id":23178724737123,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03bedb526ad52e71f10f019e9ae81458ca062bee_6d35324d-b93f-4ba3-a2c0-235d13fcfc70.webp?v=1705559658"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03bedb526ad52e71f10f019e9ae81458ca062bee_6d35324d-b93f-4ba3-a2c0-235d13fcfc70.webp?v=1705559658","width":2000},{"alt":null,"id":23178728046691,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05268c82cdec824c6925c33e1527cad13db75841_0aa35022-10bc-440a-bce0-83d05463881c.webp?v=1705559662"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05268c82cdec824c6925c33e1527cad13db75841_0aa35022-10bc-440a-bce0-83d05463881c.webp?v=1705559662","width":2000},{"alt":null,"id":23178730602595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21323331deee914aa614f2265a07f08e6b430e2e_33b9c1ed-898f-49a5-97a5-0391b686ba2e.webp?v=1705559666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21323331deee914aa614f2265a07f08e6b430e2e_33b9c1ed-898f-49a5-97a5-0391b686ba2e.webp?v=1705559666","width":2000},{"alt":null,"id":23178733584483,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/809d9c92d3f937a911ba38cb1a0c9f9ff7d47c99.webp?v=1705559670"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/809d9c92d3f937a911ba38cb1a0c9f9ff7d47c99.webp?v=1705559670","width":2000},{"alt":null,"id":23178736336995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6154a5803ff29e397a58b603814b7e4e56f3a251.webp?v=1705559674"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6154a5803ff29e397a58b603814b7e4e56f3a251.webp?v=1705559674","width":2000},{"alt":null,"id":23219597508707,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a812f2cdd298444146a2335ac1d83359672e50_0120afae-4b8f-419f-ae42-69db962a4714.webp?v=1706263258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a812f2cdd298444146a2335ac1d83359672e50_0120afae-4b8f-419f-ae42-69db962a4714.webp?v=1706263258","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41175397072995,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012610G-EO03","requires_shipping":true,"taxable":true,"featured_image":{"id":30848513015907,"product_id":7150843789411,"position":9,"created_at":"2024-01-26T18:00:58+08:00","updated_at":"2024-01-26T18:00:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a812f2cdd298444146a2335ac1d83359672e50_0120afae-4b8f-419f-ae42-69db962a4714.webp?v=1706263258","variant_ids":[41175397072995,41175397138531,41175397171299]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 14 Plus - 【聯名設計款】 - Weiweiboy - 可愛大王喜樂無常 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":108000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012610G-EO03","featured_media":{"alt":null,"id":23219597508707,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a812f2cdd298444146a2335ac1d83359672e50_0120afae-4b8f-419f-ae42-69db962a4714.webp?v=1706263258"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41175397138531,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012610H-EO03","requires_shipping":true,"taxable":true,"featured_image":{"id":30848513015907,"product_id":7150843789411,"position":9,"created_at":"2024-01-26T18:00:58+08:00","updated_at":"2024-01-26T18:00:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a812f2cdd298444146a2335ac1d83359672e50_0120afae-4b8f-419f-ae42-69db962a4714.webp?v=1706263258","variant_ids":[41175397072995,41175397138531,41175397171299]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 14 Plus - 【聯名設計款】 - Weiweiboy - 可愛大王喜樂無常 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":108000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012610H-EO03","featured_media":{"alt":null,"id":23219597508707,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a812f2cdd298444146a2335ac1d83359672e50_0120afae-4b8f-419f-ae42-69db962a4714.webp?v=1706263258"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41175397171299,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012610I-EO03","requires_shipping":true,"taxable":true,"featured_image":{"id":30848513015907,"product_id":7150843789411,"position":9,"created_at":"2024-01-26T18:00:58+08:00","updated_at":"2024-01-26T18:00:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a812f2cdd298444146a2335ac1d83359672e50_0120afae-4b8f-419f-ae42-69db962a4714.webp?v=1706263258","variant_ids":[41175397072995,41175397138531,41175397171299]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 14 Plus - 【聯名設計款】 - Weiweiboy - 可愛大王喜樂無常 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":108000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012610I-EO03","featured_media":{"alt":null,"id":23219597508707,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a812f2cdd298444146a2335ac1d83359672e50_0120afae-4b8f-419f-ae42-69db962a4714.webp?v=1706263258"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41175397072995,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012610G-EO03","requires_shipping":true,"taxable":true,"featured_image":{"id":30848513015907,"product_id":7150843789411,"position":9,"created_at":"2024-01-26T18:00:58+08:00","updated_at":"2024-01-26T18:00:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a812f2cdd298444146a2335ac1d83359672e50_0120afae-4b8f-419f-ae42-69db962a4714.webp?v=1706263258","variant_ids":[41175397072995,41175397138531,41175397171299]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 14 Plus - 【聯名設計款】 - Weiweiboy - 可愛大王喜樂無常 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":108000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012610G-EO03","featured_media":{"alt":null,"id":23219597508707,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a812f2cdd298444146a2335ac1d83359672e50_0120afae-4b8f-419f-ae42-69db962a4714.webp?v=1706263258"}},"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: "停產" }