$product = {"id":7369135423587,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Snoopy 史努比 - Chill moment","handle":"iphone-xs-max-mod-nx-printable-pl58","description":null,"published_at":"2024-06-11T16:13:02+08:00","created_at":"2024-04-23T15:31:38+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Snoopy 史努比","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-snoopy","device-iPhone XS Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-snoopy","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":41792913539171,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PL58","requires_shipping":true,"taxable":true,"featured_image":{"id":31386883457123,"product_id":7369135423587,"position":9,"created_at":"2024-04-23T15:32:00+08:00","updated_at":"2024-04-23T15:32:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2bc830bf5368bdb59b86b33fabd6766c0222fca_4bf1bc4e-77cc-4366-a81d-80757f7c0795.webp?v=1713857520","variant_ids":[41792913539171]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Snoopy 史努比 - Chill moment - 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":"NPB0108624-PL58","featured_media":{"alt":null,"id":23789121339491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2bc830bf5368bdb59b86b33fabd6766c0222fca_4bf1bc4e-77cc-4366-a81d-80757f7c0795.webp?v=1713857520"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2806a9cc3453c66b2c81743de8d048e369598120_ec38de0d-3707-445e-9b2e-a1ca80e5ddda.webp?v=1713857501","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b35e7dc75bd704aa2a50afc0b23c37189a02da9b_15ea0f6a-f24a-4449-8da3-8fac29328ea6.webp?v=1713857503","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41ab5fa287b538c90bf12d9ed7adb929525667da_a2854aff-5295-4c9f-a002-b5c6aaa1a3bb.webp?v=1713857506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55b01f1368dc49d12d3652ecb4b3b4e573ce306b_28645757-4739-4c89-909c-2d35093454dd.webp?v=1713857508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3431234530f67331f32064e551fdf1daac3e98a0_5cc8cd75-3be3-4b1a-9e85-5523512cbfc1.webp?v=1713857511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ab5d08fcf7922e6e328290d56c34788f086755_2b8059e5-8d25-4031-bc52-5640ceeb89d2.webp?v=1713857513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f6afc029a8b62c462201c6d4bdc6f0c38646b4c_47e208b8-e7aa-4247-8a71-5903f04597e5.webp?v=1713857516","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e098cf0c724ecf9f83b451b112f5ba5d7207a1f_e7b2fadd-8b71-4aa8-84f9-46b03575072b.webp?v=1713857518","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2bc830bf5368bdb59b86b33fabd6766c0222fca_4bf1bc4e-77cc-4366-a81d-80757f7c0795.webp?v=1713857520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e62c469cd637d48a3762be3aebe7c0daa23ccf5_87f6380a-1a21-456d-bbeb-38815d6c2618.webp?v=1713857523"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2806a9cc3453c66b2c81743de8d048e369598120_ec38de0d-3707-445e-9b2e-a1ca80e5ddda.webp?v=1713857501","options":["color"],"media":[{"alt":null,"id":23789116063843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2806a9cc3453c66b2c81743de8d048e369598120_ec38de0d-3707-445e-9b2e-a1ca80e5ddda.webp?v=1713857501"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2806a9cc3453c66b2c81743de8d048e369598120_ec38de0d-3707-445e-9b2e-a1ca80e5ddda.webp?v=1713857501","width":2000},{"alt":null,"id":23789116588131,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b35e7dc75bd704aa2a50afc0b23c37189a02da9b_15ea0f6a-f24a-4449-8da3-8fac29328ea6.webp?v=1713857503"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b35e7dc75bd704aa2a50afc0b23c37189a02da9b_15ea0f6a-f24a-4449-8da3-8fac29328ea6.webp?v=1713857503","width":2000},{"alt":null,"id":23789117177955,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41ab5fa287b538c90bf12d9ed7adb929525667da_a2854aff-5295-4c9f-a002-b5c6aaa1a3bb.webp?v=1713857506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41ab5fa287b538c90bf12d9ed7adb929525667da_a2854aff-5295-4c9f-a002-b5c6aaa1a3bb.webp?v=1713857506","width":2000},{"alt":null,"id":23789117800547,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55b01f1368dc49d12d3652ecb4b3b4e573ce306b_28645757-4739-4c89-909c-2d35093454dd.webp?v=1713857508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55b01f1368dc49d12d3652ecb4b3b4e573ce306b_28645757-4739-4c89-909c-2d35093454dd.webp?v=1713857508","width":2000},{"alt":null,"id":23789118521443,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3431234530f67331f32064e551fdf1daac3e98a0_5cc8cd75-3be3-4b1a-9e85-5523512cbfc1.webp?v=1713857511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3431234530f67331f32064e551fdf1daac3e98a0_5cc8cd75-3be3-4b1a-9e85-5523512cbfc1.webp?v=1713857511","width":2000},{"alt":null,"id":23789119471715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ab5d08fcf7922e6e328290d56c34788f086755_2b8059e5-8d25-4031-bc52-5640ceeb89d2.webp?v=1713857513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ab5d08fcf7922e6e328290d56c34788f086755_2b8059e5-8d25-4031-bc52-5640ceeb89d2.webp?v=1713857513","width":2000},{"alt":null,"id":23789120159843,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f6afc029a8b62c462201c6d4bdc6f0c38646b4c_47e208b8-e7aa-4247-8a71-5903f04597e5.webp?v=1713857516"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f6afc029a8b62c462201c6d4bdc6f0c38646b4c_47e208b8-e7aa-4247-8a71-5903f04597e5.webp?v=1713857516","width":2000},{"alt":null,"id":23789120782435,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e098cf0c724ecf9f83b451b112f5ba5d7207a1f_e7b2fadd-8b71-4aa8-84f9-46b03575072b.webp?v=1713857518"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e098cf0c724ecf9f83b451b112f5ba5d7207a1f_e7b2fadd-8b71-4aa8-84f9-46b03575072b.webp?v=1713857518","width":2000},{"alt":null,"id":23789121339491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2bc830bf5368bdb59b86b33fabd6766c0222fca_4bf1bc4e-77cc-4366-a81d-80757f7c0795.webp?v=1713857520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2bc830bf5368bdb59b86b33fabd6766c0222fca_4bf1bc4e-77cc-4366-a81d-80757f7c0795.webp?v=1713857520","width":2000},{"alt":null,"id":23789121962083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e62c469cd637d48a3762be3aebe7c0daa23ccf5_87f6380a-1a21-456d-bbeb-38815d6c2618.webp?v=1713857523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e62c469cd637d48a3762be3aebe7c0daa23ccf5_87f6380a-1a21-456d-bbeb-38815d6c2618.webp?v=1713857523","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41792913539171,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PL58","requires_shipping":true,"taxable":true,"featured_image":{"id":31386883457123,"product_id":7369135423587,"position":9,"created_at":"2024-04-23T15:32:00+08:00","updated_at":"2024-04-23T15:32:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2bc830bf5368bdb59b86b33fabd6766c0222fca_4bf1bc4e-77cc-4366-a81d-80757f7c0795.webp?v=1713857520","variant_ids":[41792913539171]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Snoopy 史努比 - Chill moment - 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":"NPB0108624-PL58","featured_media":{"alt":null,"id":23789121339491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2bc830bf5368bdb59b86b33fabd6766c0222fca_4bf1bc4e-77cc-4366-a81d-80757f7c0795.webp?v=1713857520"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41792913539171,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PL58","requires_shipping":true,"taxable":true,"featured_image":{"id":31386883457123,"product_id":7369135423587,"position":9,"created_at":"2024-04-23T15:32:00+08:00","updated_at":"2024-04-23T15:32:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2bc830bf5368bdb59b86b33fabd6766c0222fca_4bf1bc4e-77cc-4366-a81d-80757f7c0795.webp?v=1713857520","variant_ids":[41792913539171]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Snoopy 史努比 - Chill moment - 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":"NPB0108624-PL58","featured_media":{"alt":null,"id":23789121339491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2bc830bf5368bdb59b86b33fabd6766c0222fca_4bf1bc4e-77cc-4366-a81d-80757f7c0795.webp?v=1713857520"}},"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: "停產" }