$product = {"id":7416384815203,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列","handle":"iphone-8-mod-nx-printable-pb47","description":null,"published_at":"2024-06-11T16:57:37+08:00","created_at":"2024-05-06T14:46:36+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 8","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41919162515555,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31492000841827,"product_id":7416384815203,"position":10,"created_at":"2024-05-06T14:46:59+08:00","updated_at":"2024-05-06T14:46:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bdeb5b52c1637a83a5c2f43543709594f23b7d5_ede1573f-c244-4d12-ad89-f3b66614c059.webp?v=1714978019","variant_ids":[41919162515555]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-PB47","featured_media":{"alt":null,"id":23897414565987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bdeb5b52c1637a83a5c2f43543709594f23b7d5_ede1573f-c244-4d12-ad89-f3b66614c059.webp?v=1714978019"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05654ba6f06fea49990a77a29338b916693e0b1f_b4876273-f004-4cf8-be67-1abbc8269f51.webp?v=1714977998","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2645fec41ba04b1634816e8a6f9b8cbce4646659_ac45e983-89b3-4a38-b9e0-4db49238d621.webp?v=1714978001","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecb24ca526cc7bffe39d616ffcc7560da49151d6_002dd91c-c7b7-4c93-aa95-e288ba167785.webp?v=1714978003","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/316079653b30158d3da6d37546127e638cbe5997_7078ee3f-f1c4-4dc9-a366-fba6d8aac28f.webp?v=1714978005","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d149d3abd0ec928f7c92cc6f79710b6d7d4aeed1_44c8959a-9f20-4c6b-9fa0-71ddfa0232e6.webp?v=1714978008","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75584febc1e5fb77c722cd7d52f88f4363c769fc_44773256-aca1-42ed-8906-3e1261fc8e64.webp?v=1714978010","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b6e4c857cb6ba3609064f2936f74a37e368f4bb_3531dfce-3591-4e91-87d3-25ddf7fb4e03.webp?v=1714978012","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d032a4dc7e2a8a98726a842a6f537c30ddd3f71d_042b6250-16bb-4b76-a3ff-1804eb3471cf.webp?v=1714978015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0ee42637488448eb2f4936dbedb7592499ae012_a601f44e-74bc-4c4a-9db7-35ed2c7dec92.webp?v=1714978017","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bdeb5b52c1637a83a5c2f43543709594f23b7d5_ede1573f-c244-4d12-ad89-f3b66614c059.webp?v=1714978019"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05654ba6f06fea49990a77a29338b916693e0b1f_b4876273-f004-4cf8-be67-1abbc8269f51.webp?v=1714977998","options":["color"],"media":[{"alt":null,"id":23897409912931,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05654ba6f06fea49990a77a29338b916693e0b1f_b4876273-f004-4cf8-be67-1abbc8269f51.webp?v=1714977998"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05654ba6f06fea49990a77a29338b916693e0b1f_b4876273-f004-4cf8-be67-1abbc8269f51.webp?v=1714977998","width":2000},{"alt":null,"id":23897410338915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2645fec41ba04b1634816e8a6f9b8cbce4646659_ac45e983-89b3-4a38-b9e0-4db49238d621.webp?v=1714978001"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2645fec41ba04b1634816e8a6f9b8cbce4646659_ac45e983-89b3-4a38-b9e0-4db49238d621.webp?v=1714978001","width":2000},{"alt":null,"id":23897410863203,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecb24ca526cc7bffe39d616ffcc7560da49151d6_002dd91c-c7b7-4c93-aa95-e288ba167785.webp?v=1714978003"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecb24ca526cc7bffe39d616ffcc7560da49151d6_002dd91c-c7b7-4c93-aa95-e288ba167785.webp?v=1714978003","width":2000},{"alt":null,"id":23897411551331,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/316079653b30158d3da6d37546127e638cbe5997_7078ee3f-f1c4-4dc9-a366-fba6d8aac28f.webp?v=1714978005"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/316079653b30158d3da6d37546127e638cbe5997_7078ee3f-f1c4-4dc9-a366-fba6d8aac28f.webp?v=1714978005","width":2000},{"alt":null,"id":23897412010083,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d149d3abd0ec928f7c92cc6f79710b6d7d4aeed1_44c8959a-9f20-4c6b-9fa0-71ddfa0232e6.webp?v=1714978008"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d149d3abd0ec928f7c92cc6f79710b6d7d4aeed1_44c8959a-9f20-4c6b-9fa0-71ddfa0232e6.webp?v=1714978008","width":2000},{"alt":null,"id":23897412403299,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75584febc1e5fb77c722cd7d52f88f4363c769fc_44773256-aca1-42ed-8906-3e1261fc8e64.webp?v=1714978010"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75584febc1e5fb77c722cd7d52f88f4363c769fc_44773256-aca1-42ed-8906-3e1261fc8e64.webp?v=1714978010","width":2000},{"alt":null,"id":23897412993123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b6e4c857cb6ba3609064f2936f74a37e368f4bb_3531dfce-3591-4e91-87d3-25ddf7fb4e03.webp?v=1714978012"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b6e4c857cb6ba3609064f2936f74a37e368f4bb_3531dfce-3591-4e91-87d3-25ddf7fb4e03.webp?v=1714978012","width":2000},{"alt":null,"id":23897413484643,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d032a4dc7e2a8a98726a842a6f537c30ddd3f71d_042b6250-16bb-4b76-a3ff-1804eb3471cf.webp?v=1714978015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d032a4dc7e2a8a98726a842a6f537c30ddd3f71d_042b6250-16bb-4b76-a3ff-1804eb3471cf.webp?v=1714978015","width":2000},{"alt":null,"id":23897413877859,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0ee42637488448eb2f4936dbedb7592499ae012_a601f44e-74bc-4c4a-9db7-35ed2c7dec92.webp?v=1714978017"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0ee42637488448eb2f4936dbedb7592499ae012_a601f44e-74bc-4c4a-9db7-35ed2c7dec92.webp?v=1714978017","width":2000},{"alt":null,"id":23897414565987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bdeb5b52c1637a83a5c2f43543709594f23b7d5_ede1573f-c244-4d12-ad89-f3b66614c059.webp?v=1714978019"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bdeb5b52c1637a83a5c2f43543709594f23b7d5_ede1573f-c244-4d12-ad89-f3b66614c059.webp?v=1714978019","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41919162515555,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31492000841827,"product_id":7416384815203,"position":10,"created_at":"2024-05-06T14:46:59+08:00","updated_at":"2024-05-06T14:46:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bdeb5b52c1637a83a5c2f43543709594f23b7d5_ede1573f-c244-4d12-ad89-f3b66614c059.webp?v=1714978019","variant_ids":[41919162515555]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-PB47","featured_media":{"alt":null,"id":23897414565987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bdeb5b52c1637a83a5c2f43543709594f23b7d5_ede1573f-c244-4d12-ad89-f3b66614c059.webp?v=1714978019"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919162515555,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31492000841827,"product_id":7416384815203,"position":10,"created_at":"2024-05-06T14:46:59+08:00","updated_at":"2024-05-06T14:46:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bdeb5b52c1637a83a5c2f43543709594f23b7d5_ede1573f-c244-4d12-ad89-f3b66614c059.webp?v=1714978019","variant_ids":[41919162515555]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-PB47","featured_media":{"alt":null,"id":23897414565987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bdeb5b52c1637a83a5c2f43543709594f23b7d5_ede1573f-c244-4d12-ad89-f3b66614c059.webp?v=1714978019"}},"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: "停產" }