$product = {"id":7408437100643,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - Logo","handle":"iphone-12-pro-max-mod-nx-printable-sb16","description":null,"published_at":"2024-06-11T16:37:12+08:00","created_at":"2024-05-03T15:26:24+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-batman","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41885469802595,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31472277979235,"product_id":7408437100643,"position":5,"created_at":"2024-05-03T15:26:36+08:00","updated_at":"2024-05-03T15:26:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf9c4beec3f69c59da233625841c183240b3e929_ded2d4ea-a8f3-45ac-a5d7-ddd86996115b.webp?v=1714721196","variant_ids":[41885469802595]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - Logo - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-SB16","featured_media":{"alt":null,"id":23877194285155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf9c4beec3f69c59da233625841c183240b3e929_ded2d4ea-a8f3-45ac-a5d7-ddd86996115b.webp?v=1714721196"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bd0e1434bf2b37c6541074044be2bfbc7ea933d_7a7e6023-6cc4-4813-b710-927c9ab23b07.webp?v=1714721187","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd95cc650468d25935e4f4c3995256f1e72f7e12_70c0737a-06fc-4d3f-afb3-6e0bf09f25cd.webp?v=1714721189","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b2ebb2fa079a62eb94a623cacef8f529a54d7e1_84bba22e-a89d-4979-af06-6423f1731f24.webp?v=1714721191","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bbe45b520e19f760b4a770994e54af4501b10ad_b7ba29fd-6e65-48f3-8fbb-68f04b1c75be.webp?v=1714721194","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf9c4beec3f69c59da233625841c183240b3e929_ded2d4ea-a8f3-45ac-a5d7-ddd86996115b.webp?v=1714721196","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b945f2c904be90a11811c3515807540896fa394_8bc0b60f-e719-4cd6-a48f-8f45b3e4a8e8.webp?v=1714721198","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80dd00b57fcd64c975eeab7bdd9648c7d6b48c9c_6bac5e35-3361-4a2e-b923-78b93dc208ee.webp?v=1714721201","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a14ce011dd64020339b7dba9b447ec6b9701ae_a693c74c-eb02-4a55-8be4-d6176f36f8fc.webp?v=1714721203","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c0ca5d73856ca55c495d46cee1db6b5791b823c_6cdf1d99-be29-4bb0-9346-53f581b11a0b.webp?v=1714721205","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97be046ef8506d9c28ec28ac4ef0bea1eba02e46_6d1e7658-4d15-4ba0-b095-f43059ed46b7.webp?v=1714721208"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bd0e1434bf2b37c6541074044be2bfbc7ea933d_7a7e6023-6cc4-4813-b710-927c9ab23b07.webp?v=1714721187","options":["color"],"media":[{"alt":null,"id":23877192220771,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bd0e1434bf2b37c6541074044be2bfbc7ea933d_7a7e6023-6cc4-4813-b710-927c9ab23b07.webp?v=1714721187"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bd0e1434bf2b37c6541074044be2bfbc7ea933d_7a7e6023-6cc4-4813-b710-927c9ab23b07.webp?v=1714721187","width":2000},{"alt":null,"id":23877192679523,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd95cc650468d25935e4f4c3995256f1e72f7e12_70c0737a-06fc-4d3f-afb3-6e0bf09f25cd.webp?v=1714721189"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd95cc650468d25935e4f4c3995256f1e72f7e12_70c0737a-06fc-4d3f-afb3-6e0bf09f25cd.webp?v=1714721189","width":2000},{"alt":null,"id":23877193138275,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b2ebb2fa079a62eb94a623cacef8f529a54d7e1_84bba22e-a89d-4979-af06-6423f1731f24.webp?v=1714721191"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b2ebb2fa079a62eb94a623cacef8f529a54d7e1_84bba22e-a89d-4979-af06-6423f1731f24.webp?v=1714721191","width":2000},{"alt":null,"id":23877193891939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bbe45b520e19f760b4a770994e54af4501b10ad_b7ba29fd-6e65-48f3-8fbb-68f04b1c75be.webp?v=1714721194"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bbe45b520e19f760b4a770994e54af4501b10ad_b7ba29fd-6e65-48f3-8fbb-68f04b1c75be.webp?v=1714721194","width":2000},{"alt":null,"id":23877194285155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf9c4beec3f69c59da233625841c183240b3e929_ded2d4ea-a8f3-45ac-a5d7-ddd86996115b.webp?v=1714721196"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf9c4beec3f69c59da233625841c183240b3e929_ded2d4ea-a8f3-45ac-a5d7-ddd86996115b.webp?v=1714721196","width":2000},{"alt":null,"id":23877194809443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b945f2c904be90a11811c3515807540896fa394_8bc0b60f-e719-4cd6-a48f-8f45b3e4a8e8.webp?v=1714721198"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b945f2c904be90a11811c3515807540896fa394_8bc0b60f-e719-4cd6-a48f-8f45b3e4a8e8.webp?v=1714721198","width":2000},{"alt":null,"id":23877195235427,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80dd00b57fcd64c975eeab7bdd9648c7d6b48c9c_6bac5e35-3361-4a2e-b923-78b93dc208ee.webp?v=1714721201"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80dd00b57fcd64c975eeab7bdd9648c7d6b48c9c_6bac5e35-3361-4a2e-b923-78b93dc208ee.webp?v=1714721201","width":2000},{"alt":null,"id":23877196775523,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a14ce011dd64020339b7dba9b447ec6b9701ae_a693c74c-eb02-4a55-8be4-d6176f36f8fc.webp?v=1714721203"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a14ce011dd64020339b7dba9b447ec6b9701ae_a693c74c-eb02-4a55-8be4-d6176f36f8fc.webp?v=1714721203","width":2000},{"alt":null,"id":23877197201507,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c0ca5d73856ca55c495d46cee1db6b5791b823c_6cdf1d99-be29-4bb0-9346-53f581b11a0b.webp?v=1714721205"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c0ca5d73856ca55c495d46cee1db6b5791b823c_6cdf1d99-be29-4bb0-9346-53f581b11a0b.webp?v=1714721205","width":2000},{"alt":null,"id":23877197987939,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97be046ef8506d9c28ec28ac4ef0bea1eba02e46_6d1e7658-4d15-4ba0-b095-f43059ed46b7.webp?v=1714721208"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97be046ef8506d9c28ec28ac4ef0bea1eba02e46_6d1e7658-4d15-4ba0-b095-f43059ed46b7.webp?v=1714721208","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885469802595,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31472277979235,"product_id":7408437100643,"position":5,"created_at":"2024-05-03T15:26:36+08:00","updated_at":"2024-05-03T15:26:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf9c4beec3f69c59da233625841c183240b3e929_ded2d4ea-a8f3-45ac-a5d7-ddd86996115b.webp?v=1714721196","variant_ids":[41885469802595]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - Logo - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-SB16","featured_media":{"alt":null,"id":23877194285155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf9c4beec3f69c59da233625841c183240b3e929_ded2d4ea-a8f3-45ac-a5d7-ddd86996115b.webp?v=1714721196"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885469802595,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31472277979235,"product_id":7408437100643,"position":5,"created_at":"2024-05-03T15:26:36+08:00","updated_at":"2024-05-03T15:26:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf9c4beec3f69c59da233625841c183240b3e929_ded2d4ea-a8f3-45ac-a5d7-ddd86996115b.webp?v=1714721196","variant_ids":[41885469802595]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - Logo - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-SB16","featured_media":{"alt":null,"id":23877194285155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf9c4beec3f69c59da233625841c183240b3e929_ded2d4ea-a8f3-45ac-a5d7-ddd86996115b.webp?v=1714721196"}},"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: "停產" }