$product = {"id":7414018310243,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 黑白畫風-小丑","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sb13","description":null,"published_at":"2024-06-11T17:47:51+08:00","created_at":"2024-05-05T14:01:59+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":41903384756323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31484472426595,"product_id":7414018310243,"position":6,"created_at":"2024-05-05T14:02:14+08:00","updated_at":"2024-05-05T14:02:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ab6d06722f2fd1df330903e53696c4488c29a94_951c1ec6-7464-484a-a05a-f119e8704654.webp?v=1714888934","variant_ids":[41903384756323]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 黑白畫風-小丑 - 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-SB13","featured_media":{"alt":null,"id":23889766580323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ab6d06722f2fd1df330903e53696c4488c29a94_951c1ec6-7464-484a-a05a-f119e8704654.webp?v=1714888934"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903385215075,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31484470755427,"product_id":7414018310243,"position":4,"created_at":"2024-05-05T14:02:09+08:00","updated_at":"2024-05-05T14:02:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f691d340e794939d6deadfa4675ddb1e82aa430f_c940e4fd-1f52-40ab-8ead-91b19b744882.webp?v=1714888929","variant_ids":[41903385215075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 黑白畫風-小丑 - 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-SB13","featured_media":{"alt":null,"id":23889764909155,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f691d340e794939d6deadfa4675ddb1e82aa430f_c940e4fd-1f52-40ab-8ead-91b19b744882.webp?v=1714888929"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83e40f0fb348199fb8c3c71f4c2c7ba8809c64ad_87747b71-2ab7-424d-8d0c-733e3aa902a4.webp?v=1714888922","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb15b317fdaedc5ec6d8690b1cae8098bf7c7c13_6dc9806a-396d-4f37-ae42-6dcfe47a9a4b.webp?v=1714888924","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ecd511e6f52b62ef6e1999b6dd85f140cd0b6d8_d033e574-69f2-4a37-86ce-e098dd27dfa4.webp?v=1714888927","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f691d340e794939d6deadfa4675ddb1e82aa430f_c940e4fd-1f52-40ab-8ead-91b19b744882.webp?v=1714888929","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc68fa92e5090e0db05cdd837adf4e6385110c6b_cc55038f-9e6a-4dc0-99a7-45af00de356d.webp?v=1714888932","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ab6d06722f2fd1df330903e53696c4488c29a94_951c1ec6-7464-484a-a05a-f119e8704654.webp?v=1714888934","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6eabe1cac19d501b3f2331aef504b87edfff10a_a02f61e5-7803-4e27-ab17-6aefe9d1e3fb.webp?v=1714888937","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1af8a4f83bd2c5fe556480670b9ffa37affda31_5813c6f3-0c32-45de-a122-a60f578f5502.webp?v=1714888939","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e43a610effbfc158afa232e9defe24d061d4312a_fee36cce-c6e8-4f67-bb2c-428a466cd5f9.webp?v=1714888941","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f71828661a6db4b52136ceeb767b289377ea78d4_a510e473-5158-4f32-8d06-4ea16520c876.webp?v=1714888944","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e65c5c0bd832110eff618897c4200586fb2b36f_ec18ad40-93a5-4ce8-96c1-2abcc1c9be6b.webp?v=1714888946"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83e40f0fb348199fb8c3c71f4c2c7ba8809c64ad_87747b71-2ab7-424d-8d0c-733e3aa902a4.webp?v=1714888922","options":["color"],"media":[{"alt":null,"id":23889763467363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83e40f0fb348199fb8c3c71f4c2c7ba8809c64ad_87747b71-2ab7-424d-8d0c-733e3aa902a4.webp?v=1714888922"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83e40f0fb348199fb8c3c71f4c2c7ba8809c64ad_87747b71-2ab7-424d-8d0c-733e3aa902a4.webp?v=1714888922","width":2000},{"alt":null,"id":23889763926115,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb15b317fdaedc5ec6d8690b1cae8098bf7c7c13_6dc9806a-396d-4f37-ae42-6dcfe47a9a4b.webp?v=1714888924"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb15b317fdaedc5ec6d8690b1cae8098bf7c7c13_6dc9806a-396d-4f37-ae42-6dcfe47a9a4b.webp?v=1714888924","width":2000},{"alt":null,"id":23889764417635,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ecd511e6f52b62ef6e1999b6dd85f140cd0b6d8_d033e574-69f2-4a37-86ce-e098dd27dfa4.webp?v=1714888927"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ecd511e6f52b62ef6e1999b6dd85f140cd0b6d8_d033e574-69f2-4a37-86ce-e098dd27dfa4.webp?v=1714888927","width":2000},{"alt":null,"id":23889764909155,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f691d340e794939d6deadfa4675ddb1e82aa430f_c940e4fd-1f52-40ab-8ead-91b19b744882.webp?v=1714888929"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f691d340e794939d6deadfa4675ddb1e82aa430f_c940e4fd-1f52-40ab-8ead-91b19b744882.webp?v=1714888929","width":2000},{"alt":null,"id":23889766088803,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc68fa92e5090e0db05cdd837adf4e6385110c6b_cc55038f-9e6a-4dc0-99a7-45af00de356d.webp?v=1714888932"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc68fa92e5090e0db05cdd837adf4e6385110c6b_cc55038f-9e6a-4dc0-99a7-45af00de356d.webp?v=1714888932","width":2000},{"alt":null,"id":23889766580323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ab6d06722f2fd1df330903e53696c4488c29a94_951c1ec6-7464-484a-a05a-f119e8704654.webp?v=1714888934"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ab6d06722f2fd1df330903e53696c4488c29a94_951c1ec6-7464-484a-a05a-f119e8704654.webp?v=1714888934","width":2000},{"alt":null,"id":23889767071843,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6eabe1cac19d501b3f2331aef504b87edfff10a_a02f61e5-7803-4e27-ab17-6aefe9d1e3fb.webp?v=1714888937"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6eabe1cac19d501b3f2331aef504b87edfff10a_a02f61e5-7803-4e27-ab17-6aefe9d1e3fb.webp?v=1714888937","width":2000},{"alt":null,"id":23889767563363,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1af8a4f83bd2c5fe556480670b9ffa37affda31_5813c6f3-0c32-45de-a122-a60f578f5502.webp?v=1714888939"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1af8a4f83bd2c5fe556480670b9ffa37affda31_5813c6f3-0c32-45de-a122-a60f578f5502.webp?v=1714888939","width":2000},{"alt":null,"id":23889768054883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e43a610effbfc158afa232e9defe24d061d4312a_fee36cce-c6e8-4f67-bb2c-428a466cd5f9.webp?v=1714888941"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e43a610effbfc158afa232e9defe24d061d4312a_fee36cce-c6e8-4f67-bb2c-428a466cd5f9.webp?v=1714888941","width":2000},{"alt":null,"id":23889768513635,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f71828661a6db4b52136ceeb767b289377ea78d4_a510e473-5158-4f32-8d06-4ea16520c876.webp?v=1714888944"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f71828661a6db4b52136ceeb767b289377ea78d4_a510e473-5158-4f32-8d06-4ea16520c876.webp?v=1714888944","width":2000},{"alt":null,"id":23889769070691,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e65c5c0bd832110eff618897c4200586fb2b36f_ec18ad40-93a5-4ce8-96c1-2abcc1c9be6b.webp?v=1714888946"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e65c5c0bd832110eff618897c4200586fb2b36f_ec18ad40-93a5-4ce8-96c1-2abcc1c9be6b.webp?v=1714888946","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41903384756323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31484472426595,"product_id":7414018310243,"position":6,"created_at":"2024-05-05T14:02:14+08:00","updated_at":"2024-05-05T14:02:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ab6d06722f2fd1df330903e53696c4488c29a94_951c1ec6-7464-484a-a05a-f119e8704654.webp?v=1714888934","variant_ids":[41903384756323]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 黑白畫風-小丑 - 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-SB13","featured_media":{"alt":null,"id":23889766580323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ab6d06722f2fd1df330903e53696c4488c29a94_951c1ec6-7464-484a-a05a-f119e8704654.webp?v=1714888934"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903385215075,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31484470755427,"product_id":7414018310243,"position":4,"created_at":"2024-05-05T14:02:09+08:00","updated_at":"2024-05-05T14:02:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f691d340e794939d6deadfa4675ddb1e82aa430f_c940e4fd-1f52-40ab-8ead-91b19b744882.webp?v=1714888929","variant_ids":[41903385215075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 黑白畫風-小丑 - 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-SB13","featured_media":{"alt":null,"id":23889764909155,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f691d340e794939d6deadfa4675ddb1e82aa430f_c940e4fd-1f52-40ab-8ead-91b19b744882.webp?v=1714888929"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41903384756323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31484472426595,"product_id":7414018310243,"position":6,"created_at":"2024-05-05T14:02:14+08:00","updated_at":"2024-05-05T14:02:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ab6d06722f2fd1df330903e53696c4488c29a94_951c1ec6-7464-484a-a05a-f119e8704654.webp?v=1714888934","variant_ids":[41903384756323]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 黑白畫風-小丑 - 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-SB13","featured_media":{"alt":null,"id":23889766580323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ab6d06722f2fd1df330903e53696c4488c29a94_951c1ec6-7464-484a-a05a-f119e8704654.webp?v=1714888934"}},"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: "停產" }