$product = {"id":7414148530275,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 雨愛灌溉","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-yb08","description":null,"published_at":"2024-06-11T17:49:26+08:00","created_at":"2024-05-05T14:13:01+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":41904450961507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31484784705635,"product_id":7414148530275,"position":6,"created_at":"2024-05-05T14:13:16+08:00","updated_at":"2024-05-05T14:13:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a158f520b4a7763903c2edebd9e1b9960a4484e_ca87b326-5e4b-437e-8ffb-2216ecbaa019.webp?v=1714889596","variant_ids":[41904450961507]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 雨愛灌溉 - 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-YB08","featured_media":{"alt":null,"id":23890080071779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a158f520b4a7763903c2edebd9e1b9960a4484e_ca87b326-5e4b-437e-8ffb-2216ecbaa019.webp?v=1714889596"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904451256419,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31484789096547,"product_id":7414148530275,"position":9,"created_at":"2024-05-05T14:13:23+08:00","updated_at":"2024-05-05T14:13:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b83863cb7dbb696ad470f347ec6117227fcd241b_a33ec7b4-df40-48da-abf2-95e11d8a60d9.webp?v=1714889603","variant_ids":[41904451256419]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 雨愛灌溉 - 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-YB08","featured_media":{"alt":null,"id":23890084724835,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b83863cb7dbb696ad470f347ec6117227fcd241b_a33ec7b4-df40-48da-abf2-95e11d8a60d9.webp?v=1714889603"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2e3d6123c388099cd44fbf7d76a37dad900ceae_e00a2bb3-7738-4ecd-b150-654c446dbed6.webp?v=1714889584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03f0eb905c58aaab8792fdf7ce646795e19239ee_b309223f-e60a-44a0-a8f7-53acf42dd886.webp?v=1714889586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec567f96397ab6a6d9fabbb5b4819efd0e9ea492_646606d5-cb42-4d74-b8bd-1e51d29f4db3.webp?v=1714889589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38b68ffd31a76f3a3dfb7f77da36a6a3d60beceb_cd90ec17-1b31-4357-b1ac-4e2e30692999.webp?v=1714889591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/343b389e12526b34a4a2e5e6ec692ef2021d0045_1bf30e28-27ad-4d2e-a787-5bd811d93bc5.webp?v=1714889593","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a158f520b4a7763903c2edebd9e1b9960a4484e_ca87b326-5e4b-437e-8ffb-2216ecbaa019.webp?v=1714889596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27864a159f2f20f6f0182fd5add63d1a4ec60bd4_1567317e-6e15-449e-bcc1-4e13c009427d.webp?v=1714889598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa53aa4c2f065808194ceb51ae175d038ca4777e_bde36f09-b71e-4bc2-8de7-10ac6a46fc55.webp?v=1714889600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b83863cb7dbb696ad470f347ec6117227fcd241b_a33ec7b4-df40-48da-abf2-95e11d8a60d9.webp?v=1714889603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e819f11634d59b801b6a8bd07bffa82cc3ae6d_235038eb-cdc2-4b17-8847-9ebce63d5bff.webp?v=1714889605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d53f10d40a0e6e5c5a4fd268c5421a60784bb136_aeb766c2-95e3-48c9-b425-8ab553150326.webp?v=1714889607"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2e3d6123c388099cd44fbf7d76a37dad900ceae_e00a2bb3-7738-4ecd-b150-654c446dbed6.webp?v=1714889584","options":["color"],"media":[{"alt":null,"id":23890072764515,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2e3d6123c388099cd44fbf7d76a37dad900ceae_e00a2bb3-7738-4ecd-b150-654c446dbed6.webp?v=1714889584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2e3d6123c388099cd44fbf7d76a37dad900ceae_e00a2bb3-7738-4ecd-b150-654c446dbed6.webp?v=1714889584","width":2000},{"alt":null,"id":23890073845859,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03f0eb905c58aaab8792fdf7ce646795e19239ee_b309223f-e60a-44a0-a8f7-53acf42dd886.webp?v=1714889586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03f0eb905c58aaab8792fdf7ce646795e19239ee_b309223f-e60a-44a0-a8f7-53acf42dd886.webp?v=1714889586","width":2000},{"alt":null,"id":23890075910243,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec567f96397ab6a6d9fabbb5b4819efd0e9ea492_646606d5-cb42-4d74-b8bd-1e51d29f4db3.webp?v=1714889589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec567f96397ab6a6d9fabbb5b4819efd0e9ea492_646606d5-cb42-4d74-b8bd-1e51d29f4db3.webp?v=1714889589","width":2000},{"alt":null,"id":23890077188195,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38b68ffd31a76f3a3dfb7f77da36a6a3d60beceb_cd90ec17-1b31-4357-b1ac-4e2e30692999.webp?v=1714889591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38b68ffd31a76f3a3dfb7f77da36a6a3d60beceb_cd90ec17-1b31-4357-b1ac-4e2e30692999.webp?v=1714889591","width":2000},{"alt":null,"id":23890078564451,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/343b389e12526b34a4a2e5e6ec692ef2021d0045_1bf30e28-27ad-4d2e-a787-5bd811d93bc5.webp?v=1714889593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/343b389e12526b34a4a2e5e6ec692ef2021d0045_1bf30e28-27ad-4d2e-a787-5bd811d93bc5.webp?v=1714889593","width":2000},{"alt":null,"id":23890080071779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a158f520b4a7763903c2edebd9e1b9960a4484e_ca87b326-5e4b-437e-8ffb-2216ecbaa019.webp?v=1714889596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a158f520b4a7763903c2edebd9e1b9960a4484e_ca87b326-5e4b-437e-8ffb-2216ecbaa019.webp?v=1714889596","width":2000},{"alt":null,"id":23890081382499,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27864a159f2f20f6f0182fd5add63d1a4ec60bd4_1567317e-6e15-449e-bcc1-4e13c009427d.webp?v=1714889598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27864a159f2f20f6f0182fd5add63d1a4ec60bd4_1567317e-6e15-449e-bcc1-4e13c009427d.webp?v=1714889598","width":2000},{"alt":null,"id":23890082922595,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa53aa4c2f065808194ceb51ae175d038ca4777e_bde36f09-b71e-4bc2-8de7-10ac6a46fc55.webp?v=1714889600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa53aa4c2f065808194ceb51ae175d038ca4777e_bde36f09-b71e-4bc2-8de7-10ac6a46fc55.webp?v=1714889600","width":2000},{"alt":null,"id":23890084724835,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b83863cb7dbb696ad470f347ec6117227fcd241b_a33ec7b4-df40-48da-abf2-95e11d8a60d9.webp?v=1714889603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b83863cb7dbb696ad470f347ec6117227fcd241b_a33ec7b4-df40-48da-abf2-95e11d8a60d9.webp?v=1714889603","width":2000},{"alt":null,"id":23890086625379,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e819f11634d59b801b6a8bd07bffa82cc3ae6d_235038eb-cdc2-4b17-8847-9ebce63d5bff.webp?v=1714889605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e819f11634d59b801b6a8bd07bffa82cc3ae6d_235038eb-cdc2-4b17-8847-9ebce63d5bff.webp?v=1714889605","width":2000},{"alt":null,"id":23890088296547,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d53f10d40a0e6e5c5a4fd268c5421a60784bb136_aeb766c2-95e3-48c9-b425-8ab553150326.webp?v=1714889607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d53f10d40a0e6e5c5a4fd268c5421a60784bb136_aeb766c2-95e3-48c9-b425-8ab553150326.webp?v=1714889607","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41904450961507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31484784705635,"product_id":7414148530275,"position":6,"created_at":"2024-05-05T14:13:16+08:00","updated_at":"2024-05-05T14:13:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a158f520b4a7763903c2edebd9e1b9960a4484e_ca87b326-5e4b-437e-8ffb-2216ecbaa019.webp?v=1714889596","variant_ids":[41904450961507]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 雨愛灌溉 - 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-YB08","featured_media":{"alt":null,"id":23890080071779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a158f520b4a7763903c2edebd9e1b9960a4484e_ca87b326-5e4b-437e-8ffb-2216ecbaa019.webp?v=1714889596"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904451256419,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31484789096547,"product_id":7414148530275,"position":9,"created_at":"2024-05-05T14:13:23+08:00","updated_at":"2024-05-05T14:13:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b83863cb7dbb696ad470f347ec6117227fcd241b_a33ec7b4-df40-48da-abf2-95e11d8a60d9.webp?v=1714889603","variant_ids":[41904451256419]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 雨愛灌溉 - 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-YB08","featured_media":{"alt":null,"id":23890084724835,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b83863cb7dbb696ad470f347ec6117227fcd241b_a33ec7b4-df40-48da-abf2-95e11d8a60d9.webp?v=1714889603"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41904450961507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31484784705635,"product_id":7414148530275,"position":6,"created_at":"2024-05-05T14:13:16+08:00","updated_at":"2024-05-05T14:13:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a158f520b4a7763903c2edebd9e1b9960a4484e_ca87b326-5e4b-437e-8ffb-2216ecbaa019.webp?v=1714889596","variant_ids":[41904450961507]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 雨愛灌溉 - 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-YB08","featured_media":{"alt":null,"id":23890080071779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a158f520b4a7763903c2edebd9e1b9960a4484e_ca87b326-5e4b-437e-8ffb-2216ecbaa019.webp?v=1714889596"}},"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: "停產" }