$product = {"id":7893896626275,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) Chubbynida 綠野花海","handle":"iphone-14-plus-mod-nx-magsafe-printable-chu03","description":null,"published_at":"2025-10-09T09:17:27+08:00","created_at":"2025-10-07T10:39:12+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-chubbynida","device-iPhone 14 Plus","merge","reseller-chubbynida"],"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":43763695157347,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-CHU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34553425985635,"product_id":7893896626275,"position":4,"created_at":"2025-10-07T10:39:16+08:00","updated_at":"2025-10-07T10:39:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dc89ecc24bc793826688a4c1e2da996901831e5.webp?v=1759804757","variant_ids":[43763695157347]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Chubbynida 綠野花海 - 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-CHU03","featured_media":{"alt":null,"id":26123073585251,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dc89ecc24bc793826688a4c1e2da996901831e5.webp?v=1759804757"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b2a07ecabf5331e73df6923ed1c88f70ca241d5.webp?v=1759804756","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a78a9ac8c88618e78246e535de3d3eaf11170f1d.webp?v=1759804756","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bb8927d18b37eadc3fa82038504e75fb12d46b4.webp?v=1759804757","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dc89ecc24bc793826688a4c1e2da996901831e5.webp?v=1759804757","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef990e5f68d919fd6b98c1e3819f9b22b642c9ce.webp?v=1759804760","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaed381762fa5e0925b501afb9a9a52766a408fc.webp?v=1759804761","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b9753feb9aa868aee19a943d9d2d919ef365e5c.webp?v=1759804761","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1778aad13af8b24a42667da674fb000fdc7aafc2.webp?v=1759804762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b223e2a7ab81b6736bf7174778b9f1adde2c458.webp?v=1759804763","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd9babcc89daf6825d88a323b132c96d9af61f55.webp?v=1759804763","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35adadbec6cc0baff1ac18daaf89a653e8a1185e.webp?v=1759804764","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca9aee4290b99b7d6a57511649f12122ec075c5c.webp?v=1759804765","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a5715bf5b36deea5fde6d8d23612ed77ce1b760.webp?v=1759804765"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b2a07ecabf5331e73df6923ed1c88f70ca241d5.webp?v=1759804756","options":["color"],"media":[{"alt":null,"id":26123072962659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b2a07ecabf5331e73df6923ed1c88f70ca241d5.webp?v=1759804756"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b2a07ecabf5331e73df6923ed1c88f70ca241d5.webp?v=1759804756","width":2000},{"alt":null,"id":26123073126499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a78a9ac8c88618e78246e535de3d3eaf11170f1d.webp?v=1759804756"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a78a9ac8c88618e78246e535de3d3eaf11170f1d.webp?v=1759804756","width":2000},{"alt":null,"id":26123073388643,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bb8927d18b37eadc3fa82038504e75fb12d46b4.webp?v=1759804757"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bb8927d18b37eadc3fa82038504e75fb12d46b4.webp?v=1759804757","width":2000},{"alt":null,"id":26123073585251,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dc89ecc24bc793826688a4c1e2da996901831e5.webp?v=1759804757"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dc89ecc24bc793826688a4c1e2da996901831e5.webp?v=1759804757","width":2000},{"alt":null,"id":26123073880163,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef990e5f68d919fd6b98c1e3819f9b22b642c9ce.webp?v=1759804760"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef990e5f68d919fd6b98c1e3819f9b22b642c9ce.webp?v=1759804760","width":2000},{"alt":null,"id":26123074207843,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaed381762fa5e0925b501afb9a9a52766a408fc.webp?v=1759804761"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaed381762fa5e0925b501afb9a9a52766a408fc.webp?v=1759804761","width":2000},{"alt":null,"id":26123074469987,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b9753feb9aa868aee19a943d9d2d919ef365e5c.webp?v=1759804761"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b9753feb9aa868aee19a943d9d2d919ef365e5c.webp?v=1759804761","width":2000},{"alt":null,"id":26123074699363,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1778aad13af8b24a42667da674fb000fdc7aafc2.webp?v=1759804762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1778aad13af8b24a42667da674fb000fdc7aafc2.webp?v=1759804762","width":2000},{"alt":null,"id":26123074895971,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b223e2a7ab81b6736bf7174778b9f1adde2c458.webp?v=1759804763"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b223e2a7ab81b6736bf7174778b9f1adde2c458.webp?v=1759804763","width":2000},{"alt":null,"id":26123075190883,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd9babcc89daf6825d88a323b132c96d9af61f55.webp?v=1759804763"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd9babcc89daf6825d88a323b132c96d9af61f55.webp?v=1759804763","width":2000},{"alt":null,"id":26123075453027,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35adadbec6cc0baff1ac18daaf89a653e8a1185e.webp?v=1759804764"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35adadbec6cc0baff1ac18daaf89a653e8a1185e.webp?v=1759804764","width":2000},{"alt":null,"id":26123075682403,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca9aee4290b99b7d6a57511649f12122ec075c5c.webp?v=1759804765"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca9aee4290b99b7d6a57511649f12122ec075c5c.webp?v=1759804765","width":2000},{"alt":null,"id":26123075944547,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a5715bf5b36deea5fde6d8d23612ed77ce1b760.webp?v=1759804765"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a5715bf5b36deea5fde6d8d23612ed77ce1b760.webp?v=1759804765","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43763695157347,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-CHU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34553425985635,"product_id":7893896626275,"position":4,"created_at":"2025-10-07T10:39:16+08:00","updated_at":"2025-10-07T10:39:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dc89ecc24bc793826688a4c1e2da996901831e5.webp?v=1759804757","variant_ids":[43763695157347]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Chubbynida 綠野花海 - 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-CHU03","featured_media":{"alt":null,"id":26123073585251,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dc89ecc24bc793826688a4c1e2da996901831e5.webp?v=1759804757"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43763695157347,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-CHU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34553425985635,"product_id":7893896626275,"position":4,"created_at":"2025-10-07T10:39:16+08:00","updated_at":"2025-10-07T10:39:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dc89ecc24bc793826688a4c1e2da996901831e5.webp?v=1759804757","variant_ids":[43763695157347]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Chubbynida 綠野花海 - 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-CHU03","featured_media":{"alt":null,"id":26123073585251,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dc89ecc24bc793826688a4c1e2da996901831e5.webp?v=1759804757"}},"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: "停產" }