$product = {"id":7876102979683,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 專注美好的事情","handle":"iphone-14-plus-mod-nx-magsafe-printable-ea106","description":null,"published_at":"2025-09-04T09:47:42+08:00","created_at":"2025-09-03T12:01:39+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-songsongmeow","device-iPhone 14 Plus","merge","reseller-songsongmeow"],"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":43675414986851,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EA106","requires_shipping":true,"taxable":true,"featured_image":{"id":34416378576995,"product_id":7876102979683,"position":2,"created_at":"2025-09-03T12:01:43+08:00","updated_at":"2025-09-03T12:01:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed54f5ac299c1f70b1c077b7aa6ea7fb2eb3ac7c.webp?v=1756872105","variant_ids":[43675414986851]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 專注美好的事情 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-EA106","featured_media":{"alt":null,"id":25988653056099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed54f5ac299c1f70b1c077b7aa6ea7fb2eb3ac7c.webp?v=1756872105"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/300017d874f870df8d7f6c44eafea1030323e41f.webp?v=1756872104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed54f5ac299c1f70b1c077b7aa6ea7fb2eb3ac7c.webp?v=1756872105","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab38f6e3a4de148be6f0698451ba34ce70d22d91.webp?v=1756872106","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f97c7ca6f78e6e59e65e63b45181bb462812beb5.webp?v=1756872108","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/447f9f38b5bda8fa97865f3210086fa35431a174.webp?v=1756872109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a708a909d73132594e0635952e73a413e9098b41.webp?v=1756872109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da051fba19de9ba0614d306d82a8e9d345e04d3c.webp?v=1756872111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cf38fc3887b80b9818224555978d56f13f33933.webp?v=1756872111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9aad3fe49c469b248e2c7bfd4f31b30c1fc27c18.webp?v=1756872112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4e8e2dc255ddb78ab33844b2e4a400e54070f7d.webp?v=1756872113","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c0c7de702eb5895fd4a1b81bb905601612d5703.webp?v=1756872114","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/411126fe8540a1f3c3556f61c0f5238327b74d87.webp?v=1756872115","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c9d37361f7b200b31ea2cc08f86cd6dc736a395.webp?v=1756872115"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/300017d874f870df8d7f6c44eafea1030323e41f.webp?v=1756872104","options":["color"],"media":[{"alt":null,"id":25988652859491,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/300017d874f870df8d7f6c44eafea1030323e41f.webp?v=1756872104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/300017d874f870df8d7f6c44eafea1030323e41f.webp?v=1756872104","width":2000},{"alt":null,"id":25988653056099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed54f5ac299c1f70b1c077b7aa6ea7fb2eb3ac7c.webp?v=1756872105"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed54f5ac299c1f70b1c077b7aa6ea7fb2eb3ac7c.webp?v=1756872105","width":2000},{"alt":null,"id":25988653383779,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab38f6e3a4de148be6f0698451ba34ce70d22d91.webp?v=1756872106"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab38f6e3a4de148be6f0698451ba34ce70d22d91.webp?v=1756872106","width":2000},{"alt":null,"id":25988654006371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f97c7ca6f78e6e59e65e63b45181bb462812beb5.webp?v=1756872108"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f97c7ca6f78e6e59e65e63b45181bb462812beb5.webp?v=1756872108","width":2000},{"alt":null,"id":25988654202979,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/447f9f38b5bda8fa97865f3210086fa35431a174.webp?v=1756872109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/447f9f38b5bda8fa97865f3210086fa35431a174.webp?v=1756872109","width":2000},{"alt":null,"id":25988654465123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a708a909d73132594e0635952e73a413e9098b41.webp?v=1756872109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a708a909d73132594e0635952e73a413e9098b41.webp?v=1756872109","width":2000},{"alt":null,"id":25988654792803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da051fba19de9ba0614d306d82a8e9d345e04d3c.webp?v=1756872111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da051fba19de9ba0614d306d82a8e9d345e04d3c.webp?v=1756872111","width":2000},{"alt":null,"id":25988655054947,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cf38fc3887b80b9818224555978d56f13f33933.webp?v=1756872111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cf38fc3887b80b9818224555978d56f13f33933.webp?v=1756872111","width":2000},{"alt":null,"id":25988655382627,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9aad3fe49c469b248e2c7bfd4f31b30c1fc27c18.webp?v=1756872112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9aad3fe49c469b248e2c7bfd4f31b30c1fc27c18.webp?v=1756872112","width":2000},{"alt":null,"id":25988655677539,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4e8e2dc255ddb78ab33844b2e4a400e54070f7d.webp?v=1756872113"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4e8e2dc255ddb78ab33844b2e4a400e54070f7d.webp?v=1756872113","width":2000},{"alt":null,"id":25988656005219,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c0c7de702eb5895fd4a1b81bb905601612d5703.webp?v=1756872114"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c0c7de702eb5895fd4a1b81bb905601612d5703.webp?v=1756872114","width":2000},{"alt":null,"id":25988656300131,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/411126fe8540a1f3c3556f61c0f5238327b74d87.webp?v=1756872115"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/411126fe8540a1f3c3556f61c0f5238327b74d87.webp?v=1756872115","width":2000},{"alt":null,"id":25988656562275,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c9d37361f7b200b31ea2cc08f86cd6dc736a395.webp?v=1756872115"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c9d37361f7b200b31ea2cc08f86cd6dc736a395.webp?v=1756872115","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43675414986851,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EA106","requires_shipping":true,"taxable":true,"featured_image":{"id":34416378576995,"product_id":7876102979683,"position":2,"created_at":"2025-09-03T12:01:43+08:00","updated_at":"2025-09-03T12:01:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed54f5ac299c1f70b1c077b7aa6ea7fb2eb3ac7c.webp?v=1756872105","variant_ids":[43675414986851]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 專注美好的事情 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-EA106","featured_media":{"alt":null,"id":25988653056099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed54f5ac299c1f70b1c077b7aa6ea7fb2eb3ac7c.webp?v=1756872105"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43675414986851,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EA106","requires_shipping":true,"taxable":true,"featured_image":{"id":34416378576995,"product_id":7876102979683,"position":2,"created_at":"2025-09-03T12:01:43+08:00","updated_at":"2025-09-03T12:01:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed54f5ac299c1f70b1c077b7aa6ea7fb2eb3ac7c.webp?v=1756872105","variant_ids":[43675414986851]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 專注美好的事情 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-EA106","featured_media":{"alt":null,"id":25988653056099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed54f5ac299c1f70b1c077b7aa6ea7fb2eb3ac7c.webp?v=1756872105"}},"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: "停產" }