$product = {"id":7408186523747,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號","handle":"iphone-13-pro-max-mod-nx-printable-pb67","description":null,"published_at":"2024-06-11T16:33:43+08:00","created_at":"2024-05-03T12:16:49+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 13 Pro Max","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":41883637186659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31471416541283,"product_id":7408186523747,"position":1,"created_at":"2024-05-03T12:16:52+08:00","updated_at":"2024-05-03T12:16:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19e1fbf3dc0d2ff2e3fb69b9c5792658b936513_f390efb1-4840-4a05-b2f0-c74843f4a6fb.webp?v=1714709812","variant_ids":[41883637186659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - 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":"NPB0123224-PB67","featured_media":{"alt":null,"id":23876322754659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19e1fbf3dc0d2ff2e3fb69b9c5792658b936513_f390efb1-4840-4a05-b2f0-c74843f4a6fb.webp?v=1714709812"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883637481571,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31471419719779,"product_id":7408186523747,"position":7,"created_at":"2024-05-03T12:17:06+08:00","updated_at":"2024-05-03T12:17:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d59d347d00795c8cc41988a427972fe5821c10a1_a5508941-35d9-48c8-b8c9-f51c1edcfe72.webp?v=1714709826","variant_ids":[41883637481571]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - 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":"NPB01232J5-PB67","featured_media":{"alt":null,"id":23876326064227,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d59d347d00795c8cc41988a427972fe5821c10a1_a5508941-35d9-48c8-b8c9-f51c1edcfe72.webp?v=1714709826"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19e1fbf3dc0d2ff2e3fb69b9c5792658b936513_f390efb1-4840-4a05-b2f0-c74843f4a6fb.webp?v=1714709812","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13bf9802e9f7af8cac6e57f44c30c55e2b8f2dda_bc729bef-41e2-437a-831c-658e6e6a383e.webp?v=1714709814","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/115a8cb10765d61643b22433efb32c633d1e98d0_3101f324-a7b8-4d82-aab3-be28528f476f.webp?v=1714709816","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5de21f86707462efe2c0780a991b49935cfc1382_aedfe9f3-e77d-43fe-81dc-1175b000f45d.webp?v=1714709819","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/310f85c84171ba37d11a727589dd493e2e9fa35e_1154e9cc-3638-4457-9752-600fbb64e82c.webp?v=1714709821","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a494342a76134c11fc7d547a8f3c845c4e8b1346_75ba4d21-b05b-4e7c-b6f2-f19a0da0e318.webp?v=1714709823","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d59d347d00795c8cc41988a427972fe5821c10a1_a5508941-35d9-48c8-b8c9-f51c1edcfe72.webp?v=1714709826","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb31a58f7e4590392c20873e043094193c5fb1c1_93f2a529-0b68-40e1-8c39-6f14e812bb9c.webp?v=1714709828","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef44d38183cf91e2e934036ba5362060e65e13fb_9b033781-89d9-4a20-8113-d8f12d31132f.webp?v=1714709831","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed8629a25f9aee6b522c2bd8b8f257a5163ea942_945ca072-99b2-479a-ab16-2dfd6db51418.webp?v=1714709833"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19e1fbf3dc0d2ff2e3fb69b9c5792658b936513_f390efb1-4840-4a05-b2f0-c74843f4a6fb.webp?v=1714709812","options":["color"],"media":[{"alt":null,"id":23876322754659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19e1fbf3dc0d2ff2e3fb69b9c5792658b936513_f390efb1-4840-4a05-b2f0-c74843f4a6fb.webp?v=1714709812"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19e1fbf3dc0d2ff2e3fb69b9c5792658b936513_f390efb1-4840-4a05-b2f0-c74843f4a6fb.webp?v=1714709812","width":2000},{"alt":null,"id":23876323180643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13bf9802e9f7af8cac6e57f44c30c55e2b8f2dda_bc729bef-41e2-437a-831c-658e6e6a383e.webp?v=1714709814"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13bf9802e9f7af8cac6e57f44c30c55e2b8f2dda_bc729bef-41e2-437a-831c-658e6e6a383e.webp?v=1714709814","width":2000},{"alt":null,"id":23876323737699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/115a8cb10765d61643b22433efb32c633d1e98d0_3101f324-a7b8-4d82-aab3-be28528f476f.webp?v=1714709816"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/115a8cb10765d61643b22433efb32c633d1e98d0_3101f324-a7b8-4d82-aab3-be28528f476f.webp?v=1714709816","width":2000},{"alt":null,"id":23876324163683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5de21f86707462efe2c0780a991b49935cfc1382_aedfe9f3-e77d-43fe-81dc-1175b000f45d.webp?v=1714709819"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5de21f86707462efe2c0780a991b49935cfc1382_aedfe9f3-e77d-43fe-81dc-1175b000f45d.webp?v=1714709819","width":2000},{"alt":null,"id":23876324622435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/310f85c84171ba37d11a727589dd493e2e9fa35e_1154e9cc-3638-4457-9752-600fbb64e82c.webp?v=1714709821"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/310f85c84171ba37d11a727589dd493e2e9fa35e_1154e9cc-3638-4457-9752-600fbb64e82c.webp?v=1714709821","width":2000},{"alt":null,"id":23876324950115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a494342a76134c11fc7d547a8f3c845c4e8b1346_75ba4d21-b05b-4e7c-b6f2-f19a0da0e318.webp?v=1714709823"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a494342a76134c11fc7d547a8f3c845c4e8b1346_75ba4d21-b05b-4e7c-b6f2-f19a0da0e318.webp?v=1714709823","width":2000},{"alt":null,"id":23876326064227,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d59d347d00795c8cc41988a427972fe5821c10a1_a5508941-35d9-48c8-b8c9-f51c1edcfe72.webp?v=1714709826"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d59d347d00795c8cc41988a427972fe5821c10a1_a5508941-35d9-48c8-b8c9-f51c1edcfe72.webp?v=1714709826","width":2000},{"alt":null,"id":23876326457443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb31a58f7e4590392c20873e043094193c5fb1c1_93f2a529-0b68-40e1-8c39-6f14e812bb9c.webp?v=1714709828"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb31a58f7e4590392c20873e043094193c5fb1c1_93f2a529-0b68-40e1-8c39-6f14e812bb9c.webp?v=1714709828","width":2000},{"alt":null,"id":23876327047267,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef44d38183cf91e2e934036ba5362060e65e13fb_9b033781-89d9-4a20-8113-d8f12d31132f.webp?v=1714709831"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef44d38183cf91e2e934036ba5362060e65e13fb_9b033781-89d9-4a20-8113-d8f12d31132f.webp?v=1714709831","width":2000},{"alt":null,"id":23876327407715,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed8629a25f9aee6b522c2bd8b8f257a5163ea942_945ca072-99b2-479a-ab16-2dfd6db51418.webp?v=1714709833"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed8629a25f9aee6b522c2bd8b8f257a5163ea942_945ca072-99b2-479a-ab16-2dfd6db51418.webp?v=1714709833","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41883637186659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31471416541283,"product_id":7408186523747,"position":1,"created_at":"2024-05-03T12:16:52+08:00","updated_at":"2024-05-03T12:16:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19e1fbf3dc0d2ff2e3fb69b9c5792658b936513_f390efb1-4840-4a05-b2f0-c74843f4a6fb.webp?v=1714709812","variant_ids":[41883637186659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - 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":"NPB0123224-PB67","featured_media":{"alt":null,"id":23876322754659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19e1fbf3dc0d2ff2e3fb69b9c5792658b936513_f390efb1-4840-4a05-b2f0-c74843f4a6fb.webp?v=1714709812"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883637481571,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31471419719779,"product_id":7408186523747,"position":7,"created_at":"2024-05-03T12:17:06+08:00","updated_at":"2024-05-03T12:17:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d59d347d00795c8cc41988a427972fe5821c10a1_a5508941-35d9-48c8-b8c9-f51c1edcfe72.webp?v=1714709826","variant_ids":[41883637481571]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - 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":"NPB01232J5-PB67","featured_media":{"alt":null,"id":23876326064227,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d59d347d00795c8cc41988a427972fe5821c10a1_a5508941-35d9-48c8-b8c9-f51c1edcfe72.webp?v=1714709826"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41883637186659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31471416541283,"product_id":7408186523747,"position":1,"created_at":"2024-05-03T12:16:52+08:00","updated_at":"2024-05-03T12:16:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19e1fbf3dc0d2ff2e3fb69b9c5792658b936513_f390efb1-4840-4a05-b2f0-c74843f4a6fb.webp?v=1714709812","variant_ids":[41883637186659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - 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":"NPB0123224-PB67","featured_media":{"alt":null,"id":23876322754659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19e1fbf3dc0d2ff2e3fb69b9c5792658b936513_f390efb1-4840-4a05-b2f0-c74843f4a6fb.webp?v=1714709812"}},"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: "停產" }