$product = {"id":7414548234339,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 復古版","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sb01","description":null,"published_at":"2024-06-11T17:51:56+08:00","created_at":"2024-05-05T14:29:43+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-batman","Top50","type-Mod NX Printable MagSafe Printable"],"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":41907269435491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31485728096355,"product_id":7414548234339,"position":5,"created_at":"2024-05-05T14:29:54+08:00","updated_at":"2024-05-05T14:29:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e64149ec563d4146e269769982b2c8ba2c1da7_2bd4b0d5-c007-4e0e-b97b-2f1f3a92184a.webp?v=1714890594","variant_ids":[41907269435491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 復古版 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-SB01","featured_media":{"alt":null,"id":23891050659939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e64149ec563d4146e269769982b2c8ba2c1da7_2bd4b0d5-c007-4e0e-b97b-2f1f3a92184a.webp?v=1714890594"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907270352995,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31485731143779,"product_id":7414548234339,"position":7,"created_at":"2024-05-05T14:29:59+08:00","updated_at":"2024-05-05T14:29:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf89a1528cf00b29a55974212576f703590da4fc_7b5aa00f-df66-4632-b6c5-c5e22fb8049f.webp?v=1714890599","variant_ids":[41907270352995]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 復古版 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-SB01","featured_media":{"alt":null,"id":23891054428259,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf89a1528cf00b29a55974212576f703590da4fc_7b5aa00f-df66-4632-b6c5-c5e22fb8049f.webp?v=1714890599"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ed8f3f426b7b7af05a1187e559d6209595a0149_78b2c6e0-bc50-4a8b-8444-76184a69b750.webp?v=1714890585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afcab13bb0e903a2d97b7933126e4fd3c2e99e16_7c5cb74d-ac6c-41bc-b1bd-df97151b5c9f.webp?v=1714890588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/269b7eef19de3e840d0640bbb7acb8fa6fa0e84d_873e1cb1-f555-4236-80a8-c80876b0a515.webp?v=1714890590","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd471b2bcfc8c8bf135188b918b2aef6c1bf3467_92d2da30-bfe9-45c3-88b3-0ecaa6b9772d.webp?v=1714890592","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e64149ec563d4146e269769982b2c8ba2c1da7_2bd4b0d5-c007-4e0e-b97b-2f1f3a92184a.webp?v=1714890594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8e6a669a4a843d5b0903ed97d2a27d0770ed119_dbc54c73-f9cd-4c96-9a6c-e6dd16e0d3c4.webp?v=1714890597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf89a1528cf00b29a55974212576f703590da4fc_7b5aa00f-df66-4632-b6c5-c5e22fb8049f.webp?v=1714890599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbdd482da715eef98e0066f7c23556349b78f87b_19db87b9-1643-4fda-bb13-0607c4150951.webp?v=1714890601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/decb06e8c2df30b2170a4674f904be09db2a34b6_72aef280-c0d0-4d85-826e-e5a2049db3f7.webp?v=1714890603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/523381cacb2e02178faf82643f09529c793fd632_b472c294-f489-4d06-8b4f-8f2954767edd.webp?v=1714890605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53ea9bcee9dc9c6d2f6062d917e593f9e2b9b653_0eda8bf3-64dc-42c5-b37b-31e5faa53fe5.webp?v=1714890608"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ed8f3f426b7b7af05a1187e559d6209595a0149_78b2c6e0-bc50-4a8b-8444-76184a69b750.webp?v=1714890585","options":["color"],"media":[{"alt":null,"id":23891043221603,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ed8f3f426b7b7af05a1187e559d6209595a0149_78b2c6e0-bc50-4a8b-8444-76184a69b750.webp?v=1714890585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ed8f3f426b7b7af05a1187e559d6209595a0149_78b2c6e0-bc50-4a8b-8444-76184a69b750.webp?v=1714890585","width":2000},{"alt":null,"id":23891045056611,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afcab13bb0e903a2d97b7933126e4fd3c2e99e16_7c5cb74d-ac6c-41bc-b1bd-df97151b5c9f.webp?v=1714890588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afcab13bb0e903a2d97b7933126e4fd3c2e99e16_7c5cb74d-ac6c-41bc-b1bd-df97151b5c9f.webp?v=1714890588","width":2000},{"alt":null,"id":23891046957155,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/269b7eef19de3e840d0640bbb7acb8fa6fa0e84d_873e1cb1-f555-4236-80a8-c80876b0a515.webp?v=1714890590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/269b7eef19de3e840d0640bbb7acb8fa6fa0e84d_873e1cb1-f555-4236-80a8-c80876b0a515.webp?v=1714890590","width":2000},{"alt":null,"id":23891048857699,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd471b2bcfc8c8bf135188b918b2aef6c1bf3467_92d2da30-bfe9-45c3-88b3-0ecaa6b9772d.webp?v=1714890592"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd471b2bcfc8c8bf135188b918b2aef6c1bf3467_92d2da30-bfe9-45c3-88b3-0ecaa6b9772d.webp?v=1714890592","width":2000},{"alt":null,"id":23891050659939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e64149ec563d4146e269769982b2c8ba2c1da7_2bd4b0d5-c007-4e0e-b97b-2f1f3a92184a.webp?v=1714890594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e64149ec563d4146e269769982b2c8ba2c1da7_2bd4b0d5-c007-4e0e-b97b-2f1f3a92184a.webp?v=1714890594","width":2000},{"alt":null,"id":23891052593251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8e6a669a4a843d5b0903ed97d2a27d0770ed119_dbc54c73-f9cd-4c96-9a6c-e6dd16e0d3c4.webp?v=1714890597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8e6a669a4a843d5b0903ed97d2a27d0770ed119_dbc54c73-f9cd-4c96-9a6c-e6dd16e0d3c4.webp?v=1714890597","width":2000},{"alt":null,"id":23891054428259,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf89a1528cf00b29a55974212576f703590da4fc_7b5aa00f-df66-4632-b6c5-c5e22fb8049f.webp?v=1714890599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf89a1528cf00b29a55974212576f703590da4fc_7b5aa00f-df66-4632-b6c5-c5e22fb8049f.webp?v=1714890599","width":2000},{"alt":null,"id":23891056394339,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbdd482da715eef98e0066f7c23556349b78f87b_19db87b9-1643-4fda-bb13-0607c4150951.webp?v=1714890601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbdd482da715eef98e0066f7c23556349b78f87b_19db87b9-1643-4fda-bb13-0607c4150951.webp?v=1714890601","width":2000},{"alt":null,"id":23891058294883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/decb06e8c2df30b2170a4674f904be09db2a34b6_72aef280-c0d0-4d85-826e-e5a2049db3f7.webp?v=1714890603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/decb06e8c2df30b2170a4674f904be09db2a34b6_72aef280-c0d0-4d85-826e-e5a2049db3f7.webp?v=1714890603","width":2000},{"alt":null,"id":23891059474531,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/523381cacb2e02178faf82643f09529c793fd632_b472c294-f489-4d06-8b4f-8f2954767edd.webp?v=1714890605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/523381cacb2e02178faf82643f09529c793fd632_b472c294-f489-4d06-8b4f-8f2954767edd.webp?v=1714890605","width":2000},{"alt":null,"id":23891061145699,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53ea9bcee9dc9c6d2f6062d917e593f9e2b9b653_0eda8bf3-64dc-42c5-b37b-31e5faa53fe5.webp?v=1714890608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53ea9bcee9dc9c6d2f6062d917e593f9e2b9b653_0eda8bf3-64dc-42c5-b37b-31e5faa53fe5.webp?v=1714890608","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41907269435491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31485728096355,"product_id":7414548234339,"position":5,"created_at":"2024-05-05T14:29:54+08:00","updated_at":"2024-05-05T14:29:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e64149ec563d4146e269769982b2c8ba2c1da7_2bd4b0d5-c007-4e0e-b97b-2f1f3a92184a.webp?v=1714890594","variant_ids":[41907269435491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 復古版 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-SB01","featured_media":{"alt":null,"id":23891050659939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e64149ec563d4146e269769982b2c8ba2c1da7_2bd4b0d5-c007-4e0e-b97b-2f1f3a92184a.webp?v=1714890594"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907270352995,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31485731143779,"product_id":7414548234339,"position":7,"created_at":"2024-05-05T14:29:59+08:00","updated_at":"2024-05-05T14:29:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf89a1528cf00b29a55974212576f703590da4fc_7b5aa00f-df66-4632-b6c5-c5e22fb8049f.webp?v=1714890599","variant_ids":[41907270352995]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 復古版 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-SB01","featured_media":{"alt":null,"id":23891054428259,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf89a1528cf00b29a55974212576f703590da4fc_7b5aa00f-df66-4632-b6c5-c5e22fb8049f.webp?v=1714890599"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41907269435491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31485728096355,"product_id":7414548234339,"position":5,"created_at":"2024-05-05T14:29:54+08:00","updated_at":"2024-05-05T14:29:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e64149ec563d4146e269769982b2c8ba2c1da7_2bd4b0d5-c007-4e0e-b97b-2f1f3a92184a.webp?v=1714890594","variant_ids":[41907269435491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 復古版 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-SB01","featured_media":{"alt":null,"id":23891050659939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e64149ec563d4146e269769982b2c8ba2c1da7_2bd4b0d5-c007-4e0e-b97b-2f1f3a92184a.webp?v=1714890594"}},"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: "停產" }