$product = {"id":7888624189539,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 餃貓FAMILY LAZY DAY","handle":"iphone-14-plus-mod-nx-magsafe-printable-dm02","description":null,"published_at":"2025-09-23T09:02:03+08:00","created_at":"2025-09-22T16:52:46+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-dumplingcat","device-iPhone 14 Plus","merge","reseller-dumplingcat"],"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":43743810420835,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515783286883,"product_id":7888624189539,"position":1,"created_at":"2025-09-22T16:52:51+08:00","updated_at":"2025-09-22T16:52:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef08a0ae14d4aa9813e72c8fa839d3671b6d68d6.webp?v=1758531173","variant_ids":[43743810420835]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 餃貓FAMILY LAZY DAY - 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-DM02","featured_media":{"alt":null,"id":26086220857443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef08a0ae14d4aa9813e72c8fa839d3671b6d68d6.webp?v=1758531173"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef08a0ae14d4aa9813e72c8fa839d3671b6d68d6.webp?v=1758531173","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8a1f0269f51805309c4a8828ed4a6b5c2e0802c.webp?v=1758531173","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3aa21c3e0313e0ef82e9cfbaed3605bbc310765.webp?v=1758531174","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9eb0d39e1fc321ce002110b9872b1996bab29d85.webp?v=1758531174","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c45597bb0cb00cd0e98a0b5784bbef622d2b8f99.webp?v=1758531175","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/228342fcaf8c30f2899707eb8e133bf4449dab51.webp?v=1758531175","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afbe34276d5dd0e396bb93a2dd7572b1a9583999.webp?v=1758531176","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2caf21c45fb592849963664811e6076cac4759e9.webp?v=1758531176","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e8a901ac567b4921199c8b0081eb4c0f634bac.webp?v=1758531177","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dc04ba4fe21e824d3e327394b8f15c633bcccb9.webp?v=1758531177","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/748728291b78d85ad4ae89e4c87a68e36cfe766c.webp?v=1758531178","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cba2faf4b4b20c6edd26a131f2a8c2f685f511c.webp?v=1758531178","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfce5b3c259e2562068f1e47fdd6143e357848e4.webp?v=1758531179"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef08a0ae14d4aa9813e72c8fa839d3671b6d68d6.webp?v=1758531173","options":["color"],"media":[{"alt":null,"id":26086220857443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef08a0ae14d4aa9813e72c8fa839d3671b6d68d6.webp?v=1758531173"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef08a0ae14d4aa9813e72c8fa839d3671b6d68d6.webp?v=1758531173","width":2000},{"alt":null,"id":26086220955747,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8a1f0269f51805309c4a8828ed4a6b5c2e0802c.webp?v=1758531173"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8a1f0269f51805309c4a8828ed4a6b5c2e0802c.webp?v=1758531173","width":2000},{"alt":null,"id":26086221086819,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3aa21c3e0313e0ef82e9cfbaed3605bbc310765.webp?v=1758531174"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3aa21c3e0313e0ef82e9cfbaed3605bbc310765.webp?v=1758531174","width":2000},{"alt":null,"id":26086221348963,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9eb0d39e1fc321ce002110b9872b1996bab29d85.webp?v=1758531174"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9eb0d39e1fc321ce002110b9872b1996bab29d85.webp?v=1758531174","width":2000},{"alt":null,"id":26086221578339,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c45597bb0cb00cd0e98a0b5784bbef622d2b8f99.webp?v=1758531175"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c45597bb0cb00cd0e98a0b5784bbef622d2b8f99.webp?v=1758531175","width":2000},{"alt":null,"id":26086221774947,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/228342fcaf8c30f2899707eb8e133bf4449dab51.webp?v=1758531175"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/228342fcaf8c30f2899707eb8e133bf4449dab51.webp?v=1758531175","width":2000},{"alt":null,"id":26086221906019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afbe34276d5dd0e396bb93a2dd7572b1a9583999.webp?v=1758531176"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afbe34276d5dd0e396bb93a2dd7572b1a9583999.webp?v=1758531176","width":2000},{"alt":null,"id":26086222037091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2caf21c45fb592849963664811e6076cac4759e9.webp?v=1758531176"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2caf21c45fb592849963664811e6076cac4759e9.webp?v=1758531176","width":2000},{"alt":null,"id":26086222200931,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e8a901ac567b4921199c8b0081eb4c0f634bac.webp?v=1758531177"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e8a901ac567b4921199c8b0081eb4c0f634bac.webp?v=1758531177","width":2000},{"alt":null,"id":26086222364771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dc04ba4fe21e824d3e327394b8f15c633bcccb9.webp?v=1758531177"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dc04ba4fe21e824d3e327394b8f15c633bcccb9.webp?v=1758531177","width":2000},{"alt":null,"id":26086222561379,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/748728291b78d85ad4ae89e4c87a68e36cfe766c.webp?v=1758531178"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/748728291b78d85ad4ae89e4c87a68e36cfe766c.webp?v=1758531178","width":2000},{"alt":null,"id":26086222725219,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cba2faf4b4b20c6edd26a131f2a8c2f685f511c.webp?v=1758531178"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cba2faf4b4b20c6edd26a131f2a8c2f685f511c.webp?v=1758531178","width":2000},{"alt":null,"id":26086222954595,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfce5b3c259e2562068f1e47fdd6143e357848e4.webp?v=1758531179"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfce5b3c259e2562068f1e47fdd6143e357848e4.webp?v=1758531179","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43743810420835,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515783286883,"product_id":7888624189539,"position":1,"created_at":"2025-09-22T16:52:51+08:00","updated_at":"2025-09-22T16:52:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef08a0ae14d4aa9813e72c8fa839d3671b6d68d6.webp?v=1758531173","variant_ids":[43743810420835]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 餃貓FAMILY LAZY DAY - 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-DM02","featured_media":{"alt":null,"id":26086220857443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef08a0ae14d4aa9813e72c8fa839d3671b6d68d6.webp?v=1758531173"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43743810420835,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515783286883,"product_id":7888624189539,"position":1,"created_at":"2025-09-22T16:52:51+08:00","updated_at":"2025-09-22T16:52:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef08a0ae14d4aa9813e72c8fa839d3671b6d68d6.webp?v=1758531173","variant_ids":[43743810420835]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 餃貓FAMILY LAZY DAY - 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-DM02","featured_media":{"alt":null,"id":26086220857443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef08a0ae14d4aa9813e72c8fa839d3671b6d68d6.webp?v=1758531173"}},"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: "停產" }