$product = {"id":7937568243811,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) Jin Young Choi 幸運小精靈","handle":"iphone-14-plus-mod-nx-magsafe-cjy09","description":null,"published_at":"2025-12-12T09:48:20+08:00","created_at":"2025-12-11T09:49:29+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jychoioioi","device-iPhone 14 Plus","merge","reseller-jychoioioi"],"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":43883009736803,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-CJY09","requires_shipping":true,"taxable":true,"featured_image":{"id":34930891096163,"product_id":7937568243811,"position":2,"created_at":"2025-12-11T09:49:35+08:00","updated_at":"2025-12-11T09:49:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/600bd1484cbe0abaed80a3fa1498c828138a06e6.webp?v=1765417777","variant_ids":[43883009736803]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Jin Young Choi 幸運小精靈 - 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-CJY09","featured_media":{"alt":null,"id":26493265510499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/600bd1484cbe0abaed80a3fa1498c828138a06e6.webp?v=1765417777"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d10a0650d14cde8e1efbcd92c6061c5619f5aeb4.webp?v=1765417776","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/600bd1484cbe0abaed80a3fa1498c828138a06e6.webp?v=1765417777","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bdb1fa688bdbab43e7d8ee3792eea547dfb877b.webp?v=1765417778","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5244bf4d026e65daa4949ab836c61d54fd6dfc6.webp?v=1765417779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ea0754e22fda0c4b9f925527c173e9dea3dc174.webp?v=1765417779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33f63dc4a740f60f1234c8d26eecd6efe5d101a8.webp?v=1765417780","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fbf5acbc6bc31a5df749dc653530c7a0bc26343.webp?v=1765417780","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1e48dcc6dc03b00b5af9fd64cf9463887350128.webp?v=1765417781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9815a2647d847bbb634736b78e4c2d852be8fc17.webp?v=1765417781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ac6e2d697477410c07f887bda6fed84c10bac2a.webp?v=1765417782","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b54f727c01ae89e24ca262ea3c1c29bfa3d5d52c.webp?v=1765417782","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff53c4e6b7b5eba0f3a074a7e689ca0c5d304f8e.webp?v=1765417783","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01329f0894ac23b1fac23ca321f49df1197d89ac.webp?v=1765417783"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d10a0650d14cde8e1efbcd92c6061c5619f5aeb4.webp?v=1765417776","options":["color"],"media":[{"alt":null,"id":26493265313891,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d10a0650d14cde8e1efbcd92c6061c5619f5aeb4.webp?v=1765417776"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d10a0650d14cde8e1efbcd92c6061c5619f5aeb4.webp?v=1765417776","width":2000},{"alt":null,"id":26493265510499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/600bd1484cbe0abaed80a3fa1498c828138a06e6.webp?v=1765417777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/600bd1484cbe0abaed80a3fa1498c828138a06e6.webp?v=1765417777","width":2000},{"alt":null,"id":26493265739875,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bdb1fa688bdbab43e7d8ee3792eea547dfb877b.webp?v=1765417778"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bdb1fa688bdbab43e7d8ee3792eea547dfb877b.webp?v=1765417778","width":2000},{"alt":null,"id":26493266034787,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5244bf4d026e65daa4949ab836c61d54fd6dfc6.webp?v=1765417779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5244bf4d026e65daa4949ab836c61d54fd6dfc6.webp?v=1765417779","width":2000},{"alt":null,"id":26493266231395,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ea0754e22fda0c4b9f925527c173e9dea3dc174.webp?v=1765417779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ea0754e22fda0c4b9f925527c173e9dea3dc174.webp?v=1765417779","width":2000},{"alt":null,"id":26493266395235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33f63dc4a740f60f1234c8d26eecd6efe5d101a8.webp?v=1765417780"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33f63dc4a740f60f1234c8d26eecd6efe5d101a8.webp?v=1765417780","width":2000},{"alt":null,"id":26493266591843,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fbf5acbc6bc31a5df749dc653530c7a0bc26343.webp?v=1765417780"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fbf5acbc6bc31a5df749dc653530c7a0bc26343.webp?v=1765417780","width":2000},{"alt":null,"id":26493266853987,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1e48dcc6dc03b00b5af9fd64cf9463887350128.webp?v=1765417781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1e48dcc6dc03b00b5af9fd64cf9463887350128.webp?v=1765417781","width":2000},{"alt":null,"id":26493266952291,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9815a2647d847bbb634736b78e4c2d852be8fc17.webp?v=1765417781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9815a2647d847bbb634736b78e4c2d852be8fc17.webp?v=1765417781","width":2000},{"alt":null,"id":26493267017827,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ac6e2d697477410c07f887bda6fed84c10bac2a.webp?v=1765417782"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ac6e2d697477410c07f887bda6fed84c10bac2a.webp?v=1765417782","width":2000},{"alt":null,"id":26493267083363,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b54f727c01ae89e24ca262ea3c1c29bfa3d5d52c.webp?v=1765417782"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b54f727c01ae89e24ca262ea3c1c29bfa3d5d52c.webp?v=1765417782","width":2000},{"alt":null,"id":26493267148899,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff53c4e6b7b5eba0f3a074a7e689ca0c5d304f8e.webp?v=1765417783"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff53c4e6b7b5eba0f3a074a7e689ca0c5d304f8e.webp?v=1765417783","width":2000},{"alt":null,"id":26493267214435,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01329f0894ac23b1fac23ca321f49df1197d89ac.webp?v=1765417783"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01329f0894ac23b1fac23ca321f49df1197d89ac.webp?v=1765417783","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43883009736803,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-CJY09","requires_shipping":true,"taxable":true,"featured_image":{"id":34930891096163,"product_id":7937568243811,"position":2,"created_at":"2025-12-11T09:49:35+08:00","updated_at":"2025-12-11T09:49:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/600bd1484cbe0abaed80a3fa1498c828138a06e6.webp?v=1765417777","variant_ids":[43883009736803]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Jin Young Choi 幸運小精靈 - 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-CJY09","featured_media":{"alt":null,"id":26493265510499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/600bd1484cbe0abaed80a3fa1498c828138a06e6.webp?v=1765417777"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43883009736803,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-CJY09","requires_shipping":true,"taxable":true,"featured_image":{"id":34930891096163,"product_id":7937568243811,"position":2,"created_at":"2025-12-11T09:49:35+08:00","updated_at":"2025-12-11T09:49:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/600bd1484cbe0abaed80a3fa1498c828138a06e6.webp?v=1765417777","variant_ids":[43883009736803]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Jin Young Choi 幸運小精靈 - 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-CJY09","featured_media":{"alt":null,"id":26493265510499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/600bd1484cbe0abaed80a3fa1498c828138a06e6.webp?v=1765417777"}},"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: "停產" }