$product = {"id":7414455435363,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Best Friend Bear","handle":"iphone-13-mini-mod-nx-magsafe-printable-yb02","description":null,"published_at":"2024-06-11T17:51:24+08:00","created_at":"2024-05-05T14:26:17+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 mini","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":41906609881187,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-YB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485509140579,"product_id":7414455435363,"position":1,"created_at":"2024-05-05T14:26:19+08:00","updated_at":"2024-05-05T14:26:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33769fd5a313d258fe1b495401ed93d57306707e_98777631-4f31-4ad6-9072-a84e7fcb984b.webp?v=1714890379","variant_ids":[41906609881187]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Best Friend 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":"MPB0122824-YB02","featured_media":{"alt":null,"id":23890825740387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33769fd5a313d258fe1b495401ed93d57306707e_98777631-4f31-4ad6-9072-a84e7fcb984b.webp?v=1714890379"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906610045027,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-YB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485526311011,"product_id":7414455435363,"position":9,"created_at":"2024-05-05T14:26:37+08:00","updated_at":"2024-05-05T14:26:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7246afc308bebcb5925c165d34e1ed7753aaef24_bf768756-4cad-417c-85a7-6ec52dbbef04.webp?v=1714890397","variant_ids":[41906610045027]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Best Friend 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":"MPB0122804-YB02","featured_media":{"alt":null,"id":23890843861091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7246afc308bebcb5925c165d34e1ed7753aaef24_bf768756-4cad-417c-85a7-6ec52dbbef04.webp?v=1714890397"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906610405475,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-YB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485516185699,"product_id":7414455435363,"position":5,"created_at":"2024-05-05T14:26:28+08:00","updated_at":"2024-05-05T14:26:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8ba8dca6bfebcc4888cd8f768960f8bd0708516_682099dd-28e8-402b-ac33-8b9cdf9c3b31.webp?v=1714890388","variant_ids":[41906610405475]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Best Friend 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":"MPB01228J5-YB02","featured_media":{"alt":null,"id":23890832556131,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8ba8dca6bfebcc4888cd8f768960f8bd0708516_682099dd-28e8-402b-ac33-8b9cdf9c3b31.webp?v=1714890388"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33769fd5a313d258fe1b495401ed93d57306707e_98777631-4f31-4ad6-9072-a84e7fcb984b.webp?v=1714890379","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72c59f3b77fc0b99ddc1ce528c35f47072608e73_d27a80ce-5a09-4eeb-9571-8b0f67ae378e.webp?v=1714890382","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efc9256bd001f4007d5254d4075e538bbdfe9912_6b0897a7-2044-407d-a353-786507c23759.webp?v=1714890384","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1960a37d85c0067485dc7a45ce1f3ba9d087edf1_95568e09-e2d2-4f36-b1aa-d1a66b1eeaa2.webp?v=1714890386","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8ba8dca6bfebcc4888cd8f768960f8bd0708516_682099dd-28e8-402b-ac33-8b9cdf9c3b31.webp?v=1714890388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4deb3f4e6c0b8265f09cc575007ec98e6a665002_549b0d4e-b88a-424d-b9a7-0937bf694e2c.webp?v=1714890390","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd8cc38dd802a9247e583ba5276723f4c95a3094_314dfa2f-354d-4d60-bb84-474d583a7224.webp?v=1714890393","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9314299a5944f1dbd0de9f7bb53cc766c70febdd_5f32484d-2109-479a-b9d1-7c80c4edcd65.webp?v=1714890395","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7246afc308bebcb5925c165d34e1ed7753aaef24_bf768756-4cad-417c-85a7-6ec52dbbef04.webp?v=1714890397","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8afa26559a5104025b0518d23324360502e2d185_82137d4f-7ae8-4a9b-afa9-62176a8e9f3d.webp?v=1714890400"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33769fd5a313d258fe1b495401ed93d57306707e_98777631-4f31-4ad6-9072-a84e7fcb984b.webp?v=1714890379","options":["color"],"media":[{"alt":null,"id":23890825740387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33769fd5a313d258fe1b495401ed93d57306707e_98777631-4f31-4ad6-9072-a84e7fcb984b.webp?v=1714890379"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33769fd5a313d258fe1b495401ed93d57306707e_98777631-4f31-4ad6-9072-a84e7fcb984b.webp?v=1714890379","width":2000},{"alt":null,"id":23890827477091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72c59f3b77fc0b99ddc1ce528c35f47072608e73_d27a80ce-5a09-4eeb-9571-8b0f67ae378e.webp?v=1714890382"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72c59f3b77fc0b99ddc1ce528c35f47072608e73_d27a80ce-5a09-4eeb-9571-8b0f67ae378e.webp?v=1714890382","width":2000},{"alt":null,"id":23890829082723,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efc9256bd001f4007d5254d4075e538bbdfe9912_6b0897a7-2044-407d-a353-786507c23759.webp?v=1714890384"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efc9256bd001f4007d5254d4075e538bbdfe9912_6b0897a7-2044-407d-a353-786507c23759.webp?v=1714890384","width":2000},{"alt":null,"id":23890830786659,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1960a37d85c0067485dc7a45ce1f3ba9d087edf1_95568e09-e2d2-4f36-b1aa-d1a66b1eeaa2.webp?v=1714890386"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1960a37d85c0067485dc7a45ce1f3ba9d087edf1_95568e09-e2d2-4f36-b1aa-d1a66b1eeaa2.webp?v=1714890386","width":2000},{"alt":null,"id":23890832556131,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8ba8dca6bfebcc4888cd8f768960f8bd0708516_682099dd-28e8-402b-ac33-8b9cdf9c3b31.webp?v=1714890388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8ba8dca6bfebcc4888cd8f768960f8bd0708516_682099dd-28e8-402b-ac33-8b9cdf9c3b31.webp?v=1714890388","width":2000},{"alt":null,"id":23890834358371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4deb3f4e6c0b8265f09cc575007ec98e6a665002_549b0d4e-b88a-424d-b9a7-0937bf694e2c.webp?v=1714890390"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4deb3f4e6c0b8265f09cc575007ec98e6a665002_549b0d4e-b88a-424d-b9a7-0937bf694e2c.webp?v=1714890390","width":2000},{"alt":null,"id":23890837143651,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd8cc38dd802a9247e583ba5276723f4c95a3094_314dfa2f-354d-4d60-bb84-474d583a7224.webp?v=1714890393"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd8cc38dd802a9247e583ba5276723f4c95a3094_314dfa2f-354d-4d60-bb84-474d583a7224.webp?v=1714890393","width":2000},{"alt":null,"id":23890840584291,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9314299a5944f1dbd0de9f7bb53cc766c70febdd_5f32484d-2109-479a-b9d1-7c80c4edcd65.webp?v=1714890395"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9314299a5944f1dbd0de9f7bb53cc766c70febdd_5f32484d-2109-479a-b9d1-7c80c4edcd65.webp?v=1714890395","width":2000},{"alt":null,"id":23890843861091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7246afc308bebcb5925c165d34e1ed7753aaef24_bf768756-4cad-417c-85a7-6ec52dbbef04.webp?v=1714890397"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7246afc308bebcb5925c165d34e1ed7753aaef24_bf768756-4cad-417c-85a7-6ec52dbbef04.webp?v=1714890397","width":2000},{"alt":null,"id":23890847006819,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8afa26559a5104025b0518d23324360502e2d185_82137d4f-7ae8-4a9b-afa9-62176a8e9f3d.webp?v=1714890400"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8afa26559a5104025b0518d23324360502e2d185_82137d4f-7ae8-4a9b-afa9-62176a8e9f3d.webp?v=1714890400","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41906609881187,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-YB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485509140579,"product_id":7414455435363,"position":1,"created_at":"2024-05-05T14:26:19+08:00","updated_at":"2024-05-05T14:26:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33769fd5a313d258fe1b495401ed93d57306707e_98777631-4f31-4ad6-9072-a84e7fcb984b.webp?v=1714890379","variant_ids":[41906609881187]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Best Friend 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":"MPB0122824-YB02","featured_media":{"alt":null,"id":23890825740387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33769fd5a313d258fe1b495401ed93d57306707e_98777631-4f31-4ad6-9072-a84e7fcb984b.webp?v=1714890379"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906610045027,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-YB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485526311011,"product_id":7414455435363,"position":9,"created_at":"2024-05-05T14:26:37+08:00","updated_at":"2024-05-05T14:26:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7246afc308bebcb5925c165d34e1ed7753aaef24_bf768756-4cad-417c-85a7-6ec52dbbef04.webp?v=1714890397","variant_ids":[41906610045027]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Best Friend 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":"MPB0122804-YB02","featured_media":{"alt":null,"id":23890843861091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7246afc308bebcb5925c165d34e1ed7753aaef24_bf768756-4cad-417c-85a7-6ec52dbbef04.webp?v=1714890397"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906610405475,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-YB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485516185699,"product_id":7414455435363,"position":5,"created_at":"2024-05-05T14:26:28+08:00","updated_at":"2024-05-05T14:26:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8ba8dca6bfebcc4888cd8f768960f8bd0708516_682099dd-28e8-402b-ac33-8b9cdf9c3b31.webp?v=1714890388","variant_ids":[41906610405475]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Best Friend 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":"MPB01228J5-YB02","featured_media":{"alt":null,"id":23890832556131,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8ba8dca6bfebcc4888cd8f768960f8bd0708516_682099dd-28e8-402b-ac33-8b9cdf9c3b31.webp?v=1714890388"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41906609881187,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-YB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485509140579,"product_id":7414455435363,"position":1,"created_at":"2024-05-05T14:26:19+08:00","updated_at":"2024-05-05T14:26:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33769fd5a313d258fe1b495401ed93d57306707e_98777631-4f31-4ad6-9072-a84e7fcb984b.webp?v=1714890379","variant_ids":[41906609881187]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Best Friend 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":"MPB0122824-YB02","featured_media":{"alt":null,"id":23890825740387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33769fd5a313d258fe1b495401ed93d57306707e_98777631-4f31-4ad6-9072-a84e7fcb984b.webp?v=1714890379"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(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: "停產" }