$product = {"id":7414224814179,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - The Powerpuff Girls - 花花","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sr05","description":null,"published_at":"2024-06-11T17:50:02+08:00","created_at":"2024-05-05T14:17:13+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區The Powerpuff Girls","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-the-power-puff-girls","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-the-power-puff-girls","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41905004773475,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SR05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484959031395,"product_id":7414224814179,"position":5,"created_at":"2024-05-05T14:17:26+08:00","updated_at":"2024-05-05T14:17:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477b01ea318d762413d482fd427790ecc75f8a7b_aa0affe7-e772-4a6e-acf7-541ab534e1c2.webp?v=1714889846","variant_ids":[41905004773475]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - The Powerpuff Girls - 花花 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-SR05","featured_media":{"alt":null,"id":23890272419939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477b01ea318d762413d482fd427790ecc75f8a7b_aa0affe7-e772-4a6e-acf7-541ab534e1c2.webp?v=1714889846"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905005101155,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SR05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484960931939,"product_id":7414224814179,"position":6,"created_at":"2024-05-05T14:17:28+08:00","updated_at":"2024-05-05T14:17:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be3eef38199a216e96ed04dea1fbcebff963caf4_7e550a29-fdbc-4fbe-8aa5-3237fbd9804b.webp?v=1714889848","variant_ids":[41905005101155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - The Powerpuff Girls - 花花 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-SR05","featured_media":{"alt":null,"id":23890274418787,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be3eef38199a216e96ed04dea1fbcebff963caf4_7e550a29-fdbc-4fbe-8aa5-3237fbd9804b.webp?v=1714889848"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d1d8a977a559b559d34c5671a61eb401053b6da_e1a52c78-bdcf-4ec7-b888-59b0dbd60ff9.webp?v=1714889835","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/072d53e2ef05538371d5355970afd7eb62bf53da_d207e836-7fab-42bb-9de4-a755fbfbf14a.webp?v=1714889838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77ae50f8f541b3f68069d1f1b4d92aa13330e3e9_9ae763af-0d1a-492d-9e77-357c6b407d04.webp?v=1714889840","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10f06d0ffc5ec08a194d8024aee5b94d5f074816_51693111-1877-418c-aea5-ac0f49f72b5c.webp?v=1714889843","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477b01ea318d762413d482fd427790ecc75f8a7b_aa0affe7-e772-4a6e-acf7-541ab534e1c2.webp?v=1714889846","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be3eef38199a216e96ed04dea1fbcebff963caf4_7e550a29-fdbc-4fbe-8aa5-3237fbd9804b.webp?v=1714889848","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/770a1d20e34eb223fff604ca902c4020ceca3d29_76c962be-7b5d-4ee1-b25b-4d4b9d2f9304.webp?v=1714889851","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00b2bc591f9d58c508d97abb5d981fd64da9602b_f22b128c-0a1c-48c0-a310-c6e5df10f6da.webp?v=1714889853","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55e1aece9727f68687a081b5f0255bc8dbb57477_0b5d2778-3a50-41f8-a766-d4020a024586.webp?v=1714889855","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbb101d5ce067fcffbf0f5d14f112e5a2a953b22_d2592450-5608-4bc4-bb4b-dc7a6d1032cb.webp?v=1714889858","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0b547392c97b7f76a10b2247c76f335c35cb3a8_53a1dbb8-0ee3-4362-98c4-8cc94e2e99ac.webp?v=1714889861"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d1d8a977a559b559d34c5671a61eb401053b6da_e1a52c78-bdcf-4ec7-b888-59b0dbd60ff9.webp?v=1714889835","options":["color"],"media":[{"alt":null,"id":23890266325091,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d1d8a977a559b559d34c5671a61eb401053b6da_e1a52c78-bdcf-4ec7-b888-59b0dbd60ff9.webp?v=1714889835"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d1d8a977a559b559d34c5671a61eb401053b6da_e1a52c78-bdcf-4ec7-b888-59b0dbd60ff9.webp?v=1714889835","width":2000},{"alt":null,"id":23890266554467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/072d53e2ef05538371d5355970afd7eb62bf53da_d207e836-7fab-42bb-9de4-a755fbfbf14a.webp?v=1714889838"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/072d53e2ef05538371d5355970afd7eb62bf53da_d207e836-7fab-42bb-9de4-a755fbfbf14a.webp?v=1714889838","width":2000},{"alt":null,"id":23890267340899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77ae50f8f541b3f68069d1f1b4d92aa13330e3e9_9ae763af-0d1a-492d-9e77-357c6b407d04.webp?v=1714889840"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77ae50f8f541b3f68069d1f1b4d92aa13330e3e9_9ae763af-0d1a-492d-9e77-357c6b407d04.webp?v=1714889840","width":2000},{"alt":null,"id":23890269831267,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10f06d0ffc5ec08a194d8024aee5b94d5f074816_51693111-1877-418c-aea5-ac0f49f72b5c.webp?v=1714889843"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10f06d0ffc5ec08a194d8024aee5b94d5f074816_51693111-1877-418c-aea5-ac0f49f72b5c.webp?v=1714889843","width":2000},{"alt":null,"id":23890272419939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477b01ea318d762413d482fd427790ecc75f8a7b_aa0affe7-e772-4a6e-acf7-541ab534e1c2.webp?v=1714889846"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477b01ea318d762413d482fd427790ecc75f8a7b_aa0affe7-e772-4a6e-acf7-541ab534e1c2.webp?v=1714889846","width":2000},{"alt":null,"id":23890274418787,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be3eef38199a216e96ed04dea1fbcebff963caf4_7e550a29-fdbc-4fbe-8aa5-3237fbd9804b.webp?v=1714889848"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be3eef38199a216e96ed04dea1fbcebff963caf4_7e550a29-fdbc-4fbe-8aa5-3237fbd9804b.webp?v=1714889848","width":2000},{"alt":null,"id":23890277138531,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/770a1d20e34eb223fff604ca902c4020ceca3d29_76c962be-7b5d-4ee1-b25b-4d4b9d2f9304.webp?v=1714889851"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/770a1d20e34eb223fff604ca902c4020ceca3d29_76c962be-7b5d-4ee1-b25b-4d4b9d2f9304.webp?v=1714889851","width":2000},{"alt":null,"id":23890279006307,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00b2bc591f9d58c508d97abb5d981fd64da9602b_f22b128c-0a1c-48c0-a310-c6e5df10f6da.webp?v=1714889853"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00b2bc591f9d58c508d97abb5d981fd64da9602b_f22b128c-0a1c-48c0-a310-c6e5df10f6da.webp?v=1714889853","width":2000},{"alt":null,"id":23890281103459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55e1aece9727f68687a081b5f0255bc8dbb57477_0b5d2778-3a50-41f8-a766-d4020a024586.webp?v=1714889855"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55e1aece9727f68687a081b5f0255bc8dbb57477_0b5d2778-3a50-41f8-a766-d4020a024586.webp?v=1714889855","width":2000},{"alt":null,"id":23890283233379,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbb101d5ce067fcffbf0f5d14f112e5a2a953b22_d2592450-5608-4bc4-bb4b-dc7a6d1032cb.webp?v=1714889858"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbb101d5ce067fcffbf0f5d14f112e5a2a953b22_d2592450-5608-4bc4-bb4b-dc7a6d1032cb.webp?v=1714889858","width":2000},{"alt":null,"id":23890285756515,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0b547392c97b7f76a10b2247c76f335c35cb3a8_53a1dbb8-0ee3-4362-98c4-8cc94e2e99ac.webp?v=1714889861"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0b547392c97b7f76a10b2247c76f335c35cb3a8_53a1dbb8-0ee3-4362-98c4-8cc94e2e99ac.webp?v=1714889861","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41905004773475,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SR05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484959031395,"product_id":7414224814179,"position":5,"created_at":"2024-05-05T14:17:26+08:00","updated_at":"2024-05-05T14:17:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477b01ea318d762413d482fd427790ecc75f8a7b_aa0affe7-e772-4a6e-acf7-541ab534e1c2.webp?v=1714889846","variant_ids":[41905004773475]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - The Powerpuff Girls - 花花 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-SR05","featured_media":{"alt":null,"id":23890272419939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477b01ea318d762413d482fd427790ecc75f8a7b_aa0affe7-e772-4a6e-acf7-541ab534e1c2.webp?v=1714889846"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905005101155,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SR05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484960931939,"product_id":7414224814179,"position":6,"created_at":"2024-05-05T14:17:28+08:00","updated_at":"2024-05-05T14:17:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be3eef38199a216e96ed04dea1fbcebff963caf4_7e550a29-fdbc-4fbe-8aa5-3237fbd9804b.webp?v=1714889848","variant_ids":[41905005101155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - The Powerpuff Girls - 花花 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-SR05","featured_media":{"alt":null,"id":23890274418787,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be3eef38199a216e96ed04dea1fbcebff963caf4_7e550a29-fdbc-4fbe-8aa5-3237fbd9804b.webp?v=1714889848"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41905004773475,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SR05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484959031395,"product_id":7414224814179,"position":5,"created_at":"2024-05-05T14:17:26+08:00","updated_at":"2024-05-05T14:17:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477b01ea318d762413d482fd427790ecc75f8a7b_aa0affe7-e772-4a6e-acf7-541ab534e1c2.webp?v=1714889846","variant_ids":[41905004773475]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - The Powerpuff Girls - 花花 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-SR05","featured_media":{"alt":null,"id":23890272419939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477b01ea318d762413d482fd427790ecc75f8a7b_aa0affe7-e772-4a6e-acf7-541ab534e1c2.webp?v=1714889846"}},"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: "停產" }