$product = {"id":7414567370851,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - yaya款","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-iv09","description":null,"published_at":"2024-06-11T17:52:06+08:00","created_at":"2024-05-05T14:30:51+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":41907424231523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":31485785964643,"product_id":7414567370851,"position":11,"created_at":"2024-05-05T14:31:16+08:00","updated_at":"2024-05-05T14:31:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcf7010cff5c676886f12be90547949da70d9772_a0210a03-9ebf-441a-8049-e4b749d99d13.webp?v=1714890676","variant_ids":[41907424231523]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - yaya款 - 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-IV09","featured_media":{"alt":null,"id":23891116949603,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcf7010cff5c676886f12be90547949da70d9772_a0210a03-9ebf-441a-8049-e4b749d99d13.webp?v=1714890676"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907424559203,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":31485770661987,"product_id":7414567370851,"position":1,"created_at":"2024-05-05T14:30:53+08:00","updated_at":"2024-05-05T14:30:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7d8debbd20975cb1c67919732989be7eacced1_c31f986d-cf34-4c91-8574-b65b61b8a41e.webp?v=1714890653","variant_ids":[41907424559203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - yaya款 - 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-IV09","featured_media":{"alt":null,"id":23891100762211,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7d8debbd20975cb1c67919732989be7eacced1_c31f986d-cf34-4c91-8574-b65b61b8a41e.webp?v=1714890653"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7d8debbd20975cb1c67919732989be7eacced1_c31f986d-cf34-4c91-8574-b65b61b8a41e.webp?v=1714890653","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd76b348ab1f567883cb04cf4f71663f24dc76b8_2bd4af9e-2071-4536-b775-4a23242875f0.webp?v=1714890655","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e5db1cf2a5505d704500eaac59d1d35b8fa72cb_6e17bc6b-5b79-4021-b312-19dc894f5f83.webp?v=1714890658","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f52ddb5d5a9d848848259c8b8a260de8137cacf_64eec674-b235-43a5-8b76-f09848c8cdfe.webp?v=1714890660","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c0c3cfd969cd12a0ebc836d65c07ed81d9ea7af_4f34f877-2457-436d-b30c-545527582457.webp?v=1714890662","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bdf773410213aa749bc3dff8f32e02d8abed68e_796ab7db-2b7e-417b-afb1-25585ffe47d6.webp?v=1714890665","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e06e562abd853d474927eb249131297d3e4411bc_f9f9bea0-dc55-48a3-810b-63a7ccd08ae6.webp?v=1714890667","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/267b6228d1c0931f7786f406c5657f4106f877b7_878ac141-a468-49cc-a7d6-56e62e5a268e.webp?v=1714890669","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba97d05b84da423b3e90d4c58a50b2af4fccee75_9ef36425-d89d-4050-a0bd-c32593454e0f.webp?v=1714890671","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/826794acfba2264faa8f2ca122fe8f8508668189_eff666cc-ed20-460f-b6e7-e00b347ca8c0.webp?v=1714890674","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcf7010cff5c676886f12be90547949da70d9772_a0210a03-9ebf-441a-8049-e4b749d99d13.webp?v=1714890676"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7d8debbd20975cb1c67919732989be7eacced1_c31f986d-cf34-4c91-8574-b65b61b8a41e.webp?v=1714890653","options":["color"],"media":[{"alt":null,"id":23891100762211,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7d8debbd20975cb1c67919732989be7eacced1_c31f986d-cf34-4c91-8574-b65b61b8a41e.webp?v=1714890653"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7d8debbd20975cb1c67919732989be7eacced1_c31f986d-cf34-4c91-8574-b65b61b8a41e.webp?v=1714890653","width":2000},{"alt":null,"id":23891103088739,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd76b348ab1f567883cb04cf4f71663f24dc76b8_2bd4af9e-2071-4536-b775-4a23242875f0.webp?v=1714890655"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd76b348ab1f567883cb04cf4f71663f24dc76b8_2bd4af9e-2071-4536-b775-4a23242875f0.webp?v=1714890655","width":2000},{"alt":null,"id":23891105153123,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e5db1cf2a5505d704500eaac59d1d35b8fa72cb_6e17bc6b-5b79-4021-b312-19dc894f5f83.webp?v=1714890658"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e5db1cf2a5505d704500eaac59d1d35b8fa72cb_6e17bc6b-5b79-4021-b312-19dc894f5f83.webp?v=1714890658","width":2000},{"alt":null,"id":23891106824291,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f52ddb5d5a9d848848259c8b8a260de8137cacf_64eec674-b235-43a5-8b76-f09848c8cdfe.webp?v=1714890660"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f52ddb5d5a9d848848259c8b8a260de8137cacf_64eec674-b235-43a5-8b76-f09848c8cdfe.webp?v=1714890660","width":2000},{"alt":null,"id":23891108528227,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c0c3cfd969cd12a0ebc836d65c07ed81d9ea7af_4f34f877-2457-436d-b30c-545527582457.webp?v=1714890662"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c0c3cfd969cd12a0ebc836d65c07ed81d9ea7af_4f34f877-2457-436d-b30c-545527582457.webp?v=1714890662","width":2000},{"alt":null,"id":23891110199395,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bdf773410213aa749bc3dff8f32e02d8abed68e_796ab7db-2b7e-417b-afb1-25585ffe47d6.webp?v=1714890665"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bdf773410213aa749bc3dff8f32e02d8abed68e_796ab7db-2b7e-417b-afb1-25585ffe47d6.webp?v=1714890665","width":2000},{"alt":null,"id":23891111706723,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e06e562abd853d474927eb249131297d3e4411bc_f9f9bea0-dc55-48a3-810b-63a7ccd08ae6.webp?v=1714890667"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e06e562abd853d474927eb249131297d3e4411bc_f9f9bea0-dc55-48a3-810b-63a7ccd08ae6.webp?v=1714890667","width":2000},{"alt":null,"id":23891113082979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/267b6228d1c0931f7786f406c5657f4106f877b7_878ac141-a468-49cc-a7d6-56e62e5a268e.webp?v=1714890669"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/267b6228d1c0931f7786f406c5657f4106f877b7_878ac141-a468-49cc-a7d6-56e62e5a268e.webp?v=1714890669","width":2000},{"alt":null,"id":23891114262627,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba97d05b84da423b3e90d4c58a50b2af4fccee75_9ef36425-d89d-4050-a0bd-c32593454e0f.webp?v=1714890671"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba97d05b84da423b3e90d4c58a50b2af4fccee75_9ef36425-d89d-4050-a0bd-c32593454e0f.webp?v=1714890671","width":2000},{"alt":null,"id":23891115638883,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/826794acfba2264faa8f2ca122fe8f8508668189_eff666cc-ed20-460f-b6e7-e00b347ca8c0.webp?v=1714890674"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/826794acfba2264faa8f2ca122fe8f8508668189_eff666cc-ed20-460f-b6e7-e00b347ca8c0.webp?v=1714890674","width":2000},{"alt":null,"id":23891116949603,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcf7010cff5c676886f12be90547949da70d9772_a0210a03-9ebf-441a-8049-e4b749d99d13.webp?v=1714890676"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcf7010cff5c676886f12be90547949da70d9772_a0210a03-9ebf-441a-8049-e4b749d99d13.webp?v=1714890676","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41907424231523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":31485785964643,"product_id":7414567370851,"position":11,"created_at":"2024-05-05T14:31:16+08:00","updated_at":"2024-05-05T14:31:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcf7010cff5c676886f12be90547949da70d9772_a0210a03-9ebf-441a-8049-e4b749d99d13.webp?v=1714890676","variant_ids":[41907424231523]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - yaya款 - 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-IV09","featured_media":{"alt":null,"id":23891116949603,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcf7010cff5c676886f12be90547949da70d9772_a0210a03-9ebf-441a-8049-e4b749d99d13.webp?v=1714890676"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907424559203,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":31485770661987,"product_id":7414567370851,"position":1,"created_at":"2024-05-05T14:30:53+08:00","updated_at":"2024-05-05T14:30:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7d8debbd20975cb1c67919732989be7eacced1_c31f986d-cf34-4c91-8574-b65b61b8a41e.webp?v=1714890653","variant_ids":[41907424559203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - yaya款 - 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-IV09","featured_media":{"alt":null,"id":23891100762211,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7d8debbd20975cb1c67919732989be7eacced1_c31f986d-cf34-4c91-8574-b65b61b8a41e.webp?v=1714890653"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41907424231523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-IV09","requires_shipping":true,"taxable":true,"featured_image":{"id":31485785964643,"product_id":7414567370851,"position":11,"created_at":"2024-05-05T14:31:16+08:00","updated_at":"2024-05-05T14:31:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcf7010cff5c676886f12be90547949da70d9772_a0210a03-9ebf-441a-8049-e4b749d99d13.webp?v=1714890676","variant_ids":[41907424231523]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - yaya款 - 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-IV09","featured_media":{"alt":null,"id":23891116949603,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcf7010cff5c676886f12be90547949da70d9772_a0210a03-9ebf-441a-8049-e4b749d99d13.webp?v=1714890676"}},"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: "停產" }