$product = {"id":7407820046435,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列","handle":"iphone-14-plus-mod-nx-printable-pb85","description":null,"published_at":"2024-06-11T16:23:44+08:00","created_at":"2024-05-03T10:55:59+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":41879214456931,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31470447198307,"product_id":7407820046435,"position":3,"created_at":"2024-05-03T10:56:07+08:00","updated_at":"2024-05-03T10:56:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d6f0ad01c2cf87992d21f740f1c98a376c632f0_363c4cdf-6c5d-4a82-84b7-e75cbe17189a.webp?v=1714704967","variant_ids":[41879214456931]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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-PB85","featured_media":{"alt":null,"id":23875350626403,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d6f0ad01c2cf87992d21f740f1c98a376c632f0_363c4cdf-6c5d-4a82-84b7-e75cbe17189a.webp?v=1714704967"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a9f3516086d89c01e3a02e3b18c43e97095f699_bb079113-d15e-421c-8fe2-b744ef9cf7f5.webp?v=1714704962","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3509f86cdd27efb4d3d337c7361af63d1d62e8ed_67fa322d-ca22-4af0-a344-13f4ea6f428d.webp?v=1714704964","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d6f0ad01c2cf87992d21f740f1c98a376c632f0_363c4cdf-6c5d-4a82-84b7-e75cbe17189a.webp?v=1714704967","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0328ffac83b0853b452a85b178628721b0a8de1f_f65b97da-0ce2-4f03-b5d8-54b5cfb05086.webp?v=1714704969","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d5edb7e8a56d5b1bdf8df0c3da6b0d797a930e6_a8dbeabf-e6d6-47d5-9df2-36080e299925.webp?v=1714704972","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2362a44c898c5c339679ce98be967add26df965f_0cd569e2-5201-4f85-a81c-a6605836a262.webp?v=1714704974","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf6d4237ab9e5aea4c2d6979aac431523a9f57a_64605ffa-0a2a-4801-974a-47d44a5a5a3e.webp?v=1714704977","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39822f64e765db01c3c2a7b69a460db9a44f983_dfb71637-d861-4ab0-a95a-b49f23aec8ae.webp?v=1714704979","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/847f91ec488b37b38db2c89b2b09a02b41c4caf1_5a163e0d-bc62-49da-ad91-2024fbb39bc6.webp?v=1714704981","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f757df068f1d87d90c225d5cabcb17ea1339ab47_c8251d9e-40a6-40da-8fd4-a39d1b75c998.webp?v=1714704984"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a9f3516086d89c01e3a02e3b18c43e97095f699_bb079113-d15e-421c-8fe2-b744ef9cf7f5.webp?v=1714704962","options":["color"],"media":[{"alt":null,"id":23875349643363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a9f3516086d89c01e3a02e3b18c43e97095f699_bb079113-d15e-421c-8fe2-b744ef9cf7f5.webp?v=1714704962"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a9f3516086d89c01e3a02e3b18c43e97095f699_bb079113-d15e-421c-8fe2-b744ef9cf7f5.webp?v=1714704962","width":2000},{"alt":null,"id":23875350265955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3509f86cdd27efb4d3d337c7361af63d1d62e8ed_67fa322d-ca22-4af0-a344-13f4ea6f428d.webp?v=1714704964"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3509f86cdd27efb4d3d337c7361af63d1d62e8ed_67fa322d-ca22-4af0-a344-13f4ea6f428d.webp?v=1714704964","width":2000},{"alt":null,"id":23875350626403,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d6f0ad01c2cf87992d21f740f1c98a376c632f0_363c4cdf-6c5d-4a82-84b7-e75cbe17189a.webp?v=1714704967"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d6f0ad01c2cf87992d21f740f1c98a376c632f0_363c4cdf-6c5d-4a82-84b7-e75cbe17189a.webp?v=1714704967","width":2000},{"alt":null,"id":23875351052387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0328ffac83b0853b452a85b178628721b0a8de1f_f65b97da-0ce2-4f03-b5d8-54b5cfb05086.webp?v=1714704969"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0328ffac83b0853b452a85b178628721b0a8de1f_f65b97da-0ce2-4f03-b5d8-54b5cfb05086.webp?v=1714704969","width":2000},{"alt":null,"id":23875351576675,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d5edb7e8a56d5b1bdf8df0c3da6b0d797a930e6_a8dbeabf-e6d6-47d5-9df2-36080e299925.webp?v=1714704972"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d5edb7e8a56d5b1bdf8df0c3da6b0d797a930e6_a8dbeabf-e6d6-47d5-9df2-36080e299925.webp?v=1714704972","width":2000},{"alt":null,"id":23875352002659,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2362a44c898c5c339679ce98be967add26df965f_0cd569e2-5201-4f85-a81c-a6605836a262.webp?v=1714704974"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2362a44c898c5c339679ce98be967add26df965f_0cd569e2-5201-4f85-a81c-a6605836a262.webp?v=1714704974","width":2000},{"alt":null,"id":23875352559715,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf6d4237ab9e5aea4c2d6979aac431523a9f57a_64605ffa-0a2a-4801-974a-47d44a5a5a3e.webp?v=1714704977"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf6d4237ab9e5aea4c2d6979aac431523a9f57a_64605ffa-0a2a-4801-974a-47d44a5a5a3e.webp?v=1714704977","width":2000},{"alt":null,"id":23875353116771,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39822f64e765db01c3c2a7b69a460db9a44f983_dfb71637-d861-4ab0-a95a-b49f23aec8ae.webp?v=1714704979"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39822f64e765db01c3c2a7b69a460db9a44f983_dfb71637-d861-4ab0-a95a-b49f23aec8ae.webp?v=1714704979","width":2000},{"alt":null,"id":23875353608291,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/847f91ec488b37b38db2c89b2b09a02b41c4caf1_5a163e0d-bc62-49da-ad91-2024fbb39bc6.webp?v=1714704981"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/847f91ec488b37b38db2c89b2b09a02b41c4caf1_5a163e0d-bc62-49da-ad91-2024fbb39bc6.webp?v=1714704981","width":2000},{"alt":null,"id":23875354099811,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f757df068f1d87d90c225d5cabcb17ea1339ab47_c8251d9e-40a6-40da-8fd4-a39d1b75c998.webp?v=1714704984"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f757df068f1d87d90c225d5cabcb17ea1339ab47_c8251d9e-40a6-40da-8fd4-a39d1b75c998.webp?v=1714704984","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41879214456931,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31470447198307,"product_id":7407820046435,"position":3,"created_at":"2024-05-03T10:56:07+08:00","updated_at":"2024-05-03T10:56:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d6f0ad01c2cf87992d21f740f1c98a376c632f0_363c4cdf-6c5d-4a82-84b7-e75cbe17189a.webp?v=1714704967","variant_ids":[41879214456931]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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-PB85","featured_media":{"alt":null,"id":23875350626403,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d6f0ad01c2cf87992d21f740f1c98a376c632f0_363c4cdf-6c5d-4a82-84b7-e75cbe17189a.webp?v=1714704967"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879214456931,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31470447198307,"product_id":7407820046435,"position":3,"created_at":"2024-05-03T10:56:07+08:00","updated_at":"2024-05-03T10:56:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d6f0ad01c2cf87992d21f740f1c98a376c632f0_363c4cdf-6c5d-4a82-84b7-e75cbe17189a.webp?v=1714704967","variant_ids":[41879214456931]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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-PB85","featured_media":{"alt":null,"id":23875350626403,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d6f0ad01c2cf87992d21f740f1c98a376c632f0_363c4cdf-6c5d-4a82-84b7-e75cbe17189a.webp?v=1714704967"}},"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: "停產" }