$product = {"id":7414204498019,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-Useless to Resist","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb96","description":null,"published_at":"2024-06-11T17:49:51+08:00","created_at":"2024-05-05T14:15:48+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41904836018275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB96","requires_shipping":true,"taxable":true,"featured_image":{"id":31484911386723,"product_id":7414204498019,"position":4,"created_at":"2024-05-05T14:15:57+08:00","updated_at":"2024-05-05T14:15:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cb586e49f5ce1fb1b39ec4fbaf28a76e85f1283_0763a8ee-0e15-4cd4-b860-29959ae8e3c7.webp?v=1714889757","variant_ids":[41904836018275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-Useless to Resist - 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-PB96","featured_media":{"alt":null,"id":23890216976483,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cb586e49f5ce1fb1b39ec4fbaf28a76e85f1283_0763a8ee-0e15-4cd4-b860-29959ae8e3c7.webp?v=1714889757"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904836870243,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB96","requires_shipping":true,"taxable":true,"featured_image":{"id":31484918071395,"product_id":7414204498019,"position":8,"created_at":"2024-05-05T14:16:06+08:00","updated_at":"2024-05-05T14:16:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccfacb2835f51047a2e89ca270ef669575664715_5de4789e-a028-489e-840f-63d12041e258.webp?v=1714889766","variant_ids":[41904836870243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-Useless to Resist - 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-PB96","featured_media":{"alt":null,"id":23890225201251,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccfacb2835f51047a2e89ca270ef669575664715_5de4789e-a028-489e-840f-63d12041e258.webp?v=1714889766"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9833e1aac77b16ebbea2af307102a2c91061daa1_efb8abc5-1635-46dc-bae5-94679945c375.webp?v=1714889750","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57ca249b3cc33c59b2068b1cd12ed0ffb0007a9c_45d03a53-161c-4550-9b25-c17d3e0aaae9.webp?v=1714889752","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a1e051db3108b8cf0148d958f840fb412743ead_04ed821e-185c-442a-b15b-6392cc5ae250.webp?v=1714889755","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cb586e49f5ce1fb1b39ec4fbaf28a76e85f1283_0763a8ee-0e15-4cd4-b860-29959ae8e3c7.webp?v=1714889757","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86eabe24bf6ed9dd254d9d4e1eb4289333d00076_798d5511-33cb-41fb-9e4d-13ddb5d53af6.webp?v=1714889759","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ed9c73e7916187d35f5c2652616f7595870cfe1_01771423-4b71-463e-bb99-0dc7fe788618.webp?v=1714889762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2aabbad731697880b99fbd5a0d764d5e26d98a43_dec7771b-a89e-4731-bfe4-31a7fcb23233.webp?v=1714889764","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccfacb2835f51047a2e89ca270ef669575664715_5de4789e-a028-489e-840f-63d12041e258.webp?v=1714889766","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a8e8fd251188b9c049d198e0fe47717bdcce2d7_2ea168b6-f5d2-4d9d-a820-e10faa1812fd.webp?v=1714889769","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b8efffe9340834092efea846526e71d9d606f09_8474ac7a-5b0a-4891-9aea-6617af9ec832.webp?v=1714889771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c31a4a85bbc277b950bbc8e95703b2339bc80e0_7e6b1af2-b1c0-4c9d-a3f5-8c377320a4f7.webp?v=1714889774"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9833e1aac77b16ebbea2af307102a2c91061daa1_efb8abc5-1635-46dc-bae5-94679945c375.webp?v=1714889750","options":["color"],"media":[{"alt":null,"id":23890210160739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9833e1aac77b16ebbea2af307102a2c91061daa1_efb8abc5-1635-46dc-bae5-94679945c375.webp?v=1714889750"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9833e1aac77b16ebbea2af307102a2c91061daa1_efb8abc5-1635-46dc-bae5-94679945c375.webp?v=1714889750","width":2000},{"alt":null,"id":23890212356195,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57ca249b3cc33c59b2068b1cd12ed0ffb0007a9c_45d03a53-161c-4550-9b25-c17d3e0aaae9.webp?v=1714889752"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57ca249b3cc33c59b2068b1cd12ed0ffb0007a9c_45d03a53-161c-4550-9b25-c17d3e0aaae9.webp?v=1714889752","width":2000},{"alt":null,"id":23890214387811,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a1e051db3108b8cf0148d958f840fb412743ead_04ed821e-185c-442a-b15b-6392cc5ae250.webp?v=1714889755"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a1e051db3108b8cf0148d958f840fb412743ead_04ed821e-185c-442a-b15b-6392cc5ae250.webp?v=1714889755","width":2000},{"alt":null,"id":23890216976483,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cb586e49f5ce1fb1b39ec4fbaf28a76e85f1283_0763a8ee-0e15-4cd4-b860-29959ae8e3c7.webp?v=1714889757"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cb586e49f5ce1fb1b39ec4fbaf28a76e85f1283_0763a8ee-0e15-4cd4-b860-29959ae8e3c7.webp?v=1714889757","width":2000},{"alt":null,"id":23890219106403,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86eabe24bf6ed9dd254d9d4e1eb4289333d00076_798d5511-33cb-41fb-9e4d-13ddb5d53af6.webp?v=1714889759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86eabe24bf6ed9dd254d9d4e1eb4289333d00076_798d5511-33cb-41fb-9e4d-13ddb5d53af6.webp?v=1714889759","width":2000},{"alt":null,"id":23890221236323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ed9c73e7916187d35f5c2652616f7595870cfe1_01771423-4b71-463e-bb99-0dc7fe788618.webp?v=1714889762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ed9c73e7916187d35f5c2652616f7595870cfe1_01771423-4b71-463e-bb99-0dc7fe788618.webp?v=1714889762","width":2000},{"alt":null,"id":23890223136867,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2aabbad731697880b99fbd5a0d764d5e26d98a43_dec7771b-a89e-4731-bfe4-31a7fcb23233.webp?v=1714889764"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2aabbad731697880b99fbd5a0d764d5e26d98a43_dec7771b-a89e-4731-bfe4-31a7fcb23233.webp?v=1714889764","width":2000},{"alt":null,"id":23890225201251,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccfacb2835f51047a2e89ca270ef669575664715_5de4789e-a028-489e-840f-63d12041e258.webp?v=1714889766"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccfacb2835f51047a2e89ca270ef669575664715_5de4789e-a028-489e-840f-63d12041e258.webp?v=1714889766","width":2000},{"alt":null,"id":23890227527779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a8e8fd251188b9c049d198e0fe47717bdcce2d7_2ea168b6-f5d2-4d9d-a820-e10faa1812fd.webp?v=1714889769"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a8e8fd251188b9c049d198e0fe47717bdcce2d7_2ea168b6-f5d2-4d9d-a820-e10faa1812fd.webp?v=1714889769","width":2000},{"alt":null,"id":23890229756003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b8efffe9340834092efea846526e71d9d606f09_8474ac7a-5b0a-4891-9aea-6617af9ec832.webp?v=1714889771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b8efffe9340834092efea846526e71d9d606f09_8474ac7a-5b0a-4891-9aea-6617af9ec832.webp?v=1714889771","width":2000},{"alt":null,"id":23890231591011,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c31a4a85bbc277b950bbc8e95703b2339bc80e0_7e6b1af2-b1c0-4c9d-a3f5-8c377320a4f7.webp?v=1714889774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c31a4a85bbc277b950bbc8e95703b2339bc80e0_7e6b1af2-b1c0-4c9d-a3f5-8c377320a4f7.webp?v=1714889774","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41904836018275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB96","requires_shipping":true,"taxable":true,"featured_image":{"id":31484911386723,"product_id":7414204498019,"position":4,"created_at":"2024-05-05T14:15:57+08:00","updated_at":"2024-05-05T14:15:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cb586e49f5ce1fb1b39ec4fbaf28a76e85f1283_0763a8ee-0e15-4cd4-b860-29959ae8e3c7.webp?v=1714889757","variant_ids":[41904836018275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-Useless to Resist - 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-PB96","featured_media":{"alt":null,"id":23890216976483,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cb586e49f5ce1fb1b39ec4fbaf28a76e85f1283_0763a8ee-0e15-4cd4-b860-29959ae8e3c7.webp?v=1714889757"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904836870243,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB96","requires_shipping":true,"taxable":true,"featured_image":{"id":31484918071395,"product_id":7414204498019,"position":8,"created_at":"2024-05-05T14:16:06+08:00","updated_at":"2024-05-05T14:16:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccfacb2835f51047a2e89ca270ef669575664715_5de4789e-a028-489e-840f-63d12041e258.webp?v=1714889766","variant_ids":[41904836870243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-Useless to Resist - 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-PB96","featured_media":{"alt":null,"id":23890225201251,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccfacb2835f51047a2e89ca270ef669575664715_5de4789e-a028-489e-840f-63d12041e258.webp?v=1714889766"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41904836018275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB96","requires_shipping":true,"taxable":true,"featured_image":{"id":31484911386723,"product_id":7414204498019,"position":4,"created_at":"2024-05-05T14:15:57+08:00","updated_at":"2024-05-05T14:15:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cb586e49f5ce1fb1b39ec4fbaf28a76e85f1283_0763a8ee-0e15-4cd4-b860-29959ae8e3c7.webp?v=1714889757","variant_ids":[41904836018275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-Useless to Resist - 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-PB96","featured_media":{"alt":null,"id":23890216976483,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cb586e49f5ce1fb1b39ec4fbaf28a76e85f1283_0763a8ee-0e15-4cd4-b860-29959ae8e3c7.webp?v=1714889757"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }