$product = {"id":7937702789219,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) Jin Young Choi 蘭花貓","handle":"iphone-14-plus-mod-nx-magsafe-cjy10","description":null,"published_at":"2025-12-12T09:24:00+08:00","created_at":"2025-12-11T10:25:39+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":43883526193251,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-CJY10","requires_shipping":true,"taxable":true,"featured_image":{"id":34931777142883,"product_id":7937702789219,"position":13,"created_at":"2025-12-11T10:25:50+08:00","updated_at":"2025-12-11T10:25:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12780d538303210d3df1260ba4529c91d3b42a1b.webp?v=1765419952","variant_ids":[43883526193251]},"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-CJY10","featured_media":{"alt":null,"id":26494151524451,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12780d538303210d3df1260ba4529c91d3b42a1b.webp?v=1765419952"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d84390df94082cf14a55c66179d5c65b4d60940.webp?v=1765419946","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70e74192c9473f0139a6d46a6a339d06c99f47a9.webp?v=1765419946","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abcbf14d71aa1f0865a6cf8147d5d4d99c821f99.webp?v=1765419946","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9d5174b8ad78c88daad3e8e6ee63c3308231d4c.webp?v=1765419947","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96d6a73d262f6aa018ab40b43168403da353da72.webp?v=1765419948","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1808d1990d1115cc7f5e721d7dffab231c806d0a.webp?v=1765419948","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bab686c6aeba65a14242e715ce4b86c9822da54.webp?v=1765419949","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2c6ecd7ea1910171ebeb24c9c0dab751b868406.webp?v=1765419949","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e25457b61ea42af5bac934e5cdb8ee25acbe020e.webp?v=1765419950","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b094ebd28204dc821cfda24841845b969680cfbe.webp?v=1765419950","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fbaf94259578fb112b073479b2b122f8f26fca4.webp?v=1765419951","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/666b4e08c23675046b161e0eb19c3fb917bd08a8.webp?v=1765419952","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12780d538303210d3df1260ba4529c91d3b42a1b.webp?v=1765419952"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d84390df94082cf14a55c66179d5c65b4d60940.webp?v=1765419946","options":["color"],"media":[{"alt":null,"id":26494148903011,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d84390df94082cf14a55c66179d5c65b4d60940.webp?v=1765419946"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d84390df94082cf14a55c66179d5c65b4d60940.webp?v=1765419946","width":2000},{"alt":null,"id":26494149132387,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70e74192c9473f0139a6d46a6a339d06c99f47a9.webp?v=1765419946"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70e74192c9473f0139a6d46a6a339d06c99f47a9.webp?v=1765419946","width":2000},{"alt":null,"id":26494149263459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abcbf14d71aa1f0865a6cf8147d5d4d99c821f99.webp?v=1765419946"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abcbf14d71aa1f0865a6cf8147d5d4d99c821f99.webp?v=1765419946","width":2000},{"alt":null,"id":26494149394531,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9d5174b8ad78c88daad3e8e6ee63c3308231d4c.webp?v=1765419947"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9d5174b8ad78c88daad3e8e6ee63c3308231d4c.webp?v=1765419947","width":2000},{"alt":null,"id":26494149492835,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96d6a73d262f6aa018ab40b43168403da353da72.webp?v=1765419948"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96d6a73d262f6aa018ab40b43168403da353da72.webp?v=1765419948","width":2000},{"alt":null,"id":26494149656675,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1808d1990d1115cc7f5e721d7dffab231c806d0a.webp?v=1765419948"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1808d1990d1115cc7f5e721d7dffab231c806d0a.webp?v=1765419948","width":2000},{"alt":null,"id":26494149787747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bab686c6aeba65a14242e715ce4b86c9822da54.webp?v=1765419949"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bab686c6aeba65a14242e715ce4b86c9822da54.webp?v=1765419949","width":2000},{"alt":null,"id":26494149951587,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2c6ecd7ea1910171ebeb24c9c0dab751b868406.webp?v=1765419949"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2c6ecd7ea1910171ebeb24c9c0dab751b868406.webp?v=1765419949","width":2000},{"alt":null,"id":26494150115427,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e25457b61ea42af5bac934e5cdb8ee25acbe020e.webp?v=1765419950"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e25457b61ea42af5bac934e5cdb8ee25acbe020e.webp?v=1765419950","width":2000},{"alt":null,"id":26494150279267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b094ebd28204dc821cfda24841845b969680cfbe.webp?v=1765419950"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b094ebd28204dc821cfda24841845b969680cfbe.webp?v=1765419950","width":2000},{"alt":null,"id":26494150508643,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fbaf94259578fb112b073479b2b122f8f26fca4.webp?v=1765419951"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fbaf94259578fb112b073479b2b122f8f26fca4.webp?v=1765419951","width":2000},{"alt":null,"id":26494150836323,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/666b4e08c23675046b161e0eb19c3fb917bd08a8.webp?v=1765419952"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/666b4e08c23675046b161e0eb19c3fb917bd08a8.webp?v=1765419952","width":2000},{"alt":null,"id":26494151524451,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12780d538303210d3df1260ba4529c91d3b42a1b.webp?v=1765419952"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12780d538303210d3df1260ba4529c91d3b42a1b.webp?v=1765419952","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43883526193251,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-CJY10","requires_shipping":true,"taxable":true,"featured_image":{"id":34931777142883,"product_id":7937702789219,"position":13,"created_at":"2025-12-11T10:25:50+08:00","updated_at":"2025-12-11T10:25:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12780d538303210d3df1260ba4529c91d3b42a1b.webp?v=1765419952","variant_ids":[43883526193251]},"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-CJY10","featured_media":{"alt":null,"id":26494151524451,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12780d538303210d3df1260ba4529c91d3b42a1b.webp?v=1765419952"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43883526193251,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-CJY10","requires_shipping":true,"taxable":true,"featured_image":{"id":34931777142883,"product_id":7937702789219,"position":13,"created_at":"2025-12-11T10:25:50+08:00","updated_at":"2025-12-11T10:25:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12780d538303210d3df1260ba4529c91d3b42a1b.webp?v=1765419952","variant_ids":[43883526193251]},"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-CJY10","featured_media":{"alt":null,"id":26494151524451,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12780d538303210d3df1260ba4529c91d3b42a1b.webp?v=1765419952"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (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: "停產" }