$product = {"id":7414311944291,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 蝙蝠俠出任務","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sb06","description":null,"published_at":"2024-06-11T17:50:43+08:00","created_at":"2024-05-05T14:21:29+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":41905642635363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485151019107,"product_id":7414311944291,"position":9,"created_at":"2024-05-05T14:21:51+08:00","updated_at":"2024-05-05T14:21:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3539cf1186e9553b9c78e9b6cfc71d1a1e63ce_3dbe8053-578c-4dcc-9920-9a119fb97117.webp?v=1714890111","variant_ids":[41905642635363]},"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-SB06","featured_media":{"alt":null,"id":23890466439267,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3539cf1186e9553b9c78e9b6cfc71d1a1e63ce_3dbe8053-578c-4dcc-9920-9a119fb97117.webp?v=1714890111"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905643585635,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485140992099,"product_id":7414311944291,"position":5,"created_at":"2024-05-05T14:21:41+08:00","updated_at":"2024-05-05T14:21:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/460e8ca209f68b773b0296d0dd25ac5c112d8c90_1a73a4ec-0777-4eb5-8fd4-2b0020a8a28e.webp?v=1714890101","variant_ids":[41905643585635]},"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-SB06","featured_media":{"alt":null,"id":23890456641635,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/460e8ca209f68b773b0296d0dd25ac5c112d8c90_1a73a4ec-0777-4eb5-8fd4-2b0020a8a28e.webp?v=1714890101"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf3bfe8db597431ad0d75a340941520d120fc0a8_8a5609b3-9ed2-46e5-9ef4-2947f17060e1.webp?v=1714890092","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fb6d7e6c39e60622a36cd2064f174a14ec39487_51e08f2e-1139-46c0-b384-bee088bf917d.webp?v=1714890094","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cd2232ad177b7b52e64c80e2a89da59eebe589c_75a1a868-6a18-458a-93b6-f6f6385d6422.webp?v=1714890097","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21fab94ba51108cd88e701031f8c7a22b929102b_6b129ef1-cbad-4f0a-baf3-65ced8f14abc.webp?v=1714890099","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/460e8ca209f68b773b0296d0dd25ac5c112d8c90_1a73a4ec-0777-4eb5-8fd4-2b0020a8a28e.webp?v=1714890101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd0a98d09d330ae0b1df02d705be39f74dba136d_9297c17a-8be0-4c6c-9d9c-59020dd216cf.webp?v=1714890104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9073f0a8f42f677d92d5f23fa0d59cde76607a3a_d59c5faf-47df-4a81-a5e9-b3bb55edc068.webp?v=1714890106","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4abb6161d712a7d7ecfa884eb77c720408c0bf0_c249c1ac-04e8-48a6-9b05-d9c8a94c993b.webp?v=1714890109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3539cf1186e9553b9c78e9b6cfc71d1a1e63ce_3dbe8053-578c-4dcc-9920-9a119fb97117.webp?v=1714890111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4ad111243ba141ce469a014eb32c6e10a3c0b8b_d571e5d5-e638-4605-9543-7124e6098f55.webp?v=1714890114","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa3c4ce3d0deb0fbcd8ff9af71bfdc78882157c_52d14159-35f6-4cdc-8c6e-93b7d1e2f0b2.webp?v=1714890116"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf3bfe8db597431ad0d75a340941520d120fc0a8_8a5609b3-9ed2-46e5-9ef4-2947f17060e1.webp?v=1714890092","options":["color"],"media":[{"alt":null,"id":23890445369443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf3bfe8db597431ad0d75a340941520d120fc0a8_8a5609b3-9ed2-46e5-9ef4-2947f17060e1.webp?v=1714890092"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf3bfe8db597431ad0d75a340941520d120fc0a8_8a5609b3-9ed2-46e5-9ef4-2947f17060e1.webp?v=1714890092","width":2000},{"alt":null,"id":23890448253027,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fb6d7e6c39e60622a36cd2064f174a14ec39487_51e08f2e-1139-46c0-b384-bee088bf917d.webp?v=1714890094"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fb6d7e6c39e60622a36cd2064f174a14ec39487_51e08f2e-1139-46c0-b384-bee088bf917d.webp?v=1714890094","width":2000},{"alt":null,"id":23890451431523,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cd2232ad177b7b52e64c80e2a89da59eebe589c_75a1a868-6a18-458a-93b6-f6f6385d6422.webp?v=1714890097"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cd2232ad177b7b52e64c80e2a89da59eebe589c_75a1a868-6a18-458a-93b6-f6f6385d6422.webp?v=1714890097","width":2000},{"alt":null,"id":23890453954659,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21fab94ba51108cd88e701031f8c7a22b929102b_6b129ef1-cbad-4f0a-baf3-65ced8f14abc.webp?v=1714890099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21fab94ba51108cd88e701031f8c7a22b929102b_6b129ef1-cbad-4f0a-baf3-65ced8f14abc.webp?v=1714890099","width":2000},{"alt":null,"id":23890456641635,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/460e8ca209f68b773b0296d0dd25ac5c112d8c90_1a73a4ec-0777-4eb5-8fd4-2b0020a8a28e.webp?v=1714890101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/460e8ca209f68b773b0296d0dd25ac5c112d8c90_1a73a4ec-0777-4eb5-8fd4-2b0020a8a28e.webp?v=1714890101","width":2000},{"alt":null,"id":23890459066467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd0a98d09d330ae0b1df02d705be39f74dba136d_9297c17a-8be0-4c6c-9d9c-59020dd216cf.webp?v=1714890104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd0a98d09d330ae0b1df02d705be39f74dba136d_9297c17a-8be0-4c6c-9d9c-59020dd216cf.webp?v=1714890104","width":2000},{"alt":null,"id":23890461458531,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9073f0a8f42f677d92d5f23fa0d59cde76607a3a_d59c5faf-47df-4a81-a5e9-b3bb55edc068.webp?v=1714890106"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9073f0a8f42f677d92d5f23fa0d59cde76607a3a_d59c5faf-47df-4a81-a5e9-b3bb55edc068.webp?v=1714890106","width":2000},{"alt":null,"id":23890463817827,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4abb6161d712a7d7ecfa884eb77c720408c0bf0_c249c1ac-04e8-48a6-9b05-d9c8a94c993b.webp?v=1714890109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4abb6161d712a7d7ecfa884eb77c720408c0bf0_c249c1ac-04e8-48a6-9b05-d9c8a94c993b.webp?v=1714890109","width":2000},{"alt":null,"id":23890466439267,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3539cf1186e9553b9c78e9b6cfc71d1a1e63ce_3dbe8053-578c-4dcc-9920-9a119fb97117.webp?v=1714890111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3539cf1186e9553b9c78e9b6cfc71d1a1e63ce_3dbe8053-578c-4dcc-9920-9a119fb97117.webp?v=1714890111","width":2000},{"alt":null,"id":23890468667491,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4ad111243ba141ce469a014eb32c6e10a3c0b8b_d571e5d5-e638-4605-9543-7124e6098f55.webp?v=1714890114"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4ad111243ba141ce469a014eb32c6e10a3c0b8b_d571e5d5-e638-4605-9543-7124e6098f55.webp?v=1714890114","width":2000},{"alt":null,"id":23890470666339,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa3c4ce3d0deb0fbcd8ff9af71bfdc78882157c_52d14159-35f6-4cdc-8c6e-93b7d1e2f0b2.webp?v=1714890116"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa3c4ce3d0deb0fbcd8ff9af71bfdc78882157c_52d14159-35f6-4cdc-8c6e-93b7d1e2f0b2.webp?v=1714890116","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41905642635363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485151019107,"product_id":7414311944291,"position":9,"created_at":"2024-05-05T14:21:51+08:00","updated_at":"2024-05-05T14:21:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3539cf1186e9553b9c78e9b6cfc71d1a1e63ce_3dbe8053-578c-4dcc-9920-9a119fb97117.webp?v=1714890111","variant_ids":[41905642635363]},"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-SB06","featured_media":{"alt":null,"id":23890466439267,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3539cf1186e9553b9c78e9b6cfc71d1a1e63ce_3dbe8053-578c-4dcc-9920-9a119fb97117.webp?v=1714890111"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905643585635,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485140992099,"product_id":7414311944291,"position":5,"created_at":"2024-05-05T14:21:41+08:00","updated_at":"2024-05-05T14:21:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/460e8ca209f68b773b0296d0dd25ac5c112d8c90_1a73a4ec-0777-4eb5-8fd4-2b0020a8a28e.webp?v=1714890101","variant_ids":[41905643585635]},"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-SB06","featured_media":{"alt":null,"id":23890456641635,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/460e8ca209f68b773b0296d0dd25ac5c112d8c90_1a73a4ec-0777-4eb5-8fd4-2b0020a8a28e.webp?v=1714890101"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41905642635363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485151019107,"product_id":7414311944291,"position":9,"created_at":"2024-05-05T14:21:51+08:00","updated_at":"2024-05-05T14:21:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3539cf1186e9553b9c78e9b6cfc71d1a1e63ce_3dbe8053-578c-4dcc-9920-9a119fb97117.webp?v=1714890111","variant_ids":[41905642635363]},"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-SB06","featured_media":{"alt":null,"id":23890466439267,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb3539cf1186e9553b9c78e9b6cfc71d1a1e63ce_3dbe8053-578c-4dcc-9920-9a119fb97117.webp?v=1714890111"}},"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: "停產" }