$product = {"id":7414432268387,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 大堡礁在看","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-af07","description":null,"published_at":"2024-06-11T17:51:17+08:00","created_at":"2024-05-05T14:25:18+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","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":41906461474915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485446029411,"product_id":7414432268387,"position":4,"created_at":"2024-05-05T14:25:28+08:00","updated_at":"2024-05-05T14:25:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2df59ae921e84a28ca09c09658af37b3cd3d7193_9145b7bb-03c4-468f-aa4d-d233ee05efce.webp?v=1714890328","variant_ids":[41906461474915]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 大堡礁在看 - 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-AF07","featured_media":{"alt":null,"id":23890763350115,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2df59ae921e84a28ca09c09658af37b3cd3d7193_9145b7bb-03c4-468f-aa4d-d233ee05efce.webp?v=1714890328"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906461868131,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485469098083,"product_id":7414432268387,"position":11,"created_at":"2024-05-05T14:25:44+08:00","updated_at":"2024-05-05T14:25:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c819c14fa3a26876d47c029a7ad99e6ad53c0d_b6971f6b-063e-465d-a808-7096d0f60f56.webp?v=1714890344","variant_ids":[41906461868131]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 大堡礁在看 - 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-AF07","featured_media":{"alt":null,"id":23890786222179,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c819c14fa3a26876d47c029a7ad99e6ad53c0d_b6971f6b-063e-465d-a808-7096d0f60f56.webp?v=1714890344"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c371e8682297b5cf0eba559f74d27860be13ddb7_a182d158-484c-4e3d-8a0c-b6d91f4a5954.webp?v=1714890321","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8da177deaeaee0a2fd653d7ad5c6167ccf51b3d1_281ece67-a042-4cfd-a247-dad3ad9aa86e.webp?v=1714890323","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feeb3d820266c2a2822f21f7fbc8667b222e9622_56139f97-80c3-43a6-915d-c4451bf17abf.webp?v=1714890325","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2df59ae921e84a28ca09c09658af37b3cd3d7193_9145b7bb-03c4-468f-aa4d-d233ee05efce.webp?v=1714890328","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f90ae2cc12b77d657b30814fb6a0ecabb5013064_dda921fd-2a34-443a-97af-374b53337f46.webp?v=1714890330","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6d437daae4d44cd8d1748581e89b48f7bc70cf9_86662e8b-0c12-4bca-aa25-18cdf34d14a3.webp?v=1714890333","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bce560da3cc3417e441e88fe62e18fbbbc7a846_60882709-e439-490d-b1f7-45c62f24a2ff.webp?v=1714890335","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d778f87e934ebde397d9399bc2519d7635983c3b_1395c35b-423c-4525-a8bf-8abef5f8eadf.webp?v=1714890337","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c99bd346350bce87c3d7c98d8e0c5d1d1ad09c0_bfe8213d-63b0-44d3-a714-10736e08f792.webp?v=1714890340","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff3dc057f77bbb19189c5318f814e92f8acf96b6_bfcc3863-f085-467f-9197-7bb179d3d6fc.webp?v=1714890342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c819c14fa3a26876d47c029a7ad99e6ad53c0d_b6971f6b-063e-465d-a808-7096d0f60f56.webp?v=1714890344"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c371e8682297b5cf0eba559f74d27860be13ddb7_a182d158-484c-4e3d-8a0c-b6d91f4a5954.webp?v=1714890321","options":["color"],"media":[{"alt":null,"id":23890752700515,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c371e8682297b5cf0eba559f74d27860be13ddb7_a182d158-484c-4e3d-8a0c-b6d91f4a5954.webp?v=1714890321"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c371e8682297b5cf0eba559f74d27860be13ddb7_a182d158-484c-4e3d-8a0c-b6d91f4a5954.webp?v=1714890321","width":2000},{"alt":null,"id":23890756173923,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8da177deaeaee0a2fd653d7ad5c6167ccf51b3d1_281ece67-a042-4cfd-a247-dad3ad9aa86e.webp?v=1714890323"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8da177deaeaee0a2fd653d7ad5c6167ccf51b3d1_281ece67-a042-4cfd-a247-dad3ad9aa86e.webp?v=1714890323","width":2000},{"alt":null,"id":23890759843939,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feeb3d820266c2a2822f21f7fbc8667b222e9622_56139f97-80c3-43a6-915d-c4451bf17abf.webp?v=1714890325"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feeb3d820266c2a2822f21f7fbc8667b222e9622_56139f97-80c3-43a6-915d-c4451bf17abf.webp?v=1714890325","width":2000},{"alt":null,"id":23890763350115,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2df59ae921e84a28ca09c09658af37b3cd3d7193_9145b7bb-03c4-468f-aa4d-d233ee05efce.webp?v=1714890328"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2df59ae921e84a28ca09c09658af37b3cd3d7193_9145b7bb-03c4-468f-aa4d-d233ee05efce.webp?v=1714890328","width":2000},{"alt":null,"id":23890766725219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f90ae2cc12b77d657b30814fb6a0ecabb5013064_dda921fd-2a34-443a-97af-374b53337f46.webp?v=1714890330"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f90ae2cc12b77d657b30814fb6a0ecabb5013064_dda921fd-2a34-443a-97af-374b53337f46.webp?v=1714890330","width":2000},{"alt":null,"id":23890770231395,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6d437daae4d44cd8d1748581e89b48f7bc70cf9_86662e8b-0c12-4bca-aa25-18cdf34d14a3.webp?v=1714890333"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6d437daae4d44cd8d1748581e89b48f7bc70cf9_86662e8b-0c12-4bca-aa25-18cdf34d14a3.webp?v=1714890333","width":2000},{"alt":null,"id":23890773377123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bce560da3cc3417e441e88fe62e18fbbbc7a846_60882709-e439-490d-b1f7-45c62f24a2ff.webp?v=1714890335"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bce560da3cc3417e441e88fe62e18fbbbc7a846_60882709-e439-490d-b1f7-45c62f24a2ff.webp?v=1714890335","width":2000},{"alt":null,"id":23890776883299,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d778f87e934ebde397d9399bc2519d7635983c3b_1395c35b-423c-4525-a8bf-8abef5f8eadf.webp?v=1714890337"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d778f87e934ebde397d9399bc2519d7635983c3b_1395c35b-423c-4525-a8bf-8abef5f8eadf.webp?v=1714890337","width":2000},{"alt":null,"id":23890779930723,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c99bd346350bce87c3d7c98d8e0c5d1d1ad09c0_bfe8213d-63b0-44d3-a714-10736e08f792.webp?v=1714890340"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c99bd346350bce87c3d7c98d8e0c5d1d1ad09c0_bfe8213d-63b0-44d3-a714-10736e08f792.webp?v=1714890340","width":2000},{"alt":null,"id":23890783109219,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff3dc057f77bbb19189c5318f814e92f8acf96b6_bfcc3863-f085-467f-9197-7bb179d3d6fc.webp?v=1714890342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff3dc057f77bbb19189c5318f814e92f8acf96b6_bfcc3863-f085-467f-9197-7bb179d3d6fc.webp?v=1714890342","width":2000},{"alt":null,"id":23890786222179,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c819c14fa3a26876d47c029a7ad99e6ad53c0d_b6971f6b-063e-465d-a808-7096d0f60f56.webp?v=1714890344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c819c14fa3a26876d47c029a7ad99e6ad53c0d_b6971f6b-063e-465d-a808-7096d0f60f56.webp?v=1714890344","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41906461474915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485446029411,"product_id":7414432268387,"position":4,"created_at":"2024-05-05T14:25:28+08:00","updated_at":"2024-05-05T14:25:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2df59ae921e84a28ca09c09658af37b3cd3d7193_9145b7bb-03c4-468f-aa4d-d233ee05efce.webp?v=1714890328","variant_ids":[41906461474915]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 大堡礁在看 - 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-AF07","featured_media":{"alt":null,"id":23890763350115,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2df59ae921e84a28ca09c09658af37b3cd3d7193_9145b7bb-03c4-468f-aa4d-d233ee05efce.webp?v=1714890328"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906461868131,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485469098083,"product_id":7414432268387,"position":11,"created_at":"2024-05-05T14:25:44+08:00","updated_at":"2024-05-05T14:25:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c819c14fa3a26876d47c029a7ad99e6ad53c0d_b6971f6b-063e-465d-a808-7096d0f60f56.webp?v=1714890344","variant_ids":[41906461868131]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 大堡礁在看 - 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-AF07","featured_media":{"alt":null,"id":23890786222179,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c819c14fa3a26876d47c029a7ad99e6ad53c0d_b6971f6b-063e-465d-a808-7096d0f60f56.webp?v=1714890344"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41906461474915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485446029411,"product_id":7414432268387,"position":4,"created_at":"2024-05-05T14:25:28+08:00","updated_at":"2024-05-05T14:25:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2df59ae921e84a28ca09c09658af37b3cd3d7193_9145b7bb-03c4-468f-aa4d-d233ee05efce.webp?v=1714890328","variant_ids":[41906461474915]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 大堡礁在看 - 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-AF07","featured_media":{"alt":null,"id":23890763350115,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2df59ae921e84a28ca09c09658af37b3cd3d7193_9145b7bb-03c4-468f-aa4d-d233ee05efce.webp?v=1714890328"}},"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: "停產" }