$product = {"id":7408505061475,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 小丑","handle":"iphone-12-pro-max-mod-nx-printable-sb14","description":null,"published_at":"2024-06-11T16:39:07+08:00","created_at":"2024-05-03T15:39:50+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":41886245584995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31472453320803,"product_id":7408505061475,"position":10,"created_at":"2024-05-03T15:40:15+08:00","updated_at":"2024-05-03T15:40:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa223b2633bb0c19661fc576cc16ae6c188d048b_0d40f990-afdf-42ae-8b39-5cd203f191f8.webp?v=1714722015","variant_ids":[41886245584995]},"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-SB14","featured_media":{"alt":null,"id":23877370413155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa223b2633bb0c19661fc576cc16ae6c188d048b_0d40f990-afdf-42ae-8b39-5cd203f191f8.webp?v=1714722015"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4b0a28eee8475424513389e71da71cd375b49fd_d7daeba5-ac4c-4f11-a1e2-e2904f8c17d7.webp?v=1714721992","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8611ec82c465caf1876f5c0aed9d2e972cbd6b27_5a075f06-335d-40a7-bc6c-9497347dd76b.webp?v=1714721995","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af69a75fa778c3493444b32692a33db0b7a777d9_a9b332d5-4ba6-4337-90c7-a02934f04fa0.webp?v=1714721997","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99ef26936fd5d8aa04b0a17f00a6664428fe892c_8b36b76d-c981-4497-a010-84400cc3b425.webp?v=1714722000","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19897cf894065ff7f41fb9f18e6641c5cf886ad4_47ca0f49-69c8-46cf-9b1b-675b4b11f13b.webp?v=1714722002","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c72426dcc0569e69addc1f50e775d3518dd74890_9ed50025-8fd3-4ba1-a297-bb37ef4682af.webp?v=1714722005","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e1484448ccbe053f9724d34e65cf3efeed6dbba_86abd966-c391-48a4-bd43-12bb47e2eace.webp?v=1714722007","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7730d7db6321ea1c26b61d0ed89af5ad5a63835d_d259fb89-e2fa-4b4c-bd7f-fea3811f376f.webp?v=1714722010","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48568022918387cb4a91ab5cf992190a4ba80857_21a3487f-a413-42e6-8adc-40e274f0884b.webp?v=1714722012","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa223b2633bb0c19661fc576cc16ae6c188d048b_0d40f990-afdf-42ae-8b39-5cd203f191f8.webp?v=1714722015"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4b0a28eee8475424513389e71da71cd375b49fd_d7daeba5-ac4c-4f11-a1e2-e2904f8c17d7.webp?v=1714721992","options":["color"],"media":[{"alt":null,"id":23877365301347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4b0a28eee8475424513389e71da71cd375b49fd_d7daeba5-ac4c-4f11-a1e2-e2904f8c17d7.webp?v=1714721992"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4b0a28eee8475424513389e71da71cd375b49fd_d7daeba5-ac4c-4f11-a1e2-e2904f8c17d7.webp?v=1714721992","width":2000},{"alt":null,"id":23877365825635,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8611ec82c465caf1876f5c0aed9d2e972cbd6b27_5a075f06-335d-40a7-bc6c-9497347dd76b.webp?v=1714721995"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8611ec82c465caf1876f5c0aed9d2e972cbd6b27_5a075f06-335d-40a7-bc6c-9497347dd76b.webp?v=1714721995","width":2000},{"alt":null,"id":23877366448227,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af69a75fa778c3493444b32692a33db0b7a777d9_a9b332d5-4ba6-4337-90c7-a02934f04fa0.webp?v=1714721997"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af69a75fa778c3493444b32692a33db0b7a777d9_a9b332d5-4ba6-4337-90c7-a02934f04fa0.webp?v=1714721997","width":2000},{"alt":null,"id":23877367038051,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99ef26936fd5d8aa04b0a17f00a6664428fe892c_8b36b76d-c981-4497-a010-84400cc3b425.webp?v=1714722000"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99ef26936fd5d8aa04b0a17f00a6664428fe892c_8b36b76d-c981-4497-a010-84400cc3b425.webp?v=1714722000","width":2000},{"alt":null,"id":23877367464035,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19897cf894065ff7f41fb9f18e6641c5cf886ad4_47ca0f49-69c8-46cf-9b1b-675b4b11f13b.webp?v=1714722002"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19897cf894065ff7f41fb9f18e6641c5cf886ad4_47ca0f49-69c8-46cf-9b1b-675b4b11f13b.webp?v=1714722002","width":2000},{"alt":null,"id":23877367922787,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c72426dcc0569e69addc1f50e775d3518dd74890_9ed50025-8fd3-4ba1-a297-bb37ef4682af.webp?v=1714722005"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c72426dcc0569e69addc1f50e775d3518dd74890_9ed50025-8fd3-4ba1-a297-bb37ef4682af.webp?v=1714722005","width":2000},{"alt":null,"id":23877368545379,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e1484448ccbe053f9724d34e65cf3efeed6dbba_86abd966-c391-48a4-bd43-12bb47e2eace.webp?v=1714722007"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e1484448ccbe053f9724d34e65cf3efeed6dbba_86abd966-c391-48a4-bd43-12bb47e2eace.webp?v=1714722007","width":2000},{"alt":null,"id":23877369233507,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7730d7db6321ea1c26b61d0ed89af5ad5a63835d_d259fb89-e2fa-4b4c-bd7f-fea3811f376f.webp?v=1714722010"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7730d7db6321ea1c26b61d0ed89af5ad5a63835d_d259fb89-e2fa-4b4c-bd7f-fea3811f376f.webp?v=1714722010","width":2000},{"alt":null,"id":23877369692259,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48568022918387cb4a91ab5cf992190a4ba80857_21a3487f-a413-42e6-8adc-40e274f0884b.webp?v=1714722012"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48568022918387cb4a91ab5cf992190a4ba80857_21a3487f-a413-42e6-8adc-40e274f0884b.webp?v=1714722012","width":2000},{"alt":null,"id":23877370413155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa223b2633bb0c19661fc576cc16ae6c188d048b_0d40f990-afdf-42ae-8b39-5cd203f191f8.webp?v=1714722015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa223b2633bb0c19661fc576cc16ae6c188d048b_0d40f990-afdf-42ae-8b39-5cd203f191f8.webp?v=1714722015","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886245584995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31472453320803,"product_id":7408505061475,"position":10,"created_at":"2024-05-03T15:40:15+08:00","updated_at":"2024-05-03T15:40:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa223b2633bb0c19661fc576cc16ae6c188d048b_0d40f990-afdf-42ae-8b39-5cd203f191f8.webp?v=1714722015","variant_ids":[41886245584995]},"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-SB14","featured_media":{"alt":null,"id":23877370413155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa223b2633bb0c19661fc576cc16ae6c188d048b_0d40f990-afdf-42ae-8b39-5cd203f191f8.webp?v=1714722015"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886245584995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31472453320803,"product_id":7408505061475,"position":10,"created_at":"2024-05-03T15:40:15+08:00","updated_at":"2024-05-03T15:40:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa223b2633bb0c19661fc576cc16ae6c188d048b_0d40f990-afdf-42ae-8b39-5cd203f191f8.webp?v=1714722015","variant_ids":[41886245584995]},"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-SB14","featured_media":{"alt":null,"id":23877370413155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa223b2633bb0c19661fc576cc16ae6c188d048b_0d40f990-afdf-42ae-8b39-5cd203f191f8.webp?v=1714722015"}},"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: "停產" }