$product = {"id":7414533390435,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Good Luck Bear","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-yb05","description":null,"published_at":"2024-06-11T17:51:50+08:00","created_at":"2024-05-05T14:29:09+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-carebears","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":41907189153891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31485689856099,"product_id":7414533390435,"position":1,"created_at":"2024-05-05T14:29:12+08:00","updated_at":"2024-05-05T14:29:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfce5da0b2c86d8cc2343f2a0719ad5b883e2239_adcd1512-0782-41b1-909d-4d7f067edd9e.webp?v=1714890552","variant_ids":[41907189153891]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Good Luck Bear - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-YB05","featured_media":{"alt":null,"id":23891009634403,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfce5da0b2c86d8cc2343f2a0719ad5b883e2239_adcd1512-0782-41b1-909d-4d7f067edd9e.webp?v=1714890552"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907189547107,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31485712171107,"product_id":7414533390435,"position":11,"created_at":"2024-05-05T14:29:35+08:00","updated_at":"2024-05-05T14:29:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b6bb870a3449510b38f8bb198111a2ff324d91_d4584003-37f0-4b17-a561-5c8be5bcbd48.webp?v=1714890575","variant_ids":[41907189547107]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Good Luck Bear - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-YB05","featured_media":{"alt":null,"id":23891033423971,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b6bb870a3449510b38f8bb198111a2ff324d91_d4584003-37f0-4b17-a561-5c8be5bcbd48.webp?v=1714890575"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfce5da0b2c86d8cc2343f2a0719ad5b883e2239_adcd1512-0782-41b1-909d-4d7f067edd9e.webp?v=1714890552","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86fda36e2631938856852e807268dea3c9dbf198_805d9ce5-3f03-4bd6-b343-7840e2a39972.webp?v=1714890554","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7a5565b479524e35d5832d58edb58f748b6e394_de33730e-8883-4c4e-a447-77fdc7d79bc9.webp?v=1714890556","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b9b49084fbbb4c96af1cf46266ba3317c5cf8b9_13c4c04c-15e7-498c-9cb0-8de43eb958e7.webp?v=1714890558","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c68dc3230491712077995ee4be8ef50e3316529_7f576533-72a9-4f4f-8daf-e6c1188b4e51.webp?v=1714890561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4a8650da3bf3fdadd2be43287878bcea8decec4_7fa2e9af-82bc-47e5-ba3f-16f124349859.webp?v=1714890563","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10701e3cec6b173016ff7bb222a8c3c25faf8515_be61a3c8-c5e9-4a3e-a002-b9f5464dfd3f.webp?v=1714890565","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a152cfaa203067900976900560e52f8bb1af1698_4e02ea48-0434-4cbb-ba2b-a1a6d7d178c7.webp?v=1714890568","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba0277d9835d56a0045aa162af8bdd3e9aea09f4_9ddfa103-79c6-41f9-ad32-1b0a887d32dc.webp?v=1714890570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/622af39afe87a7e773becb698149c7d46f2e0e01_25a92f40-9353-48a8-9df5-83432bbd5b99.webp?v=1714890572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b6bb870a3449510b38f8bb198111a2ff324d91_d4584003-37f0-4b17-a561-5c8be5bcbd48.webp?v=1714890575"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfce5da0b2c86d8cc2343f2a0719ad5b883e2239_adcd1512-0782-41b1-909d-4d7f067edd9e.webp?v=1714890552","options":["color"],"media":[{"alt":null,"id":23891009634403,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfce5da0b2c86d8cc2343f2a0719ad5b883e2239_adcd1512-0782-41b1-909d-4d7f067edd9e.webp?v=1714890552"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfce5da0b2c86d8cc2343f2a0719ad5b883e2239_adcd1512-0782-41b1-909d-4d7f067edd9e.webp?v=1714890552","width":2000},{"alt":null,"id":23891012190307,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86fda36e2631938856852e807268dea3c9dbf198_805d9ce5-3f03-4bd6-b343-7840e2a39972.webp?v=1714890554"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86fda36e2631938856852e807268dea3c9dbf198_805d9ce5-3f03-4bd6-b343-7840e2a39972.webp?v=1714890554","width":2000},{"alt":null,"id":23891014746211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7a5565b479524e35d5832d58edb58f748b6e394_de33730e-8883-4c4e-a447-77fdc7d79bc9.webp?v=1714890556"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7a5565b479524e35d5832d58edb58f748b6e394_de33730e-8883-4c4e-a447-77fdc7d79bc9.webp?v=1714890556","width":2000},{"alt":null,"id":23891017269347,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b9b49084fbbb4c96af1cf46266ba3317c5cf8b9_13c4c04c-15e7-498c-9cb0-8de43eb958e7.webp?v=1714890558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b9b49084fbbb4c96af1cf46266ba3317c5cf8b9_13c4c04c-15e7-498c-9cb0-8de43eb958e7.webp?v=1714890558","width":2000},{"alt":null,"id":23891020120163,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c68dc3230491712077995ee4be8ef50e3316529_7f576533-72a9-4f4f-8daf-e6c1188b4e51.webp?v=1714890561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c68dc3230491712077995ee4be8ef50e3316529_7f576533-72a9-4f4f-8daf-e6c1188b4e51.webp?v=1714890561","width":2000},{"alt":null,"id":23891022577763,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4a8650da3bf3fdadd2be43287878bcea8decec4_7fa2e9af-82bc-47e5-ba3f-16f124349859.webp?v=1714890563"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4a8650da3bf3fdadd2be43287878bcea8decec4_7fa2e9af-82bc-47e5-ba3f-16f124349859.webp?v=1714890563","width":2000},{"alt":null,"id":23891025002595,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10701e3cec6b173016ff7bb222a8c3c25faf8515_be61a3c8-c5e9-4a3e-a002-b9f5464dfd3f.webp?v=1714890565"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10701e3cec6b173016ff7bb222a8c3c25faf8515_be61a3c8-c5e9-4a3e-a002-b9f5464dfd3f.webp?v=1714890565","width":2000},{"alt":null,"id":23891027099747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a152cfaa203067900976900560e52f8bb1af1698_4e02ea48-0434-4cbb-ba2b-a1a6d7d178c7.webp?v=1714890568"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a152cfaa203067900976900560e52f8bb1af1698_4e02ea48-0434-4cbb-ba2b-a1a6d7d178c7.webp?v=1714890568","width":2000},{"alt":null,"id":23891028901987,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba0277d9835d56a0045aa162af8bdd3e9aea09f4_9ddfa103-79c6-41f9-ad32-1b0a887d32dc.webp?v=1714890570"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba0277d9835d56a0045aa162af8bdd3e9aea09f4_9ddfa103-79c6-41f9-ad32-1b0a887d32dc.webp?v=1714890570","width":2000},{"alt":null,"id":23891031162979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/622af39afe87a7e773becb698149c7d46f2e0e01_25a92f40-9353-48a8-9df5-83432bbd5b99.webp?v=1714890572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/622af39afe87a7e773becb698149c7d46f2e0e01_25a92f40-9353-48a8-9df5-83432bbd5b99.webp?v=1714890572","width":2000},{"alt":null,"id":23891033423971,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b6bb870a3449510b38f8bb198111a2ff324d91_d4584003-37f0-4b17-a561-5c8be5bcbd48.webp?v=1714890575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b6bb870a3449510b38f8bb198111a2ff324d91_d4584003-37f0-4b17-a561-5c8be5bcbd48.webp?v=1714890575","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41907189153891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31485689856099,"product_id":7414533390435,"position":1,"created_at":"2024-05-05T14:29:12+08:00","updated_at":"2024-05-05T14:29:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfce5da0b2c86d8cc2343f2a0719ad5b883e2239_adcd1512-0782-41b1-909d-4d7f067edd9e.webp?v=1714890552","variant_ids":[41907189153891]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Good Luck Bear - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-YB05","featured_media":{"alt":null,"id":23891009634403,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfce5da0b2c86d8cc2343f2a0719ad5b883e2239_adcd1512-0782-41b1-909d-4d7f067edd9e.webp?v=1714890552"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907189547107,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31485712171107,"product_id":7414533390435,"position":11,"created_at":"2024-05-05T14:29:35+08:00","updated_at":"2024-05-05T14:29:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b6bb870a3449510b38f8bb198111a2ff324d91_d4584003-37f0-4b17-a561-5c8be5bcbd48.webp?v=1714890575","variant_ids":[41907189547107]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Good Luck Bear - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-YB05","featured_media":{"alt":null,"id":23891033423971,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b6bb870a3449510b38f8bb198111a2ff324d91_d4584003-37f0-4b17-a561-5c8be5bcbd48.webp?v=1714890575"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41907189153891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31485689856099,"product_id":7414533390435,"position":1,"created_at":"2024-05-05T14:29:12+08:00","updated_at":"2024-05-05T14:29:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfce5da0b2c86d8cc2343f2a0719ad5b883e2239_adcd1512-0782-41b1-909d-4d7f067edd9e.webp?v=1714890552","variant_ids":[41907189153891]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Good Luck Bear - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-YB05","featured_media":{"alt":null,"id":23891009634403,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfce5da0b2c86d8cc2343f2a0719ad5b883e2239_adcd1512-0782-41b1-909d-4d7f067edd9e.webp?v=1714890552"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (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: "停產" }