$product = {"id":7937563721827,"title":"iPhone 14 Plus Mod NX Jin Young Choi 毛茸茸狗狗圖書館","handle":"iphone-14-plus-mod-nx-cjy12","description":null,"published_at":"2025-12-12T09:49:10+08:00","created_at":"2025-12-11T09:48:19+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":90000,"price_min":90000,"price_max":90000,"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":43882992730211,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-CJY12","requires_shipping":true,"taxable":true,"featured_image":{"id":34930869993571,"product_id":7937563721827,"position":8,"created_at":"2025-12-11T09:48:27+08:00","updated_at":"2025-12-11T09:48:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc68319fb357645b7350ca83a7985698e18dc463.webp?v=1765417709","variant_ids":[43882992730211]},"available":true,"name":"iPhone 14 Plus Mod NX Jin Young Choi 毛茸茸狗狗圖書館 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-CJY12","featured_media":{"alt":null,"id":26493244440675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc68319fb357645b7350ca83a7985698e18dc463.webp?v=1765417709"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5584b1f4548ab2312e8b8a871f59f319352a3ed9.webp?v=1765417706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ba44b6d324a9962c973694e985675e0c1065abb.webp?v=1765417706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b3130f14dafce726915d2c7022121b18787a36.webp?v=1765417707","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68fbcb96c8b1b76bb05ebc7363ed702374f77eab.webp?v=1765417707","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a80dffb5ae6efd2710866986c52a6f5a7dd010bb.webp?v=1765417708","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e17c55e7bed2f42da4f38c4afb4dd57d8a8dcfc.webp?v=1765417708","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92714ef68230032c8a5869d53e151216e0213bd0.webp?v=1765417709","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc68319fb357645b7350ca83a7985698e18dc463.webp?v=1765417709","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f240cb2c7e4c18ef75cd742a014445f7c4eada3.webp?v=1765417710","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a2f5fea93412b7caaa5fb7acdc169557bf6458e.webp?v=1765417711","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164749c9ea7183464c66d3bab4233b92cb7cb2f2.webp?v=1765417711","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bb0b9d82ee9a28044d8542e6e0eaf056cf466e5.webp?v=1765417711","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7db681b6a6f6502c37d734bec50bcd3e511abe8f.webp?v=1765417713"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5584b1f4548ab2312e8b8a871f59f319352a3ed9.webp?v=1765417706","options":["color"],"media":[{"alt":null,"id":26493243129955,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5584b1f4548ab2312e8b8a871f59f319352a3ed9.webp?v=1765417706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5584b1f4548ab2312e8b8a871f59f319352a3ed9.webp?v=1765417706","width":2000},{"alt":null,"id":26493243359331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ba44b6d324a9962c973694e985675e0c1065abb.webp?v=1765417706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ba44b6d324a9962c973694e985675e0c1065abb.webp?v=1765417706","width":2000},{"alt":null,"id":26493243555939,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b3130f14dafce726915d2c7022121b18787a36.webp?v=1765417707"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b3130f14dafce726915d2c7022121b18787a36.webp?v=1765417707","width":2000},{"alt":null,"id":26493243719779,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68fbcb96c8b1b76bb05ebc7363ed702374f77eab.webp?v=1765417707"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68fbcb96c8b1b76bb05ebc7363ed702374f77eab.webp?v=1765417707","width":2000},{"alt":null,"id":26493243883619,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a80dffb5ae6efd2710866986c52a6f5a7dd010bb.webp?v=1765417708"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a80dffb5ae6efd2710866986c52a6f5a7dd010bb.webp?v=1765417708","width":2000},{"alt":null,"id":26493244080227,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e17c55e7bed2f42da4f38c4afb4dd57d8a8dcfc.webp?v=1765417708"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e17c55e7bed2f42da4f38c4afb4dd57d8a8dcfc.webp?v=1765417708","width":2000},{"alt":null,"id":26493244244067,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92714ef68230032c8a5869d53e151216e0213bd0.webp?v=1765417709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92714ef68230032c8a5869d53e151216e0213bd0.webp?v=1765417709","width":2000},{"alt":null,"id":26493244440675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc68319fb357645b7350ca83a7985698e18dc463.webp?v=1765417709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc68319fb357645b7350ca83a7985698e18dc463.webp?v=1765417709","width":2000},{"alt":null,"id":26493244637283,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f240cb2c7e4c18ef75cd742a014445f7c4eada3.webp?v=1765417710"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f240cb2c7e4c18ef75cd742a014445f7c4eada3.webp?v=1765417710","width":2000},{"alt":null,"id":26493244801123,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a2f5fea93412b7caaa5fb7acdc169557bf6458e.webp?v=1765417711"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a2f5fea93412b7caaa5fb7acdc169557bf6458e.webp?v=1765417711","width":2000},{"alt":null,"id":26493244899427,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164749c9ea7183464c66d3bab4233b92cb7cb2f2.webp?v=1765417711"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164749c9ea7183464c66d3bab4233b92cb7cb2f2.webp?v=1765417711","width":2000},{"alt":null,"id":26493245096035,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bb0b9d82ee9a28044d8542e6e0eaf056cf466e5.webp?v=1765417711"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bb0b9d82ee9a28044d8542e6e0eaf056cf466e5.webp?v=1765417711","width":2000},{"alt":null,"id":26493245227107,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7db681b6a6f6502c37d734bec50bcd3e511abe8f.webp?v=1765417713"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7db681b6a6f6502c37d734bec50bcd3e511abe8f.webp?v=1765417713","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43882992730211,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-CJY12","requires_shipping":true,"taxable":true,"featured_image":{"id":34930869993571,"product_id":7937563721827,"position":8,"created_at":"2025-12-11T09:48:27+08:00","updated_at":"2025-12-11T09:48:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc68319fb357645b7350ca83a7985698e18dc463.webp?v=1765417709","variant_ids":[43882992730211]},"available":true,"name":"iPhone 14 Plus Mod NX Jin Young Choi 毛茸茸狗狗圖書館 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-CJY12","featured_media":{"alt":null,"id":26493244440675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc68319fb357645b7350ca83a7985698e18dc463.webp?v=1765417709"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43882992730211,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-CJY12","requires_shipping":true,"taxable":true,"featured_image":{"id":34930869993571,"product_id":7937563721827,"position":8,"created_at":"2025-12-11T09:48:27+08:00","updated_at":"2025-12-11T09:48:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc68319fb357645b7350ca83a7985698e18dc463.webp?v=1765417709","variant_ids":[43882992730211]},"available":true,"name":"iPhone 14 Plus Mod NX Jin Young Choi 毛茸茸狗狗圖書館 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-CJY12","featured_media":{"alt":null,"id":26493244440675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc68319fb357645b7350ca83a7985698e18dc463.webp?v=1765417709"}},"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: "停產" }