$product = {"id":7413958148195,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Weiweiboy - 可愛大王喜樂無常","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-eo03","description":null,"published_at":"2024-06-11T17:46:08+08:00","created_at":"2024-05-05T13:50:16+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Weiweiboy","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-weiweiboy","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-weiweiboy","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":41902693253219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-EO03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484321923171,"product_id":7413958148195,"position":4,"created_at":"2024-05-05T13:50:27+08:00","updated_at":"2024-05-05T13:50:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/822bb805276119caf39c289140655f60f96ea1cf_444b51fd-3294-4c98-9e72-e7d59f3dbd6d.webp?v=1714888227","variant_ids":[41902693253219]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Weiweiboy - 可愛大王喜樂無常 - 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-EO03","featured_media":{"alt":null,"id":23889615618147,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/822bb805276119caf39c289140655f60f96ea1cf_444b51fd-3294-4c98-9e72-e7d59f3dbd6d.webp?v=1714888227"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902693744739,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-EO03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484324610147,"product_id":7413958148195,"position":10,"created_at":"2024-05-05T13:50:41+08:00","updated_at":"2024-05-05T13:50:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8568a21f58b362b235dd251f69bda8f671cfcdcf_e3ba5b66-b015-46c7-a2e8-f34c3d591907.webp?v=1714888241","variant_ids":[41902693744739]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Weiweiboy - 可愛大王喜樂無常 - 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-EO03","featured_media":{"alt":null,"id":23889618272355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8568a21f58b362b235dd251f69bda8f671cfcdcf_e3ba5b66-b015-46c7-a2e8-f34c3d591907.webp?v=1714888241"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f14fe6105ca13af93d7115e065769e9c23ccc043_9f3735be-73d8-40cb-babc-3e7d1c6b511b.webp?v=1714888219","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc2f632e3e063f7261b5ce330085eaac6ef807b5_e41c7dc6-e785-4ff8-8ab4-287160d3b8d8.webp?v=1714888222","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a590120e01a18b3bc6234184f3c1f48040437004_a5967f15-8bbb-4b3a-8f8d-4f44ec9fc909.webp?v=1714888224","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/822bb805276119caf39c289140655f60f96ea1cf_444b51fd-3294-4c98-9e72-e7d59f3dbd6d.webp?v=1714888227","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581418e6e975484d83029700965f2a13181af4c4_e858ceaf-e689-437e-949a-720d0ed8df37.webp?v=1714888229","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/971d2e8939670e16f6b6ca51d83a1c04211253f8_1168bdbf-0a54-4a84-9507-8f0f78ec7073.webp?v=1714888231","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee7b43036daef241257426e7f9e63573f9b98d1c_c7dc9ff8-9916-4161-99aa-b5cb632ff9ee.webp?v=1714888234","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f194931d510df3c4cf440b1bbe5f4fa465eba315_854842c6-191d-45e9-86f6-0b2cabb3a7da.webp?v=1714888236","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53a010a9bea6bb521e11816cf2dda5d19daf3db8_8e5cc6bb-c8bb-45c6-a375-69cda700e6f4.webp?v=1714888239","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8568a21f58b362b235dd251f69bda8f671cfcdcf_e3ba5b66-b015-46c7-a2e8-f34c3d591907.webp?v=1714888241","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52f8367d49edc39aed489ebcfefb04f848ad4d80_e2eab062-3011-4fe4-a7b0-c77c27d5af56.webp?v=1714888243","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9155aa783f4b6f009de6ec58dba47d5826d7890c_f468b284-5ee6-4698-9037-188f194be99f.webp?v=1714888246"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f14fe6105ca13af93d7115e065769e9c23ccc043_9f3735be-73d8-40cb-babc-3e7d1c6b511b.webp?v=1714888219","options":["color"],"media":[{"alt":null,"id":23889614307427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f14fe6105ca13af93d7115e065769e9c23ccc043_9f3735be-73d8-40cb-babc-3e7d1c6b511b.webp?v=1714888219"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f14fe6105ca13af93d7115e065769e9c23ccc043_9f3735be-73d8-40cb-babc-3e7d1c6b511b.webp?v=1714888219","width":2000},{"alt":null,"id":23889614700643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc2f632e3e063f7261b5ce330085eaac6ef807b5_e41c7dc6-e785-4ff8-8ab4-287160d3b8d8.webp?v=1714888222"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc2f632e3e063f7261b5ce330085eaac6ef807b5_e41c7dc6-e785-4ff8-8ab4-287160d3b8d8.webp?v=1714888222","width":2000},{"alt":null,"id":23889615257699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a590120e01a18b3bc6234184f3c1f48040437004_a5967f15-8bbb-4b3a-8f8d-4f44ec9fc909.webp?v=1714888224"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a590120e01a18b3bc6234184f3c1f48040437004_a5967f15-8bbb-4b3a-8f8d-4f44ec9fc909.webp?v=1714888224","width":2000},{"alt":null,"id":23889615618147,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/822bb805276119caf39c289140655f60f96ea1cf_444b51fd-3294-4c98-9e72-e7d59f3dbd6d.webp?v=1714888227"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/822bb805276119caf39c289140655f60f96ea1cf_444b51fd-3294-4c98-9e72-e7d59f3dbd6d.webp?v=1714888227","width":2000},{"alt":null,"id":23889616109667,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581418e6e975484d83029700965f2a13181af4c4_e858ceaf-e689-437e-949a-720d0ed8df37.webp?v=1714888229"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581418e6e975484d83029700965f2a13181af4c4_e858ceaf-e689-437e-949a-720d0ed8df37.webp?v=1714888229","width":2000},{"alt":null,"id":23889616502883,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/971d2e8939670e16f6b6ca51d83a1c04211253f8_1168bdbf-0a54-4a84-9507-8f0f78ec7073.webp?v=1714888231"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/971d2e8939670e16f6b6ca51d83a1c04211253f8_1168bdbf-0a54-4a84-9507-8f0f78ec7073.webp?v=1714888231","width":2000},{"alt":null,"id":23889617027171,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee7b43036daef241257426e7f9e63573f9b98d1c_c7dc9ff8-9916-4161-99aa-b5cb632ff9ee.webp?v=1714888234"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee7b43036daef241257426e7f9e63573f9b98d1c_c7dc9ff8-9916-4161-99aa-b5cb632ff9ee.webp?v=1714888234","width":2000},{"alt":null,"id":23889617485923,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f194931d510df3c4cf440b1bbe5f4fa465eba315_854842c6-191d-45e9-86f6-0b2cabb3a7da.webp?v=1714888236"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f194931d510df3c4cf440b1bbe5f4fa465eba315_854842c6-191d-45e9-86f6-0b2cabb3a7da.webp?v=1714888236","width":2000},{"alt":null,"id":23889617846371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53a010a9bea6bb521e11816cf2dda5d19daf3db8_8e5cc6bb-c8bb-45c6-a375-69cda700e6f4.webp?v=1714888239"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53a010a9bea6bb521e11816cf2dda5d19daf3db8_8e5cc6bb-c8bb-45c6-a375-69cda700e6f4.webp?v=1714888239","width":2000},{"alt":null,"id":23889618272355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8568a21f58b362b235dd251f69bda8f671cfcdcf_e3ba5b66-b015-46c7-a2e8-f34c3d591907.webp?v=1714888241"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8568a21f58b362b235dd251f69bda8f671cfcdcf_e3ba5b66-b015-46c7-a2e8-f34c3d591907.webp?v=1714888241","width":2000},{"alt":null,"id":23889618632803,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52f8367d49edc39aed489ebcfefb04f848ad4d80_e2eab062-3011-4fe4-a7b0-c77c27d5af56.webp?v=1714888243"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52f8367d49edc39aed489ebcfefb04f848ad4d80_e2eab062-3011-4fe4-a7b0-c77c27d5af56.webp?v=1714888243","width":2000},{"alt":null,"id":23889619255395,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9155aa783f4b6f009de6ec58dba47d5826d7890c_f468b284-5ee6-4698-9037-188f194be99f.webp?v=1714888246"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9155aa783f4b6f009de6ec58dba47d5826d7890c_f468b284-5ee6-4698-9037-188f194be99f.webp?v=1714888246","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41902693253219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-EO03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484321923171,"product_id":7413958148195,"position":4,"created_at":"2024-05-05T13:50:27+08:00","updated_at":"2024-05-05T13:50:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/822bb805276119caf39c289140655f60f96ea1cf_444b51fd-3294-4c98-9e72-e7d59f3dbd6d.webp?v=1714888227","variant_ids":[41902693253219]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Weiweiboy - 可愛大王喜樂無常 - 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-EO03","featured_media":{"alt":null,"id":23889615618147,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/822bb805276119caf39c289140655f60f96ea1cf_444b51fd-3294-4c98-9e72-e7d59f3dbd6d.webp?v=1714888227"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902693744739,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-EO03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484324610147,"product_id":7413958148195,"position":10,"created_at":"2024-05-05T13:50:41+08:00","updated_at":"2024-05-05T13:50:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8568a21f58b362b235dd251f69bda8f671cfcdcf_e3ba5b66-b015-46c7-a2e8-f34c3d591907.webp?v=1714888241","variant_ids":[41902693744739]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Weiweiboy - 可愛大王喜樂無常 - 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-EO03","featured_media":{"alt":null,"id":23889618272355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8568a21f58b362b235dd251f69bda8f671cfcdcf_e3ba5b66-b015-46c7-a2e8-f34c3d591907.webp?v=1714888241"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41902693253219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-EO03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484321923171,"product_id":7413958148195,"position":4,"created_at":"2024-05-05T13:50:27+08:00","updated_at":"2024-05-05T13:50:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/822bb805276119caf39c289140655f60f96ea1cf_444b51fd-3294-4c98-9e72-e7d59f3dbd6d.webp?v=1714888227","variant_ids":[41902693253219]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Weiweiboy - 可愛大王喜樂無常 - 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-EO03","featured_media":{"alt":null,"id":23889615618147,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/822bb805276119caf39c289140655f60f96ea1cf_444b51fd-3294-4c98-9e72-e7d59f3dbd6d.webp?v=1714888227"}},"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: "停產" }