$product = {"id":7414551576675,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 漫畫風格","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sb02","description":null,"published_at":"2024-06-11T17:51:57+08:00","created_at":"2024-05-05T14:29:55+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-batman","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":41907299680355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485739237475,"product_id":7414551576675,"position":7,"created_at":"2024-05-05T14:30:11+08:00","updated_at":"2024-05-05T14:30:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d1efefc3d906bfa2b2ac7e8bee9a3adb02f3f31_11221bef-cee2-493c-a550-f11079ef47b3.webp?v=1714890611","variant_ids":[41907299680355]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 漫畫風格 - 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-SB02","featured_media":{"alt":null,"id":23891063472227,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d1efefc3d906bfa2b2ac7e8bee9a3adb02f3f31_11221bef-cee2-493c-a550-f11079ef47b3.webp?v=1714890611"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907300204643,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485743923299,"product_id":7414551576675,"position":10,"created_at":"2024-05-05T14:30:18+08:00","updated_at":"2024-05-05T14:30:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/841fbfb2343fa76fa94f81454b4b229e1c6b7893_2303870a-ac15-4e25-a465-1d9bdc81cbb7.webp?v=1714890618","variant_ids":[41907300204643]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 漫畫風格 - 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-SB02","featured_media":{"alt":null,"id":23891068944483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/841fbfb2343fa76fa94f81454b4b229e1c6b7893_2303870a-ac15-4e25-a465-1d9bdc81cbb7.webp?v=1714890618"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61361a7ee303736a8b7a2797da37be8ede48f7bb_177817f0-5e2a-4f17-9f40-07719d12661e.webp?v=1714890597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8357d3f80850138b979c30fdbf2fe4fa43b35785_02c35a70-9e7b-4f80-ab29-72be9957990b.webp?v=1714890599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8ab91e4c486946f14216f32860e8372a6910a4a_5c07a10f-c1b0-4691-9309-191a9c5c6793.webp?v=1714890602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60a4c9a2e2622a876ed2d17c4e2fc80c4895cf5f_12d364ad-78df-456b-976b-3c598eb51f28.webp?v=1714890604","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d57b62be838edd6db502c21d6c0eb5161bed5974_1bd1c2fd-6b1e-413c-ad3b-daa443b6ecb0.webp?v=1714890606","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/070d5f295196b822196ff596a23a3eb4d3bc6b06_0bbb9722-02fb-4d9b-9d1d-62d9f9b4f7c2.webp?v=1714890609","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d1efefc3d906bfa2b2ac7e8bee9a3adb02f3f31_11221bef-cee2-493c-a550-f11079ef47b3.webp?v=1714890611","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/793435cfcae2550848f064dcc9bf17caa6c9e9c4_bcd49ac0-5a1d-4fad-adc2-20bf53a8b445.webp?v=1714890613","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a3763357b470dd83d4c4bc251dc29a112c97a0d_32d49a3f-b50f-471f-840e-a272d6fcb704.webp?v=1714890616","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/841fbfb2343fa76fa94f81454b4b229e1c6b7893_2303870a-ac15-4e25-a465-1d9bdc81cbb7.webp?v=1714890618","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95ef5f10393216ead3076b31951849d8739b79ad_a085f3d2-4f73-4c3d-ad40-acf2a2e7539e.webp?v=1714890621"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61361a7ee303736a8b7a2797da37be8ede48f7bb_177817f0-5e2a-4f17-9f40-07719d12661e.webp?v=1714890597","options":["color"],"media":[{"alt":null,"id":23891053183075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61361a7ee303736a8b7a2797da37be8ede48f7bb_177817f0-5e2a-4f17-9f40-07719d12661e.webp?v=1714890597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61361a7ee303736a8b7a2797da37be8ede48f7bb_177817f0-5e2a-4f17-9f40-07719d12661e.webp?v=1714890597","width":2000},{"alt":null,"id":23891054985315,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8357d3f80850138b979c30fdbf2fe4fa43b35785_02c35a70-9e7b-4f80-ab29-72be9957990b.webp?v=1714890599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8357d3f80850138b979c30fdbf2fe4fa43b35785_02c35a70-9e7b-4f80-ab29-72be9957990b.webp?v=1714890599","width":2000},{"alt":null,"id":23891056951395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8ab91e4c486946f14216f32860e8372a6910a4a_5c07a10f-c1b0-4691-9309-191a9c5c6793.webp?v=1714890602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8ab91e4c486946f14216f32860e8372a6910a4a_5c07a10f-c1b0-4691-9309-191a9c5c6793.webp?v=1714890602","width":2000},{"alt":null,"id":23891058589795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60a4c9a2e2622a876ed2d17c4e2fc80c4895cf5f_12d364ad-78df-456b-976b-3c598eb51f28.webp?v=1714890604"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60a4c9a2e2622a876ed2d17c4e2fc80c4895cf5f_12d364ad-78df-456b-976b-3c598eb51f28.webp?v=1714890604","width":2000},{"alt":null,"id":23891060490339,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d57b62be838edd6db502c21d6c0eb5161bed5974_1bd1c2fd-6b1e-413c-ad3b-daa443b6ecb0.webp?v=1714890606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d57b62be838edd6db502c21d6c0eb5161bed5974_1bd1c2fd-6b1e-413c-ad3b-daa443b6ecb0.webp?v=1714890606","width":2000},{"alt":null,"id":23891061964899,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/070d5f295196b822196ff596a23a3eb4d3bc6b06_0bbb9722-02fb-4d9b-9d1d-62d9f9b4f7c2.webp?v=1714890609"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/070d5f295196b822196ff596a23a3eb4d3bc6b06_0bbb9722-02fb-4d9b-9d1d-62d9f9b4f7c2.webp?v=1714890609","width":2000},{"alt":null,"id":23891063472227,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d1efefc3d906bfa2b2ac7e8bee9a3adb02f3f31_11221bef-cee2-493c-a550-f11079ef47b3.webp?v=1714890611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d1efefc3d906bfa2b2ac7e8bee9a3adb02f3f31_11221bef-cee2-493c-a550-f11079ef47b3.webp?v=1714890611","width":2000},{"alt":null,"id":23891065340003,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/793435cfcae2550848f064dcc9bf17caa6c9e9c4_bcd49ac0-5a1d-4fad-adc2-20bf53a8b445.webp?v=1714890613"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/793435cfcae2550848f064dcc9bf17caa6c9e9c4_bcd49ac0-5a1d-4fad-adc2-20bf53a8b445.webp?v=1714890613","width":2000},{"alt":null,"id":23891067109475,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a3763357b470dd83d4c4bc251dc29a112c97a0d_32d49a3f-b50f-471f-840e-a272d6fcb704.webp?v=1714890616"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a3763357b470dd83d4c4bc251dc29a112c97a0d_32d49a3f-b50f-471f-840e-a272d6fcb704.webp?v=1714890616","width":2000},{"alt":null,"id":23891068944483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/841fbfb2343fa76fa94f81454b4b229e1c6b7893_2303870a-ac15-4e25-a465-1d9bdc81cbb7.webp?v=1714890618"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/841fbfb2343fa76fa94f81454b4b229e1c6b7893_2303870a-ac15-4e25-a465-1d9bdc81cbb7.webp?v=1714890618","width":2000},{"alt":null,"id":23891070845027,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95ef5f10393216ead3076b31951849d8739b79ad_a085f3d2-4f73-4c3d-ad40-acf2a2e7539e.webp?v=1714890621"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95ef5f10393216ead3076b31951849d8739b79ad_a085f3d2-4f73-4c3d-ad40-acf2a2e7539e.webp?v=1714890621","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41907299680355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485739237475,"product_id":7414551576675,"position":7,"created_at":"2024-05-05T14:30:11+08:00","updated_at":"2024-05-05T14:30:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d1efefc3d906bfa2b2ac7e8bee9a3adb02f3f31_11221bef-cee2-493c-a550-f11079ef47b3.webp?v=1714890611","variant_ids":[41907299680355]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 漫畫風格 - 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-SB02","featured_media":{"alt":null,"id":23891063472227,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d1efefc3d906bfa2b2ac7e8bee9a3adb02f3f31_11221bef-cee2-493c-a550-f11079ef47b3.webp?v=1714890611"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907300204643,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485743923299,"product_id":7414551576675,"position":10,"created_at":"2024-05-05T14:30:18+08:00","updated_at":"2024-05-05T14:30:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/841fbfb2343fa76fa94f81454b4b229e1c6b7893_2303870a-ac15-4e25-a465-1d9bdc81cbb7.webp?v=1714890618","variant_ids":[41907300204643]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 漫畫風格 - 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-SB02","featured_media":{"alt":null,"id":23891068944483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/841fbfb2343fa76fa94f81454b4b229e1c6b7893_2303870a-ac15-4e25-a465-1d9bdc81cbb7.webp?v=1714890618"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41907299680355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485739237475,"product_id":7414551576675,"position":7,"created_at":"2024-05-05T14:30:11+08:00","updated_at":"2024-05-05T14:30:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d1efefc3d906bfa2b2ac7e8bee9a3adb02f3f31_11221bef-cee2-493c-a550-f11079ef47b3.webp?v=1714890611","variant_ids":[41907299680355]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 漫畫風格 - 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-SB02","featured_media":{"alt":null,"id":23891063472227,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d1efefc3d906bfa2b2ac7e8bee9a3adb02f3f31_11221bef-cee2-493c-a550-f11079ef47b3.webp?v=1714890611"}},"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: "停產" }