$product = {"id":7888617504867,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 餃貓FAMILY 餃貓一家","handle":"iphone-14-plus-mod-nx-magsafe-printable-dm03","description":null,"published_at":"2025-09-23T09:02:54+08:00","created_at":"2025-09-22T16:51:21+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":43743783452771,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-DM03","requires_shipping":true,"taxable":true,"featured_image":{"id":34515754156131,"product_id":7888617504867,"position":13,"created_at":"2025-09-22T16:51:31+08:00","updated_at":"2025-09-22T16:51:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e38ee337a82c9c8ad73080fd0d8405a5e26379f.webp?v=1758531093","variant_ids":[43743783452771]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 餃貓FAMILY 餃貓一家 - 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-DM03","featured_media":{"alt":null,"id":26086191333475,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e38ee337a82c9c8ad73080fd0d8405a5e26379f.webp?v=1758531093"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93ddeaf77cfcf39e10ef7b87d59c1b2f0a78fdb4.webp?v=1758531087","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2222f31a04468a05e3a3814f9fbaedb0a77ed68d.webp?v=1758531088","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d17451361361dfdbdfd547603c2e54f74653c266.webp?v=1758531089","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6ce0901967224527719a6f75185c08e25c0e611.webp?v=1758531089","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f98167422c2709ea6eeec59ec897e37a53e4348d.webp?v=1758531089","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/648df403fe3e1d24269c36b123f16b0ac6ae2e24.webp?v=1758531090","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4126a6ff646af2eba1d770a9807db6ed3f0b70e7.webp?v=1758531091","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19d48bd6757215e50e48f5b8e61a6354872ceac.webp?v=1758531091","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7e861588231e9bfd5b6d6ca6ab797f967d3fea3.webp?v=1758531091","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a17689033d122b65f4214be638d7362a9b85dd3.webp?v=1758531092","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb0f3aeb8d048cfcfd4004937af1334ae6bda755.webp?v=1758531092","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91db38c349772b64c7105ff3ec5a4c7d937f2cfa.webp?v=1758531093","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e38ee337a82c9c8ad73080fd0d8405a5e26379f.webp?v=1758531093"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93ddeaf77cfcf39e10ef7b87d59c1b2f0a78fdb4.webp?v=1758531087","options":["color"],"media":[{"alt":null,"id":26086189105251,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93ddeaf77cfcf39e10ef7b87d59c1b2f0a78fdb4.webp?v=1758531087"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93ddeaf77cfcf39e10ef7b87d59c1b2f0a78fdb4.webp?v=1758531087","width":2000},{"alt":null,"id":26086189236323,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2222f31a04468a05e3a3814f9fbaedb0a77ed68d.webp?v=1758531088"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2222f31a04468a05e3a3814f9fbaedb0a77ed68d.webp?v=1758531088","width":2000},{"alt":null,"id":26086189334627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d17451361361dfdbdfd547603c2e54f74653c266.webp?v=1758531089"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d17451361361dfdbdfd547603c2e54f74653c266.webp?v=1758531089","width":2000},{"alt":null,"id":26086189432931,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6ce0901967224527719a6f75185c08e25c0e611.webp?v=1758531089"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6ce0901967224527719a6f75185c08e25c0e611.webp?v=1758531089","width":2000},{"alt":null,"id":26086189465699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f98167422c2709ea6eeec59ec897e37a53e4348d.webp?v=1758531089"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f98167422c2709ea6eeec59ec897e37a53e4348d.webp?v=1758531089","width":2000},{"alt":null,"id":26086189695075,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/648df403fe3e1d24269c36b123f16b0ac6ae2e24.webp?v=1758531090"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/648df403fe3e1d24269c36b123f16b0ac6ae2e24.webp?v=1758531090","width":2000},{"alt":null,"id":26086189891683,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4126a6ff646af2eba1d770a9807db6ed3f0b70e7.webp?v=1758531091"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4126a6ff646af2eba1d770a9807db6ed3f0b70e7.webp?v=1758531091","width":2000},{"alt":null,"id":26086190153827,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19d48bd6757215e50e48f5b8e61a6354872ceac.webp?v=1758531091"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19d48bd6757215e50e48f5b8e61a6354872ceac.webp?v=1758531091","width":2000},{"alt":null,"id":26086190415971,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7e861588231e9bfd5b6d6ca6ab797f967d3fea3.webp?v=1758531091"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7e861588231e9bfd5b6d6ca6ab797f967d3fea3.webp?v=1758531091","width":2000},{"alt":null,"id":26086190612579,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a17689033d122b65f4214be638d7362a9b85dd3.webp?v=1758531092"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a17689033d122b65f4214be638d7362a9b85dd3.webp?v=1758531092","width":2000},{"alt":null,"id":26086190809187,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb0f3aeb8d048cfcfd4004937af1334ae6bda755.webp?v=1758531092"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb0f3aeb8d048cfcfd4004937af1334ae6bda755.webp?v=1758531092","width":2000},{"alt":null,"id":26086191136867,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91db38c349772b64c7105ff3ec5a4c7d937f2cfa.webp?v=1758531093"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91db38c349772b64c7105ff3ec5a4c7d937f2cfa.webp?v=1758531093","width":2000},{"alt":null,"id":26086191333475,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e38ee337a82c9c8ad73080fd0d8405a5e26379f.webp?v=1758531093"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e38ee337a82c9c8ad73080fd0d8405a5e26379f.webp?v=1758531093","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43743783452771,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-DM03","requires_shipping":true,"taxable":true,"featured_image":{"id":34515754156131,"product_id":7888617504867,"position":13,"created_at":"2025-09-22T16:51:31+08:00","updated_at":"2025-09-22T16:51:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e38ee337a82c9c8ad73080fd0d8405a5e26379f.webp?v=1758531093","variant_ids":[43743783452771]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 餃貓FAMILY 餃貓一家 - 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-DM03","featured_media":{"alt":null,"id":26086191333475,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e38ee337a82c9c8ad73080fd0d8405a5e26379f.webp?v=1758531093"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43743783452771,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-DM03","requires_shipping":true,"taxable":true,"featured_image":{"id":34515754156131,"product_id":7888617504867,"position":13,"created_at":"2025-09-22T16:51:31+08:00","updated_at":"2025-09-22T16:51:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e38ee337a82c9c8ad73080fd0d8405a5e26379f.webp?v=1758531093","variant_ids":[43743783452771]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 餃貓FAMILY 餃貓一家 - 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-DM03","featured_media":{"alt":null,"id":26086191333475,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e38ee337a82c9c8ad73080fd0d8405a5e26379f.webp?v=1758531093"}},"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: "停產" }