$product = {"id":7408015245411,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo","handle":"iphone-13-pro-max-mod-nx-printable-pb100","description":null,"published_at":"2024-06-11T16:29:08+08:00","created_at":"2024-05-03T11:41:28+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":41881732317283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31470973419619,"product_id":7408015245411,"position":6,"created_at":"2024-05-03T11:41:44+08:00","updated_at":"2024-05-03T11:41:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81dd3921eb4ca81be5a81a5dfade78f78a25b658_bd0d33d5-3369-4007-b0b3-34c89b499f8e.webp?v=1714707704","variant_ids":[41881732317283]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23875878256739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81dd3921eb4ca81be5a81a5dfade78f78a25b658_bd0d33d5-3369-4007-b0b3-34c89b499f8e.webp?v=1714707704"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881732841571,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31470973976675,"product_id":7408015245411,"position":7,"created_at":"2024-05-03T11:41:47+08:00","updated_at":"2024-05-03T11:41:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad217c382bf6cce187d9ad106d2941fd6137c8d9_f811c7b3-17dc-406b-a00d-4554383815a9.webp?v=1714707707","variant_ids":[41881732841571]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23875878748259,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad217c382bf6cce187d9ad106d2941fd6137c8d9_f811c7b3-17dc-406b-a00d-4554383815a9.webp?v=1714707707"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faf9f0665fbe2c6662cca48f053fe8e215db2a26_6f97b8eb-d49b-4a1f-89df-8f7c7089f3df.webp?v=1714707691","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b429c4b80d57762471987d87fb065de721ed3af_2781e39e-cd59-45a9-b8fb-7e23a4202954.webp?v=1714707694","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f2e19bd3dc15c6d65aec6ea9461689d89cad102_adf431f6-358b-466f-b89f-78d9a818a530.webp?v=1714707696","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e102a1f66c11ae098ef92f5715a91c16be231bef_c95ac7c6-6155-40bd-9838-11525bd2d79d.webp?v=1714707699","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd530e37a90472f27f79e78d5d84acaf92df0671_afe3f0e1-2944-4119-ab5c-7671b43e0618.webp?v=1714707702","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81dd3921eb4ca81be5a81a5dfade78f78a25b658_bd0d33d5-3369-4007-b0b3-34c89b499f8e.webp?v=1714707704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad217c382bf6cce187d9ad106d2941fd6137c8d9_f811c7b3-17dc-406b-a00d-4554383815a9.webp?v=1714707707","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d685229c9657af7e49989acb6e2a461985fcb255_3f6edce3-f477-4ce7-9ec5-bc6fc979fdfa.webp?v=1714707709","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/371539ce2ea71ebcc39d2d1e737e994b8d873fbd_6292e2e2-aafd-47d7-9bff-d784a8a704c9.webp?v=1714707712","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0f257c0ea3398a8479b8dbc4c0e11d0cbaa7c7e_ec5a5560-0816-4e0a-bedf-9013f8d1c707.webp?v=1714707714"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faf9f0665fbe2c6662cca48f053fe8e215db2a26_6f97b8eb-d49b-4a1f-89df-8f7c7089f3df.webp?v=1714707691","options":["color"],"media":[{"alt":null,"id":23875875471459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faf9f0665fbe2c6662cca48f053fe8e215db2a26_6f97b8eb-d49b-4a1f-89df-8f7c7089f3df.webp?v=1714707691"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faf9f0665fbe2c6662cca48f053fe8e215db2a26_6f97b8eb-d49b-4a1f-89df-8f7c7089f3df.webp?v=1714707691","width":2000},{"alt":null,"id":23875875962979,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b429c4b80d57762471987d87fb065de721ed3af_2781e39e-cd59-45a9-b8fb-7e23a4202954.webp?v=1714707694"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b429c4b80d57762471987d87fb065de721ed3af_2781e39e-cd59-45a9-b8fb-7e23a4202954.webp?v=1714707694","width":2000},{"alt":null,"id":23875876421731,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f2e19bd3dc15c6d65aec6ea9461689d89cad102_adf431f6-358b-466f-b89f-78d9a818a530.webp?v=1714707696"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f2e19bd3dc15c6d65aec6ea9461689d89cad102_adf431f6-358b-466f-b89f-78d9a818a530.webp?v=1714707696","width":2000},{"alt":null,"id":23875877077091,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e102a1f66c11ae098ef92f5715a91c16be231bef_c95ac7c6-6155-40bd-9838-11525bd2d79d.webp?v=1714707699"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e102a1f66c11ae098ef92f5715a91c16be231bef_c95ac7c6-6155-40bd-9838-11525bd2d79d.webp?v=1714707699","width":2000},{"alt":null,"id":23875877568611,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd530e37a90472f27f79e78d5d84acaf92df0671_afe3f0e1-2944-4119-ab5c-7671b43e0618.webp?v=1714707702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd530e37a90472f27f79e78d5d84acaf92df0671_afe3f0e1-2944-4119-ab5c-7671b43e0618.webp?v=1714707702","width":2000},{"alt":null,"id":23875878256739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81dd3921eb4ca81be5a81a5dfade78f78a25b658_bd0d33d5-3369-4007-b0b3-34c89b499f8e.webp?v=1714707704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81dd3921eb4ca81be5a81a5dfade78f78a25b658_bd0d33d5-3369-4007-b0b3-34c89b499f8e.webp?v=1714707704","width":2000},{"alt":null,"id":23875878748259,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad217c382bf6cce187d9ad106d2941fd6137c8d9_f811c7b3-17dc-406b-a00d-4554383815a9.webp?v=1714707707"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad217c382bf6cce187d9ad106d2941fd6137c8d9_f811c7b3-17dc-406b-a00d-4554383815a9.webp?v=1714707707","width":2000},{"alt":null,"id":23875879239779,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d685229c9657af7e49989acb6e2a461985fcb255_3f6edce3-f477-4ce7-9ec5-bc6fc979fdfa.webp?v=1714707709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d685229c9657af7e49989acb6e2a461985fcb255_3f6edce3-f477-4ce7-9ec5-bc6fc979fdfa.webp?v=1714707709","width":2000},{"alt":null,"id":23875879731299,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/371539ce2ea71ebcc39d2d1e737e994b8d873fbd_6292e2e2-aafd-47d7-9bff-d784a8a704c9.webp?v=1714707712"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/371539ce2ea71ebcc39d2d1e737e994b8d873fbd_6292e2e2-aafd-47d7-9bff-d784a8a704c9.webp?v=1714707712","width":2000},{"alt":null,"id":23875880255587,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0f257c0ea3398a8479b8dbc4c0e11d0cbaa7c7e_ec5a5560-0816-4e0a-bedf-9013f8d1c707.webp?v=1714707714"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0f257c0ea3398a8479b8dbc4c0e11d0cbaa7c7e_ec5a5560-0816-4e0a-bedf-9013f8d1c707.webp?v=1714707714","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41881732317283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31470973419619,"product_id":7408015245411,"position":6,"created_at":"2024-05-03T11:41:44+08:00","updated_at":"2024-05-03T11:41:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81dd3921eb4ca81be5a81a5dfade78f78a25b658_bd0d33d5-3369-4007-b0b3-34c89b499f8e.webp?v=1714707704","variant_ids":[41881732317283]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23875878256739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81dd3921eb4ca81be5a81a5dfade78f78a25b658_bd0d33d5-3369-4007-b0b3-34c89b499f8e.webp?v=1714707704"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881732841571,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31470973976675,"product_id":7408015245411,"position":7,"created_at":"2024-05-03T11:41:47+08:00","updated_at":"2024-05-03T11:41:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad217c382bf6cce187d9ad106d2941fd6137c8d9_f811c7b3-17dc-406b-a00d-4554383815a9.webp?v=1714707707","variant_ids":[41881732841571]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23875878748259,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad217c382bf6cce187d9ad106d2941fd6137c8d9_f811c7b3-17dc-406b-a00d-4554383815a9.webp?v=1714707707"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41881732317283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31470973419619,"product_id":7408015245411,"position":6,"created_at":"2024-05-03T11:41:44+08:00","updated_at":"2024-05-03T11:41:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81dd3921eb4ca81be5a81a5dfade78f78a25b658_bd0d33d5-3369-4007-b0b3-34c89b499f8e.webp?v=1714707704","variant_ids":[41881732317283]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23875878256739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81dd3921eb4ca81be5a81a5dfade78f78a25b658_bd0d33d5-3369-4007-b0b3-34c89b499f8e.webp?v=1714707704"}},"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: "停產" }