$product = {"id":7414038364259,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 在幹嘛","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-iv06","description":null,"published_at":"2024-06-11T17:48:26+08:00","created_at":"2024-05-05T14:06:06+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-1chun","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":41903641886819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484536062051,"product_id":7414038364259,"position":10,"created_at":"2024-05-05T14:06:30+08:00","updated_at":"2024-05-05T14:06:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95467ec098d5f018e8bb15e132fa7271ae293330_a83084de-74c5-4411-b64a-79a1fbf102f8.webp?v=1714889190","variant_ids":[41903641886819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 在幹嘛 - 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-IV06","featured_media":{"alt":null,"id":23889831493731,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95467ec098d5f018e8bb15e132fa7271ae293330_a83084de-74c5-4411-b64a-79a1fbf102f8.webp?v=1714889190"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903642280035,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484537667683,"product_id":7414038364259,"position":11,"created_at":"2024-05-05T14:06:32+08:00","updated_at":"2024-05-05T14:06:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9af9e3d14377b5e9803db38bf4d957e14d44da0_94117efd-5f76-4ffb-afff-0f3ef3a8bbe6.webp?v=1714889192","variant_ids":[41903642280035]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 在幹嘛 - 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-IV06","featured_media":{"alt":null,"id":23889833427043,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9af9e3d14377b5e9803db38bf4d957e14d44da0_94117efd-5f76-4ffb-afff-0f3ef3a8bbe6.webp?v=1714889192"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3004e3c58ed4cdad39fa3474f8bcedf49227186f_0f978927-b7f0-4a67-a29b-fedfcbc6470c.webp?v=1714889168","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da5a6b3e334579b9a32c6f7914e5297cfdb9943c_66ce0f5f-519e-43ea-9d39-f38294e26a6e.webp?v=1714889171","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23d38e67bb4e7ea0dc94f513c9ad46797d144f79_212a4121-148a-42ce-9c8d-7de8ae8d419d.webp?v=1714889173","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c625ae17fe74c7b5cfba9cbeebf9d22d589c1d47_eaf6b4b8-9eff-4a78-8eb8-ce208d1b3ad8.webp?v=1714889175","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34879fce21d433f610bcd489eaf68656a7011f67_c5d25b24-3a91-4c5c-8c7a-151bf202f1f7.webp?v=1714889178","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e350f32556ce8c836dbbe67802e517a601d95366_3b44082e-9e4e-4671-9d2d-b5f5fa2cb791.webp?v=1714889180","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a329d4a359c5b1a715e9a6eea94521a932288a5_c559bab4-2d35-40a4-b833-6e4402729912.webp?v=1714889182","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff74840e1f3d81ba937d3423b4641e2b863deb8c_149b9974-f67d-492c-bc55-3f7c4c1032b7.webp?v=1714889185","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b522d416e272452801ddecad76adf2437b591c9_5034a247-b4f9-4237-a16c-5824594829a4.webp?v=1714889187","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95467ec098d5f018e8bb15e132fa7271ae293330_a83084de-74c5-4411-b64a-79a1fbf102f8.webp?v=1714889190","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9af9e3d14377b5e9803db38bf4d957e14d44da0_94117efd-5f76-4ffb-afff-0f3ef3a8bbe6.webp?v=1714889192"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3004e3c58ed4cdad39fa3474f8bcedf49227186f_0f978927-b7f0-4a67-a29b-fedfcbc6470c.webp?v=1714889168","options":["color"],"media":[{"alt":null,"id":23889815306339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3004e3c58ed4cdad39fa3474f8bcedf49227186f_0f978927-b7f0-4a67-a29b-fedfcbc6470c.webp?v=1714889168"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3004e3c58ed4cdad39fa3474f8bcedf49227186f_0f978927-b7f0-4a67-a29b-fedfcbc6470c.webp?v=1714889168","width":2000},{"alt":null,"id":23889815765091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da5a6b3e334579b9a32c6f7914e5297cfdb9943c_66ce0f5f-519e-43ea-9d39-f38294e26a6e.webp?v=1714889171"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da5a6b3e334579b9a32c6f7914e5297cfdb9943c_66ce0f5f-519e-43ea-9d39-f38294e26a6e.webp?v=1714889171","width":2000},{"alt":null,"id":23889817632867,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23d38e67bb4e7ea0dc94f513c9ad46797d144f79_212a4121-148a-42ce-9c8d-7de8ae8d419d.webp?v=1714889173"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23d38e67bb4e7ea0dc94f513c9ad46797d144f79_212a4121-148a-42ce-9c8d-7de8ae8d419d.webp?v=1714889173","width":2000},{"alt":null,"id":23889820450915,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c625ae17fe74c7b5cfba9cbeebf9d22d589c1d47_eaf6b4b8-9eff-4a78-8eb8-ce208d1b3ad8.webp?v=1714889175"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c625ae17fe74c7b5cfba9cbeebf9d22d589c1d47_eaf6b4b8-9eff-4a78-8eb8-ce208d1b3ad8.webp?v=1714889175","width":2000},{"alt":null,"id":23889822285923,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34879fce21d433f610bcd489eaf68656a7011f67_c5d25b24-3a91-4c5c-8c7a-151bf202f1f7.webp?v=1714889178"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34879fce21d433f610bcd489eaf68656a7011f67_c5d25b24-3a91-4c5c-8c7a-151bf202f1f7.webp?v=1714889178","width":2000},{"alt":null,"id":23889824186467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e350f32556ce8c836dbbe67802e517a601d95366_3b44082e-9e4e-4671-9d2d-b5f5fa2cb791.webp?v=1714889180"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e350f32556ce8c836dbbe67802e517a601d95366_3b44082e-9e4e-4671-9d2d-b5f5fa2cb791.webp?v=1714889180","width":2000},{"alt":null,"id":23889826087011,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a329d4a359c5b1a715e9a6eea94521a932288a5_c559bab4-2d35-40a4-b833-6e4402729912.webp?v=1714889182"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a329d4a359c5b1a715e9a6eea94521a932288a5_c559bab4-2d35-40a4-b833-6e4402729912.webp?v=1714889182","width":2000},{"alt":null,"id":23889827954787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff74840e1f3d81ba937d3423b4641e2b863deb8c_149b9974-f67d-492c-bc55-3f7c4c1032b7.webp?v=1714889185"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff74840e1f3d81ba937d3423b4641e2b863deb8c_149b9974-f67d-492c-bc55-3f7c4c1032b7.webp?v=1714889185","width":2000},{"alt":null,"id":23889829494883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b522d416e272452801ddecad76adf2437b591c9_5034a247-b4f9-4237-a16c-5824594829a4.webp?v=1714889187"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b522d416e272452801ddecad76adf2437b591c9_5034a247-b4f9-4237-a16c-5824594829a4.webp?v=1714889187","width":2000},{"alt":null,"id":23889831493731,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95467ec098d5f018e8bb15e132fa7271ae293330_a83084de-74c5-4411-b64a-79a1fbf102f8.webp?v=1714889190"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95467ec098d5f018e8bb15e132fa7271ae293330_a83084de-74c5-4411-b64a-79a1fbf102f8.webp?v=1714889190","width":2000},{"alt":null,"id":23889833427043,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9af9e3d14377b5e9803db38bf4d957e14d44da0_94117efd-5f76-4ffb-afff-0f3ef3a8bbe6.webp?v=1714889192"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9af9e3d14377b5e9803db38bf4d957e14d44da0_94117efd-5f76-4ffb-afff-0f3ef3a8bbe6.webp?v=1714889192","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41903641886819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484536062051,"product_id":7414038364259,"position":10,"created_at":"2024-05-05T14:06:30+08:00","updated_at":"2024-05-05T14:06:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95467ec098d5f018e8bb15e132fa7271ae293330_a83084de-74c5-4411-b64a-79a1fbf102f8.webp?v=1714889190","variant_ids":[41903641886819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 在幹嘛 - 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-IV06","featured_media":{"alt":null,"id":23889831493731,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95467ec098d5f018e8bb15e132fa7271ae293330_a83084de-74c5-4411-b64a-79a1fbf102f8.webp?v=1714889190"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903642280035,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484537667683,"product_id":7414038364259,"position":11,"created_at":"2024-05-05T14:06:32+08:00","updated_at":"2024-05-05T14:06:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9af9e3d14377b5e9803db38bf4d957e14d44da0_94117efd-5f76-4ffb-afff-0f3ef3a8bbe6.webp?v=1714889192","variant_ids":[41903642280035]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 在幹嘛 - 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-IV06","featured_media":{"alt":null,"id":23889833427043,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9af9e3d14377b5e9803db38bf4d957e14d44da0_94117efd-5f76-4ffb-afff-0f3ef3a8bbe6.webp?v=1714889192"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41903641886819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484536062051,"product_id":7414038364259,"position":10,"created_at":"2024-05-05T14:06:30+08:00","updated_at":"2024-05-05T14:06:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95467ec098d5f018e8bb15e132fa7271ae293330_a83084de-74c5-4411-b64a-79a1fbf102f8.webp?v=1714889190","variant_ids":[41903641886819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 在幹嘛 - 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-IV06","featured_media":{"alt":null,"id":23889831493731,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95467ec098d5f018e8bb15e132fa7271ae293330_a83084de-74c5-4411-b64a-79a1fbf102f8.webp?v=1714889190"}},"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: "停產" }