$product = {"id":7769417875555,"title":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Cat Dive - 跳水貓咪","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-xf51","description":null,"published_at":"2025-07-16T17:38:43+08:00","created_at":"2025-04-15T15:46:47+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 13 Pro Max","merge","reseller-ilovedoodle"],"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":43302239010915,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34197720662115,"product_id":7769417875555,"position":5,"created_at":"2025-07-16T15:21:35+08:00","updated_at":"2025-07-16T15:21:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7299b5ae3dc2507ef11d872b06cc968839e2366_f0ea76e9-038e-4157-aedd-d48e953eaf2a.webp?v=1752650496","variant_ids":[43302239010915]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Cat Dive - 跳水貓咪 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-XF51","featured_media":{"alt":null,"id":25830067011683,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7299b5ae3dc2507ef11d872b06cc968839e2366_f0ea76e9-038e-4157-aedd-d48e953eaf2a.webp?v=1752650496"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302245302371,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01232J5-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34197726593123,"product_id":7769417875555,"position":12,"created_at":"2025-07-16T15:21:39+08:00","updated_at":"2025-07-16T15:21:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91cb9b6ade74d9a9e4aa121ffff61b098c2b5dbb_b22bc5a1-7463-422e-b518-895a15a40d93.webp?v=1752650501","variant_ids":[43302245302371]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Cat Dive - 跳水貓咪 - 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":"MPB01232J5-XF51","featured_media":{"alt":null,"id":25830070452323,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91cb9b6ade74d9a9e4aa121ffff61b098c2b5dbb_b22bc5a1-7463-422e-b518-895a15a40d93.webp?v=1752650501"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/998838df061c480136ef4de3fad16295fec73091.webp?v=1744703214","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb2d3a1f5ad3ae649eaee53fd1a6e72f488a36cf_e77a215a-7efe-436a-b3cc-bda0b8cc6d85.webp?v=1752650495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d396d3cc08376fbc87b9871698d58502b411bdec_e191a114-ffcb-4e9e-a667-c748c3eacf0f.webp?v=1752650496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bd18fdc7692f07eab82f4e080f02805618bc5b1_5f4c6289-3509-4373-9146-3f6408fe9615.webp?v=1752650496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7299b5ae3dc2507ef11d872b06cc968839e2366_f0ea76e9-038e-4157-aedd-d48e953eaf2a.webp?v=1752650496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af89e92e94f7218c7cd86794f8745dd0f96b0e8f_bb28c352-45d0-49f0-aa62-cbdd80fdf232.webp?v=1752650497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5135dc51d68d207bb04eb58bb1730b1a08297783_c525f407-7bf5-4283-b66d-e9ffcf6cb99e.webp?v=1752650498","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1a3536e895c831fef4f9739c17d53b7da323e0e_d3a1def6-8d88-4053-a69a-fa936d4c04bb.webp?v=1752650498","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/691111c38b9a50561531740f0dd54d49fc7bda4a_60cf0454-a0dc-463d-a0f1-95537ada8034.webp?v=1752650499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1b8d9adbf2b3d2ba3876ee3bad3db4e0ce30f23_9d01522c-5129-4836-88ef-714afe0f1d83.webp?v=1752650499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3faebd3075fa1e66f2ee69de6b6eadde23baf44c_feff7d45-37c2-4abb-9db7-034e7eeaf4bd.webp?v=1752650500","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91cb9b6ade74d9a9e4aa121ffff61b098c2b5dbb_b22bc5a1-7463-422e-b518-895a15a40d93.webp?v=1752650501"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/998838df061c480136ef4de3fad16295fec73091.webp?v=1744703214","options":["color"],"media":[{"alt":null,"id":25495362142307,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/998838df061c480136ef4de3fad16295fec73091.webp?v=1744703214"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/998838df061c480136ef4de3fad16295fec73091.webp?v=1744703214","width":2000},{"alt":null,"id":25830065733731,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb2d3a1f5ad3ae649eaee53fd1a6e72f488a36cf_e77a215a-7efe-436a-b3cc-bda0b8cc6d85.webp?v=1752650495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb2d3a1f5ad3ae649eaee53fd1a6e72f488a36cf_e77a215a-7efe-436a-b3cc-bda0b8cc6d85.webp?v=1752650495","width":2000},{"alt":null,"id":25830066225251,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d396d3cc08376fbc87b9871698d58502b411bdec_e191a114-ffcb-4e9e-a667-c748c3eacf0f.webp?v=1752650496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d396d3cc08376fbc87b9871698d58502b411bdec_e191a114-ffcb-4e9e-a667-c748c3eacf0f.webp?v=1752650496","width":2000},{"alt":null,"id":25830066520163,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bd18fdc7692f07eab82f4e080f02805618bc5b1_5f4c6289-3509-4373-9146-3f6408fe9615.webp?v=1752650496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bd18fdc7692f07eab82f4e080f02805618bc5b1_5f4c6289-3509-4373-9146-3f6408fe9615.webp?v=1752650496","width":2000},{"alt":null,"id":25830067011683,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7299b5ae3dc2507ef11d872b06cc968839e2366_f0ea76e9-038e-4157-aedd-d48e953eaf2a.webp?v=1752650496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7299b5ae3dc2507ef11d872b06cc968839e2366_f0ea76e9-038e-4157-aedd-d48e953eaf2a.webp?v=1752650496","width":2000},{"alt":null,"id":25830067568739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af89e92e94f7218c7cd86794f8745dd0f96b0e8f_bb28c352-45d0-49f0-aa62-cbdd80fdf232.webp?v=1752650497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af89e92e94f7218c7cd86794f8745dd0f96b0e8f_bb28c352-45d0-49f0-aa62-cbdd80fdf232.webp?v=1752650497","width":2000},{"alt":null,"id":25830068060259,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5135dc51d68d207bb04eb58bb1730b1a08297783_c525f407-7bf5-4283-b66d-e9ffcf6cb99e.webp?v=1752650498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5135dc51d68d207bb04eb58bb1730b1a08297783_c525f407-7bf5-4283-b66d-e9ffcf6cb99e.webp?v=1752650498","width":2000},{"alt":null,"id":25830068519011,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1a3536e895c831fef4f9739c17d53b7da323e0e_d3a1def6-8d88-4053-a69a-fa936d4c04bb.webp?v=1752650498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1a3536e895c831fef4f9739c17d53b7da323e0e_d3a1def6-8d88-4053-a69a-fa936d4c04bb.webp?v=1752650498","width":2000},{"alt":null,"id":25830069043299,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/691111c38b9a50561531740f0dd54d49fc7bda4a_60cf0454-a0dc-463d-a0f1-95537ada8034.webp?v=1752650499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/691111c38b9a50561531740f0dd54d49fc7bda4a_60cf0454-a0dc-463d-a0f1-95537ada8034.webp?v=1752650499","width":2000},{"alt":null,"id":25830069502051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1b8d9adbf2b3d2ba3876ee3bad3db4e0ce30f23_9d01522c-5129-4836-88ef-714afe0f1d83.webp?v=1752650499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1b8d9adbf2b3d2ba3876ee3bad3db4e0ce30f23_9d01522c-5129-4836-88ef-714afe0f1d83.webp?v=1752650499","width":2000},{"alt":null,"id":25830069731427,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3faebd3075fa1e66f2ee69de6b6eadde23baf44c_feff7d45-37c2-4abb-9db7-034e7eeaf4bd.webp?v=1752650500"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3faebd3075fa1e66f2ee69de6b6eadde23baf44c_feff7d45-37c2-4abb-9db7-034e7eeaf4bd.webp?v=1752650500","width":2000},{"alt":null,"id":25830070452323,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91cb9b6ade74d9a9e4aa121ffff61b098c2b5dbb_b22bc5a1-7463-422e-b518-895a15a40d93.webp?v=1752650501"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91cb9b6ade74d9a9e4aa121ffff61b098c2b5dbb_b22bc5a1-7463-422e-b518-895a15a40d93.webp?v=1752650501","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43302239010915,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34197720662115,"product_id":7769417875555,"position":5,"created_at":"2025-07-16T15:21:35+08:00","updated_at":"2025-07-16T15:21:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7299b5ae3dc2507ef11d872b06cc968839e2366_f0ea76e9-038e-4157-aedd-d48e953eaf2a.webp?v=1752650496","variant_ids":[43302239010915]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Cat Dive - 跳水貓咪 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-XF51","featured_media":{"alt":null,"id":25830067011683,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7299b5ae3dc2507ef11d872b06cc968839e2366_f0ea76e9-038e-4157-aedd-d48e953eaf2a.webp?v=1752650496"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43302245302371,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01232J5-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34197726593123,"product_id":7769417875555,"position":12,"created_at":"2025-07-16T15:21:39+08:00","updated_at":"2025-07-16T15:21:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91cb9b6ade74d9a9e4aa121ffff61b098c2b5dbb_b22bc5a1-7463-422e-b518-895a15a40d93.webp?v=1752650501","variant_ids":[43302245302371]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Cat Dive - 跳水貓咪 - 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":"MPB01232J5-XF51","featured_media":{"alt":null,"id":25830070452323,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91cb9b6ade74d9a9e4aa121ffff61b098c2b5dbb_b22bc5a1-7463-422e-b518-895a15a40d93.webp?v=1752650501"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43302239010915,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-XF51","requires_shipping":true,"taxable":true,"featured_image":{"id":34197720662115,"product_id":7769417875555,"position":5,"created_at":"2025-07-16T15:21:35+08:00","updated_at":"2025-07-16T15:21:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7299b5ae3dc2507ef11d872b06cc968839e2366_f0ea76e9-038e-4157-aedd-d48e953eaf2a.webp?v=1752650496","variant_ids":[43302239010915]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Cat Dive - 跳水貓咪 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-XF51","featured_media":{"alt":null,"id":25830067011683,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7299b5ae3dc2507ef11d872b06cc968839e2366_f0ea76e9-038e-4157-aedd-d48e953eaf2a.webp?v=1752650496"}},"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: "停產" }