$product = {"id":7414134964323,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 經典Logo","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sb11","description":null,"published_at":"2024-06-11T17:49:20+08:00","created_at":"2024-05-05T14:12:18+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":41904356294755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31484762488931,"product_id":7414134964323,"position":10,"created_at":"2024-05-05T14:12:43+08:00","updated_at":"2024-05-05T14:12:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87b2605c6925a4539a9e2f8bce7e06ca5a2804cb_63c2078e-7bf8-428b-80fd-593c95353687.webp?v=1714889563","variant_ids":[41904356294755]},"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-SB11","featured_media":{"alt":null,"id":23890058018915,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87b2605c6925a4539a9e2f8bce7e06ca5a2804cb_63c2078e-7bf8-428b-80fd-593c95353687.webp?v=1714889563"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904356589667,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31484750856291,"product_id":7414134964323,"position":4,"created_at":"2024-05-05T14:12:28+08:00","updated_at":"2024-05-05T14:12:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/637038105cb2518bfe2481d8f2fde18280918be5_9d85108f-cd82-47f6-8dd0-83cca135134e.webp?v=1714889548","variant_ids":[41904356589667]},"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-SB11","featured_media":{"alt":null,"id":23890046582883,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/637038105cb2518bfe2481d8f2fde18280918be5_9d85108f-cd82-47f6-8dd0-83cca135134e.webp?v=1714889548"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d578e12a7f513a33a67895311a0d806d30820ae7_e4469d44-d874-46be-9f6f-a0f35ac85f2f.webp?v=1714889541","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5cbea152f66dd483020d9540ceffc0060771e5e_cc6e9da4-5ef5-4c31-a540-7344ba4ed37b.webp?v=1714889543","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54e20758e79c5f2301cbc6ac1e786044d60c3c2b_a33dc4c0-8b14-4b7d-ba9c-e77c25d4fd3c.webp?v=1714889546","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/637038105cb2518bfe2481d8f2fde18280918be5_9d85108f-cd82-47f6-8dd0-83cca135134e.webp?v=1714889548","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9e694fae6abdc45a678d262ac6622d895737207_f1b3027c-01b5-4b20-8965-1370554f8300.webp?v=1714889551","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30032a1722e34525bdf2c3d67f8b0a461cdba36c_8143638a-4a08-4344-894c-2c39bf3c2a5d.webp?v=1714889553","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c24f08289d4241e581ef9fc748ca5bff3b9886b_4598c2f9-043b-4e25-8f73-ab10be06d744.webp?v=1714889556","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d7f4788abcdd8f6a430c66bf7e4007234925ca1_4cf096c8-675d-433b-b5ab-167b749e8ce5.webp?v=1714889558","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1639938c1b7b4511ff1f42f6073017135b0c0758_2cdee43f-e0f1-4261-a3e9-e1f360ecd15c.webp?v=1714889560","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87b2605c6925a4539a9e2f8bce7e06ca5a2804cb_63c2078e-7bf8-428b-80fd-593c95353687.webp?v=1714889563","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/270edc1b37d9e56bd788b6659f72bf96c5f29ff9_d25a0187-664e-4a15-a685-81d635d73abd.webp?v=1714889565"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d578e12a7f513a33a67895311a0d806d30820ae7_e4469d44-d874-46be-9f6f-a0f35ac85f2f.webp?v=1714889541","options":["color"],"media":[{"alt":null,"id":23890042126435,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d578e12a7f513a33a67895311a0d806d30820ae7_e4469d44-d874-46be-9f6f-a0f35ac85f2f.webp?v=1714889541"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d578e12a7f513a33a67895311a0d806d30820ae7_e4469d44-d874-46be-9f6f-a0f35ac85f2f.webp?v=1714889541","width":2000},{"alt":null,"id":23890042781795,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5cbea152f66dd483020d9540ceffc0060771e5e_cc6e9da4-5ef5-4c31-a540-7344ba4ed37b.webp?v=1714889543"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5cbea152f66dd483020d9540ceffc0060771e5e_cc6e9da4-5ef5-4c31-a540-7344ba4ed37b.webp?v=1714889543","width":2000},{"alt":null,"id":23890044747875,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54e20758e79c5f2301cbc6ac1e786044d60c3c2b_a33dc4c0-8b14-4b7d-ba9c-e77c25d4fd3c.webp?v=1714889546"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54e20758e79c5f2301cbc6ac1e786044d60c3c2b_a33dc4c0-8b14-4b7d-ba9c-e77c25d4fd3c.webp?v=1714889546","width":2000},{"alt":null,"id":23890046582883,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/637038105cb2518bfe2481d8f2fde18280918be5_9d85108f-cd82-47f6-8dd0-83cca135134e.webp?v=1714889548"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/637038105cb2518bfe2481d8f2fde18280918be5_9d85108f-cd82-47f6-8dd0-83cca135134e.webp?v=1714889548","width":2000},{"alt":null,"id":23890048811107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9e694fae6abdc45a678d262ac6622d895737207_f1b3027c-01b5-4b20-8965-1370554f8300.webp?v=1714889551"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9e694fae6abdc45a678d262ac6622d895737207_f1b3027c-01b5-4b20-8965-1370554f8300.webp?v=1714889551","width":2000},{"alt":null,"id":23890050711651,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30032a1722e34525bdf2c3d67f8b0a461cdba36c_8143638a-4a08-4344-894c-2c39bf3c2a5d.webp?v=1714889553"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30032a1722e34525bdf2c3d67f8b0a461cdba36c_8143638a-4a08-4344-894c-2c39bf3c2a5d.webp?v=1714889553","width":2000},{"alt":null,"id":23890052677731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c24f08289d4241e581ef9fc748ca5bff3b9886b_4598c2f9-043b-4e25-8f73-ab10be06d744.webp?v=1714889556"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c24f08289d4241e581ef9fc748ca5bff3b9886b_4598c2f9-043b-4e25-8f73-ab10be06d744.webp?v=1714889556","width":2000},{"alt":null,"id":23890054545507,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d7f4788abcdd8f6a430c66bf7e4007234925ca1_4cf096c8-675d-433b-b5ab-167b749e8ce5.webp?v=1714889558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d7f4788abcdd8f6a430c66bf7e4007234925ca1_4cf096c8-675d-433b-b5ab-167b749e8ce5.webp?v=1714889558","width":2000},{"alt":null,"id":23890056446051,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1639938c1b7b4511ff1f42f6073017135b0c0758_2cdee43f-e0f1-4261-a3e9-e1f360ecd15c.webp?v=1714889560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1639938c1b7b4511ff1f42f6073017135b0c0758_2cdee43f-e0f1-4261-a3e9-e1f360ecd15c.webp?v=1714889560","width":2000},{"alt":null,"id":23890058018915,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87b2605c6925a4539a9e2f8bce7e06ca5a2804cb_63c2078e-7bf8-428b-80fd-593c95353687.webp?v=1714889563"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87b2605c6925a4539a9e2f8bce7e06ca5a2804cb_63c2078e-7bf8-428b-80fd-593c95353687.webp?v=1714889563","width":2000},{"alt":null,"id":23890059984995,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/270edc1b37d9e56bd788b6659f72bf96c5f29ff9_d25a0187-664e-4a15-a685-81d635d73abd.webp?v=1714889565"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/270edc1b37d9e56bd788b6659f72bf96c5f29ff9_d25a0187-664e-4a15-a685-81d635d73abd.webp?v=1714889565","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41904356294755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31484762488931,"product_id":7414134964323,"position":10,"created_at":"2024-05-05T14:12:43+08:00","updated_at":"2024-05-05T14:12:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87b2605c6925a4539a9e2f8bce7e06ca5a2804cb_63c2078e-7bf8-428b-80fd-593c95353687.webp?v=1714889563","variant_ids":[41904356294755]},"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-SB11","featured_media":{"alt":null,"id":23890058018915,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87b2605c6925a4539a9e2f8bce7e06ca5a2804cb_63c2078e-7bf8-428b-80fd-593c95353687.webp?v=1714889563"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904356589667,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31484750856291,"product_id":7414134964323,"position":4,"created_at":"2024-05-05T14:12:28+08:00","updated_at":"2024-05-05T14:12:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/637038105cb2518bfe2481d8f2fde18280918be5_9d85108f-cd82-47f6-8dd0-83cca135134e.webp?v=1714889548","variant_ids":[41904356589667]},"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-SB11","featured_media":{"alt":null,"id":23890046582883,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/637038105cb2518bfe2481d8f2fde18280918be5_9d85108f-cd82-47f6-8dd0-83cca135134e.webp?v=1714889548"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41904356294755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31484762488931,"product_id":7414134964323,"position":10,"created_at":"2024-05-05T14:12:43+08:00","updated_at":"2024-05-05T14:12:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87b2605c6925a4539a9e2f8bce7e06ca5a2804cb_63c2078e-7bf8-428b-80fd-593c95353687.webp?v=1714889563","variant_ids":[41904356294755]},"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-SB11","featured_media":{"alt":null,"id":23890058018915,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87b2605c6925a4539a9e2f8bce7e06ca5a2804cb_63c2078e-7bf8-428b-80fd-593c95353687.webp?v=1714889563"}},"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: "停產" }