$product = {"id":7888620060771,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) 餃貓FAMILY LAZY DAY","handle":"iphone-14-pro-mod-nx-magsafe-printable-dm02","description":null,"published_at":"2025-09-23T09:02:37+08:00","created_at":"2025-09-22T16:51:52+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-dumplingcat","device-iPhone 14 Pro","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":43743793610851,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515764314211,"product_id":7888620060771,"position":9,"created_at":"2025-09-22T16:52:00+08:00","updated_at":"2025-09-22T16:52:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/754ef34776eab199df86494de8b9180deaa2a99c.webp?v=1758531123","variant_ids":[43743793610851]},"available":true,"name":"iPhone 14 Pro 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":"MPB0126224-DM02","featured_media":{"alt":null,"id":26086201852003,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/754ef34776eab199df86494de8b9180deaa2a99c.webp?v=1758531123"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743793643619,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515764772963,"product_id":7888620060771,"position":11,"created_at":"2025-09-22T16:52:01+08:00","updated_at":"2025-09-22T16:52:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10296dd845aa02bfb3c3319e372ea6771c86de65.webp?v=1758531123","variant_ids":[43743793643619]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 餃貓FAMILY LAZY DAY - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-DM02","featured_media":{"alt":null,"id":26086202605667,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10296dd845aa02bfb3c3319e372ea6771c86de65.webp?v=1758531123"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743793709155,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515764183139,"product_id":7888620060771,"position":8,"created_at":"2025-09-22T16:52:00+08:00","updated_at":"2025-09-22T16:52:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b7d487be06d6166dbab9097b22893dc6254199.webp?v=1758531122","variant_ids":[43743793709155]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 餃貓FAMILY LAZY DAY - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-DM02","featured_media":{"alt":null,"id":26086201720931,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b7d487be06d6166dbab9097b22893dc6254199.webp?v=1758531122"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e1962b5767fd2cfae7ea235522b04a4d7a5823e.webp?v=1758531119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e66339a97c47fcc6bdfd647a69d2f0c3df183be8.webp?v=1758531119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d47adb3a558661ed55538dcb24a7997f3bc34d9.webp?v=1758531120","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/402f1675063dc1b9edffef0bcae05c8e4888d0dc.webp?v=1758531120","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fdc15a1a8d4612b1a7ea0e6f09527e1cf22ae09.webp?v=1758531121","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd07993e2fb987e2b37f9450bf1689e0a65c7bdb.webp?v=1758531122","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4df2b30eeb63ab1ea43d0867eebf438af70dec89.webp?v=1758531122","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b7d487be06d6166dbab9097b22893dc6254199.webp?v=1758531122","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/754ef34776eab199df86494de8b9180deaa2a99c.webp?v=1758531123","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2f5b460ba369ea827b11e87001187d6f3fdcf84.webp?v=1758531123","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10296dd845aa02bfb3c3319e372ea6771c86de65.webp?v=1758531123","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfd9eb51e1db2121a31cbcf1ae4c2f5832467e02.webp?v=1758531124"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e1962b5767fd2cfae7ea235522b04a4d7a5823e.webp?v=1758531119","options":["color"],"media":[{"alt":null,"id":26086200475747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e1962b5767fd2cfae7ea235522b04a4d7a5823e.webp?v=1758531119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e1962b5767fd2cfae7ea235522b04a4d7a5823e.webp?v=1758531119","width":2000},{"alt":null,"id":26086200639587,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e66339a97c47fcc6bdfd647a69d2f0c3df183be8.webp?v=1758531119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e66339a97c47fcc6bdfd647a69d2f0c3df183be8.webp?v=1758531119","width":2000},{"alt":null,"id":26086200737891,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d47adb3a558661ed55538dcb24a7997f3bc34d9.webp?v=1758531120"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d47adb3a558661ed55538dcb24a7997f3bc34d9.webp?v=1758531120","width":2000},{"alt":null,"id":26086200934499,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/402f1675063dc1b9edffef0bcae05c8e4888d0dc.webp?v=1758531120"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/402f1675063dc1b9edffef0bcae05c8e4888d0dc.webp?v=1758531120","width":2000},{"alt":null,"id":26086201131107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fdc15a1a8d4612b1a7ea0e6f09527e1cf22ae09.webp?v=1758531121"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fdc15a1a8d4612b1a7ea0e6f09527e1cf22ae09.webp?v=1758531121","width":2000},{"alt":null,"id":26086201327715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd07993e2fb987e2b37f9450bf1689e0a65c7bdb.webp?v=1758531122"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd07993e2fb987e2b37f9450bf1689e0a65c7bdb.webp?v=1758531122","width":2000},{"alt":null,"id":26086201524323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4df2b30eeb63ab1ea43d0867eebf438af70dec89.webp?v=1758531122"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4df2b30eeb63ab1ea43d0867eebf438af70dec89.webp?v=1758531122","width":2000},{"alt":null,"id":26086201720931,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b7d487be06d6166dbab9097b22893dc6254199.webp?v=1758531122"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b7d487be06d6166dbab9097b22893dc6254199.webp?v=1758531122","width":2000},{"alt":null,"id":26086201852003,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/754ef34776eab199df86494de8b9180deaa2a99c.webp?v=1758531123"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/754ef34776eab199df86494de8b9180deaa2a99c.webp?v=1758531123","width":2000},{"alt":null,"id":26086202409059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2f5b460ba369ea827b11e87001187d6f3fdcf84.webp?v=1758531123"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2f5b460ba369ea827b11e87001187d6f3fdcf84.webp?v=1758531123","width":2000},{"alt":null,"id":26086202605667,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10296dd845aa02bfb3c3319e372ea6771c86de65.webp?v=1758531123"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10296dd845aa02bfb3c3319e372ea6771c86de65.webp?v=1758531123","width":2000},{"alt":null,"id":26086203490403,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfd9eb51e1db2121a31cbcf1ae4c2f5832467e02.webp?v=1758531124"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfd9eb51e1db2121a31cbcf1ae4c2f5832467e02.webp?v=1758531124","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43743793610851,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515764314211,"product_id":7888620060771,"position":9,"created_at":"2025-09-22T16:52:00+08:00","updated_at":"2025-09-22T16:52:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/754ef34776eab199df86494de8b9180deaa2a99c.webp?v=1758531123","variant_ids":[43743793610851]},"available":true,"name":"iPhone 14 Pro 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":"MPB0126224-DM02","featured_media":{"alt":null,"id":26086201852003,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/754ef34776eab199df86494de8b9180deaa2a99c.webp?v=1758531123"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743793643619,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515764772963,"product_id":7888620060771,"position":11,"created_at":"2025-09-22T16:52:01+08:00","updated_at":"2025-09-22T16:52:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10296dd845aa02bfb3c3319e372ea6771c86de65.webp?v=1758531123","variant_ids":[43743793643619]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 餃貓FAMILY LAZY DAY - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-DM02","featured_media":{"alt":null,"id":26086202605667,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10296dd845aa02bfb3c3319e372ea6771c86de65.webp?v=1758531123"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743793709155,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515764183139,"product_id":7888620060771,"position":8,"created_at":"2025-09-22T16:52:00+08:00","updated_at":"2025-09-22T16:52:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b7d487be06d6166dbab9097b22893dc6254199.webp?v=1758531122","variant_ids":[43743793709155]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 餃貓FAMILY LAZY DAY - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-DM02","featured_media":{"alt":null,"id":26086201720931,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b7d487be06d6166dbab9097b22893dc6254199.webp?v=1758531122"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43743793610851,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515764314211,"product_id":7888620060771,"position":9,"created_at":"2025-09-22T16:52:00+08:00","updated_at":"2025-09-22T16:52:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/754ef34776eab199df86494de8b9180deaa2a99c.webp?v=1758531123","variant_ids":[43743793610851]},"available":true,"name":"iPhone 14 Pro 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":"MPB0126224-DM02","featured_media":{"alt":null,"id":26086201852003,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/754ef34776eab199df86494de8b9180deaa2a99c.webp?v=1758531123"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (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: "停產" }