$product = {"id":7876012081251,"title":"iPhone 14 Plus Mod NX 奧樂雞 OLOGY 戀愛成就","handle":"iphone-14-plus-mod-nx-printable-eb78","description":null,"published_at":"2025-09-04T10:31:21+08:00","created_at":"2025-09-03T11:37:09+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-byebyechuchu","device-iPhone 14 Plus","merge","reseller-byebyechuchu"],"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":43674964263011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-EB78","requires_shipping":true,"taxable":true,"featured_image":{"id":34416008953955,"product_id":7876012081251,"position":10,"created_at":"2025-09-03T11:37:20+08:00","updated_at":"2025-09-03T11:37:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1bfd77bd8f12d24e9c0f7c8428d4f7fecb96ebf.webp?v=1756870642","variant_ids":[43674964263011]},"available":true,"name":"iPhone 14 Plus Mod NX 奧樂雞 OLOGY 戀愛成就 - 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-EB78","featured_media":{"alt":null,"id":25988283793507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1bfd77bd8f12d24e9c0f7c8428d4f7fecb96ebf.webp?v=1756870642"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e57658bcc231f9157f5f075c7cd39a5a702da07d.webp?v=1756870636","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/821f5de5c7798ea869e85b0ce419d7fa89744a1c.webp?v=1756870636","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a460ce8d4a3e19fd2cb5ff405df65624a5b01b70.webp?v=1756870637","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8e91bb5b46d3dc54e6ba1e87a1d26ab8fcc9c08.webp?v=1756870638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/875d054231a0cff273cc73bb89aa286b8522342f.webp?v=1756870639","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2d87706775738147848d2c8ef58d158ae44e597.webp?v=1756870639","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b53ec9c8f28213e88267c493dc22e3f9a5b0dc55.webp?v=1756870641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af22b2eb038c7ff22c7a27081174667bbf3b2315.webp?v=1756870641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/785c47be867ea544255f7a16e6df418da52c0385.webp?v=1756870641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1bfd77bd8f12d24e9c0f7c8428d4f7fecb96ebf.webp?v=1756870642","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/039096ab4d9a1298b1de64f3fedc2f5cf8f57850.webp?v=1756870643","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67cb8d6ae576a1653adc03863251b54302443ed3.webp?v=1756870644","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e09a5038e467c4796c64592848bfe252418c957.webp?v=1756870644"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e57658bcc231f9157f5f075c7cd39a5a702da07d.webp?v=1756870636","options":["color"],"media":[{"alt":null,"id":25988281794659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e57658bcc231f9157f5f075c7cd39a5a702da07d.webp?v=1756870636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e57658bcc231f9157f5f075c7cd39a5a702da07d.webp?v=1756870636","width":2000},{"alt":null,"id":25988281991267,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/821f5de5c7798ea869e85b0ce419d7fa89744a1c.webp?v=1756870636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/821f5de5c7798ea869e85b0ce419d7fa89744a1c.webp?v=1756870636","width":2000},{"alt":null,"id":25988282187875,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a460ce8d4a3e19fd2cb5ff405df65624a5b01b70.webp?v=1756870637"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a460ce8d4a3e19fd2cb5ff405df65624a5b01b70.webp?v=1756870637","width":2000},{"alt":null,"id":25988282351715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8e91bb5b46d3dc54e6ba1e87a1d26ab8fcc9c08.webp?v=1756870638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8e91bb5b46d3dc54e6ba1e87a1d26ab8fcc9c08.webp?v=1756870638","width":2000},{"alt":null,"id":25988282581091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/875d054231a0cff273cc73bb89aa286b8522342f.webp?v=1756870639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/875d054231a0cff273cc73bb89aa286b8522342f.webp?v=1756870639","width":2000},{"alt":null,"id":25988282777699,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2d87706775738147848d2c8ef58d158ae44e597.webp?v=1756870639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2d87706775738147848d2c8ef58d158ae44e597.webp?v=1756870639","width":2000},{"alt":null,"id":25988283007075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b53ec9c8f28213e88267c493dc22e3f9a5b0dc55.webp?v=1756870641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b53ec9c8f28213e88267c493dc22e3f9a5b0dc55.webp?v=1756870641","width":2000},{"alt":null,"id":25988283301987,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af22b2eb038c7ff22c7a27081174667bbf3b2315.webp?v=1756870641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af22b2eb038c7ff22c7a27081174667bbf3b2315.webp?v=1756870641","width":2000},{"alt":null,"id":25988283498595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/785c47be867ea544255f7a16e6df418da52c0385.webp?v=1756870641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/785c47be867ea544255f7a16e6df418da52c0385.webp?v=1756870641","width":2000},{"alt":null,"id":25988283793507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1bfd77bd8f12d24e9c0f7c8428d4f7fecb96ebf.webp?v=1756870642"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1bfd77bd8f12d24e9c0f7c8428d4f7fecb96ebf.webp?v=1756870642","width":2000},{"alt":null,"id":25988284022883,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/039096ab4d9a1298b1de64f3fedc2f5cf8f57850.webp?v=1756870643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/039096ab4d9a1298b1de64f3fedc2f5cf8f57850.webp?v=1756870643","width":2000},{"alt":null,"id":25988284186723,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67cb8d6ae576a1653adc03863251b54302443ed3.webp?v=1756870644"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67cb8d6ae576a1653adc03863251b54302443ed3.webp?v=1756870644","width":2000},{"alt":null,"id":25988284350563,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e09a5038e467c4796c64592848bfe252418c957.webp?v=1756870644"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e09a5038e467c4796c64592848bfe252418c957.webp?v=1756870644","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43674964263011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-EB78","requires_shipping":true,"taxable":true,"featured_image":{"id":34416008953955,"product_id":7876012081251,"position":10,"created_at":"2025-09-03T11:37:20+08:00","updated_at":"2025-09-03T11:37:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1bfd77bd8f12d24e9c0f7c8428d4f7fecb96ebf.webp?v=1756870642","variant_ids":[43674964263011]},"available":true,"name":"iPhone 14 Plus Mod NX 奧樂雞 OLOGY 戀愛成就 - 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-EB78","featured_media":{"alt":null,"id":25988283793507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1bfd77bd8f12d24e9c0f7c8428d4f7fecb96ebf.webp?v=1756870642"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43674964263011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-EB78","requires_shipping":true,"taxable":true,"featured_image":{"id":34416008953955,"product_id":7876012081251,"position":10,"created_at":"2025-09-03T11:37:20+08:00","updated_at":"2025-09-03T11:37:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1bfd77bd8f12d24e9c0f7c8428d4f7fecb96ebf.webp?v=1756870642","variant_ids":[43674964263011]},"available":true,"name":"iPhone 14 Plus Mod NX 奧樂雞 OLOGY 戀愛成就 - 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-EB78","featured_media":{"alt":null,"id":25988283793507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1bfd77bd8f12d24e9c0f7c8428d4f7fecb96ebf.webp?v=1756870642"}},"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: "停產" }