$product = {"id":7414161440867,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 小丑女圖騰","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sb17","description":null,"published_at":"2024-06-11T17:49:31+08:00","created_at":"2024-05-05T14:13:39+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":41904542187619,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31484811313251,"product_id":7414161440867,"position":5,"created_at":"2024-05-05T14:13:51+08:00","updated_at":"2024-05-05T14:13:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59584813a4e61f4667b9b1c7278c9d7fdea0d03d_328fa2e2-c00f-4f42-a638-e709e21d01e8.webp?v=1714889631","variant_ids":[41904542187619]},"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-SB17","featured_media":{"alt":null,"id":23890107105379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59584813a4e61f4667b9b1c7278c9d7fdea0d03d_328fa2e2-c00f-4f42-a638-e709e21d01e8.webp?v=1714889631"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904542580835,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31484813082723,"product_id":7414161440867,"position":6,"created_at":"2024-05-05T14:13:53+08:00","updated_at":"2024-05-05T14:13:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3375ab9545a6a07cbac98f7561d5985880509934_079d5326-9181-4422-be45-e5375d00566f.webp?v=1714889633","variant_ids":[41904542580835]},"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-SB17","featured_media":{"alt":null,"id":23890108547171,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3375ab9545a6a07cbac98f7561d5985880509934_079d5326-9181-4422-be45-e5375d00566f.webp?v=1714889633"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d420873a38221e6b0f051eacbf4e9aebec9579b_03e57d86-fb42-45b2-9e03-601b2cb6af52.webp?v=1714889621","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bffc8a1372aa2314c9e96bd556963b2a84917ad6_33f738dd-92a5-4e64-a988-f19d36db7de2.webp?v=1714889624","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60a34c446b20c10b8d820fcbcdaf9a9df34c8fc3_820dbf9f-607a-4f8a-bd06-13ef54395780.webp?v=1714889626","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a9983e444aee6ea1dd8a07296d13ae9eec2bc93_2ddc518e-a8a5-447e-942f-ee6c8b34eb89.webp?v=1714889628","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59584813a4e61f4667b9b1c7278c9d7fdea0d03d_328fa2e2-c00f-4f42-a638-e709e21d01e8.webp?v=1714889631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3375ab9545a6a07cbac98f7561d5985880509934_079d5326-9181-4422-be45-e5375d00566f.webp?v=1714889633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6168cd5979857407212f2929ccb2f4ed92c2d0d_a81e2c7d-29e7-4d1e-9d2b-01e51ff0e548.webp?v=1714889635","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/819779e206bfb8d3e162ce899e467b9c3d2b3296_def0516d-db5d-4221-839c-206de0cc1155.webp?v=1714889638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0f9e6c42215cc2a1f5b9800c85b85eb9cb4b3b5_19c41b7f-1226-493c-a44e-0baa43b72683.webp?v=1714889640","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74049c8552e3dfcae95a0f923e2ed0060e8cee49_7176392c-592f-4a9a-b01d-ce51ec1d044d.webp?v=1714889643","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9e11e378681be1661bb269bf90cc2d34e58b5c6_7deb156b-de6d-4fc7-a57e-29e076847838.webp?v=1714889645"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d420873a38221e6b0f051eacbf4e9aebec9579b_03e57d86-fb42-45b2-9e03-601b2cb6af52.webp?v=1714889621","options":["color"],"media":[{"alt":null,"id":23890099470435,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d420873a38221e6b0f051eacbf4e9aebec9579b_03e57d86-fb42-45b2-9e03-601b2cb6af52.webp?v=1714889621"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d420873a38221e6b0f051eacbf4e9aebec9579b_03e57d86-fb42-45b2-9e03-601b2cb6af52.webp?v=1714889621","width":2000},{"alt":null,"id":23890101207139,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bffc8a1372aa2314c9e96bd556963b2a84917ad6_33f738dd-92a5-4e64-a988-f19d36db7de2.webp?v=1714889624"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bffc8a1372aa2314c9e96bd556963b2a84917ad6_33f738dd-92a5-4e64-a988-f19d36db7de2.webp?v=1714889624","width":2000},{"alt":null,"id":23890102976611,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60a34c446b20c10b8d820fcbcdaf9a9df34c8fc3_820dbf9f-607a-4f8a-bd06-13ef54395780.webp?v=1714889626"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60a34c446b20c10b8d820fcbcdaf9a9df34c8fc3_820dbf9f-607a-4f8a-bd06-13ef54395780.webp?v=1714889626","width":2000},{"alt":null,"id":23890105172067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a9983e444aee6ea1dd8a07296d13ae9eec2bc93_2ddc518e-a8a5-447e-942f-ee6c8b34eb89.webp?v=1714889628"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a9983e444aee6ea1dd8a07296d13ae9eec2bc93_2ddc518e-a8a5-447e-942f-ee6c8b34eb89.webp?v=1714889628","width":2000},{"alt":null,"id":23890107105379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59584813a4e61f4667b9b1c7278c9d7fdea0d03d_328fa2e2-c00f-4f42-a638-e709e21d01e8.webp?v=1714889631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59584813a4e61f4667b9b1c7278c9d7fdea0d03d_328fa2e2-c00f-4f42-a638-e709e21d01e8.webp?v=1714889631","width":2000},{"alt":null,"id":23890108547171,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3375ab9545a6a07cbac98f7561d5985880509934_079d5326-9181-4422-be45-e5375d00566f.webp?v=1714889633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3375ab9545a6a07cbac98f7561d5985880509934_079d5326-9181-4422-be45-e5375d00566f.webp?v=1714889633","width":2000},{"alt":null,"id":23890110316643,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6168cd5979857407212f2929ccb2f4ed92c2d0d_a81e2c7d-29e7-4d1e-9d2b-01e51ff0e548.webp?v=1714889635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6168cd5979857407212f2929ccb2f4ed92c2d0d_a81e2c7d-29e7-4d1e-9d2b-01e51ff0e548.webp?v=1714889635","width":2000},{"alt":null,"id":23890112151651,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/819779e206bfb8d3e162ce899e467b9c3d2b3296_def0516d-db5d-4221-839c-206de0cc1155.webp?v=1714889638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/819779e206bfb8d3e162ce899e467b9c3d2b3296_def0516d-db5d-4221-839c-206de0cc1155.webp?v=1714889638","width":2000},{"alt":null,"id":23890113593443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0f9e6c42215cc2a1f5b9800c85b85eb9cb4b3b5_19c41b7f-1226-493c-a44e-0baa43b72683.webp?v=1714889640"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0f9e6c42215cc2a1f5b9800c85b85eb9cb4b3b5_19c41b7f-1226-493c-a44e-0baa43b72683.webp?v=1714889640","width":2000},{"alt":null,"id":23890115723363,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74049c8552e3dfcae95a0f923e2ed0060e8cee49_7176392c-592f-4a9a-b01d-ce51ec1d044d.webp?v=1714889643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74049c8552e3dfcae95a0f923e2ed0060e8cee49_7176392c-592f-4a9a-b01d-ce51ec1d044d.webp?v=1714889643","width":2000},{"alt":null,"id":23890117034083,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9e11e378681be1661bb269bf90cc2d34e58b5c6_7deb156b-de6d-4fc7-a57e-29e076847838.webp?v=1714889645"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9e11e378681be1661bb269bf90cc2d34e58b5c6_7deb156b-de6d-4fc7-a57e-29e076847838.webp?v=1714889645","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41904542187619,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31484811313251,"product_id":7414161440867,"position":5,"created_at":"2024-05-05T14:13:51+08:00","updated_at":"2024-05-05T14:13:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59584813a4e61f4667b9b1c7278c9d7fdea0d03d_328fa2e2-c00f-4f42-a638-e709e21d01e8.webp?v=1714889631","variant_ids":[41904542187619]},"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-SB17","featured_media":{"alt":null,"id":23890107105379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59584813a4e61f4667b9b1c7278c9d7fdea0d03d_328fa2e2-c00f-4f42-a638-e709e21d01e8.webp?v=1714889631"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904542580835,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31484813082723,"product_id":7414161440867,"position":6,"created_at":"2024-05-05T14:13:53+08:00","updated_at":"2024-05-05T14:13:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3375ab9545a6a07cbac98f7561d5985880509934_079d5326-9181-4422-be45-e5375d00566f.webp?v=1714889633","variant_ids":[41904542580835]},"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-SB17","featured_media":{"alt":null,"id":23890108547171,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3375ab9545a6a07cbac98f7561d5985880509934_079d5326-9181-4422-be45-e5375d00566f.webp?v=1714889633"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41904542187619,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31484811313251,"product_id":7414161440867,"position":5,"created_at":"2024-05-05T14:13:51+08:00","updated_at":"2024-05-05T14:13:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59584813a4e61f4667b9b1c7278c9d7fdea0d03d_328fa2e2-c00f-4f42-a638-e709e21d01e8.webp?v=1714889631","variant_ids":[41904542187619]},"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-SB17","featured_media":{"alt":null,"id":23890107105379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59584813a4e61f4667b9b1c7278c9d7fdea0d03d_328fa2e2-c00f-4f42-a638-e709e21d01e8.webp?v=1714889631"}},"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: "停產" }