$product = {"id":7414447505507,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - Logo","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sb16","description":null,"published_at":"2024-06-11T17:51:21+08:00","created_at":"2024-05-05T14:25:53+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":41906554044515,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31485503537251,"product_id":7414447505507,"position":9,"created_at":"2024-05-05T14:26:13+08:00","updated_at":"2024-05-05T14:26:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2fa87529e676b1bdf2e787a3d205649fcadc0a_65583ae1-937f-4bed-b711-32b18276696b.webp?v=1714890373","variant_ids":[41906554044515]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - Logo - 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-SB16","featured_media":{"alt":null,"id":23890820268131,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2fa87529e676b1bdf2e787a3d205649fcadc0a_65583ae1-937f-4bed-b711-32b18276696b.webp?v=1714890373"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906554601571,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31485506617443,"product_id":7414447505507,"position":10,"created_at":"2024-05-05T14:26:16+08:00","updated_at":"2024-05-05T14:26:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97ce69aab6eb337cd8b7366244734a4071ac20b_ab0704dc-bd53-4315-91d2-0e202c8492a5.webp?v=1714890376","variant_ids":[41906554601571]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - Logo - 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-SB16","featured_media":{"alt":null,"id":23890823151715,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97ce69aab6eb337cd8b7366244734a4071ac20b_ab0704dc-bd53-4315-91d2-0e202c8492a5.webp?v=1714890376"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe43e5892aa5ded79fc156b4ed7e106391fffe1_874f2726-c205-43f4-b471-93079b35a37d.webp?v=1714890355","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb865269d0d32703dbb7ac9218eaf4556d89881f_4027845a-e736-4107-aca1-118c6e36f7e5.webp?v=1714890358","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22444ce21662fc0d900eba81717d80f2482ca5f8_763fcaf0-f513-413b-a718-ab828915324b.webp?v=1714890360","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aff745c6259e046b5f247157788788a557b37ffc_0385720b-b5b8-4be2-a96a-90476581b35f.webp?v=1714890362","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ee411a344caf9935b5685fd9e14ab2cf77daf32_e49004e9-ff81-4d95-9a2a-a2bbed6c8702.webp?v=1714890364","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1a144143b7cb59819c82a68154b53d8a33580c6_abaf18f9-504e-4a89-ac3b-005832807af4.webp?v=1714890367","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f01b19a6f8d85b13f4851ab60ffd27f2cc26e96_638a43db-22fa-4dae-a32f-227183908a53.webp?v=1714890369","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/472684c1f3e7a733319cceaadac4855b1821519e_637d88f3-2713-40e5-ae36-f0a837a3b104.webp?v=1714890371","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2fa87529e676b1bdf2e787a3d205649fcadc0a_65583ae1-937f-4bed-b711-32b18276696b.webp?v=1714890373","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97ce69aab6eb337cd8b7366244734a4071ac20b_ab0704dc-bd53-4315-91d2-0e202c8492a5.webp?v=1714890376","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c30160d9834713e20f2d3823aeeb81aa5e609693_f30b39b4-36fe-42ad-bad9-b3ec6c46160b.webp?v=1714890379"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe43e5892aa5ded79fc156b4ed7e106391fffe1_874f2726-c205-43f4-b471-93079b35a37d.webp?v=1714890355","options":["color"],"media":[{"alt":null,"id":23890800672867,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe43e5892aa5ded79fc156b4ed7e106391fffe1_874f2726-c205-43f4-b471-93079b35a37d.webp?v=1714890355"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe43e5892aa5ded79fc156b4ed7e106391fffe1_874f2726-c205-43f4-b471-93079b35a37d.webp?v=1714890355","width":2000},{"alt":null,"id":23890803327075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb865269d0d32703dbb7ac9218eaf4556d89881f_4027845a-e736-4107-aca1-118c6e36f7e5.webp?v=1714890358"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb865269d0d32703dbb7ac9218eaf4556d89881f_4027845a-e736-4107-aca1-118c6e36f7e5.webp?v=1714890358","width":2000},{"alt":null,"id":23890805817443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22444ce21662fc0d900eba81717d80f2482ca5f8_763fcaf0-f513-413b-a718-ab828915324b.webp?v=1714890360"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22444ce21662fc0d900eba81717d80f2482ca5f8_763fcaf0-f513-413b-a718-ab828915324b.webp?v=1714890360","width":2000},{"alt":null,"id":23890808275043,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aff745c6259e046b5f247157788788a557b37ffc_0385720b-b5b8-4be2-a96a-90476581b35f.webp?v=1714890362"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aff745c6259e046b5f247157788788a557b37ffc_0385720b-b5b8-4be2-a96a-90476581b35f.webp?v=1714890362","width":2000},{"alt":null,"id":23890810765411,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ee411a344caf9935b5685fd9e14ab2cf77daf32_e49004e9-ff81-4d95-9a2a-a2bbed6c8702.webp?v=1714890364"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ee411a344caf9935b5685fd9e14ab2cf77daf32_e49004e9-ff81-4d95-9a2a-a2bbed6c8702.webp?v=1714890364","width":2000},{"alt":null,"id":23890813878371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1a144143b7cb59819c82a68154b53d8a33580c6_abaf18f9-504e-4a89-ac3b-005832807af4.webp?v=1714890367"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1a144143b7cb59819c82a68154b53d8a33580c6_abaf18f9-504e-4a89-ac3b-005832807af4.webp?v=1714890367","width":2000},{"alt":null,"id":23890816073827,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f01b19a6f8d85b13f4851ab60ffd27f2cc26e96_638a43db-22fa-4dae-a32f-227183908a53.webp?v=1714890369"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f01b19a6f8d85b13f4851ab60ffd27f2cc26e96_638a43db-22fa-4dae-a32f-227183908a53.webp?v=1714890369","width":2000},{"alt":null,"id":23890818203747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/472684c1f3e7a733319cceaadac4855b1821519e_637d88f3-2713-40e5-ae36-f0a837a3b104.webp?v=1714890371"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/472684c1f3e7a733319cceaadac4855b1821519e_637d88f3-2713-40e5-ae36-f0a837a3b104.webp?v=1714890371","width":2000},{"alt":null,"id":23890820268131,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2fa87529e676b1bdf2e787a3d205649fcadc0a_65583ae1-937f-4bed-b711-32b18276696b.webp?v=1714890373"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2fa87529e676b1bdf2e787a3d205649fcadc0a_65583ae1-937f-4bed-b711-32b18276696b.webp?v=1714890373","width":2000},{"alt":null,"id":23890823151715,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97ce69aab6eb337cd8b7366244734a4071ac20b_ab0704dc-bd53-4315-91d2-0e202c8492a5.webp?v=1714890376"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97ce69aab6eb337cd8b7366244734a4071ac20b_ab0704dc-bd53-4315-91d2-0e202c8492a5.webp?v=1714890376","width":2000},{"alt":null,"id":23890824790115,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c30160d9834713e20f2d3823aeeb81aa5e609693_f30b39b4-36fe-42ad-bad9-b3ec6c46160b.webp?v=1714890379"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c30160d9834713e20f2d3823aeeb81aa5e609693_f30b39b4-36fe-42ad-bad9-b3ec6c46160b.webp?v=1714890379","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41906554044515,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31485503537251,"product_id":7414447505507,"position":9,"created_at":"2024-05-05T14:26:13+08:00","updated_at":"2024-05-05T14:26:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2fa87529e676b1bdf2e787a3d205649fcadc0a_65583ae1-937f-4bed-b711-32b18276696b.webp?v=1714890373","variant_ids":[41906554044515]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - Logo - 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-SB16","featured_media":{"alt":null,"id":23890820268131,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2fa87529e676b1bdf2e787a3d205649fcadc0a_65583ae1-937f-4bed-b711-32b18276696b.webp?v=1714890373"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906554601571,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31485506617443,"product_id":7414447505507,"position":10,"created_at":"2024-05-05T14:26:16+08:00","updated_at":"2024-05-05T14:26:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97ce69aab6eb337cd8b7366244734a4071ac20b_ab0704dc-bd53-4315-91d2-0e202c8492a5.webp?v=1714890376","variant_ids":[41906554601571]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - Logo - 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-SB16","featured_media":{"alt":null,"id":23890823151715,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97ce69aab6eb337cd8b7366244734a4071ac20b_ab0704dc-bd53-4315-91d2-0e202c8492a5.webp?v=1714890376"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41906554044515,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31485503537251,"product_id":7414447505507,"position":9,"created_at":"2024-05-05T14:26:13+08:00","updated_at":"2024-05-05T14:26:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2fa87529e676b1bdf2e787a3d205649fcadc0a_65583ae1-937f-4bed-b711-32b18276696b.webp?v=1714890373","variant_ids":[41906554044515]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - Logo - 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-SB16","featured_media":{"alt":null,"id":23890820268131,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2fa87529e676b1bdf2e787a3d205649fcadc0a_65583ae1-937f-4bed-b711-32b18276696b.webp?v=1714890373"}},"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: "停產" }