$product = {"id":7921279893603,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 懶散兔與啾先生 煙火","handle":"iphone-14-plus-mod-nx-magsafe-ec75","description":null,"published_at":"2025-11-14T10:29:18+08:00","created_at":"2025-11-11T10:36:06+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-bylobster","device-iPhone 14 Plus","merge","reseller-bylobster"],"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":43831438344291,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EC75","requires_shipping":true,"taxable":true,"featured_image":{"id":34786887204963,"product_id":7921279893603,"position":4,"created_at":"2025-11-11T10:36:10+08:00","updated_at":"2025-11-11T10:36:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/466f6d6ee8065f41b887446dc6bb570d4cddd95f.webp?v=1762828572","variant_ids":[43831438344291]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 懶散兔與啾先生 煙火 - 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-EC75","featured_media":{"alt":null,"id":26352343351395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/466f6d6ee8065f41b887446dc6bb570d4cddd95f.webp?v=1762828572"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/294afd47d72b0d769f3b1726e6ca8453871f6cbf.webp?v=1762828570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e8fcd5ee48d26aba04e38b8d3cb6e4fc658859a.webp?v=1762828570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3db6219ee07d645ed09ddf97e58c385c23b30e95.webp?v=1762828571","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/466f6d6ee8065f41b887446dc6bb570d4cddd95f.webp?v=1762828572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39322c747f3d2f24fb246db6b7df237b0b683e41.webp?v=1762828573","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4109460bede7f2d3d46ddfcdce9b34314614eade.webp?v=1762828574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99c873a3aec8cffd783661f675bb8066ae72e6f9.webp?v=1762828575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/039ee6bd4ba764b629a1a4dff6c74f6541642817.webp?v=1762828576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8d690e4023f576399af8a73188e07a554bffd90.webp?v=1762828576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd922fa372466d53d00f3151821a9859826c66c.webp?v=1762828577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21ad2e3c8abfba5dc6cfe1b8076646f15b212654.webp?v=1762828578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ece461e864cb64ee36ad6fd68c09da574beeb41a.webp?v=1762828579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f21302273558b501772626c0bf980be8088a3ff.webp?v=1762828580"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/294afd47d72b0d769f3b1726e6ca8453871f6cbf.webp?v=1762828570","options":["color"],"media":[{"alt":null,"id":26352342597731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/294afd47d72b0d769f3b1726e6ca8453871f6cbf.webp?v=1762828570"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/294afd47d72b0d769f3b1726e6ca8453871f6cbf.webp?v=1762828570","width":2000},{"alt":null,"id":26352342892643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e8fcd5ee48d26aba04e38b8d3cb6e4fc658859a.webp?v=1762828570"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e8fcd5ee48d26aba04e38b8d3cb6e4fc658859a.webp?v=1762828570","width":2000},{"alt":null,"id":26352343122019,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3db6219ee07d645ed09ddf97e58c385c23b30e95.webp?v=1762828571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3db6219ee07d645ed09ddf97e58c385c23b30e95.webp?v=1762828571","width":2000},{"alt":null,"id":26352343351395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/466f6d6ee8065f41b887446dc6bb570d4cddd95f.webp?v=1762828572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/466f6d6ee8065f41b887446dc6bb570d4cddd95f.webp?v=1762828572","width":2000},{"alt":null,"id":26352343515235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39322c747f3d2f24fb246db6b7df237b0b683e41.webp?v=1762828573"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39322c747f3d2f24fb246db6b7df237b0b683e41.webp?v=1762828573","width":2000},{"alt":null,"id":26352343810147,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4109460bede7f2d3d46ddfcdce9b34314614eade.webp?v=1762828574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4109460bede7f2d3d46ddfcdce9b34314614eade.webp?v=1762828574","width":2000},{"alt":null,"id":26352343875683,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99c873a3aec8cffd783661f675bb8066ae72e6f9.webp?v=1762828575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99c873a3aec8cffd783661f675bb8066ae72e6f9.webp?v=1762828575","width":2000},{"alt":null,"id":26352344006755,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/039ee6bd4ba764b629a1a4dff6c74f6541642817.webp?v=1762828576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/039ee6bd4ba764b629a1a4dff6c74f6541642817.webp?v=1762828576","width":2000},{"alt":null,"id":26352344105059,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8d690e4023f576399af8a73188e07a554bffd90.webp?v=1762828576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8d690e4023f576399af8a73188e07a554bffd90.webp?v=1762828576","width":2000},{"alt":null,"id":26352344137827,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd922fa372466d53d00f3151821a9859826c66c.webp?v=1762828577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd922fa372466d53d00f3151821a9859826c66c.webp?v=1762828577","width":2000},{"alt":null,"id":26352344203363,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21ad2e3c8abfba5dc6cfe1b8076646f15b212654.webp?v=1762828578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21ad2e3c8abfba5dc6cfe1b8076646f15b212654.webp?v=1762828578","width":2000},{"alt":null,"id":26352344236131,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ece461e864cb64ee36ad6fd68c09da574beeb41a.webp?v=1762828579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ece461e864cb64ee36ad6fd68c09da574beeb41a.webp?v=1762828579","width":2000},{"alt":null,"id":26352344268899,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f21302273558b501772626c0bf980be8088a3ff.webp?v=1762828580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f21302273558b501772626c0bf980be8088a3ff.webp?v=1762828580","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43831438344291,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EC75","requires_shipping":true,"taxable":true,"featured_image":{"id":34786887204963,"product_id":7921279893603,"position":4,"created_at":"2025-11-11T10:36:10+08:00","updated_at":"2025-11-11T10:36:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/466f6d6ee8065f41b887446dc6bb570d4cddd95f.webp?v=1762828572","variant_ids":[43831438344291]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 懶散兔與啾先生 煙火 - 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-EC75","featured_media":{"alt":null,"id":26352343351395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/466f6d6ee8065f41b887446dc6bb570d4cddd95f.webp?v=1762828572"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43831438344291,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EC75","requires_shipping":true,"taxable":true,"featured_image":{"id":34786887204963,"product_id":7921279893603,"position":4,"created_at":"2025-11-11T10:36:10+08:00","updated_at":"2025-11-11T10:36:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/466f6d6ee8065f41b887446dc6bb570d4cddd95f.webp?v=1762828572","variant_ids":[43831438344291]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 懶散兔與啾先生 煙火 - 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-EC75","featured_media":{"alt":null,"id":26352343351395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/466f6d6ee8065f41b887446dc6bb570d4cddd95f.webp?v=1762828572"}},"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: "停產" }