$product = {"id":7415081533539,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Twenty One Point Five - 21.5 - Mundane Everyday","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-rl01","description":null,"published_at":"2024-06-11T17:57:28+08:00","created_at":"2024-05-05T20:19:15+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Twenty One Point Five - 21.5","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-twenty-one-point-five","device-iPhone 12 pro max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-twenty-one-point-five","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":41911671750755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31488111902819,"product_id":7415081533539,"position":8,"created_at":"2024-05-05T20:19:35+08:00","updated_at":"2024-05-05T20:19:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99b51d08f077aa3e60386e437f205f2c90c4edf9_8aa185ce-eabd-4f5f-b0dc-c17452364108.webp?v=1714911575","variant_ids":[41911671750755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Twenty One Point Five - 21.5 - Mundane Everyday - 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":"MPB0118724-RL01","featured_media":{"alt":null,"id":23893456486499,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99b51d08f077aa3e60386e437f205f2c90c4edf9_8aa185ce-eabd-4f5f-b0dc-c17452364108.webp?v=1714911575"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb00592e4c5a19edeca00d9974cb77b8d643a1ac_c4b84f24-5be6-4ddb-b4c5-0c41c5b34e83.webp?v=1714911558","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9ebb1115e74846a658ad4770b431475983db68e_ad161d18-56d0-489d-8e7e-77f847d11f37.webp?v=1714911560","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3a98671e81466e008a7aace320764a389d2a5d_548a3d6d-9525-423a-9010-ac9721cf7865.webp?v=1714911562","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6c813513e4d421ed6f9009ff586c288f68f59a5_377a3ceb-d086-4b17-9231-b59d93d0ceb4.webp?v=1714911565","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5742177da7aa8ac66fb23191ed5cc9b7b31d5cc6_f3be48b3-8aac-407e-9ea5-98a26cefa444.webp?v=1714911567","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b7d28d76b1f60e6d7dc9d912c8b9ebf54943292_f6c145e2-1c68-4855-9609-47bca0440fca.webp?v=1714911570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66b01d831ae9c9d8f232ace4cfc80fcb87af1f66_650b94c0-0de9-4d56-a575-f5cfb917b1bc.webp?v=1714911573","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99b51d08f077aa3e60386e437f205f2c90c4edf9_8aa185ce-eabd-4f5f-b0dc-c17452364108.webp?v=1714911575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddb775a7ddd215f4809241543872a2311bca7eb3_a37a5980-8a78-4925-8f2d-27c7ee836159.webp?v=1714911577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f83893d9d74cd73fd48ff9595b5e13f4ee01b01_8d795842-6a44-4977-bdd0-f5535d168c7b.webp?v=1714911580"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb00592e4c5a19edeca00d9974cb77b8d643a1ac_c4b84f24-5be6-4ddb-b4c5-0c41c5b34e83.webp?v=1714911558","options":["color"],"media":[{"alt":null,"id":23893452750947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb00592e4c5a19edeca00d9974cb77b8d643a1ac_c4b84f24-5be6-4ddb-b4c5-0c41c5b34e83.webp?v=1714911558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb00592e4c5a19edeca00d9974cb77b8d643a1ac_c4b84f24-5be6-4ddb-b4c5-0c41c5b34e83.webp?v=1714911558","width":2000},{"alt":null,"id":23893453242467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9ebb1115e74846a658ad4770b431475983db68e_ad161d18-56d0-489d-8e7e-77f847d11f37.webp?v=1714911560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9ebb1115e74846a658ad4770b431475983db68e_ad161d18-56d0-489d-8e7e-77f847d11f37.webp?v=1714911560","width":2000},{"alt":null,"id":23893453930595,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3a98671e81466e008a7aace320764a389d2a5d_548a3d6d-9525-423a-9010-ac9721cf7865.webp?v=1714911562"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3a98671e81466e008a7aace320764a389d2a5d_548a3d6d-9525-423a-9010-ac9721cf7865.webp?v=1714911562","width":2000},{"alt":null,"id":23893454389347,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6c813513e4d421ed6f9009ff586c288f68f59a5_377a3ceb-d086-4b17-9231-b59d93d0ceb4.webp?v=1714911565"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6c813513e4d421ed6f9009ff586c288f68f59a5_377a3ceb-d086-4b17-9231-b59d93d0ceb4.webp?v=1714911565","width":2000},{"alt":null,"id":23893454815331,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5742177da7aa8ac66fb23191ed5cc9b7b31d5cc6_f3be48b3-8aac-407e-9ea5-98a26cefa444.webp?v=1714911567"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5742177da7aa8ac66fb23191ed5cc9b7b31d5cc6_f3be48b3-8aac-407e-9ea5-98a26cefa444.webp?v=1714911567","width":2000},{"alt":null,"id":23893455208547,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b7d28d76b1f60e6d7dc9d912c8b9ebf54943292_f6c145e2-1c68-4855-9609-47bca0440fca.webp?v=1714911570"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b7d28d76b1f60e6d7dc9d912c8b9ebf54943292_f6c145e2-1c68-4855-9609-47bca0440fca.webp?v=1714911570","width":2000},{"alt":null,"id":23893455765603,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66b01d831ae9c9d8f232ace4cfc80fcb87af1f66_650b94c0-0de9-4d56-a575-f5cfb917b1bc.webp?v=1714911573"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66b01d831ae9c9d8f232ace4cfc80fcb87af1f66_650b94c0-0de9-4d56-a575-f5cfb917b1bc.webp?v=1714911573","width":2000},{"alt":null,"id":23893456486499,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99b51d08f077aa3e60386e437f205f2c90c4edf9_8aa185ce-eabd-4f5f-b0dc-c17452364108.webp?v=1714911575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99b51d08f077aa3e60386e437f205f2c90c4edf9_8aa185ce-eabd-4f5f-b0dc-c17452364108.webp?v=1714911575","width":2000},{"alt":null,"id":23893457043555,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddb775a7ddd215f4809241543872a2311bca7eb3_a37a5980-8a78-4925-8f2d-27c7ee836159.webp?v=1714911577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddb775a7ddd215f4809241543872a2311bca7eb3_a37a5980-8a78-4925-8f2d-27c7ee836159.webp?v=1714911577","width":2000},{"alt":null,"id":23893457567843,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f83893d9d74cd73fd48ff9595b5e13f4ee01b01_8d795842-6a44-4977-bdd0-f5535d168c7b.webp?v=1714911580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f83893d9d74cd73fd48ff9595b5e13f4ee01b01_8d795842-6a44-4977-bdd0-f5535d168c7b.webp?v=1714911580","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911671750755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31488111902819,"product_id":7415081533539,"position":8,"created_at":"2024-05-05T20:19:35+08:00","updated_at":"2024-05-05T20:19:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99b51d08f077aa3e60386e437f205f2c90c4edf9_8aa185ce-eabd-4f5f-b0dc-c17452364108.webp?v=1714911575","variant_ids":[41911671750755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Twenty One Point Five - 21.5 - Mundane Everyday - 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":"MPB0118724-RL01","featured_media":{"alt":null,"id":23893456486499,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99b51d08f077aa3e60386e437f205f2c90c4edf9_8aa185ce-eabd-4f5f-b0dc-c17452364108.webp?v=1714911575"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911671750755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31488111902819,"product_id":7415081533539,"position":8,"created_at":"2024-05-05T20:19:35+08:00","updated_at":"2024-05-05T20:19:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99b51d08f077aa3e60386e437f205f2c90c4edf9_8aa185ce-eabd-4f5f-b0dc-c17452364108.webp?v=1714911575","variant_ids":[41911671750755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Twenty One Point Five - 21.5 - Mundane Everyday - 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":"MPB0118724-RL01","featured_media":{"alt":null,"id":23893456486499,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99b51d08f077aa3e60386e437f205f2c90c4edf9_8aa185ce-eabd-4f5f-b0dc-c17452364108.webp?v=1714911575"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }