$product = {"id":7408521576547,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 經典Logo","handle":"iphone-12-pro-max-mod-nx-printable-sb11","description":null,"published_at":"2024-06-11T16:39:35+08:00","created_at":"2024-05-03T15:42:59+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":41886433280099,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31472491724899,"product_id":7408521576547,"position":5,"created_at":"2024-05-03T15:43:10+08:00","updated_at":"2024-05-03T15:43:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a659ef106a63937eff9e8939cae94409c702d4_a7314d81-c333-4f41-a667-4527bc21cede.webp?v=1714722191","variant_ids":[41886433280099]},"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-SB11","featured_media":{"alt":null,"id":23877408981091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a659ef106a63937eff9e8939cae94409c702d4_a7314d81-c333-4f41-a667-4527bc21cede.webp?v=1714722191"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/701aba9ea98e58b6f76185eeb14ed3b558d129d7_1d5c3eaa-c0ac-4822-9cfb-8ee2a5762cff.webp?v=1714722181","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5a5a948b889e6a5b253946aab27757d1b6b400c_9ca3d33c-b231-4939-a996-d7b13d5ae632.webp?v=1714722184","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e53fb096c8c1a56d8864b5d653e2c9e9a561eb7f_eeadcdbd-e32a-4ed8-9293-ee389e1a6c17.webp?v=1714722186","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9538aa7e82354c2decfa376b743874c15da99b7b_654bfb3c-e973-4fa7-99b8-c61b6db9f5b6.webp?v=1714722188","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a659ef106a63937eff9e8939cae94409c702d4_a7314d81-c333-4f41-a667-4527bc21cede.webp?v=1714722191","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6646ae504134e0b8fb036b2588faecc848662277_f5a14402-6130-4f8e-8c31-c00f4e5221f0.webp?v=1714722193","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e8bc39f49da1cd97b63847838c9ffb657797635_a89422c1-fb2a-4adf-92ed-70f55e60ba57.webp?v=1714722195","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c69b4140ebb156f620143dc6bb289e24e65fbd49_541a9ef5-6865-403b-9e94-0dee1b4287dc.webp?v=1714722197","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1fe9d3d0a3dd3e3c4ff08692ee5a5c74c26c2f_e76a2e33-66a1-447e-ad85-85d7c62a1880.webp?v=1714722200","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a01315df007ed591b0c0f173f638aa8f0368ed89_814d4297-c5e5-4f26-9164-f3156422c349.webp?v=1714722202"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/701aba9ea98e58b6f76185eeb14ed3b558d129d7_1d5c3eaa-c0ac-4822-9cfb-8ee2a5762cff.webp?v=1714722181","options":["color"],"media":[{"alt":null,"id":23877406785635,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/701aba9ea98e58b6f76185eeb14ed3b558d129d7_1d5c3eaa-c0ac-4822-9cfb-8ee2a5762cff.webp?v=1714722181"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/701aba9ea98e58b6f76185eeb14ed3b558d129d7_1d5c3eaa-c0ac-4822-9cfb-8ee2a5762cff.webp?v=1714722181","width":2000},{"alt":null,"id":23877407309923,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5a5a948b889e6a5b253946aab27757d1b6b400c_9ca3d33c-b231-4939-a996-d7b13d5ae632.webp?v=1714722184"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5a5a948b889e6a5b253946aab27757d1b6b400c_9ca3d33c-b231-4939-a996-d7b13d5ae632.webp?v=1714722184","width":2000},{"alt":null,"id":23877407932515,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e53fb096c8c1a56d8864b5d653e2c9e9a561eb7f_eeadcdbd-e32a-4ed8-9293-ee389e1a6c17.webp?v=1714722186"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e53fb096c8c1a56d8864b5d653e2c9e9a561eb7f_eeadcdbd-e32a-4ed8-9293-ee389e1a6c17.webp?v=1714722186","width":2000},{"alt":null,"id":23877408489571,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9538aa7e82354c2decfa376b743874c15da99b7b_654bfb3c-e973-4fa7-99b8-c61b6db9f5b6.webp?v=1714722188"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9538aa7e82354c2decfa376b743874c15da99b7b_654bfb3c-e973-4fa7-99b8-c61b6db9f5b6.webp?v=1714722188","width":2000},{"alt":null,"id":23877408981091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a659ef106a63937eff9e8939cae94409c702d4_a7314d81-c333-4f41-a667-4527bc21cede.webp?v=1714722191"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a659ef106a63937eff9e8939cae94409c702d4_a7314d81-c333-4f41-a667-4527bc21cede.webp?v=1714722191","width":2000},{"alt":null,"id":23877409538147,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6646ae504134e0b8fb036b2588faecc848662277_f5a14402-6130-4f8e-8c31-c00f4e5221f0.webp?v=1714722193"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6646ae504134e0b8fb036b2588faecc848662277_f5a14402-6130-4f8e-8c31-c00f4e5221f0.webp?v=1714722193","width":2000},{"alt":null,"id":23877409964131,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e8bc39f49da1cd97b63847838c9ffb657797635_a89422c1-fb2a-4adf-92ed-70f55e60ba57.webp?v=1714722195"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e8bc39f49da1cd97b63847838c9ffb657797635_a89422c1-fb2a-4adf-92ed-70f55e60ba57.webp?v=1714722195","width":2000},{"alt":null,"id":23877410390115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c69b4140ebb156f620143dc6bb289e24e65fbd49_541a9ef5-6865-403b-9e94-0dee1b4287dc.webp?v=1714722197"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c69b4140ebb156f620143dc6bb289e24e65fbd49_541a9ef5-6865-403b-9e94-0dee1b4287dc.webp?v=1714722197","width":2000},{"alt":null,"id":23877410848867,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1fe9d3d0a3dd3e3c4ff08692ee5a5c74c26c2f_e76a2e33-66a1-447e-ad85-85d7c62a1880.webp?v=1714722200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1fe9d3d0a3dd3e3c4ff08692ee5a5c74c26c2f_e76a2e33-66a1-447e-ad85-85d7c62a1880.webp?v=1714722200","width":2000},{"alt":null,"id":23877411373155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a01315df007ed591b0c0f173f638aa8f0368ed89_814d4297-c5e5-4f26-9164-f3156422c349.webp?v=1714722202"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a01315df007ed591b0c0f173f638aa8f0368ed89_814d4297-c5e5-4f26-9164-f3156422c349.webp?v=1714722202","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886433280099,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31472491724899,"product_id":7408521576547,"position":5,"created_at":"2024-05-03T15:43:10+08:00","updated_at":"2024-05-03T15:43:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a659ef106a63937eff9e8939cae94409c702d4_a7314d81-c333-4f41-a667-4527bc21cede.webp?v=1714722191","variant_ids":[41886433280099]},"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-SB11","featured_media":{"alt":null,"id":23877408981091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a659ef106a63937eff9e8939cae94409c702d4_a7314d81-c333-4f41-a667-4527bc21cede.webp?v=1714722191"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886433280099,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31472491724899,"product_id":7408521576547,"position":5,"created_at":"2024-05-03T15:43:10+08:00","updated_at":"2024-05-03T15:43:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a659ef106a63937eff9e8939cae94409c702d4_a7314d81-c333-4f41-a667-4527bc21cede.webp?v=1714722191","variant_ids":[41886433280099]},"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-SB11","featured_media":{"alt":null,"id":23877408981091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a659ef106a63937eff9e8939cae94409c702d4_a7314d81-c333-4f41-a667-4527bc21cede.webp?v=1714722191"}},"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: "停產" }