$product = {"id":7414319284323,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - J個好","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-iv08","description":null,"published_at":"2024-06-11T17:50:45+08:00","created_at":"2024-05-05T14:21:44+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-1chun","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":41905672323171,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-IV08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485155049571,"product_id":7414319284323,"position":5,"created_at":"2024-05-05T14:21:56+08:00","updated_at":"2024-05-05T14:21:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2949569e66fdce35817b609c4118b3c25eb2823a_c4a31a17-4097-4324-b387-a359ae0da33a.webp?v=1714890116","variant_ids":[41905672323171]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - J個好 - 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":"MPB0123224-IV08","featured_media":{"alt":null,"id":23890470404195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2949569e66fdce35817b609c4118b3c25eb2823a_c4a31a17-4097-4324-b387-a359ae0da33a.webp?v=1714890116"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905672978531,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-IV08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485166157923,"product_id":7414319284323,"position":10,"created_at":"2024-05-05T14:22:07+08:00","updated_at":"2024-05-05T14:22:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d77cbe5e98c9825fedd9e3ea8fc4682e1f2d866_ee1e92da-0f19-49aa-97d8-3beb67821d30.webp?v=1714890127","variant_ids":[41905672978531]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - J個好 - 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":"MPB01232J5-IV08","featured_media":{"alt":null,"id":23890481348707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d77cbe5e98c9825fedd9e3ea8fc4682e1f2d866_ee1e92da-0f19-49aa-97d8-3beb67821d30.webp?v=1714890127"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5904b2f1ccac202af555fa4ead8bfd19430937a5_b2372cca-5b21-43e7-9f1c-25d1f5e555bf.webp?v=1714890106","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8e12b6092f03d5dba18ee5f539a7a5404386cfe_5e146b2b-3ad8-43e6-974e-81346f055c7f.webp?v=1714890109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8c69774667cf82e7e8c3fc8f71355fd008f3fb6_c85ba369-22a3-43c7-a3d1-cb5e073ff098.webp?v=1714890111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b51102e39988e9ea6f87cf41299b11653bbdbb9c_7cdbfe8b-24ef-40e6-8ba9-4a805b8113f6.webp?v=1714890113","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2949569e66fdce35817b609c4118b3c25eb2823a_c4a31a17-4097-4324-b387-a359ae0da33a.webp?v=1714890116","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a44008991b8988115a06a702b976934bbc908d0_2bb59532-79d5-4a89-86cf-cc1f410252c9.webp?v=1714890118","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67af407553819bf48649a2ba4249b1ce235cb14d_4433763b-ae98-452d-a0c4-21b11f008945.webp?v=1714890120","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb505571bd38a76f192f19398ffac81ac3d85490_3b8beace-e2b5-4811-a974-2806929aa5d0.webp?v=1714890123","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b184176b8167063b55f4d8c7cd202e011383d1a2_a4852d50-b570-4f6c-a352-fe93b4539e2b.webp?v=1714890125","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d77cbe5e98c9825fedd9e3ea8fc4682e1f2d866_ee1e92da-0f19-49aa-97d8-3beb67821d30.webp?v=1714890127","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98d21b750308f1f7c985810bfa529b45d8bd7258_10e031c5-2978-41f9-98a8-a254c0a5789b.webp?v=1714890129"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5904b2f1ccac202af555fa4ead8bfd19430937a5_b2372cca-5b21-43e7-9f1c-25d1f5e555bf.webp?v=1714890106","options":["color"],"media":[{"alt":null,"id":23890461524067,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5904b2f1ccac202af555fa4ead8bfd19430937a5_b2372cca-5b21-43e7-9f1c-25d1f5e555bf.webp?v=1714890106"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5904b2f1ccac202af555fa4ead8bfd19430937a5_b2372cca-5b21-43e7-9f1c-25d1f5e555bf.webp?v=1714890106","width":2000},{"alt":null,"id":23890463752291,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8e12b6092f03d5dba18ee5f539a7a5404386cfe_5e146b2b-3ad8-43e6-974e-81346f055c7f.webp?v=1714890109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8e12b6092f03d5dba18ee5f539a7a5404386cfe_5e146b2b-3ad8-43e6-974e-81346f055c7f.webp?v=1714890109","width":2000},{"alt":null,"id":23890466209891,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8c69774667cf82e7e8c3fc8f71355fd008f3fb6_c85ba369-22a3-43c7-a3d1-cb5e073ff098.webp?v=1714890111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8c69774667cf82e7e8c3fc8f71355fd008f3fb6_c85ba369-22a3-43c7-a3d1-cb5e073ff098.webp?v=1714890111","width":2000},{"alt":null,"id":23890468143203,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b51102e39988e9ea6f87cf41299b11653bbdbb9c_7cdbfe8b-24ef-40e6-8ba9-4a805b8113f6.webp?v=1714890113"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b51102e39988e9ea6f87cf41299b11653bbdbb9c_7cdbfe8b-24ef-40e6-8ba9-4a805b8113f6.webp?v=1714890113","width":2000},{"alt":null,"id":23890470404195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2949569e66fdce35817b609c4118b3c25eb2823a_c4a31a17-4097-4324-b387-a359ae0da33a.webp?v=1714890116"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2949569e66fdce35817b609c4118b3c25eb2823a_c4a31a17-4097-4324-b387-a359ae0da33a.webp?v=1714890116","width":2000},{"alt":null,"id":23890472501347,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a44008991b8988115a06a702b976934bbc908d0_2bb59532-79d5-4a89-86cf-cc1f410252c9.webp?v=1714890118"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a44008991b8988115a06a702b976934bbc908d0_2bb59532-79d5-4a89-86cf-cc1f410252c9.webp?v=1714890118","width":2000},{"alt":null,"id":23890474860643,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67af407553819bf48649a2ba4249b1ce235cb14d_4433763b-ae98-452d-a0c4-21b11f008945.webp?v=1714890120"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67af407553819bf48649a2ba4249b1ce235cb14d_4433763b-ae98-452d-a0c4-21b11f008945.webp?v=1714890120","width":2000},{"alt":null,"id":23890477023331,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb505571bd38a76f192f19398ffac81ac3d85490_3b8beace-e2b5-4811-a974-2806929aa5d0.webp?v=1714890123"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb505571bd38a76f192f19398ffac81ac3d85490_3b8beace-e2b5-4811-a974-2806929aa5d0.webp?v=1714890123","width":2000},{"alt":null,"id":23890479775843,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b184176b8167063b55f4d8c7cd202e011383d1a2_a4852d50-b570-4f6c-a352-fe93b4539e2b.webp?v=1714890125"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b184176b8167063b55f4d8c7cd202e011383d1a2_a4852d50-b570-4f6c-a352-fe93b4539e2b.webp?v=1714890125","width":2000},{"alt":null,"id":23890481348707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d77cbe5e98c9825fedd9e3ea8fc4682e1f2d866_ee1e92da-0f19-49aa-97d8-3beb67821d30.webp?v=1714890127"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d77cbe5e98c9825fedd9e3ea8fc4682e1f2d866_ee1e92da-0f19-49aa-97d8-3beb67821d30.webp?v=1714890127","width":2000},{"alt":null,"id":23890483478627,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98d21b750308f1f7c985810bfa529b45d8bd7258_10e031c5-2978-41f9-98a8-a254c0a5789b.webp?v=1714890129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98d21b750308f1f7c985810bfa529b45d8bd7258_10e031c5-2978-41f9-98a8-a254c0a5789b.webp?v=1714890129","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41905672323171,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-IV08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485155049571,"product_id":7414319284323,"position":5,"created_at":"2024-05-05T14:21:56+08:00","updated_at":"2024-05-05T14:21:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2949569e66fdce35817b609c4118b3c25eb2823a_c4a31a17-4097-4324-b387-a359ae0da33a.webp?v=1714890116","variant_ids":[41905672323171]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - J個好 - 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":"MPB0123224-IV08","featured_media":{"alt":null,"id":23890470404195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2949569e66fdce35817b609c4118b3c25eb2823a_c4a31a17-4097-4324-b387-a359ae0da33a.webp?v=1714890116"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905672978531,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-IV08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485166157923,"product_id":7414319284323,"position":10,"created_at":"2024-05-05T14:22:07+08:00","updated_at":"2024-05-05T14:22:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d77cbe5e98c9825fedd9e3ea8fc4682e1f2d866_ee1e92da-0f19-49aa-97d8-3beb67821d30.webp?v=1714890127","variant_ids":[41905672978531]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - J個好 - 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":"MPB01232J5-IV08","featured_media":{"alt":null,"id":23890481348707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d77cbe5e98c9825fedd9e3ea8fc4682e1f2d866_ee1e92da-0f19-49aa-97d8-3beb67821d30.webp?v=1714890127"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41905672323171,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-IV08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485155049571,"product_id":7414319284323,"position":5,"created_at":"2024-05-05T14:21:56+08:00","updated_at":"2024-05-05T14:21:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2949569e66fdce35817b609c4118b3c25eb2823a_c4a31a17-4097-4324-b387-a359ae0da33a.webp?v=1714890116","variant_ids":[41905672323171]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - J個好 - 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":"MPB0123224-IV08","featured_media":{"alt":null,"id":23890470404195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2949569e66fdce35817b609c4118b3c25eb2823a_c4a31a17-4097-4324-b387-a359ae0da33a.webp?v=1714890116"}},"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: "停產" }