$product = {"id":7408491888739,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 高譚守護者","handle":"iphone-12-pro-max-mod-nx-printable-sb20","description":null,"published_at":"2024-06-11T16:38:45+08:00","created_at":"2024-05-03T15:37:10+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":41886091247715,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31472415604835,"product_id":7408491888739,"position":6,"created_at":"2024-05-03T15:37:24+08:00","updated_at":"2024-05-03T15:37:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8640838001e3b2586ff39c66a37ce059fa09d8d5_9acec174-34df-44f2-8d34-9d9acdd01de6.webp?v=1714721844","variant_ids":[41886091247715]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-SB20","featured_media":{"alt":null,"id":23877332566115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8640838001e3b2586ff39c66a37ce059fa09d8d5_9acec174-34df-44f2-8d34-9d9acdd01de6.webp?v=1714721844"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f95bdb0f9d3385172f2b1e555341159922a8c19c_581aa029-26b2-4b74-8a9c-a42688a6ed4c.webp?v=1714721832","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a37bd58b93b0b1c77c2562f5b16db439f5dc2a86_5a649d47-4838-4ff7-930a-57c7b0e8fe73.webp?v=1714721835","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87a6db5132dd2081f446d92a56600bbcbffce86c_f9b3cd9f-f4d3-4e4a-af5a-b1b77d1cc487.webp?v=1714721837","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/679902a7f23caee47ca7e75ce92ce22827ffff7f_02ed277f-fb5c-4568-a3d8-d2109d60d8cb.webp?v=1714721839","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94bbbef64ec2681f1994d6a404adeaf74a610eb0_ea0da6b4-e6bb-4a65-a5c6-ecc76860f556.webp?v=1714721842","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8640838001e3b2586ff39c66a37ce059fa09d8d5_9acec174-34df-44f2-8d34-9d9acdd01de6.webp?v=1714721844","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/131639b2a3770f4aa694b77e362af00eea3e15d8_4159c7ad-ac19-4710-9526-0604a2db1a2b.webp?v=1714721846","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ad667b957d32486f14741291903080bccc92625_0f30ddab-739d-428a-9619-854109ca365b.webp?v=1714721849","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac9c0349a59482b7aa225e4ad10da2d783e0bec_b39d1eae-99c2-4e57-9e9a-9d72ff9f9b01.webp?v=1714721851","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/312bff7cd642e83842345e4e7a71eacf6db06ffa_bc9b2670-ad64-41c4-8520-f215c14851b2.webp?v=1714721854"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f95bdb0f9d3385172f2b1e555341159922a8c19c_581aa029-26b2-4b74-8a9c-a42688a6ed4c.webp?v=1714721832","options":["color"],"media":[{"alt":null,"id":23877329748067,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f95bdb0f9d3385172f2b1e555341159922a8c19c_581aa029-26b2-4b74-8a9c-a42688a6ed4c.webp?v=1714721832"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f95bdb0f9d3385172f2b1e555341159922a8c19c_581aa029-26b2-4b74-8a9c-a42688a6ed4c.webp?v=1714721832","width":2000},{"alt":null,"id":23877330567267,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a37bd58b93b0b1c77c2562f5b16db439f5dc2a86_5a649d47-4838-4ff7-930a-57c7b0e8fe73.webp?v=1714721835"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a37bd58b93b0b1c77c2562f5b16db439f5dc2a86_5a649d47-4838-4ff7-930a-57c7b0e8fe73.webp?v=1714721835","width":2000},{"alt":null,"id":23877330927715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87a6db5132dd2081f446d92a56600bbcbffce86c_f9b3cd9f-f4d3-4e4a-af5a-b1b77d1cc487.webp?v=1714721837"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87a6db5132dd2081f446d92a56600bbcbffce86c_f9b3cd9f-f4d3-4e4a-af5a-b1b77d1cc487.webp?v=1714721837","width":2000},{"alt":null,"id":23877331583075,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/679902a7f23caee47ca7e75ce92ce22827ffff7f_02ed277f-fb5c-4568-a3d8-d2109d60d8cb.webp?v=1714721839"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/679902a7f23caee47ca7e75ce92ce22827ffff7f_02ed277f-fb5c-4568-a3d8-d2109d60d8cb.webp?v=1714721839","width":2000},{"alt":null,"id":23877332041827,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94bbbef64ec2681f1994d6a404adeaf74a610eb0_ea0da6b4-e6bb-4a65-a5c6-ecc76860f556.webp?v=1714721842"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94bbbef64ec2681f1994d6a404adeaf74a610eb0_ea0da6b4-e6bb-4a65-a5c6-ecc76860f556.webp?v=1714721842","width":2000},{"alt":null,"id":23877332566115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8640838001e3b2586ff39c66a37ce059fa09d8d5_9acec174-34df-44f2-8d34-9d9acdd01de6.webp?v=1714721844"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8640838001e3b2586ff39c66a37ce059fa09d8d5_9acec174-34df-44f2-8d34-9d9acdd01de6.webp?v=1714721844","width":2000},{"alt":null,"id":23877333057635,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/131639b2a3770f4aa694b77e362af00eea3e15d8_4159c7ad-ac19-4710-9526-0604a2db1a2b.webp?v=1714721846"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/131639b2a3770f4aa694b77e362af00eea3e15d8_4159c7ad-ac19-4710-9526-0604a2db1a2b.webp?v=1714721846","width":2000},{"alt":null,"id":23877333549155,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ad667b957d32486f14741291903080bccc92625_0f30ddab-739d-428a-9619-854109ca365b.webp?v=1714721849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ad667b957d32486f14741291903080bccc92625_0f30ddab-739d-428a-9619-854109ca365b.webp?v=1714721849","width":2000},{"alt":null,"id":23877334040675,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac9c0349a59482b7aa225e4ad10da2d783e0bec_b39d1eae-99c2-4e57-9e9a-9d72ff9f9b01.webp?v=1714721851"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac9c0349a59482b7aa225e4ad10da2d783e0bec_b39d1eae-99c2-4e57-9e9a-9d72ff9f9b01.webp?v=1714721851","width":2000},{"alt":null,"id":23877334597731,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/312bff7cd642e83842345e4e7a71eacf6db06ffa_bc9b2670-ad64-41c4-8520-f215c14851b2.webp?v=1714721854"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/312bff7cd642e83842345e4e7a71eacf6db06ffa_bc9b2670-ad64-41c4-8520-f215c14851b2.webp?v=1714721854","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886091247715,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31472415604835,"product_id":7408491888739,"position":6,"created_at":"2024-05-03T15:37:24+08:00","updated_at":"2024-05-03T15:37:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8640838001e3b2586ff39c66a37ce059fa09d8d5_9acec174-34df-44f2-8d34-9d9acdd01de6.webp?v=1714721844","variant_ids":[41886091247715]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-SB20","featured_media":{"alt":null,"id":23877332566115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8640838001e3b2586ff39c66a37ce059fa09d8d5_9acec174-34df-44f2-8d34-9d9acdd01de6.webp?v=1714721844"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886091247715,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31472415604835,"product_id":7408491888739,"position":6,"created_at":"2024-05-03T15:37:24+08:00","updated_at":"2024-05-03T15:37:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8640838001e3b2586ff39c66a37ce059fa09d8d5_9acec174-34df-44f2-8d34-9d9acdd01de6.webp?v=1714721844","variant_ids":[41886091247715]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 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":"NPB0118724-SB20","featured_media":{"alt":null,"id":23877332566115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8640838001e3b2586ff39c66a37ce059fa09d8d5_9acec174-34df-44f2-8d34-9d9acdd01de6.webp?v=1714721844"}},"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: "停產" }