$product = {"id":7414126739555,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 復古漫畫插圖","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sb08","description":null,"published_at":"2024-06-11T17:49:11+08:00","created_at":"2024-05-05T14:11:20+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":41904267755619,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31484735324259,"product_id":7414126739555,"position":10,"created_at":"2024-05-05T14:11:44+08:00","updated_at":"2024-05-05T14:11:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df8fed3667d66c98eccbeed631154744b7e13828_4a58421a-a3fc-42e3-b3e6-0fa7362195f8.webp?v=1714889504","variant_ids":[41904267755619]},"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-SB08","featured_media":{"alt":null,"id":23890029871203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df8fed3667d66c98eccbeed631154744b7e13828_4a58421a-a3fc-42e3-b3e6-0fa7362195f8.webp?v=1714889504"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904268050531,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31484734734435,"product_id":7414126739555,"position":9,"created_at":"2024-05-05T14:11:41+08:00","updated_at":"2024-05-05T14:11:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936da71c98f1f7e4fdf21bc1c3e004df5f6cd92c_90bc9251-cfd5-46ba-9d72-0dc26df34ad2.webp?v=1714889501","variant_ids":[41904268050531]},"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-SB08","featured_media":{"alt":null,"id":23890029346915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936da71c98f1f7e4fdf21bc1c3e004df5f6cd92c_90bc9251-cfd5-46ba-9d72-0dc26df34ad2.webp?v=1714889501"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8ee3b7e6ad3a4d8d2325a9b778a89cfa082a50_ed055819-0a66-46d4-93d1-6da7f5fb4f67.webp?v=1714889483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4372a02b3d894a6a265bb71a8c0d6612e24d7d56_a6d59c7d-9fbe-4d75-96a6-17b1288fb931.webp?v=1714889485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a7a85aa334fc90da2715f7f438affbd6e16a70e_0ab1eb05-ca63-4914-a6a9-020d56b59e01.webp?v=1714889487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd67c3d180ba0eef54275e9fc07ff0c6a16558ad_b10615f9-5fca-4444-9440-647f4696977e.webp?v=1714889490","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ecbaef31f94f39f63bf105be58a5238f067ac4d_8f0f019a-181b-42b7-b0f8-2700d9eadeea.webp?v=1714889492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8bc0f0fdedf1d360d19d9b8064cfc980435bdc8_88e3044a-b1f4-4d13-868b-d985edb7c9ae.webp?v=1714889495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f20f8e0d9f90dbe93450eafe63e4419add4b1b8_edd2b05f-9519-46c9-af4f-255d77398392.webp?v=1714889497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1f28cbf57426113a22ea0c7466fa17a93da9fb2_4ac203df-b4e9-4516-a70d-ca3a926de426.webp?v=1714889499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936da71c98f1f7e4fdf21bc1c3e004df5f6cd92c_90bc9251-cfd5-46ba-9d72-0dc26df34ad2.webp?v=1714889501","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df8fed3667d66c98eccbeed631154744b7e13828_4a58421a-a3fc-42e3-b3e6-0fa7362195f8.webp?v=1714889504","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc7873a5f5461dde698c31fc1010d28621ce1dde_7aefb295-46ca-40b2-b0a7-2736262696a9.webp?v=1714889506"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8ee3b7e6ad3a4d8d2325a9b778a89cfa082a50_ed055819-0a66-46d4-93d1-6da7f5fb4f67.webp?v=1714889483","options":["color"],"media":[{"alt":null,"id":23890022662243,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8ee3b7e6ad3a4d8d2325a9b778a89cfa082a50_ed055819-0a66-46d4-93d1-6da7f5fb4f67.webp?v=1714889483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8ee3b7e6ad3a4d8d2325a9b778a89cfa082a50_ed055819-0a66-46d4-93d1-6da7f5fb4f67.webp?v=1714889483","width":2000},{"alt":null,"id":23890023219299,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4372a02b3d894a6a265bb71a8c0d6612e24d7d56_a6d59c7d-9fbe-4d75-96a6-17b1288fb931.webp?v=1714889485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4372a02b3d894a6a265bb71a8c0d6612e24d7d56_a6d59c7d-9fbe-4d75-96a6-17b1288fb931.webp?v=1714889485","width":2000},{"alt":null,"id":23890024104035,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a7a85aa334fc90da2715f7f438affbd6e16a70e_0ab1eb05-ca63-4914-a6a9-020d56b59e01.webp?v=1714889487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a7a85aa334fc90da2715f7f438affbd6e16a70e_0ab1eb05-ca63-4914-a6a9-020d56b59e01.webp?v=1714889487","width":2000},{"alt":null,"id":23890024988771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd67c3d180ba0eef54275e9fc07ff0c6a16558ad_b10615f9-5fca-4444-9440-647f4696977e.webp?v=1714889490"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd67c3d180ba0eef54275e9fc07ff0c6a16558ad_b10615f9-5fca-4444-9440-647f4696977e.webp?v=1714889490","width":2000},{"alt":null,"id":23890025971811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ecbaef31f94f39f63bf105be58a5238f067ac4d_8f0f019a-181b-42b7-b0f8-2700d9eadeea.webp?v=1714889492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ecbaef31f94f39f63bf105be58a5238f067ac4d_8f0f019a-181b-42b7-b0f8-2700d9eadeea.webp?v=1714889492","width":2000},{"alt":null,"id":23890026856547,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8bc0f0fdedf1d360d19d9b8064cfc980435bdc8_88e3044a-b1f4-4d13-868b-d985edb7c9ae.webp?v=1714889495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8bc0f0fdedf1d360d19d9b8064cfc980435bdc8_88e3044a-b1f4-4d13-868b-d985edb7c9ae.webp?v=1714889495","width":2000},{"alt":null,"id":23890027774051,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f20f8e0d9f90dbe93450eafe63e4419add4b1b8_edd2b05f-9519-46c9-af4f-255d77398392.webp?v=1714889497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f20f8e0d9f90dbe93450eafe63e4419add4b1b8_edd2b05f-9519-46c9-af4f-255d77398392.webp?v=1714889497","width":2000},{"alt":null,"id":23890028560483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1f28cbf57426113a22ea0c7466fa17a93da9fb2_4ac203df-b4e9-4516-a70d-ca3a926de426.webp?v=1714889499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1f28cbf57426113a22ea0c7466fa17a93da9fb2_4ac203df-b4e9-4516-a70d-ca3a926de426.webp?v=1714889499","width":2000},{"alt":null,"id":23890029346915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936da71c98f1f7e4fdf21bc1c3e004df5f6cd92c_90bc9251-cfd5-46ba-9d72-0dc26df34ad2.webp?v=1714889501"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936da71c98f1f7e4fdf21bc1c3e004df5f6cd92c_90bc9251-cfd5-46ba-9d72-0dc26df34ad2.webp?v=1714889501","width":2000},{"alt":null,"id":23890029871203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df8fed3667d66c98eccbeed631154744b7e13828_4a58421a-a3fc-42e3-b3e6-0fa7362195f8.webp?v=1714889504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df8fed3667d66c98eccbeed631154744b7e13828_4a58421a-a3fc-42e3-b3e6-0fa7362195f8.webp?v=1714889504","width":2000},{"alt":null,"id":23890030657635,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc7873a5f5461dde698c31fc1010d28621ce1dde_7aefb295-46ca-40b2-b0a7-2736262696a9.webp?v=1714889506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc7873a5f5461dde698c31fc1010d28621ce1dde_7aefb295-46ca-40b2-b0a7-2736262696a9.webp?v=1714889506","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41904267755619,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31484735324259,"product_id":7414126739555,"position":10,"created_at":"2024-05-05T14:11:44+08:00","updated_at":"2024-05-05T14:11:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df8fed3667d66c98eccbeed631154744b7e13828_4a58421a-a3fc-42e3-b3e6-0fa7362195f8.webp?v=1714889504","variant_ids":[41904267755619]},"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-SB08","featured_media":{"alt":null,"id":23890029871203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df8fed3667d66c98eccbeed631154744b7e13828_4a58421a-a3fc-42e3-b3e6-0fa7362195f8.webp?v=1714889504"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904268050531,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31484734734435,"product_id":7414126739555,"position":9,"created_at":"2024-05-05T14:11:41+08:00","updated_at":"2024-05-05T14:11:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936da71c98f1f7e4fdf21bc1c3e004df5f6cd92c_90bc9251-cfd5-46ba-9d72-0dc26df34ad2.webp?v=1714889501","variant_ids":[41904268050531]},"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-SB08","featured_media":{"alt":null,"id":23890029346915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/936da71c98f1f7e4fdf21bc1c3e004df5f6cd92c_90bc9251-cfd5-46ba-9d72-0dc26df34ad2.webp?v=1714889501"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41904267755619,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31484735324259,"product_id":7414126739555,"position":10,"created_at":"2024-05-05T14:11:44+08:00","updated_at":"2024-05-05T14:11:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df8fed3667d66c98eccbeed631154744b7e13828_4a58421a-a3fc-42e3-b3e6-0fa7362195f8.webp?v=1714889504","variant_ids":[41904267755619]},"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-SB08","featured_media":{"alt":null,"id":23890029871203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df8fed3667d66c98eccbeed631154744b7e13828_4a58421a-a3fc-42e3-b3e6-0fa7362195f8.webp?v=1714889504"}},"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: "停產" }