$product = {"id":7407671574627,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 漫畫風格","handle":"iphone-14-plus-mod-nx-printable-sb02","description":null,"published_at":"2024-06-11T16:21:47+08:00","created_at":"2024-05-03T10:39:53+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-batman","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41877451309155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470193049699,"product_id":7407671574627,"position":7,"created_at":"2024-05-03T10:40:10+08:00","updated_at":"2024-05-03T10:40:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/486faae0a3dc2ba62db8678a86100ddc13e6c081_3c8bc881-794a-421e-9406-025b3c705c37.webp?v=1714704010","variant_ids":[41877451309155]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 漫畫風格 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-SB02","featured_media":{"alt":null,"id":23875096051811,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/486faae0a3dc2ba62db8678a86100ddc13e6c081_3c8bc881-794a-421e-9406-025b3c705c37.webp?v=1714704010"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b774cf816eddcaef4f6b9b5a117db266b0581be9_44b72842-3498-4bb9-ad48-f7aad7e86da6.webp?v=1714703996","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/475e747105694c3499a9ef5ae0b52ab34175e012_5f0ee7a4-07a9-42cf-81d0-5617ce88b00f.webp?v=1714703998","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f358c07a4fbc01c84f47860ae9848316344e4e7_5f08fe6d-69f7-45bf-818a-30e941bf06ea.webp?v=1714704001","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/644588c1adef047f3c4f0bb5028c23dd2a87706c_de2aeb5e-5290-43b3-80ce-4305c27d76fe.webp?v=1714704003","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c058dcd454119c945404557e9658258320218a6_12cf0ae0-a0fc-41ec-94b1-80f7a29ae1cd.webp?v=1714704006","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a89588b7546056eac617a791fa0a2e9517a46c8a_19a17b40-a3e4-4f4e-b3cb-ebbdc2549fd7.webp?v=1714704008","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/486faae0a3dc2ba62db8678a86100ddc13e6c081_3c8bc881-794a-421e-9406-025b3c705c37.webp?v=1714704010","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73c0d926f60cb043298446259e67d3a39430e44b_4a2897c3-9227-49d1-b540-53a5fd1be7f6.webp?v=1714704012","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09f9d03368ae014c37f9c8f7f392edafd2780e5c_71ce885f-da22-46a2-97a1-d8f7f7caab1d.webp?v=1714704015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e401af48937ad078814eadc4e49371723bab82d_e1aa0bea-514d-4135-b708-362add9f1e3b.webp?v=1714704018"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b774cf816eddcaef4f6b9b5a117db266b0581be9_44b72842-3498-4bb9-ad48-f7aad7e86da6.webp?v=1714703996","options":["color"],"media":[{"alt":null,"id":23875091169379,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b774cf816eddcaef4f6b9b5a117db266b0581be9_44b72842-3498-4bb9-ad48-f7aad7e86da6.webp?v=1714703996"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b774cf816eddcaef4f6b9b5a117db266b0581be9_44b72842-3498-4bb9-ad48-f7aad7e86da6.webp?v=1714703996","width":2000},{"alt":null,"id":23875091955811,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/475e747105694c3499a9ef5ae0b52ab34175e012_5f0ee7a4-07a9-42cf-81d0-5617ce88b00f.webp?v=1714703998"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/475e747105694c3499a9ef5ae0b52ab34175e012_5f0ee7a4-07a9-42cf-81d0-5617ce88b00f.webp?v=1714703998","width":2000},{"alt":null,"id":23875093430371,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f358c07a4fbc01c84f47860ae9848316344e4e7_5f08fe6d-69f7-45bf-818a-30e941bf06ea.webp?v=1714704001"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f358c07a4fbc01c84f47860ae9848316344e4e7_5f08fe6d-69f7-45bf-818a-30e941bf06ea.webp?v=1714704001","width":2000},{"alt":null,"id":23875094020195,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/644588c1adef047f3c4f0bb5028c23dd2a87706c_de2aeb5e-5290-43b3-80ce-4305c27d76fe.webp?v=1714704003"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/644588c1adef047f3c4f0bb5028c23dd2a87706c_de2aeb5e-5290-43b3-80ce-4305c27d76fe.webp?v=1714704003","width":2000},{"alt":null,"id":23875094806627,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c058dcd454119c945404557e9658258320218a6_12cf0ae0-a0fc-41ec-94b1-80f7a29ae1cd.webp?v=1714704006"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c058dcd454119c945404557e9658258320218a6_12cf0ae0-a0fc-41ec-94b1-80f7a29ae1cd.webp?v=1714704006","width":2000},{"alt":null,"id":23875095527523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a89588b7546056eac617a791fa0a2e9517a46c8a_19a17b40-a3e4-4f4e-b3cb-ebbdc2549fd7.webp?v=1714704008"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a89588b7546056eac617a791fa0a2e9517a46c8a_19a17b40-a3e4-4f4e-b3cb-ebbdc2549fd7.webp?v=1714704008","width":2000},{"alt":null,"id":23875096051811,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/486faae0a3dc2ba62db8678a86100ddc13e6c081_3c8bc881-794a-421e-9406-025b3c705c37.webp?v=1714704010"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/486faae0a3dc2ba62db8678a86100ddc13e6c081_3c8bc881-794a-421e-9406-025b3c705c37.webp?v=1714704010","width":2000},{"alt":null,"id":23875096772707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73c0d926f60cb043298446259e67d3a39430e44b_4a2897c3-9227-49d1-b540-53a5fd1be7f6.webp?v=1714704012"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73c0d926f60cb043298446259e67d3a39430e44b_4a2897c3-9227-49d1-b540-53a5fd1be7f6.webp?v=1714704012","width":2000},{"alt":null,"id":23875097526371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09f9d03368ae014c37f9c8f7f392edafd2780e5c_71ce885f-da22-46a2-97a1-d8f7f7caab1d.webp?v=1714704015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09f9d03368ae014c37f9c8f7f392edafd2780e5c_71ce885f-da22-46a2-97a1-d8f7f7caab1d.webp?v=1714704015","width":2000},{"alt":null,"id":23875097952355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e401af48937ad078814eadc4e49371723bab82d_e1aa0bea-514d-4135-b708-362add9f1e3b.webp?v=1714704018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e401af48937ad078814eadc4e49371723bab82d_e1aa0bea-514d-4135-b708-362add9f1e3b.webp?v=1714704018","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41877451309155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470193049699,"product_id":7407671574627,"position":7,"created_at":"2024-05-03T10:40:10+08:00","updated_at":"2024-05-03T10:40:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/486faae0a3dc2ba62db8678a86100ddc13e6c081_3c8bc881-794a-421e-9406-025b3c705c37.webp?v=1714704010","variant_ids":[41877451309155]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 漫畫風格 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-SB02","featured_media":{"alt":null,"id":23875096051811,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/486faae0a3dc2ba62db8678a86100ddc13e6c081_3c8bc881-794a-421e-9406-025b3c705c37.webp?v=1714704010"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41877451309155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470193049699,"product_id":7407671574627,"position":7,"created_at":"2024-05-03T10:40:10+08:00","updated_at":"2024-05-03T10:40:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/486faae0a3dc2ba62db8678a86100ddc13e6c081_3c8bc881-794a-421e-9406-025b3c705c37.webp?v=1714704010","variant_ids":[41877451309155]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 漫畫風格 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-SB02","featured_media":{"alt":null,"id":23875096051811,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/486faae0a3dc2ba62db8678a86100ddc13e6c081_3c8bc881-794a-421e-9406-025b3c705c37.webp?v=1714704010"}},"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: "停產" }