$product = {"id":7414583230563,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 賈霸-塗鴉藝術","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb41","description":null,"published_at":"2024-06-11T17:52:19+08:00","created_at":"2024-05-05T14:32:31+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":41907584532579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB41","requires_shipping":true,"taxable":true,"featured_image":{"id":31485817651299,"product_id":7414583230563,"position":3,"created_at":"2024-05-05T14:32:38+08:00","updated_at":"2024-05-05T14:32:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38e753f650f7c127bdd3b02635e5af1222ae36d6_b798c2db-0e7a-4c97-b659-a932e4937798.webp?v=1714890758","variant_ids":[41907584532579]},"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-PB41","featured_media":{"alt":null,"id":23891152240739,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38e753f650f7c127bdd3b02635e5af1222ae36d6_b798c2db-0e7a-4c97-b659-a932e4937798.webp?v=1714890758"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907584860259,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB41","requires_shipping":true,"taxable":true,"featured_image":{"id":31485829840995,"product_id":7414583230563,"position":9,"created_at":"2024-05-05T14:32:51+08:00","updated_at":"2024-05-05T14:32:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d5e06cf697ef66434e87af59f44b9bfe0b1509f_0f545450-c338-461a-b97c-3abaaa844b81.webp?v=1714890771","variant_ids":[41907584860259]},"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-PB41","featured_media":{"alt":null,"id":23891164954723,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d5e06cf697ef66434e87af59f44b9bfe0b1509f_0f545450-c338-461a-b97c-3abaaa844b81.webp?v=1714890771"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7029a10fc467492f7f0a54451096d60263b06a65_ba14e30a-d8bb-4b5d-a5b0-14eba4bec34b.webp?v=1714890753","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fe996bcd7b80703674ce37aeb63cd807da3885_8ec97f0c-8bc3-45da-9970-2f3834d7765a.webp?v=1714890755","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38e753f650f7c127bdd3b02635e5af1222ae36d6_b798c2db-0e7a-4c97-b659-a932e4937798.webp?v=1714890758","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a79869ae85f2b1e92bb9cc1be03e8f0054d0d27_4ec72336-f799-4c70-a0b0-9ee1001f921a.webp?v=1714890760","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f797ad04e6f4321f4207ab4e1f6f0e83e97da932_b2a976a9-97df-44e6-9ff4-194d3a8e8542.webp?v=1714890762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bc24e51e1ded16895222d12414aeddb927c207a_e6f9a485-0257-4dcf-b35b-e32c29261ecb.webp?v=1714890765","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d81bc2bdf93e407aa374fdf2a9c4f7bc0e3bd2b6_94ac22d2-2076-4e22-bf26-7497f857dc01.webp?v=1714890767","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/010f523470bcd8c55866ec56acf4b812de344053_bd771f1b-843d-4f2f-b23a-f5dcc0510eb4.webp?v=1714890769","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d5e06cf697ef66434e87af59f44b9bfe0b1509f_0f545450-c338-461a-b97c-3abaaa844b81.webp?v=1714890771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34750343419f296273acd4ef79a843e1ae9a7b9a_14ab45b5-7b37-4474-9497-609da9d48e1c.webp?v=1714890774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bebe06ba277eed49e265ac901e71e1fca67f3ffe_8ad28381-6fcc-4c95-ae1c-9e27cfd3bb1b.webp?v=1714890776"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7029a10fc467492f7f0a54451096d60263b06a65_ba14e30a-d8bb-4b5d-a5b0-14eba4bec34b.webp?v=1714890753","options":["color"],"media":[{"alt":null,"id":23891148210275,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7029a10fc467492f7f0a54451096d60263b06a65_ba14e30a-d8bb-4b5d-a5b0-14eba4bec34b.webp?v=1714890753"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7029a10fc467492f7f0a54451096d60263b06a65_ba14e30a-d8bb-4b5d-a5b0-14eba4bec34b.webp?v=1714890753","width":2000},{"alt":null,"id":23891150143587,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fe996bcd7b80703674ce37aeb63cd807da3885_8ec97f0c-8bc3-45da-9970-2f3834d7765a.webp?v=1714890755"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fe996bcd7b80703674ce37aeb63cd807da3885_8ec97f0c-8bc3-45da-9970-2f3834d7765a.webp?v=1714890755","width":2000},{"alt":null,"id":23891152240739,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38e753f650f7c127bdd3b02635e5af1222ae36d6_b798c2db-0e7a-4c97-b659-a932e4937798.webp?v=1714890758"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38e753f650f7c127bdd3b02635e5af1222ae36d6_b798c2db-0e7a-4c97-b659-a932e4937798.webp?v=1714890758","width":2000},{"alt":null,"id":23891154436195,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a79869ae85f2b1e92bb9cc1be03e8f0054d0d27_4ec72336-f799-4c70-a0b0-9ee1001f921a.webp?v=1714890760"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a79869ae85f2b1e92bb9cc1be03e8f0054d0d27_4ec72336-f799-4c70-a0b0-9ee1001f921a.webp?v=1714890760","width":2000},{"alt":null,"id":23891156729955,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f797ad04e6f4321f4207ab4e1f6f0e83e97da932_b2a976a9-97df-44e6-9ff4-194d3a8e8542.webp?v=1714890762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f797ad04e6f4321f4207ab4e1f6f0e83e97da932_b2a976a9-97df-44e6-9ff4-194d3a8e8542.webp?v=1714890762","width":2000},{"alt":null,"id":23891159187555,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bc24e51e1ded16895222d12414aeddb927c207a_e6f9a485-0257-4dcf-b35b-e32c29261ecb.webp?v=1714890765"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bc24e51e1ded16895222d12414aeddb927c207a_e6f9a485-0257-4dcf-b35b-e32c29261ecb.webp?v=1714890765","width":2000},{"alt":null,"id":23891161153635,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d81bc2bdf93e407aa374fdf2a9c4f7bc0e3bd2b6_94ac22d2-2076-4e22-bf26-7497f857dc01.webp?v=1714890767"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d81bc2bdf93e407aa374fdf2a9c4f7bc0e3bd2b6_94ac22d2-2076-4e22-bf26-7497f857dc01.webp?v=1714890767","width":2000},{"alt":null,"id":23891163152483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/010f523470bcd8c55866ec56acf4b812de344053_bd771f1b-843d-4f2f-b23a-f5dcc0510eb4.webp?v=1714890769"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/010f523470bcd8c55866ec56acf4b812de344053_bd771f1b-843d-4f2f-b23a-f5dcc0510eb4.webp?v=1714890769","width":2000},{"alt":null,"id":23891164954723,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d5e06cf697ef66434e87af59f44b9bfe0b1509f_0f545450-c338-461a-b97c-3abaaa844b81.webp?v=1714890771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d5e06cf697ef66434e87af59f44b9bfe0b1509f_0f545450-c338-461a-b97c-3abaaa844b81.webp?v=1714890771","width":2000},{"alt":null,"id":23891166888035,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34750343419f296273acd4ef79a843e1ae9a7b9a_14ab45b5-7b37-4474-9497-609da9d48e1c.webp?v=1714890774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34750343419f296273acd4ef79a843e1ae9a7b9a_14ab45b5-7b37-4474-9497-609da9d48e1c.webp?v=1714890774","width":2000},{"alt":null,"id":23891168985187,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bebe06ba277eed49e265ac901e71e1fca67f3ffe_8ad28381-6fcc-4c95-ae1c-9e27cfd3bb1b.webp?v=1714890776"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bebe06ba277eed49e265ac901e71e1fca67f3ffe_8ad28381-6fcc-4c95-ae1c-9e27cfd3bb1b.webp?v=1714890776","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41907584532579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB41","requires_shipping":true,"taxable":true,"featured_image":{"id":31485817651299,"product_id":7414583230563,"position":3,"created_at":"2024-05-05T14:32:38+08:00","updated_at":"2024-05-05T14:32:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38e753f650f7c127bdd3b02635e5af1222ae36d6_b798c2db-0e7a-4c97-b659-a932e4937798.webp?v=1714890758","variant_ids":[41907584532579]},"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-PB41","featured_media":{"alt":null,"id":23891152240739,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38e753f650f7c127bdd3b02635e5af1222ae36d6_b798c2db-0e7a-4c97-b659-a932e4937798.webp?v=1714890758"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907584860259,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB41","requires_shipping":true,"taxable":true,"featured_image":{"id":31485829840995,"product_id":7414583230563,"position":9,"created_at":"2024-05-05T14:32:51+08:00","updated_at":"2024-05-05T14:32:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d5e06cf697ef66434e87af59f44b9bfe0b1509f_0f545450-c338-461a-b97c-3abaaa844b81.webp?v=1714890771","variant_ids":[41907584860259]},"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-PB41","featured_media":{"alt":null,"id":23891164954723,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d5e06cf697ef66434e87af59f44b9bfe0b1509f_0f545450-c338-461a-b97c-3abaaa844b81.webp?v=1714890771"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41907584532579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB41","requires_shipping":true,"taxable":true,"featured_image":{"id":31485817651299,"product_id":7414583230563,"position":3,"created_at":"2024-05-05T14:32:38+08:00","updated_at":"2024-05-05T14:32:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38e753f650f7c127bdd3b02635e5af1222ae36d6_b798c2db-0e7a-4c97-b659-a932e4937798.webp?v=1714890758","variant_ids":[41907584532579]},"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-PB41","featured_media":{"alt":null,"id":23891152240739,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38e753f650f7c127bdd3b02635e5af1222ae36d6_b798c2db-0e7a-4c97-b659-a932e4937798.webp?v=1714890758"}},"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: "停產" }