$product = {"id":7411212451939,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Look - 大自然的傑作(黃石國家公園)","handle":"iphone-14-plus-mod-nx-magsafe-printable-af12","description":null,"published_at":"2024-06-11T17:38:55+08:00","created_at":"2024-05-04T23:46:25+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","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":41896057503843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-AF12","requires_shipping":true,"taxable":true,"featured_image":{"id":31479863017571,"product_id":7411212451939,"position":6,"created_at":"2024-05-04T23:46:40+08:00","updated_at":"2024-05-04T23:46:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55dad81f31c7630e1d4107ee5e58ac6af4f5f4da_aece330b-48a9-46dc-a677-5b0e8ee8b27c.webp?v=1714837600","variant_ids":[41896057503843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Look - 大自然的傑作(黃石國家公園) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-AF12","featured_media":{"alt":null,"id":23885113393251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55dad81f31c7630e1d4107ee5e58ac6af4f5f4da_aece330b-48a9-46dc-a677-5b0e8ee8b27c.webp?v=1714837600"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4de1ac3d6fe262aa6ba96987507eaf8051e9c318_b69d4ba7-9e5e-448f-a143-b16c55c83d84.webp?v=1714837588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49980cae6835d43b9f5f523266833b6d1e0cefe3_8325113d-1470-42cb-a506-3a3b18245b49.webp?v=1714837590","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af4d5638e9bc56f6b2e80e7a75df1da396cce85c_6f637b7d-1c60-4905-b071-407e6bc43cab.webp?v=1714837593","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8541c56f73f5d1e39ef9c9b960dd9ab667985b0_136a6ce8-5132-4194-9c3c-a8c418e49285.webp?v=1714837595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4613af4ea2030cf2d53bb6c99b0545184c975848_633529ca-a158-41de-bcef-cd953c0225bf.webp?v=1714837598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55dad81f31c7630e1d4107ee5e58ac6af4f5f4da_aece330b-48a9-46dc-a677-5b0e8ee8b27c.webp?v=1714837600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5b1623839becf5d7ff0530eb0c9408e03557968_bcdd6fe0-38a5-4deb-83d6-d80d33641cc7.webp?v=1714837603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9af9fcd400d4e552489c31cd68777396041c2a5b_86eb7f7e-96f9-4d11-8bd9-4ac1fca93163.webp?v=1714837605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bd32f50265d3e85c413fcfa7309935ab15215b5_f679c988-f2cc-4fe8-a58d-5195e7f7b089.webp?v=1714837607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2b815cd39608d64eabd0766131e320a07f19dec_341fecd1-4889-4810-a15f-b79b03e4f099.webp?v=1714837610"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4de1ac3d6fe262aa6ba96987507eaf8051e9c318_b69d4ba7-9e5e-448f-a143-b16c55c83d84.webp?v=1714837588","options":["color"],"media":[{"alt":null,"id":23885110083683,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4de1ac3d6fe262aa6ba96987507eaf8051e9c318_b69d4ba7-9e5e-448f-a143-b16c55c83d84.webp?v=1714837588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4de1ac3d6fe262aa6ba96987507eaf8051e9c318_b69d4ba7-9e5e-448f-a143-b16c55c83d84.webp?v=1714837588","width":2000},{"alt":null,"id":23885110607971,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49980cae6835d43b9f5f523266833b6d1e0cefe3_8325113d-1470-42cb-a506-3a3b18245b49.webp?v=1714837590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49980cae6835d43b9f5f523266833b6d1e0cefe3_8325113d-1470-42cb-a506-3a3b18245b49.webp?v=1714837590","width":2000},{"alt":null,"id":23885111165027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af4d5638e9bc56f6b2e80e7a75df1da396cce85c_6f637b7d-1c60-4905-b071-407e6bc43cab.webp?v=1714837593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af4d5638e9bc56f6b2e80e7a75df1da396cce85c_6f637b7d-1c60-4905-b071-407e6bc43cab.webp?v=1714837593","width":2000},{"alt":null,"id":23885111820387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8541c56f73f5d1e39ef9c9b960dd9ab667985b0_136a6ce8-5132-4194-9c3c-a8c418e49285.webp?v=1714837595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8541c56f73f5d1e39ef9c9b960dd9ab667985b0_136a6ce8-5132-4194-9c3c-a8c418e49285.webp?v=1714837595","width":2000},{"alt":null,"id":23885112541283,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4613af4ea2030cf2d53bb6c99b0545184c975848_633529ca-a158-41de-bcef-cd953c0225bf.webp?v=1714837598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4613af4ea2030cf2d53bb6c99b0545184c975848_633529ca-a158-41de-bcef-cd953c0225bf.webp?v=1714837598","width":2000},{"alt":null,"id":23885113393251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55dad81f31c7630e1d4107ee5e58ac6af4f5f4da_aece330b-48a9-46dc-a677-5b0e8ee8b27c.webp?v=1714837600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55dad81f31c7630e1d4107ee5e58ac6af4f5f4da_aece330b-48a9-46dc-a677-5b0e8ee8b27c.webp?v=1714837600","width":2000},{"alt":null,"id":23885113950307,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5b1623839becf5d7ff0530eb0c9408e03557968_bcdd6fe0-38a5-4deb-83d6-d80d33641cc7.webp?v=1714837603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5b1623839becf5d7ff0530eb0c9408e03557968_bcdd6fe0-38a5-4deb-83d6-d80d33641cc7.webp?v=1714837603","width":2000},{"alt":null,"id":23885114409059,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9af9fcd400d4e552489c31cd68777396041c2a5b_86eb7f7e-96f9-4d11-8bd9-4ac1fca93163.webp?v=1714837605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9af9fcd400d4e552489c31cd68777396041c2a5b_86eb7f7e-96f9-4d11-8bd9-4ac1fca93163.webp?v=1714837605","width":2000},{"alt":null,"id":23885114900579,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bd32f50265d3e85c413fcfa7309935ab15215b5_f679c988-f2cc-4fe8-a58d-5195e7f7b089.webp?v=1714837607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bd32f50265d3e85c413fcfa7309935ab15215b5_f679c988-f2cc-4fe8-a58d-5195e7f7b089.webp?v=1714837607","width":2000},{"alt":null,"id":23885115326563,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2b815cd39608d64eabd0766131e320a07f19dec_341fecd1-4889-4810-a15f-b79b03e4f099.webp?v=1714837610"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2b815cd39608d64eabd0766131e320a07f19dec_341fecd1-4889-4810-a15f-b79b03e4f099.webp?v=1714837610","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896057503843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-AF12","requires_shipping":true,"taxable":true,"featured_image":{"id":31479863017571,"product_id":7411212451939,"position":6,"created_at":"2024-05-04T23:46:40+08:00","updated_at":"2024-05-04T23:46:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55dad81f31c7630e1d4107ee5e58ac6af4f5f4da_aece330b-48a9-46dc-a677-5b0e8ee8b27c.webp?v=1714837600","variant_ids":[41896057503843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Look - 大自然的傑作(黃石國家公園) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-AF12","featured_media":{"alt":null,"id":23885113393251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55dad81f31c7630e1d4107ee5e58ac6af4f5f4da_aece330b-48a9-46dc-a677-5b0e8ee8b27c.webp?v=1714837600"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896057503843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-AF12","requires_shipping":true,"taxable":true,"featured_image":{"id":31479863017571,"product_id":7411212451939,"position":6,"created_at":"2024-05-04T23:46:40+08:00","updated_at":"2024-05-04T23:46:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55dad81f31c7630e1d4107ee5e58ac6af4f5f4da_aece330b-48a9-46dc-a677-5b0e8ee8b27c.webp?v=1714837600","variant_ids":[41896057503843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Look - 大自然的傑作(黃石國家公園) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-AF12","featured_media":{"alt":null,"id":23885113393251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55dad81f31c7630e1d4107ee5e58ac6af4f5f4da_aece330b-48a9-46dc-a677-5b0e8ee8b27c.webp?v=1714837600"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }