$product = {"id":7414015852643,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 北極冰川在看","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-af05","description":null,"published_at":"2024-06-11T17:47:47+08:00","created_at":"2024-05-05T14:01:30+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","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":41903357821027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484468396131,"product_id":7414015852643,"position":11,"created_at":"2024-05-05T14:01:56+08:00","updated_at":"2024-05-05T14:01:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60ff9bda5d41ba1006827c15e2a3e54572ab8f78_4f9fe180-3383-43bf-b0a1-de0603058809.webp?v=1714888916","variant_ids":[41903357821027]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 北極冰川在看 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-AF05","featured_media":{"alt":null,"id":23889762549859,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60ff9bda5d41ba1006827c15e2a3e54572ab8f78_4f9fe180-3383-43bf-b0a1-de0603058809.webp?v=1714888916"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903358771299,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484468068451,"product_id":7414015852643,"position":10,"created_at":"2024-05-05T14:01:54+08:00","updated_at":"2024-05-05T14:01:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb6e45bc3d0ce8912f2e35055aa635c0f07ae842_030e38b4-f25f-46ee-baab-2e7ba531d3cb.webp?v=1714888914","variant_ids":[41903358771299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 北極冰川在看 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-AF05","featured_media":{"alt":null,"id":23889762189411,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb6e45bc3d0ce8912f2e35055aa635c0f07ae842_030e38b4-f25f-46ee-baab-2e7ba531d3cb.webp?v=1714888914"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41e29f58ebd9343a55c7f8e55fd40760476dd6d8_af8284b1-bb81-4f76-9818-42a3d0a42f4e.webp?v=1714888893","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c38bd204d4b8467559d2f89fe396debc4ff49d7c_3916ed23-eb4c-4d54-9615-6d767373e689.webp?v=1714888895","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f10460567af07be86814d3d6c546c0ebcef3e05_95afb742-ee75-475f-a67e-469425451c1e.webp?v=1714888898","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ca8042200635165e8900b8cced22f9928d4c015_c6629950-6cd0-43ed-beeb-af22f9910ac1.webp?v=1714888900","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9795e6e15261acd5ed74b9feb773f4a7974f087d_807d53de-1923-41c2-8d5b-5a12a3663e5a.webp?v=1714888902","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d6170ec216a7f2050abfe666be5d633dbcc13e5_0fbbcedf-7fad-44f3-a9ac-01a276dba061.webp?v=1714888905","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c98a825a1fef908570ba99c468b977e13ecb702_09277275-85ff-4f13-aba2-a47247dc09f0.webp?v=1714888907","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f15501df328b8eccfef6f6720d51b19c06f752a9_0f3fe0ba-50c7-4f67-abec-f4e7359c8eba.webp?v=1714888909","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bc5eb923e00a14924524cd9baa274ddf81a3445_b3b36600-f776-4da3-81a1-7c0a8071bddd.webp?v=1714888912","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb6e45bc3d0ce8912f2e35055aa635c0f07ae842_030e38b4-f25f-46ee-baab-2e7ba531d3cb.webp?v=1714888914","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60ff9bda5d41ba1006827c15e2a3e54572ab8f78_4f9fe180-3383-43bf-b0a1-de0603058809.webp?v=1714888916"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41e29f58ebd9343a55c7f8e55fd40760476dd6d8_af8284b1-bb81-4f76-9818-42a3d0a42f4e.webp?v=1714888893","options":["color"],"media":[{"alt":null,"id":23889758126179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41e29f58ebd9343a55c7f8e55fd40760476dd6d8_af8284b1-bb81-4f76-9818-42a3d0a42f4e.webp?v=1714888893"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41e29f58ebd9343a55c7f8e55fd40760476dd6d8_af8284b1-bb81-4f76-9818-42a3d0a42f4e.webp?v=1714888893","width":2000},{"alt":null,"id":23889758617699,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c38bd204d4b8467559d2f89fe396debc4ff49d7c_3916ed23-eb4c-4d54-9615-6d767373e689.webp?v=1714888895"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c38bd204d4b8467559d2f89fe396debc4ff49d7c_3916ed23-eb4c-4d54-9615-6d767373e689.webp?v=1714888895","width":2000},{"alt":null,"id":23889758945379,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f10460567af07be86814d3d6c546c0ebcef3e05_95afb742-ee75-475f-a67e-469425451c1e.webp?v=1714888898"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f10460567af07be86814d3d6c546c0ebcef3e05_95afb742-ee75-475f-a67e-469425451c1e.webp?v=1714888898","width":2000},{"alt":null,"id":23889759469667,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ca8042200635165e8900b8cced22f9928d4c015_c6629950-6cd0-43ed-beeb-af22f9910ac1.webp?v=1714888900"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ca8042200635165e8900b8cced22f9928d4c015_c6629950-6cd0-43ed-beeb-af22f9910ac1.webp?v=1714888900","width":2000},{"alt":null,"id":23889759895651,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9795e6e15261acd5ed74b9feb773f4a7974f087d_807d53de-1923-41c2-8d5b-5a12a3663e5a.webp?v=1714888902"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9795e6e15261acd5ed74b9feb773f4a7974f087d_807d53de-1923-41c2-8d5b-5a12a3663e5a.webp?v=1714888902","width":2000},{"alt":null,"id":23889760452707,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d6170ec216a7f2050abfe666be5d633dbcc13e5_0fbbcedf-7fad-44f3-a9ac-01a276dba061.webp?v=1714888905"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d6170ec216a7f2050abfe666be5d633dbcc13e5_0fbbcedf-7fad-44f3-a9ac-01a276dba061.webp?v=1714888905","width":2000},{"alt":null,"id":23889760845923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c98a825a1fef908570ba99c468b977e13ecb702_09277275-85ff-4f13-aba2-a47247dc09f0.webp?v=1714888907"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c98a825a1fef908570ba99c468b977e13ecb702_09277275-85ff-4f13-aba2-a47247dc09f0.webp?v=1714888907","width":2000},{"alt":null,"id":23889761337443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f15501df328b8eccfef6f6720d51b19c06f752a9_0f3fe0ba-50c7-4f67-abec-f4e7359c8eba.webp?v=1714888909"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f15501df328b8eccfef6f6720d51b19c06f752a9_0f3fe0ba-50c7-4f67-abec-f4e7359c8eba.webp?v=1714888909","width":2000},{"alt":null,"id":23889761763427,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bc5eb923e00a14924524cd9baa274ddf81a3445_b3b36600-f776-4da3-81a1-7c0a8071bddd.webp?v=1714888912"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bc5eb923e00a14924524cd9baa274ddf81a3445_b3b36600-f776-4da3-81a1-7c0a8071bddd.webp?v=1714888912","width":2000},{"alt":null,"id":23889762189411,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb6e45bc3d0ce8912f2e35055aa635c0f07ae842_030e38b4-f25f-46ee-baab-2e7ba531d3cb.webp?v=1714888914"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb6e45bc3d0ce8912f2e35055aa635c0f07ae842_030e38b4-f25f-46ee-baab-2e7ba531d3cb.webp?v=1714888914","width":2000},{"alt":null,"id":23889762549859,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60ff9bda5d41ba1006827c15e2a3e54572ab8f78_4f9fe180-3383-43bf-b0a1-de0603058809.webp?v=1714888916"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60ff9bda5d41ba1006827c15e2a3e54572ab8f78_4f9fe180-3383-43bf-b0a1-de0603058809.webp?v=1714888916","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41903357821027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484468396131,"product_id":7414015852643,"position":11,"created_at":"2024-05-05T14:01:56+08:00","updated_at":"2024-05-05T14:01:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60ff9bda5d41ba1006827c15e2a3e54572ab8f78_4f9fe180-3383-43bf-b0a1-de0603058809.webp?v=1714888916","variant_ids":[41903357821027]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 北極冰川在看 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-AF05","featured_media":{"alt":null,"id":23889762549859,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60ff9bda5d41ba1006827c15e2a3e54572ab8f78_4f9fe180-3383-43bf-b0a1-de0603058809.webp?v=1714888916"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903358771299,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484468068451,"product_id":7414015852643,"position":10,"created_at":"2024-05-05T14:01:54+08:00","updated_at":"2024-05-05T14:01:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb6e45bc3d0ce8912f2e35055aa635c0f07ae842_030e38b4-f25f-46ee-baab-2e7ba531d3cb.webp?v=1714888914","variant_ids":[41903358771299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 北極冰川在看 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-AF05","featured_media":{"alt":null,"id":23889762189411,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb6e45bc3d0ce8912f2e35055aa635c0f07ae842_030e38b4-f25f-46ee-baab-2e7ba531d3cb.webp?v=1714888914"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41903357821027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484468396131,"product_id":7414015852643,"position":11,"created_at":"2024-05-05T14:01:56+08:00","updated_at":"2024-05-05T14:01:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60ff9bda5d41ba1006827c15e2a3e54572ab8f78_4f9fe180-3383-43bf-b0a1-de0603058809.webp?v=1714888916","variant_ids":[41903357821027]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 北極冰川在看 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-AF05","featured_media":{"alt":null,"id":23889762549859,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60ff9bda5d41ba1006827c15e2a3e54572ab8f78_4f9fe180-3383-43bf-b0a1-de0603058809.webp?v=1714888916"}},"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: "停產" }