$product = {"id":7414596829283,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴菲特-剪紙系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb58","description":null,"published_at":"2024-06-11T17:52:25+08:00","created_at":"2024-05-05T14:33:13+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":41907682082915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB58","requires_shipping":true,"taxable":true,"featured_image":{"id":31485850550371,"product_id":7414596829283,"position":5,"created_at":"2024-05-05T14:33:24+08:00","updated_at":"2024-05-05T14:33:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5721cefc1cbb4142b067223ba22fc5a9cdd9ce78_ff8289ee-0d47-49dd-9835-dfb14ecae55c.webp?v=1714890804","variant_ids":[41907682082915]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴菲特-剪紙系列 - 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-PB58","featured_media":{"alt":null,"id":23891185729635,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5721cefc1cbb4142b067223ba22fc5a9cdd9ce78_ff8289ee-0d47-49dd-9835-dfb14ecae55c.webp?v=1714890804"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907682377827,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB58","requires_shipping":true,"taxable":true,"featured_image":{"id":31485851959395,"product_id":7414596829283,"position":6,"created_at":"2024-05-05T14:33:26+08:00","updated_at":"2024-05-05T14:33:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620cabd60f24122c36da5b4f9def86e4d0bf7a22_305fa543-97bb-4c32-ba03-0dc9e3b24c24.webp?v=1714890806","variant_ids":[41907682377827]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴菲特-剪紙系列 - 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-PB58","featured_media":{"alt":null,"id":23891187105891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620cabd60f24122c36da5b4f9def86e4d0bf7a22_305fa543-97bb-4c32-ba03-0dc9e3b24c24.webp?v=1714890806"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab544fa1a49891645dd2db17db171d0d69a6ab03_94e8064f-4922-4f68-ba55-7c09554f3549.webp?v=1714890795","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdf3979fba46e393d47efbae5d412a84877b73e4_6bf7015a-3e70-4a70-bf02-c18f4c93bc6c.webp?v=1714890797","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ca81135befa3fc75be3e556849dc06f042803ad_c298d00e-0465-409c-8098-52146a778d53.webp?v=1714890800","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54d1a81f5d3fbf3b4430cc310fbb85e8d03ac5cb_83ee12b3-6e32-4d82-ad71-1907c9ef6700.webp?v=1714890802","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5721cefc1cbb4142b067223ba22fc5a9cdd9ce78_ff8289ee-0d47-49dd-9835-dfb14ecae55c.webp?v=1714890804","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620cabd60f24122c36da5b4f9def86e4d0bf7a22_305fa543-97bb-4c32-ba03-0dc9e3b24c24.webp?v=1714890806","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78a8c351846151edae5710cdf91d1520f55b3b96_c038746a-e1f4-4454-baea-da391d4656db.webp?v=1714890809","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4afbad94ba577ffe734d6e3b8543d676024dd5ce_1452ffe9-2559-416f-839c-2d274d028f52.webp?v=1714890811","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dc1c05a31af73fa61e35a2d4ae6171e605e90f4_b986e65c-f509-4021-8361-0e59c4dd4d71.webp?v=1714890813","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d98632e4abb2e656170b41ab447a1801fb76a60_8d50176b-ad81-47f8-a5fd-a0e22577c031.webp?v=1714890815","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6df4019c02cf12486e048daec9b5910282c3fed3_ae762f8d-5606-4ffd-b85c-70cca8a921c0.webp?v=1714890817"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab544fa1a49891645dd2db17db171d0d69a6ab03_94e8064f-4922-4f68-ba55-7c09554f3549.webp?v=1714890795","options":["color"],"media":[{"alt":null,"id":23891180945507,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab544fa1a49891645dd2db17db171d0d69a6ab03_94e8064f-4922-4f68-ba55-7c09554f3549.webp?v=1714890795"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab544fa1a49891645dd2db17db171d0d69a6ab03_94e8064f-4922-4f68-ba55-7c09554f3549.webp?v=1714890795","width":2000},{"alt":null,"id":23891181994083,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdf3979fba46e393d47efbae5d412a84877b73e4_6bf7015a-3e70-4a70-bf02-c18f4c93bc6c.webp?v=1714890797"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdf3979fba46e393d47efbae5d412a84877b73e4_6bf7015a-3e70-4a70-bf02-c18f4c93bc6c.webp?v=1714890797","width":2000},{"alt":null,"id":23891183337571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ca81135befa3fc75be3e556849dc06f042803ad_c298d00e-0465-409c-8098-52146a778d53.webp?v=1714890800"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ca81135befa3fc75be3e556849dc06f042803ad_c298d00e-0465-409c-8098-52146a778d53.webp?v=1714890800","width":2000},{"alt":null,"id":23891184353379,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54d1a81f5d3fbf3b4430cc310fbb85e8d03ac5cb_83ee12b3-6e32-4d82-ad71-1907c9ef6700.webp?v=1714890802"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54d1a81f5d3fbf3b4430cc310fbb85e8d03ac5cb_83ee12b3-6e32-4d82-ad71-1907c9ef6700.webp?v=1714890802","width":2000},{"alt":null,"id":23891185729635,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5721cefc1cbb4142b067223ba22fc5a9cdd9ce78_ff8289ee-0d47-49dd-9835-dfb14ecae55c.webp?v=1714890804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5721cefc1cbb4142b067223ba22fc5a9cdd9ce78_ff8289ee-0d47-49dd-9835-dfb14ecae55c.webp?v=1714890804","width":2000},{"alt":null,"id":23891187105891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620cabd60f24122c36da5b4f9def86e4d0bf7a22_305fa543-97bb-4c32-ba03-0dc9e3b24c24.webp?v=1714890806"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620cabd60f24122c36da5b4f9def86e4d0bf7a22_305fa543-97bb-4c32-ba03-0dc9e3b24c24.webp?v=1714890806","width":2000},{"alt":null,"id":23891188416611,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78a8c351846151edae5710cdf91d1520f55b3b96_c038746a-e1f4-4454-baea-da391d4656db.webp?v=1714890809"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78a8c351846151edae5710cdf91d1520f55b3b96_c038746a-e1f4-4454-baea-da391d4656db.webp?v=1714890809","width":2000},{"alt":null,"id":23891189465187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4afbad94ba577ffe734d6e3b8543d676024dd5ce_1452ffe9-2559-416f-839c-2d274d028f52.webp?v=1714890811"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4afbad94ba577ffe734d6e3b8543d676024dd5ce_1452ffe9-2559-416f-839c-2d274d028f52.webp?v=1714890811","width":2000},{"alt":null,"id":23891190677603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dc1c05a31af73fa61e35a2d4ae6171e605e90f4_b986e65c-f509-4021-8361-0e59c4dd4d71.webp?v=1714890813"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dc1c05a31af73fa61e35a2d4ae6171e605e90f4_b986e65c-f509-4021-8361-0e59c4dd4d71.webp?v=1714890813","width":2000},{"alt":null,"id":23891191955555,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d98632e4abb2e656170b41ab447a1801fb76a60_8d50176b-ad81-47f8-a5fd-a0e22577c031.webp?v=1714890815"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d98632e4abb2e656170b41ab447a1801fb76a60_8d50176b-ad81-47f8-a5fd-a0e22577c031.webp?v=1714890815","width":2000},{"alt":null,"id":23891193004131,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6df4019c02cf12486e048daec9b5910282c3fed3_ae762f8d-5606-4ffd-b85c-70cca8a921c0.webp?v=1714890817"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6df4019c02cf12486e048daec9b5910282c3fed3_ae762f8d-5606-4ffd-b85c-70cca8a921c0.webp?v=1714890817","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41907682082915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB58","requires_shipping":true,"taxable":true,"featured_image":{"id":31485850550371,"product_id":7414596829283,"position":5,"created_at":"2024-05-05T14:33:24+08:00","updated_at":"2024-05-05T14:33:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5721cefc1cbb4142b067223ba22fc5a9cdd9ce78_ff8289ee-0d47-49dd-9835-dfb14ecae55c.webp?v=1714890804","variant_ids":[41907682082915]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴菲特-剪紙系列 - 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-PB58","featured_media":{"alt":null,"id":23891185729635,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5721cefc1cbb4142b067223ba22fc5a9cdd9ce78_ff8289ee-0d47-49dd-9835-dfb14ecae55c.webp?v=1714890804"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907682377827,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB58","requires_shipping":true,"taxable":true,"featured_image":{"id":31485851959395,"product_id":7414596829283,"position":6,"created_at":"2024-05-05T14:33:26+08:00","updated_at":"2024-05-05T14:33:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620cabd60f24122c36da5b4f9def86e4d0bf7a22_305fa543-97bb-4c32-ba03-0dc9e3b24c24.webp?v=1714890806","variant_ids":[41907682377827]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴菲特-剪紙系列 - 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-PB58","featured_media":{"alt":null,"id":23891187105891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/620cabd60f24122c36da5b4f9def86e4d0bf7a22_305fa543-97bb-4c32-ba03-0dc9e3b24c24.webp?v=1714890806"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41907682082915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB58","requires_shipping":true,"taxable":true,"featured_image":{"id":31485850550371,"product_id":7414596829283,"position":5,"created_at":"2024-05-05T14:33:24+08:00","updated_at":"2024-05-05T14:33:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5721cefc1cbb4142b067223ba22fc5a9cdd9ce78_ff8289ee-0d47-49dd-9835-dfb14ecae55c.webp?v=1714890804","variant_ids":[41907682082915]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴菲特-剪紙系列 - 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-PB58","featured_media":{"alt":null,"id":23891185729635,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5721cefc1cbb4142b067223ba22fc5a9cdd9ce78_ff8289ee-0d47-49dd-9835-dfb14ecae55c.webp?v=1714890804"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }