$product = {"id":7407877947491,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 千年鷹-美式復古","handle":"iphone-14-plus-mod-nx-printable-pb99","description":null,"published_at":"2024-06-11T16:25:22+08:00","created_at":"2024-05-03T11:07:51+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 14 Plus","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":41879979327587,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31470597046371,"product_id":7407877947491,"position":4,"created_at":"2024-05-03T11:08:01+08:00","updated_at":"2024-05-03T11:08:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ddc22a5edb8baa477ac00d1d16d00cb7bd4f284_f4b79450-dfae-49ee-baf8-d5c2f87700a3.webp?v=1714705681","variant_ids":[41879979327587]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 千年鷹-美式復古 - 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":"NPB0126124-PB99","featured_media":{"alt":null,"id":23875500965987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ddc22a5edb8baa477ac00d1d16d00cb7bd4f284_f4b79450-dfae-49ee-baf8-d5c2f87700a3.webp?v=1714705681"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/347da27c83a010162c721aac484ea5dbd1b8cd36_5ebbe0a9-f1a1-4189-91d2-5a64e1589e37.webp?v=1714705673","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d8457cd3af397dd6fdae98aba09cdc308e0f26f_c1f9194c-0218-4370-8a39-b6aa9ba355e9.webp?v=1714705676","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34ee8582c4f929166c6bc41662b5f35708fc381d_7ce82b4d-4fc2-4977-8f74-feab87566a8b.webp?v=1714705678","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ddc22a5edb8baa477ac00d1d16d00cb7bd4f284_f4b79450-dfae-49ee-baf8-d5c2f87700a3.webp?v=1714705681","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6874c7cbc692f2ed01742f1708d74abbfda4aa25_62167e74-c08f-4f01-a412-ce6ec1a67e79.webp?v=1714705683","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd6bf326165481d6bfd0ca3d8f95c9aff5383a0_aaad5d7a-abf4-4830-a63a-95c928ee89a4.webp?v=1714705686","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a4d15c3b12b792002fa80221070b33648aa4e33_ddbe793a-3eff-451c-b349-f6b91e0cdd5e.webp?v=1714705688","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52ea5eb202a1413e479918513a4512ddb118322d_ca1dc800-a3e3-441d-9b8c-bdc481a8a901.webp?v=1714705690","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f526570583ffd050f07b65d042e3d897a79716a7_baab59ee-a6cf-492b-bd61-bdc1a6ca3f6b.webp?v=1714705693","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6fe07ed9b7f75c83a8138bf9e6fbcd8d8c50587_de39641c-fa1f-4a8b-976f-43411e207828.webp?v=1714705695"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/347da27c83a010162c721aac484ea5dbd1b8cd36_5ebbe0a9-f1a1-4189-91d2-5a64e1589e37.webp?v=1714705673","options":["color"],"media":[{"alt":null,"id":23875499589731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/347da27c83a010162c721aac484ea5dbd1b8cd36_5ebbe0a9-f1a1-4189-91d2-5a64e1589e37.webp?v=1714705673"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/347da27c83a010162c721aac484ea5dbd1b8cd36_5ebbe0a9-f1a1-4189-91d2-5a64e1589e37.webp?v=1714705673","width":2000},{"alt":null,"id":23875499884643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d8457cd3af397dd6fdae98aba09cdc308e0f26f_c1f9194c-0218-4370-8a39-b6aa9ba355e9.webp?v=1714705676"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d8457cd3af397dd6fdae98aba09cdc308e0f26f_c1f9194c-0218-4370-8a39-b6aa9ba355e9.webp?v=1714705676","width":2000},{"alt":null,"id":23875500441699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34ee8582c4f929166c6bc41662b5f35708fc381d_7ce82b4d-4fc2-4977-8f74-feab87566a8b.webp?v=1714705678"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34ee8582c4f929166c6bc41662b5f35708fc381d_7ce82b4d-4fc2-4977-8f74-feab87566a8b.webp?v=1714705678","width":2000},{"alt":null,"id":23875500965987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ddc22a5edb8baa477ac00d1d16d00cb7bd4f284_f4b79450-dfae-49ee-baf8-d5c2f87700a3.webp?v=1714705681"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ddc22a5edb8baa477ac00d1d16d00cb7bd4f284_f4b79450-dfae-49ee-baf8-d5c2f87700a3.webp?v=1714705681","width":2000},{"alt":null,"id":23875501326435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6874c7cbc692f2ed01742f1708d74abbfda4aa25_62167e74-c08f-4f01-a412-ce6ec1a67e79.webp?v=1714705683"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6874c7cbc692f2ed01742f1708d74abbfda4aa25_62167e74-c08f-4f01-a412-ce6ec1a67e79.webp?v=1714705683","width":2000},{"alt":null,"id":23875501654115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd6bf326165481d6bfd0ca3d8f95c9aff5383a0_aaad5d7a-abf4-4830-a63a-95c928ee89a4.webp?v=1714705686"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abd6bf326165481d6bfd0ca3d8f95c9aff5383a0_aaad5d7a-abf4-4830-a63a-95c928ee89a4.webp?v=1714705686","width":2000},{"alt":null,"id":23875502243939,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a4d15c3b12b792002fa80221070b33648aa4e33_ddbe793a-3eff-451c-b349-f6b91e0cdd5e.webp?v=1714705688"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a4d15c3b12b792002fa80221070b33648aa4e33_ddbe793a-3eff-451c-b349-f6b91e0cdd5e.webp?v=1714705688","width":2000},{"alt":null,"id":23875502473315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52ea5eb202a1413e479918513a4512ddb118322d_ca1dc800-a3e3-441d-9b8c-bdc481a8a901.webp?v=1714705690"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52ea5eb202a1413e479918513a4512ddb118322d_ca1dc800-a3e3-441d-9b8c-bdc481a8a901.webp?v=1714705690","width":2000},{"alt":null,"id":23875506929763,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f526570583ffd050f07b65d042e3d897a79716a7_baab59ee-a6cf-492b-bd61-bdc1a6ca3f6b.webp?v=1714705693"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f526570583ffd050f07b65d042e3d897a79716a7_baab59ee-a6cf-492b-bd61-bdc1a6ca3f6b.webp?v=1714705693","width":2000},{"alt":null,"id":23875508600931,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6fe07ed9b7f75c83a8138bf9e6fbcd8d8c50587_de39641c-fa1f-4a8b-976f-43411e207828.webp?v=1714705695"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6fe07ed9b7f75c83a8138bf9e6fbcd8d8c50587_de39641c-fa1f-4a8b-976f-43411e207828.webp?v=1714705695","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41879979327587,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31470597046371,"product_id":7407877947491,"position":4,"created_at":"2024-05-03T11:08:01+08:00","updated_at":"2024-05-03T11:08:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ddc22a5edb8baa477ac00d1d16d00cb7bd4f284_f4b79450-dfae-49ee-baf8-d5c2f87700a3.webp?v=1714705681","variant_ids":[41879979327587]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 千年鷹-美式復古 - 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":"NPB0126124-PB99","featured_media":{"alt":null,"id":23875500965987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ddc22a5edb8baa477ac00d1d16d00cb7bd4f284_f4b79450-dfae-49ee-baf8-d5c2f87700a3.webp?v=1714705681"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879979327587,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31470597046371,"product_id":7407877947491,"position":4,"created_at":"2024-05-03T11:08:01+08:00","updated_at":"2024-05-03T11:08:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ddc22a5edb8baa477ac00d1d16d00cb7bd4f284_f4b79450-dfae-49ee-baf8-d5c2f87700a3.webp?v=1714705681","variant_ids":[41879979327587]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 千年鷹-美式復古 - 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":"NPB0126124-PB99","featured_media":{"alt":null,"id":23875500965987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ddc22a5edb8baa477ac00d1d16d00cb7bd4f284_f4b79450-dfae-49ee-baf8-d5c2f87700a3.webp?v=1714705681"}},"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: "停產" }