$product = {"id":7411100745827,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Batman - 小丑女圖騰","handle":"iphone-15-plus-mod-nx-magsafe-printable-sb17","description":null,"published_at":"2024-06-11T17:36:19+08:00","created_at":"2024-05-04T22:42:59+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 15 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-batman","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41894978584675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-SB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31479513546851,"product_id":7411100745827,"position":5,"created_at":"2024-05-04T22:43:11+08:00","updated_at":"2024-05-04T22:43:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bb9e9734c3048838638dc16f1606db616371266_a6482a28-7376-4c88-bd71-90ef0eca62f8.webp?v=1714833791","variant_ids":[41894978584675]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Batman - 小丑女圖騰 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-SB17","featured_media":{"alt":null,"id":23884761301091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bb9e9734c3048838638dc16f1606db616371266_a6482a28-7376-4c88-bd71-90ef0eca62f8.webp?v=1714833791"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894978715747,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-SB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31479511973987,"product_id":7411100745827,"position":2,"created_at":"2024-05-04T22:43:04+08:00","updated_at":"2024-05-04T22:43:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c0a7b26f20774c97b879aa57c7d52f9e1420f49_871002f8-a0d9-4e9b-9229-582ec967d479.webp?v=1714833784","variant_ids":[41894978715747]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Batman - 小丑女圖騰 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-SB17","featured_media":{"alt":null,"id":23884759793763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c0a7b26f20774c97b879aa57c7d52f9e1420f49_871002f8-a0d9-4e9b-9229-582ec967d479.webp?v=1714833784"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6569ee3d5e32f6b0b92a8c201a67e1bf753fa2b0_9cbc6d4c-e27f-4b93-9ce1-2acc1ae97a2b.webp?v=1714833782","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c0a7b26f20774c97b879aa57c7d52f9e1420f49_871002f8-a0d9-4e9b-9229-582ec967d479.webp?v=1714833784","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1df36013ee57443e5fd6da51e26bd524c007338b_28173e79-6007-481c-b467-eb9d76cc3502.webp?v=1714833786","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/662aa124fc429e77ca5e533f1491fa6a86a361a4_846886d6-b6f9-44cb-ae9d-cd1a0a2661d4.webp?v=1714833789","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bb9e9734c3048838638dc16f1606db616371266_a6482a28-7376-4c88-bd71-90ef0eca62f8.webp?v=1714833791","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02a8eb3b0cb3a7573e16382ad9a04bb6c5012888_46d94634-ff7f-4899-b01a-09a442142737.webp?v=1714833796","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1953192cc85bf47d2cf9dd81e62ac0417007e76c_b8487e0b-51fd-466e-ac30-4daf6d0eb747.webp?v=1714833799","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78ee89ee978c1e44ab7aa3660bb4b1427b9a5cd0_3ab5bcb9-e51a-4ba4-a9c7-0924fa11f3c5.webp?v=1714833801","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38187d849d98f83ae7ca2f38bbf841f4fa685196_5bd77738-dea9-4686-aa07-03a008c2f4cf.webp?v=1714833804"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6569ee3d5e32f6b0b92a8c201a67e1bf753fa2b0_9cbc6d4c-e27f-4b93-9ce1-2acc1ae97a2b.webp?v=1714833782","options":["color"],"media":[{"alt":null,"id":23884759203939,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6569ee3d5e32f6b0b92a8c201a67e1bf753fa2b0_9cbc6d4c-e27f-4b93-9ce1-2acc1ae97a2b.webp?v=1714833782"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6569ee3d5e32f6b0b92a8c201a67e1bf753fa2b0_9cbc6d4c-e27f-4b93-9ce1-2acc1ae97a2b.webp?v=1714833782","width":2000},{"alt":null,"id":23884759793763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c0a7b26f20774c97b879aa57c7d52f9e1420f49_871002f8-a0d9-4e9b-9229-582ec967d479.webp?v=1714833784"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c0a7b26f20774c97b879aa57c7d52f9e1420f49_871002f8-a0d9-4e9b-9229-582ec967d479.webp?v=1714833784","width":2000},{"alt":null,"id":23884760285283,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1df36013ee57443e5fd6da51e26bd524c007338b_28173e79-6007-481c-b467-eb9d76cc3502.webp?v=1714833786"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1df36013ee57443e5fd6da51e26bd524c007338b_28173e79-6007-481c-b467-eb9d76cc3502.webp?v=1714833786","width":2000},{"alt":null,"id":23884760645731,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/662aa124fc429e77ca5e533f1491fa6a86a361a4_846886d6-b6f9-44cb-ae9d-cd1a0a2661d4.webp?v=1714833789"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/662aa124fc429e77ca5e533f1491fa6a86a361a4_846886d6-b6f9-44cb-ae9d-cd1a0a2661d4.webp?v=1714833789","width":2000},{"alt":null,"id":23884761301091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bb9e9734c3048838638dc16f1606db616371266_a6482a28-7376-4c88-bd71-90ef0eca62f8.webp?v=1714833791"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bb9e9734c3048838638dc16f1606db616371266_a6482a28-7376-4c88-bd71-90ef0eca62f8.webp?v=1714833791","width":2000},{"alt":null,"id":23884762316899,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02a8eb3b0cb3a7573e16382ad9a04bb6c5012888_46d94634-ff7f-4899-b01a-09a442142737.webp?v=1714833796"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02a8eb3b0cb3a7573e16382ad9a04bb6c5012888_46d94634-ff7f-4899-b01a-09a442142737.webp?v=1714833796","width":2000},{"alt":null,"id":23884762742883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1953192cc85bf47d2cf9dd81e62ac0417007e76c_b8487e0b-51fd-466e-ac30-4daf6d0eb747.webp?v=1714833799"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1953192cc85bf47d2cf9dd81e62ac0417007e76c_b8487e0b-51fd-466e-ac30-4daf6d0eb747.webp?v=1714833799","width":2000},{"alt":null,"id":23884763398243,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78ee89ee978c1e44ab7aa3660bb4b1427b9a5cd0_3ab5bcb9-e51a-4ba4-a9c7-0924fa11f3c5.webp?v=1714833801"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78ee89ee978c1e44ab7aa3660bb4b1427b9a5cd0_3ab5bcb9-e51a-4ba4-a9c7-0924fa11f3c5.webp?v=1714833801","width":2000},{"alt":null,"id":23884763824227,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38187d849d98f83ae7ca2f38bbf841f4fa685196_5bd77738-dea9-4686-aa07-03a008c2f4cf.webp?v=1714833804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38187d849d98f83ae7ca2f38bbf841f4fa685196_5bd77738-dea9-4686-aa07-03a008c2f4cf.webp?v=1714833804","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41894978584675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-SB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31479513546851,"product_id":7411100745827,"position":5,"created_at":"2024-05-04T22:43:11+08:00","updated_at":"2024-05-04T22:43:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bb9e9734c3048838638dc16f1606db616371266_a6482a28-7376-4c88-bd71-90ef0eca62f8.webp?v=1714833791","variant_ids":[41894978584675]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Batman - 小丑女圖騰 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-SB17","featured_media":{"alt":null,"id":23884761301091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bb9e9734c3048838638dc16f1606db616371266_a6482a28-7376-4c88-bd71-90ef0eca62f8.webp?v=1714833791"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894978715747,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-SB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31479511973987,"product_id":7411100745827,"position":2,"created_at":"2024-05-04T22:43:04+08:00","updated_at":"2024-05-04T22:43:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c0a7b26f20774c97b879aa57c7d52f9e1420f49_871002f8-a0d9-4e9b-9229-582ec967d479.webp?v=1714833784","variant_ids":[41894978715747]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Batman - 小丑女圖騰 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-SB17","featured_media":{"alt":null,"id":23884759793763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c0a7b26f20774c97b879aa57c7d52f9e1420f49_871002f8-a0d9-4e9b-9229-582ec967d479.webp?v=1714833784"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41894978584675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-SB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31479513546851,"product_id":7411100745827,"position":5,"created_at":"2024-05-04T22:43:11+08:00","updated_at":"2024-05-04T22:43:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bb9e9734c3048838638dc16f1606db616371266_a6482a28-7376-4c88-bd71-90ef0eca62f8.webp?v=1714833791","variant_ids":[41894978584675]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Batman - 小丑女圖騰 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-SB17","featured_media":{"alt":null,"id":23884761301091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bb9e9734c3048838638dc16f1606db616371266_a6482a28-7376-4c88-bd71-90ef0eca62f8.webp?v=1714833791"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }