$product = {"id":7408016293987,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-線稿風格","handle":"iphone-13-pro-max-mod-nx-printable-pb75","description":null,"published_at":"2024-06-11T16:29:09+08:00","created_at":"2024-05-03T11:41:47+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":41881745916003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31470980431971,"product_id":7408016293987,"position":10,"created_at":"2024-05-03T11:42:14+08:00","updated_at":"2024-05-03T11:42:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1080047bfd8de25e25003d5d9fb6d9cfaf3e1fa8_8e30dc2b-9b3b-4e4b-a31d-ec0dacbabf3d.webp?v=1714707734","variant_ids":[41881745916003]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0123224-PB75","featured_media":{"alt":null,"id":23875885269091,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1080047bfd8de25e25003d5d9fb6d9cfaf3e1fa8_8e30dc2b-9b3b-4e4b-a31d-ec0dacbabf3d.webp?v=1714707734"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881746341987,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31470979842147,"product_id":7408016293987,"position":9,"created_at":"2024-05-03T11:42:12+08:00","updated_at":"2024-05-03T11:42:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0518bd3053f9633609f1725d0d930c8b6cc2d15_66870a8d-5a66-4245-9d2b-89abe9332727.webp?v=1714707732","variant_ids":[41881746341987]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01232J5-PB75","featured_media":{"alt":null,"id":23875884613731,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0518bd3053f9633609f1725d0d930c8b6cc2d15_66870a8d-5a66-4245-9d2b-89abe9332727.webp?v=1714707732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bf2634f4ca9f9fb814cc74b77b7a074309068f9_8a5ea818-9e22-455b-92fb-53dbc038f461.webp?v=1714707710","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8565538cc7d55009430c57f3615309db21da0d9d_46a71fce-892a-451d-bc39-a0bf13ac2664.webp?v=1714707713","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5d8e09308dfec5f2f7dd3844176e1a48eee1ce1_76cb416c-b662-46b6-bd30-079168a85f31.webp?v=1714707715","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d201aaa16c58c4c7f7df769ba6240093493a4a0_36ab4633-1278-48c2-9d89-189ea33c4be4.webp?v=1714707718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf6ecd1a98a265f1e096bbe282f5eefb1f5573db_22b9e68d-93ff-478c-8127-be3b8d14eb62.webp?v=1714707721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96beb7986d2548d9a76438393737b2f8c38e7505_60286df4-e649-4e7b-8b16-9334807c4419.webp?v=1714707723","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b52a247dcb5e023091be833b1f44ee3ebe59735_66ac64a4-97ec-42b5-8be6-ba231872ff78.webp?v=1714707726","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c726573cff3a2eb112f2ea4f1ee49c5cfda9909_bbe753fa-fd46-41bf-8603-459cfc513c3b.webp?v=1714707729","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0518bd3053f9633609f1725d0d930c8b6cc2d15_66870a8d-5a66-4245-9d2b-89abe9332727.webp?v=1714707732","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1080047bfd8de25e25003d5d9fb6d9cfaf3e1fa8_8e30dc2b-9b3b-4e4b-a31d-ec0dacbabf3d.webp?v=1714707734"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bf2634f4ca9f9fb814cc74b77b7a074309068f9_8a5ea818-9e22-455b-92fb-53dbc038f461.webp?v=1714707710","options":["color"],"media":[{"alt":null,"id":23875879632995,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bf2634f4ca9f9fb814cc74b77b7a074309068f9_8a5ea818-9e22-455b-92fb-53dbc038f461.webp?v=1714707710"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bf2634f4ca9f9fb814cc74b77b7a074309068f9_8a5ea818-9e22-455b-92fb-53dbc038f461.webp?v=1714707710","width":2000},{"alt":null,"id":23875879993443,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8565538cc7d55009430c57f3615309db21da0d9d_46a71fce-892a-451d-bc39-a0bf13ac2664.webp?v=1714707713"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8565538cc7d55009430c57f3615309db21da0d9d_46a71fce-892a-451d-bc39-a0bf13ac2664.webp?v=1714707713","width":2000},{"alt":null,"id":23875880550499,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5d8e09308dfec5f2f7dd3844176e1a48eee1ce1_76cb416c-b662-46b6-bd30-079168a85f31.webp?v=1714707715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5d8e09308dfec5f2f7dd3844176e1a48eee1ce1_76cb416c-b662-46b6-bd30-079168a85f31.webp?v=1714707715","width":2000},{"alt":null,"id":23875881992291,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d201aaa16c58c4c7f7df769ba6240093493a4a0_36ab4633-1278-48c2-9d89-189ea33c4be4.webp?v=1714707718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d201aaa16c58c4c7f7df769ba6240093493a4a0_36ab4633-1278-48c2-9d89-189ea33c4be4.webp?v=1714707718","width":2000},{"alt":null,"id":23875882451043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf6ecd1a98a265f1e096bbe282f5eefb1f5573db_22b9e68d-93ff-478c-8127-be3b8d14eb62.webp?v=1714707721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf6ecd1a98a265f1e096bbe282f5eefb1f5573db_22b9e68d-93ff-478c-8127-be3b8d14eb62.webp?v=1714707721","width":2000},{"alt":null,"id":23875882975331,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96beb7986d2548d9a76438393737b2f8c38e7505_60286df4-e649-4e7b-8b16-9334807c4419.webp?v=1714707723"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96beb7986d2548d9a76438393737b2f8c38e7505_60286df4-e649-4e7b-8b16-9334807c4419.webp?v=1714707723","width":2000},{"alt":null,"id":23875883532387,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b52a247dcb5e023091be833b1f44ee3ebe59735_66ac64a4-97ec-42b5-8be6-ba231872ff78.webp?v=1714707726"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b52a247dcb5e023091be833b1f44ee3ebe59735_66ac64a4-97ec-42b5-8be6-ba231872ff78.webp?v=1714707726","width":2000},{"alt":null,"id":23875884122211,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c726573cff3a2eb112f2ea4f1ee49c5cfda9909_bbe753fa-fd46-41bf-8603-459cfc513c3b.webp?v=1714707729"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c726573cff3a2eb112f2ea4f1ee49c5cfda9909_bbe753fa-fd46-41bf-8603-459cfc513c3b.webp?v=1714707729","width":2000},{"alt":null,"id":23875884613731,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0518bd3053f9633609f1725d0d930c8b6cc2d15_66870a8d-5a66-4245-9d2b-89abe9332727.webp?v=1714707732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0518bd3053f9633609f1725d0d930c8b6cc2d15_66870a8d-5a66-4245-9d2b-89abe9332727.webp?v=1714707732","width":2000},{"alt":null,"id":23875885269091,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1080047bfd8de25e25003d5d9fb6d9cfaf3e1fa8_8e30dc2b-9b3b-4e4b-a31d-ec0dacbabf3d.webp?v=1714707734"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1080047bfd8de25e25003d5d9fb6d9cfaf3e1fa8_8e30dc2b-9b3b-4e4b-a31d-ec0dacbabf3d.webp?v=1714707734","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41881745916003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31470980431971,"product_id":7408016293987,"position":10,"created_at":"2024-05-03T11:42:14+08:00","updated_at":"2024-05-03T11:42:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1080047bfd8de25e25003d5d9fb6d9cfaf3e1fa8_8e30dc2b-9b3b-4e4b-a31d-ec0dacbabf3d.webp?v=1714707734","variant_ids":[41881745916003]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0123224-PB75","featured_media":{"alt":null,"id":23875885269091,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1080047bfd8de25e25003d5d9fb6d9cfaf3e1fa8_8e30dc2b-9b3b-4e4b-a31d-ec0dacbabf3d.webp?v=1714707734"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881746341987,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31470979842147,"product_id":7408016293987,"position":9,"created_at":"2024-05-03T11:42:12+08:00","updated_at":"2024-05-03T11:42:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0518bd3053f9633609f1725d0d930c8b6cc2d15_66870a8d-5a66-4245-9d2b-89abe9332727.webp?v=1714707732","variant_ids":[41881746341987]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01232J5-PB75","featured_media":{"alt":null,"id":23875884613731,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0518bd3053f9633609f1725d0d930c8b6cc2d15_66870a8d-5a66-4245-9d2b-89abe9332727.webp?v=1714707732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41881745916003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31470980431971,"product_id":7408016293987,"position":10,"created_at":"2024-05-03T11:42:14+08:00","updated_at":"2024-05-03T11:42:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1080047bfd8de25e25003d5d9fb6d9cfaf3e1fa8_8e30dc2b-9b3b-4e4b-a31d-ec0dacbabf3d.webp?v=1714707734","variant_ids":[41881745916003]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0123224-PB75","featured_media":{"alt":null,"id":23875885269091,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1080047bfd8de25e25003d5d9fb6d9cfaf3e1fa8_8e30dc2b-9b3b-4e4b-a31d-ec0dacbabf3d.webp?v=1714707734"}},"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: "停產" }