$product = {"id":7369135947875,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Snoopy 史努比 - 潛水趣","handle":"iphone-14-plus-mod-nx-printable-pl60","description":null,"published_at":"2024-06-11T16:13:02+08:00","created_at":"2024-04-23T15:31:44+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 14 Plus","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":41792919011427,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PL60","requires_shipping":true,"taxable":true,"featured_image":{"id":31386881687651,"product_id":7369135947875,"position":4,"created_at":"2024-04-23T15:31:54+08:00","updated_at":"2024-04-23T15:31:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/177937743d465908fadbc3fbc641b9c165836008_8a376aad-b934-416f-a3b8-145f634cc03e.webp?v=1713857514","variant_ids":[41792919011427]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Snoopy 史努比 - 潛水趣 - 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":"NPB0126124-PL60","featured_media":{"alt":null,"id":23789119570019,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/177937743d465908fadbc3fbc641b9c165836008_8a376aad-b934-416f-a3b8-145f634cc03e.webp?v=1713857514"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/508de060ee859435d53016f754c43d7928978acf_ee96bd76-9853-4d38-90a3-82dcc16db8f6.webp?v=1713857506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2f92cc5e3bf3428b191047c48f980d1d443896b_833371f8-b3bb-42e9-ad6e-e0163fa570b1.webp?v=1713857509","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c7e55021f6e985c4128b9a8a0e0a7cad142b87f_33363fa6-e717-4ea3-95c4-e63a96adce5b.webp?v=1713857511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/177937743d465908fadbc3fbc641b9c165836008_8a376aad-b934-416f-a3b8-145f634cc03e.webp?v=1713857514","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3eccefb4070fb8e2fe2a667c64d0dc4ec87651f6_1a436a1f-47a8-4576-b001-859dac2dbe24.webp?v=1713857516","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47455826e5e66c5f546acb5021fb6bf5dbf39a43_03f5fdd3-9d57-411d-8809-0699f3d2ad96.webp?v=1713857519","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/512d5a39aaef03ad4611e5fdb3c5ef1aaf098eb7_9b84a804-807d-4dbc-8495-daf22634696a.webp?v=1713857521","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6a902e48599f56a7f0b42fc2e213cdd9f25cec6_9a43abda-b95e-41e6-96e7-e625571697ca.webp?v=1713857523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bae8802263c364ca4c230dc9c18d8ab091d941a_294da11a-e25c-4443-8897-57469ed7a879.webp?v=1713857526","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46db78d6f18bdbdb435fa50ea3f5249632cc6955_19e935e6-412c-4a1d-b22d-9cbebd1a91be.webp?v=1713857528"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/508de060ee859435d53016f754c43d7928978acf_ee96bd76-9853-4d38-90a3-82dcc16db8f6.webp?v=1713857506","options":["color"],"media":[{"alt":null,"id":23789117243491,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/508de060ee859435d53016f754c43d7928978acf_ee96bd76-9853-4d38-90a3-82dcc16db8f6.webp?v=1713857506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/508de060ee859435d53016f754c43d7928978acf_ee96bd76-9853-4d38-90a3-82dcc16db8f6.webp?v=1713857506","width":2000},{"alt":null,"id":23789117964387,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2f92cc5e3bf3428b191047c48f980d1d443896b_833371f8-b3bb-42e9-ad6e-e0163fa570b1.webp?v=1713857509"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2f92cc5e3bf3428b191047c48f980d1d443896b_833371f8-b3bb-42e9-ad6e-e0163fa570b1.webp?v=1713857509","width":2000},{"alt":null,"id":23789118652515,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c7e55021f6e985c4128b9a8a0e0a7cad142b87f_33363fa6-e717-4ea3-95c4-e63a96adce5b.webp?v=1713857511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c7e55021f6e985c4128b9a8a0e0a7cad142b87f_33363fa6-e717-4ea3-95c4-e63a96adce5b.webp?v=1713857511","width":2000},{"alt":null,"id":23789119570019,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/177937743d465908fadbc3fbc641b9c165836008_8a376aad-b934-416f-a3b8-145f634cc03e.webp?v=1713857514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/177937743d465908fadbc3fbc641b9c165836008_8a376aad-b934-416f-a3b8-145f634cc03e.webp?v=1713857514","width":2000},{"alt":null,"id":23789120225379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3eccefb4070fb8e2fe2a667c64d0dc4ec87651f6_1a436a1f-47a8-4576-b001-859dac2dbe24.webp?v=1713857516"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3eccefb4070fb8e2fe2a667c64d0dc4ec87651f6_1a436a1f-47a8-4576-b001-859dac2dbe24.webp?v=1713857516","width":2000},{"alt":null,"id":23789121011811,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47455826e5e66c5f546acb5021fb6bf5dbf39a43_03f5fdd3-9d57-411d-8809-0699f3d2ad96.webp?v=1713857519"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47455826e5e66c5f546acb5021fb6bf5dbf39a43_03f5fdd3-9d57-411d-8809-0699f3d2ad96.webp?v=1713857519","width":2000},{"alt":null,"id":23789121470563,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/512d5a39aaef03ad4611e5fdb3c5ef1aaf098eb7_9b84a804-807d-4dbc-8495-daf22634696a.webp?v=1713857521"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/512d5a39aaef03ad4611e5fdb3c5ef1aaf098eb7_9b84a804-807d-4dbc-8495-daf22634696a.webp?v=1713857521","width":2000},{"alt":null,"id":23789122158691,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6a902e48599f56a7f0b42fc2e213cdd9f25cec6_9a43abda-b95e-41e6-96e7-e625571697ca.webp?v=1713857523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6a902e48599f56a7f0b42fc2e213cdd9f25cec6_9a43abda-b95e-41e6-96e7-e625571697ca.webp?v=1713857523","width":2000},{"alt":null,"id":23789122879587,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bae8802263c364ca4c230dc9c18d8ab091d941a_294da11a-e25c-4443-8897-57469ed7a879.webp?v=1713857526"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bae8802263c364ca4c230dc9c18d8ab091d941a_294da11a-e25c-4443-8897-57469ed7a879.webp?v=1713857526","width":2000},{"alt":null,"id":23789123240035,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46db78d6f18bdbdb435fa50ea3f5249632cc6955_19e935e6-412c-4a1d-b22d-9cbebd1a91be.webp?v=1713857528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46db78d6f18bdbdb435fa50ea3f5249632cc6955_19e935e6-412c-4a1d-b22d-9cbebd1a91be.webp?v=1713857528","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41792919011427,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PL60","requires_shipping":true,"taxable":true,"featured_image":{"id":31386881687651,"product_id":7369135947875,"position":4,"created_at":"2024-04-23T15:31:54+08:00","updated_at":"2024-04-23T15:31:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/177937743d465908fadbc3fbc641b9c165836008_8a376aad-b934-416f-a3b8-145f634cc03e.webp?v=1713857514","variant_ids":[41792919011427]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Snoopy 史努比 - 潛水趣 - 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":"NPB0126124-PL60","featured_media":{"alt":null,"id":23789119570019,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/177937743d465908fadbc3fbc641b9c165836008_8a376aad-b934-416f-a3b8-145f634cc03e.webp?v=1713857514"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41792919011427,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PL60","requires_shipping":true,"taxable":true,"featured_image":{"id":31386881687651,"product_id":7369135947875,"position":4,"created_at":"2024-04-23T15:31:54+08:00","updated_at":"2024-04-23T15:31:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/177937743d465908fadbc3fbc641b9c165836008_8a376aad-b934-416f-a3b8-145f634cc03e.webp?v=1713857514","variant_ids":[41792919011427]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Snoopy 史努比 - 潛水趣 - 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":"NPB0126124-PL60","featured_media":{"alt":null,"id":23789119570019,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/177937743d465908fadbc3fbc641b9c165836008_8a376aad-b934-416f-a3b8-145f634cc03e.webp?v=1713857514"}},"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: "停產" }