$product = {"id":7414504783971,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 黑白畫風-蝙蝠俠","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sb12","description":null,"published_at":"2024-06-11T17:51:44+08:00","created_at":"2024-05-05T14:28:20+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":41907013976163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485644341347,"product_id":7414504783971,"position":2,"created_at":"2024-05-05T14:28:25+08:00","updated_at":"2024-05-05T14:28:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/790fb0b01c0fcd7babd173d2520e4146d2239854_4ec893ba-b347-4f05-8e97-e6e838e345bf.webp?v=1714890505","variant_ids":[41907013976163]},"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-SB12","featured_media":{"alt":null,"id":23890960810083,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/790fb0b01c0fcd7babd173d2520e4146d2239854_4ec893ba-b347-4f05-8e97-e6e838e345bf.webp?v=1714890505"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907014697059,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485656367203,"product_id":7414504783971,"position":8,"created_at":"2024-05-05T14:28:39+08:00","updated_at":"2024-05-05T14:28:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b6ac07b64fe1443f77a33864283ee2eab129b2b_4e2dc0ef-deb4-4523-ade5-efd14a77511f.webp?v=1714890519","variant_ids":[41907014697059]},"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-SB12","featured_media":{"alt":null,"id":23890973360227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b6ac07b64fe1443f77a33864283ee2eab129b2b_4e2dc0ef-deb4-4523-ade5-efd14a77511f.webp?v=1714890519"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59689db7d3776649e3ee7d5638629827309f351e_b4890365-44c3-4137-9c4b-dcf8efbf0da3.webp?v=1714890503","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/790fb0b01c0fcd7babd173d2520e4146d2239854_4ec893ba-b347-4f05-8e97-e6e838e345bf.webp?v=1714890505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8d1a488ac7c25c5a7e37a856823940d6bb1da81_0a9a1098-778c-4818-877d-f724671c60f5.webp?v=1714890507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/106c6c7ceea6c9427b419ec5cfffb0102be073a9_08224317-db8f-40e2-b0fb-55cdb5ae911e.webp?v=1714890510","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6e4a21d77f6502800a77d04f44b9323c781a1b1_266e3d33-e7fc-4e83-9617-0bcffb9c5b85.webp?v=1714890512","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc8cd74c51f25735f36c897c4d909ce111ce3923_e1c41ab7-21d9-40ac-ac51-e78614e5c3bb.webp?v=1714890514","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a88bf8f33d76de501b681594fe6dfb133697e6_405405e1-6ce2-49b7-927d-afd4dd96bb9b.webp?v=1714890516","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b6ac07b64fe1443f77a33864283ee2eab129b2b_4e2dc0ef-deb4-4523-ade5-efd14a77511f.webp?v=1714890519","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f3c2e99138400c2f6f6fe29fb2a882ded559143_57893753-bceb-448c-a976-e860924a1cd2.webp?v=1714890521","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/350e7a409678a7e1099d56a6bee4faa3364a6f45_370d76b0-cf1b-414f-b363-061f484e6df9.webp?v=1714890523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3fb9827d3c38ad14da0f80629ac462b3541e92_6810c310-6079-4e37-8562-9b5888ea7855.webp?v=1714890525"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59689db7d3776649e3ee7d5638629827309f351e_b4890365-44c3-4137-9c4b-dcf8efbf0da3.webp?v=1714890503","options":["color"],"media":[{"alt":null,"id":23890958483555,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59689db7d3776649e3ee7d5638629827309f351e_b4890365-44c3-4137-9c4b-dcf8efbf0da3.webp?v=1714890503"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59689db7d3776649e3ee7d5638629827309f351e_b4890365-44c3-4137-9c4b-dcf8efbf0da3.webp?v=1714890503","width":2000},{"alt":null,"id":23890960810083,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/790fb0b01c0fcd7babd173d2520e4146d2239854_4ec893ba-b347-4f05-8e97-e6e838e345bf.webp?v=1714890505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/790fb0b01c0fcd7babd173d2520e4146d2239854_4ec893ba-b347-4f05-8e97-e6e838e345bf.webp?v=1714890505","width":2000},{"alt":null,"id":23890962546787,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8d1a488ac7c25c5a7e37a856823940d6bb1da81_0a9a1098-778c-4818-877d-f724671c60f5.webp?v=1714890507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8d1a488ac7c25c5a7e37a856823940d6bb1da81_0a9a1098-778c-4818-877d-f724671c60f5.webp?v=1714890507","width":2000},{"alt":null,"id":23890964381795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/106c6c7ceea6c9427b419ec5cfffb0102be073a9_08224317-db8f-40e2-b0fb-55cdb5ae911e.webp?v=1714890510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/106c6c7ceea6c9427b419ec5cfffb0102be073a9_08224317-db8f-40e2-b0fb-55cdb5ae911e.webp?v=1714890510","width":2000},{"alt":null,"id":23890966446179,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6e4a21d77f6502800a77d04f44b9323c781a1b1_266e3d33-e7fc-4e83-9617-0bcffb9c5b85.webp?v=1714890512"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6e4a21d77f6502800a77d04f44b9323c781a1b1_266e3d33-e7fc-4e83-9617-0bcffb9c5b85.webp?v=1714890512","width":2000},{"alt":null,"id":23890968543331,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc8cd74c51f25735f36c897c4d909ce111ce3923_e1c41ab7-21d9-40ac-ac51-e78614e5c3bb.webp?v=1714890514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc8cd74c51f25735f36c897c4d909ce111ce3923_e1c41ab7-21d9-40ac-ac51-e78614e5c3bb.webp?v=1714890514","width":2000},{"alt":null,"id":23890970968163,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a88bf8f33d76de501b681594fe6dfb133697e6_405405e1-6ce2-49b7-927d-afd4dd96bb9b.webp?v=1714890516"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a88bf8f33d76de501b681594fe6dfb133697e6_405405e1-6ce2-49b7-927d-afd4dd96bb9b.webp?v=1714890516","width":2000},{"alt":null,"id":23890973360227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b6ac07b64fe1443f77a33864283ee2eab129b2b_4e2dc0ef-deb4-4523-ade5-efd14a77511f.webp?v=1714890519"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b6ac07b64fe1443f77a33864283ee2eab129b2b_4e2dc0ef-deb4-4523-ade5-efd14a77511f.webp?v=1714890519","width":2000},{"alt":null,"id":23890975522915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f3c2e99138400c2f6f6fe29fb2a882ded559143_57893753-bceb-448c-a976-e860924a1cd2.webp?v=1714890521"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f3c2e99138400c2f6f6fe29fb2a882ded559143_57893753-bceb-448c-a976-e860924a1cd2.webp?v=1714890521","width":2000},{"alt":null,"id":23890977718371,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/350e7a409678a7e1099d56a6bee4faa3364a6f45_370d76b0-cf1b-414f-b363-061f484e6df9.webp?v=1714890523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/350e7a409678a7e1099d56a6bee4faa3364a6f45_370d76b0-cf1b-414f-b363-061f484e6df9.webp?v=1714890523","width":2000},{"alt":null,"id":23890980012131,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3fb9827d3c38ad14da0f80629ac462b3541e92_6810c310-6079-4e37-8562-9b5888ea7855.webp?v=1714890525"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3fb9827d3c38ad14da0f80629ac462b3541e92_6810c310-6079-4e37-8562-9b5888ea7855.webp?v=1714890525","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41907013976163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485644341347,"product_id":7414504783971,"position":2,"created_at":"2024-05-05T14:28:25+08:00","updated_at":"2024-05-05T14:28:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/790fb0b01c0fcd7babd173d2520e4146d2239854_4ec893ba-b347-4f05-8e97-e6e838e345bf.webp?v=1714890505","variant_ids":[41907013976163]},"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-SB12","featured_media":{"alt":null,"id":23890960810083,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/790fb0b01c0fcd7babd173d2520e4146d2239854_4ec893ba-b347-4f05-8e97-e6e838e345bf.webp?v=1714890505"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907014697059,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485656367203,"product_id":7414504783971,"position":8,"created_at":"2024-05-05T14:28:39+08:00","updated_at":"2024-05-05T14:28:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b6ac07b64fe1443f77a33864283ee2eab129b2b_4e2dc0ef-deb4-4523-ade5-efd14a77511f.webp?v=1714890519","variant_ids":[41907014697059]},"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-SB12","featured_media":{"alt":null,"id":23890973360227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b6ac07b64fe1443f77a33864283ee2eab129b2b_4e2dc0ef-deb4-4523-ade5-efd14a77511f.webp?v=1714890519"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41907013976163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485644341347,"product_id":7414504783971,"position":2,"created_at":"2024-05-05T14:28:25+08:00","updated_at":"2024-05-05T14:28:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/790fb0b01c0fcd7babd173d2520e4146d2239854_4ec893ba-b347-4f05-8e97-e6e838e345bf.webp?v=1714890505","variant_ids":[41907013976163]},"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-SB12","featured_media":{"alt":null,"id":23890960810083,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/790fb0b01c0fcd7babd173d2520e4146d2239854_4ec893ba-b347-4f05-8e97-e6e838e345bf.webp?v=1714890505"}},"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: "停產" }