$product = {"id":7408475930723,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Look - 大自然的傑作(斯瓦爾巴冰川)","handle":"iphone-12-pro-max-mod-nx-printable-af10","description":null,"published_at":"2024-06-11T16:38:17+08:00","created_at":"2024-05-03T15:34:01+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-look","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":41885910040675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31472373629027,"product_id":7408475930723,"position":5,"created_at":"2024-05-03T15:34:13+08:00","updated_at":"2024-05-03T15:34:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4e59d89d1ac17db809dc77014c07675beffa44b_209d45cb-6f72-4594-8d3e-e50c137cc4c0.webp?v=1714721653","variant_ids":[41885910040675]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Look - 大自然的傑作(斯瓦爾巴冰川) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-AF10","featured_media":{"alt":null,"id":23877290590307,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4e59d89d1ac17db809dc77014c07675beffa44b_209d45cb-6f72-4594-8d3e-e50c137cc4c0.webp?v=1714721653"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f6a92daafd18fd154caf50e846a872e881c631e_5a6c07cb-9bc2-4fca-94d6-bcf67493f676.webp?v=1714721643","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68435ca49b937fa2464362e830c4ee5c2f69828b_82ff387d-0e2d-463d-94b1-69704f957a7f.webp?v=1714721646","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79c31ec2828f5e4b1b150d1a662a7f7749318d97_2b67a8dc-721d-4e99-880e-1e856e5ec88f.webp?v=1714721648","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d40adc2d93e58313d3f88ab93063533223b3ac5_cd656669-a533-4beb-8869-8a1b94a97534.webp?v=1714721651","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4e59d89d1ac17db809dc77014c07675beffa44b_209d45cb-6f72-4594-8d3e-e50c137cc4c0.webp?v=1714721653","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af7119a068697673854d2752d8cd28544ddd66f5_85381094-b88f-4da7-ae96-f17396d011f2.webp?v=1714721656","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2523b826fee232261aabed3106751ea8e59b2caf_7c4f0fa6-3d6f-4cf8-af32-9463e14be282.webp?v=1714721659","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55686b59519dcde111b94c8d811f47becc355772_3d586e3e-b704-44f9-86c0-be77d90d4db8.webp?v=1714721661","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01715a77c4bde8136400a3a3fecce82195367882_9ab556b5-1244-4d37-85ee-44ecac6839d4.webp?v=1714721664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a241aeb0844bf02038f1f46e665d0b3d96e9e48_bf238ab3-2178-458e-8d97-7e73cfb976d7.webp?v=1714721666"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f6a92daafd18fd154caf50e846a872e881c631e_5a6c07cb-9bc2-4fca-94d6-bcf67493f676.webp?v=1714721643","options":["color"],"media":[{"alt":null,"id":23877288525923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f6a92daafd18fd154caf50e846a872e881c631e_5a6c07cb-9bc2-4fca-94d6-bcf67493f676.webp?v=1714721643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f6a92daafd18fd154caf50e846a872e881c631e_5a6c07cb-9bc2-4fca-94d6-bcf67493f676.webp?v=1714721643","width":2000},{"alt":null,"id":23877288853603,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68435ca49b937fa2464362e830c4ee5c2f69828b_82ff387d-0e2d-463d-94b1-69704f957a7f.webp?v=1714721646"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68435ca49b937fa2464362e830c4ee5c2f69828b_82ff387d-0e2d-463d-94b1-69704f957a7f.webp?v=1714721646","width":2000},{"alt":null,"id":23877289508963,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79c31ec2828f5e4b1b150d1a662a7f7749318d97_2b67a8dc-721d-4e99-880e-1e856e5ec88f.webp?v=1714721648"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79c31ec2828f5e4b1b150d1a662a7f7749318d97_2b67a8dc-721d-4e99-880e-1e856e5ec88f.webp?v=1714721648","width":2000},{"alt":null,"id":23877290000483,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d40adc2d93e58313d3f88ab93063533223b3ac5_cd656669-a533-4beb-8869-8a1b94a97534.webp?v=1714721651"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d40adc2d93e58313d3f88ab93063533223b3ac5_cd656669-a533-4beb-8869-8a1b94a97534.webp?v=1714721651","width":2000},{"alt":null,"id":23877290590307,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4e59d89d1ac17db809dc77014c07675beffa44b_209d45cb-6f72-4594-8d3e-e50c137cc4c0.webp?v=1714721653"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4e59d89d1ac17db809dc77014c07675beffa44b_209d45cb-6f72-4594-8d3e-e50c137cc4c0.webp?v=1714721653","width":2000},{"alt":null,"id":23877291049059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af7119a068697673854d2752d8cd28544ddd66f5_85381094-b88f-4da7-ae96-f17396d011f2.webp?v=1714721656"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af7119a068697673854d2752d8cd28544ddd66f5_85381094-b88f-4da7-ae96-f17396d011f2.webp?v=1714721656","width":2000},{"alt":null,"id":23877291737187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2523b826fee232261aabed3106751ea8e59b2caf_7c4f0fa6-3d6f-4cf8-af32-9463e14be282.webp?v=1714721659"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2523b826fee232261aabed3106751ea8e59b2caf_7c4f0fa6-3d6f-4cf8-af32-9463e14be282.webp?v=1714721659","width":2000},{"alt":null,"id":23877292195939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55686b59519dcde111b94c8d811f47becc355772_3d586e3e-b704-44f9-86c0-be77d90d4db8.webp?v=1714721661"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55686b59519dcde111b94c8d811f47becc355772_3d586e3e-b704-44f9-86c0-be77d90d4db8.webp?v=1714721661","width":2000},{"alt":null,"id":23877292687459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01715a77c4bde8136400a3a3fecce82195367882_9ab556b5-1244-4d37-85ee-44ecac6839d4.webp?v=1714721664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01715a77c4bde8136400a3a3fecce82195367882_9ab556b5-1244-4d37-85ee-44ecac6839d4.webp?v=1714721664","width":2000},{"alt":null,"id":23877293080675,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a241aeb0844bf02038f1f46e665d0b3d96e9e48_bf238ab3-2178-458e-8d97-7e73cfb976d7.webp?v=1714721666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a241aeb0844bf02038f1f46e665d0b3d96e9e48_bf238ab3-2178-458e-8d97-7e73cfb976d7.webp?v=1714721666","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885910040675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31472373629027,"product_id":7408475930723,"position":5,"created_at":"2024-05-03T15:34:13+08:00","updated_at":"2024-05-03T15:34:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4e59d89d1ac17db809dc77014c07675beffa44b_209d45cb-6f72-4594-8d3e-e50c137cc4c0.webp?v=1714721653","variant_ids":[41885910040675]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Look - 大自然的傑作(斯瓦爾巴冰川) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-AF10","featured_media":{"alt":null,"id":23877290590307,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4e59d89d1ac17db809dc77014c07675beffa44b_209d45cb-6f72-4594-8d3e-e50c137cc4c0.webp?v=1714721653"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885910040675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31472373629027,"product_id":7408475930723,"position":5,"created_at":"2024-05-03T15:34:13+08:00","updated_at":"2024-05-03T15:34:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4e59d89d1ac17db809dc77014c07675beffa44b_209d45cb-6f72-4594-8d3e-e50c137cc4c0.webp?v=1714721653","variant_ids":[41885910040675]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Look - 大自然的傑作(斯瓦爾巴冰川) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-AF10","featured_media":{"alt":null,"id":23877290590307,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4e59d89d1ac17db809dc77014c07675beffa44b_209d45cb-6f72-4594-8d3e-e50c137cc4c0.webp?v=1714721653"}},"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: "停產" }