$product = {"id":7411082985571,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 1G - 左看看","handle":"iphone-15-plus-mod-nx-magsafe-printable-iv05","description":null,"published_at":"2024-06-11T17:35:51+08:00","created_at":"2024-05-04T22:39:38+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 15 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-1chun","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41894792593507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-IV05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479465279587,"product_id":7411082985571,"position":2,"created_at":"2024-05-04T22:39:42+08:00","updated_at":"2024-05-04T22:39:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c55f0cae146817851b6d158a2c1bc8f59a982d_caf916f7-90be-41a8-9bb4-a2ad9deb861a.webp?v=1714833582","variant_ids":[41894792593507]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 1G - 左看看 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-IV05","featured_media":{"alt":null,"id":23884712902755,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c55f0cae146817851b6d158a2c1bc8f59a982d_caf916f7-90be-41a8-9bb4-a2ad9deb861a.webp?v=1714833582"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894792855651,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-IV05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479465869411,"product_id":7411082985571,"position":3,"created_at":"2024-05-04T22:39:45+08:00","updated_at":"2024-05-04T22:39:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e781452848d103d57d577391bbade7ab52eb2c6_69e2e437-f89e-4a0b-be7e-76b31789761c.webp?v=1714833585","variant_ids":[41894792855651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 1G - 左看看 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-IV05","featured_media":{"alt":null,"id":23884713459811,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e781452848d103d57d577391bbade7ab52eb2c6_69e2e437-f89e-4a0b-be7e-76b31789761c.webp?v=1714833585"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9744c7b2477ec8b76935f22ed27fc9f9aeabe025_d60ce4d5-1d17-4bec-a325-e971a18467f9.webp?v=1714833580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c55f0cae146817851b6d158a2c1bc8f59a982d_caf916f7-90be-41a8-9bb4-a2ad9deb861a.webp?v=1714833582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e781452848d103d57d577391bbade7ab52eb2c6_69e2e437-f89e-4a0b-be7e-76b31789761c.webp?v=1714833585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fb7faa215fc4380651c8cf7cbf44748ff60aadf_16842196-cf30-4d07-bcfd-c19a82ff8e9d.webp?v=1714833587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6081a27f2f9531e1889638077a0d61e7b174abf_0da85e1c-de29-4b67-8066-376dc97c225b.webp?v=1714833589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ed3556183530ed369130e4c92665760689abd21_d143684c-a29b-486d-b37f-7fa2d051d247.webp?v=1714833591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6069a66a815d37332404019dca7cab7756d5a05_3a3776fc-50a7-4c4c-bd36-f85784729fc2.webp?v=1714833594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c75ce6ba8d9e5a89dc49b110937aedd94ab22b01_12ff38e3-c995-4a6b-b5be-bbad55b7b942.webp?v=1714833596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b252eca1b8c17e2ee717c1d5ab2541e77a5ea22_973335f3-685a-4d24-839b-0ad8696cf7a1.webp?v=1714833598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23be326e84a64c9477553d95f1c32655e72a4309_c9276399-9d43-430a-bfee-3de81f6058d7.webp?v=1714833600"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9744c7b2477ec8b76935f22ed27fc9f9aeabe025_d60ce4d5-1d17-4bec-a325-e971a18467f9.webp?v=1714833580","options":["color"],"media":[{"alt":null,"id":23884712345699,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9744c7b2477ec8b76935f22ed27fc9f9aeabe025_d60ce4d5-1d17-4bec-a325-e971a18467f9.webp?v=1714833580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9744c7b2477ec8b76935f22ed27fc9f9aeabe025_d60ce4d5-1d17-4bec-a325-e971a18467f9.webp?v=1714833580","width":2000},{"alt":null,"id":23884712902755,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c55f0cae146817851b6d158a2c1bc8f59a982d_caf916f7-90be-41a8-9bb4-a2ad9deb861a.webp?v=1714833582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c55f0cae146817851b6d158a2c1bc8f59a982d_caf916f7-90be-41a8-9bb4-a2ad9deb861a.webp?v=1714833582","width":2000},{"alt":null,"id":23884713459811,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e781452848d103d57d577391bbade7ab52eb2c6_69e2e437-f89e-4a0b-be7e-76b31789761c.webp?v=1714833585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e781452848d103d57d577391bbade7ab52eb2c6_69e2e437-f89e-4a0b-be7e-76b31789761c.webp?v=1714833585","width":2000},{"alt":null,"id":23884714016867,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fb7faa215fc4380651c8cf7cbf44748ff60aadf_16842196-cf30-4d07-bcfd-c19a82ff8e9d.webp?v=1714833587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fb7faa215fc4380651c8cf7cbf44748ff60aadf_16842196-cf30-4d07-bcfd-c19a82ff8e9d.webp?v=1714833587","width":2000},{"alt":null,"id":23884714541155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6081a27f2f9531e1889638077a0d61e7b174abf_0da85e1c-de29-4b67-8066-376dc97c225b.webp?v=1714833589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6081a27f2f9531e1889638077a0d61e7b174abf_0da85e1c-de29-4b67-8066-376dc97c225b.webp?v=1714833589","width":2000},{"alt":null,"id":23884715065443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ed3556183530ed369130e4c92665760689abd21_d143684c-a29b-486d-b37f-7fa2d051d247.webp?v=1714833591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ed3556183530ed369130e4c92665760689abd21_d143684c-a29b-486d-b37f-7fa2d051d247.webp?v=1714833591","width":2000},{"alt":null,"id":23884715819107,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6069a66a815d37332404019dca7cab7756d5a05_3a3776fc-50a7-4c4c-bd36-f85784729fc2.webp?v=1714833594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6069a66a815d37332404019dca7cab7756d5a05_3a3776fc-50a7-4c4c-bd36-f85784729fc2.webp?v=1714833594","width":2000},{"alt":null,"id":23884716310627,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c75ce6ba8d9e5a89dc49b110937aedd94ab22b01_12ff38e3-c995-4a6b-b5be-bbad55b7b942.webp?v=1714833596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c75ce6ba8d9e5a89dc49b110937aedd94ab22b01_12ff38e3-c995-4a6b-b5be-bbad55b7b942.webp?v=1714833596","width":2000},{"alt":null,"id":23884716998755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b252eca1b8c17e2ee717c1d5ab2541e77a5ea22_973335f3-685a-4d24-839b-0ad8696cf7a1.webp?v=1714833598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b252eca1b8c17e2ee717c1d5ab2541e77a5ea22_973335f3-685a-4d24-839b-0ad8696cf7a1.webp?v=1714833598","width":2000},{"alt":null,"id":23884717621347,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23be326e84a64c9477553d95f1c32655e72a4309_c9276399-9d43-430a-bfee-3de81f6058d7.webp?v=1714833600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23be326e84a64c9477553d95f1c32655e72a4309_c9276399-9d43-430a-bfee-3de81f6058d7.webp?v=1714833600","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41894792593507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-IV05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479465279587,"product_id":7411082985571,"position":2,"created_at":"2024-05-04T22:39:42+08:00","updated_at":"2024-05-04T22:39:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c55f0cae146817851b6d158a2c1bc8f59a982d_caf916f7-90be-41a8-9bb4-a2ad9deb861a.webp?v=1714833582","variant_ids":[41894792593507]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 1G - 左看看 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-IV05","featured_media":{"alt":null,"id":23884712902755,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c55f0cae146817851b6d158a2c1bc8f59a982d_caf916f7-90be-41a8-9bb4-a2ad9deb861a.webp?v=1714833582"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894792855651,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-IV05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479465869411,"product_id":7411082985571,"position":3,"created_at":"2024-05-04T22:39:45+08:00","updated_at":"2024-05-04T22:39:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e781452848d103d57d577391bbade7ab52eb2c6_69e2e437-f89e-4a0b-be7e-76b31789761c.webp?v=1714833585","variant_ids":[41894792855651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 1G - 左看看 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-IV05","featured_media":{"alt":null,"id":23884713459811,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e781452848d103d57d577391bbade7ab52eb2c6_69e2e437-f89e-4a0b-be7e-76b31789761c.webp?v=1714833585"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41894792593507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-IV05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479465279587,"product_id":7411082985571,"position":2,"created_at":"2024-05-04T22:39:42+08:00","updated_at":"2024-05-04T22:39:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c55f0cae146817851b6d158a2c1bc8f59a982d_caf916f7-90be-41a8-9bb4-a2ad9deb861a.webp?v=1714833582","variant_ids":[41894792593507]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 1G - 左看看 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-IV05","featured_media":{"alt":null,"id":23884712902755,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c55f0cae146817851b6d158a2c1bc8f59a982d_caf916f7-90be-41a8-9bb4-a2ad9deb861a.webp?v=1714833582"}},"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: "停產" }