$product = {"id":7407839969379,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 小丑拳擊學院","handle":"iphone-14-plus-mod-nx-printable-sb07","description":null,"published_at":"2024-06-11T16:24:18+08:00","created_at":"2024-05-03T11:00:19+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 14 Plus","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":41879489183843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470498971747,"product_id":7407839969379,"position":4,"created_at":"2024-05-03T11:00:30+08:00","updated_at":"2024-05-03T11:00:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db5116cea8942ca252bc443421320608055b3f4_5bcdfc4a-5865-4101-a9f0-45c05d44c564.webp?v=1714705230","variant_ids":[41879489183843]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 小丑拳擊學院 - 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":"NPB0126124-SB07","featured_media":{"alt":null,"id":23875402727523,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db5116cea8942ca252bc443421320608055b3f4_5bcdfc4a-5865-4101-a9f0-45c05d44c564.webp?v=1714705230"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f471a144e3984d48376c9a8f6e76642b151c6a_878c4391-3ad2-48b2-a226-60b5e146d27b.webp?v=1714705222","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a85d0cd497886420d567ebf5e2118019925833c4_57d56862-f97d-4338-bf29-e594bf2da89c.webp?v=1714705225","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39f411cbcd1180815e3ce4b4806da8b09ee19ae1_df684e96-169d-424f-9d55-b5f7f9fb881c.webp?v=1714705227","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db5116cea8942ca252bc443421320608055b3f4_5bcdfc4a-5865-4101-a9f0-45c05d44c564.webp?v=1714705230","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63b4541d7c4cfbe118c64502a439af5ffca5df15_81f5d0d4-0bdc-417c-8ac6-9501a86eb32e.webp?v=1714705232","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22dd920828e5d08e7ea11b3bb57b6a464282de2b_0cb4634f-ba34-43e6-9dd1-2a0b58101653.webp?v=1714705235","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25ab2252fd93be65070a4d2514b32aed4bfa9df1_92211510-1114-4dfd-8ced-23eaf4b54d59.webp?v=1714705238","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d1e0369e5d79398d9705a095437834d84b60e34_1b3a03a4-b664-497c-8bf2-23b3d85532c2.webp?v=1714705240","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0258404aac71e62dd1ea91c3d18df9a3d352a089_51b01528-9516-4ab8-a4a4-b2496999e54f.webp?v=1714705243","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/421bfbaa53e286e3f3fab7f9f01d2f8f2ba6afd4_d069ba1a-a8fe-43b9-a046-bdb2070d2ccc.webp?v=1714705245"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f471a144e3984d48376c9a8f6e76642b151c6a_878c4391-3ad2-48b2-a226-60b5e146d27b.webp?v=1714705222","options":["color"],"media":[{"alt":null,"id":23875401515107,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f471a144e3984d48376c9a8f6e76642b151c6a_878c4391-3ad2-48b2-a226-60b5e146d27b.webp?v=1714705222"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f471a144e3984d48376c9a8f6e76642b151c6a_878c4391-3ad2-48b2-a226-60b5e146d27b.webp?v=1714705222","width":2000},{"alt":null,"id":23875401973859,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a85d0cd497886420d567ebf5e2118019925833c4_57d56862-f97d-4338-bf29-e594bf2da89c.webp?v=1714705225"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a85d0cd497886420d567ebf5e2118019925833c4_57d56862-f97d-4338-bf29-e594bf2da89c.webp?v=1714705225","width":2000},{"alt":null,"id":23875402334307,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39f411cbcd1180815e3ce4b4806da8b09ee19ae1_df684e96-169d-424f-9d55-b5f7f9fb881c.webp?v=1714705227"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39f411cbcd1180815e3ce4b4806da8b09ee19ae1_df684e96-169d-424f-9d55-b5f7f9fb881c.webp?v=1714705227","width":2000},{"alt":null,"id":23875402727523,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db5116cea8942ca252bc443421320608055b3f4_5bcdfc4a-5865-4101-a9f0-45c05d44c564.webp?v=1714705230"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db5116cea8942ca252bc443421320608055b3f4_5bcdfc4a-5865-4101-a9f0-45c05d44c564.webp?v=1714705230","width":2000},{"alt":null,"id":23875403186275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63b4541d7c4cfbe118c64502a439af5ffca5df15_81f5d0d4-0bdc-417c-8ac6-9501a86eb32e.webp?v=1714705232"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63b4541d7c4cfbe118c64502a439af5ffca5df15_81f5d0d4-0bdc-417c-8ac6-9501a86eb32e.webp?v=1714705232","width":2000},{"alt":null,"id":23875403579491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22dd920828e5d08e7ea11b3bb57b6a464282de2b_0cb4634f-ba34-43e6-9dd1-2a0b58101653.webp?v=1714705235"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22dd920828e5d08e7ea11b3bb57b6a464282de2b_0cb4634f-ba34-43e6-9dd1-2a0b58101653.webp?v=1714705235","width":2000},{"alt":null,"id":23875404136547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25ab2252fd93be65070a4d2514b32aed4bfa9df1_92211510-1114-4dfd-8ced-23eaf4b54d59.webp?v=1714705238"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25ab2252fd93be65070a4d2514b32aed4bfa9df1_92211510-1114-4dfd-8ced-23eaf4b54d59.webp?v=1714705238","width":2000},{"alt":null,"id":23875404496995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d1e0369e5d79398d9705a095437834d84b60e34_1b3a03a4-b664-497c-8bf2-23b3d85532c2.webp?v=1714705240"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d1e0369e5d79398d9705a095437834d84b60e34_1b3a03a4-b664-497c-8bf2-23b3d85532c2.webp?v=1714705240","width":2000},{"alt":null,"id":23875404890211,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0258404aac71e62dd1ea91c3d18df9a3d352a089_51b01528-9516-4ab8-a4a4-b2496999e54f.webp?v=1714705243"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0258404aac71e62dd1ea91c3d18df9a3d352a089_51b01528-9516-4ab8-a4a4-b2496999e54f.webp?v=1714705243","width":2000},{"alt":null,"id":23875405381731,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/421bfbaa53e286e3f3fab7f9f01d2f8f2ba6afd4_d069ba1a-a8fe-43b9-a046-bdb2070d2ccc.webp?v=1714705245"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/421bfbaa53e286e3f3fab7f9f01d2f8f2ba6afd4_d069ba1a-a8fe-43b9-a046-bdb2070d2ccc.webp?v=1714705245","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879489183843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470498971747,"product_id":7407839969379,"position":4,"created_at":"2024-05-03T11:00:30+08:00","updated_at":"2024-05-03T11:00:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db5116cea8942ca252bc443421320608055b3f4_5bcdfc4a-5865-4101-a9f0-45c05d44c564.webp?v=1714705230","variant_ids":[41879489183843]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 小丑拳擊學院 - 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":"NPB0126124-SB07","featured_media":{"alt":null,"id":23875402727523,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db5116cea8942ca252bc443421320608055b3f4_5bcdfc4a-5865-4101-a9f0-45c05d44c564.webp?v=1714705230"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879489183843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470498971747,"product_id":7407839969379,"position":4,"created_at":"2024-05-03T11:00:30+08:00","updated_at":"2024-05-03T11:00:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db5116cea8942ca252bc443421320608055b3f4_5bcdfc4a-5865-4101-a9f0-45c05d44c564.webp?v=1714705230","variant_ids":[41879489183843]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 小丑拳擊學院 - 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":"NPB0126124-SB07","featured_media":{"alt":null,"id":23875402727523,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db5116cea8942ca252bc443421320608055b3f4_5bcdfc4a-5865-4101-a9f0-45c05d44c564.webp?v=1714705230"}},"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: "停產" }