$product = {"id":7369133064291,"title":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 開心小花","handle":"iphone-11-pro-max-mod-nx-printable-pl65","description":"","published_at":"2024-06-11T16:12:59+08:00","created_at":"2024-04-23T15:31:13+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 11 Pro 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":41792892829795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0114924-PL65","requires_shipping":true,"taxable":true,"featured_image":{"id":31386877722723,"product_id":7369133064291,"position":9,"created_at":"2024-04-23T15:31:39+08:00","updated_at":"2025-01-22T15:01:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3bb49b4a0bc7f20f49aaff3339e86a269c6a445_43767e4b-b122-4e36-b6eb-1ab9faafa488.webp?v=1737529296","variant_ids":[41792892829795]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - 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":"NPB0114924-PL65","featured_media":{"alt":null,"id":23789115605091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3bb49b4a0bc7f20f49aaff3339e86a269c6a445_43767e4b-b122-4e36-b6eb-1ab9faafa488.webp?v=1737529296"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe50d3d4dcac65f6e696e2dd3e94e3aa773f4f8_b0fcf00c-7fb0-4fd7-971d-cca2fb760709.webp?v=1737529296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed3a1ec37cb88e0c2af2aa0532de0eb739439ef1_b641bfa6-748f-4f30-89c8-7d49776670c0.webp?v=1737529296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0241b6e30ac35b6b121c83825c17afc8397def85_4f13c417-09d0-414b-8146-d31d46be7ba1.webp?v=1737529296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17f31a3fef2fc0f9c280f30e96ca8006464b75ff_d409d4e6-8bbe-4ff0-9b48-13983423c317.webp?v=1737529296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5832b322b7a628943e0a832c90e35d35bb797a08_a0383ef9-f197-49e7-925a-c674e3b6c41f.webp?v=1737529296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a85bd5de9dc1f7b86ec724acee5d76a0f5362d9f_5941624a-224d-485d-bc56-1bcc97c3d77c.webp?v=1737529296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea51ffd03c079c01f070700bfd11776fa0002032_19828c85-31a1-476e-aaaf-ee0e1ea51b42.webp?v=1737529296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0d98287cb077d30d6cc28062cc2a1bba7b6af33_d01da34b-37f7-405a-afea-7bb0ab00895b.webp?v=1737529296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3bb49b4a0bc7f20f49aaff3339e86a269c6a445_43767e4b-b122-4e36-b6eb-1ab9faafa488.webp?v=1737529296"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe50d3d4dcac65f6e696e2dd3e94e3aa773f4f8_b0fcf00c-7fb0-4fd7-971d-cca2fb760709.webp?v=1737529296","options":["color"],"media":[{"alt":null,"id":23789109805155,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe50d3d4dcac65f6e696e2dd3e94e3aa773f4f8_b0fcf00c-7fb0-4fd7-971d-cca2fb760709.webp?v=1737529296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fe50d3d4dcac65f6e696e2dd3e94e3aa773f4f8_b0fcf00c-7fb0-4fd7-971d-cca2fb760709.webp?v=1737529296","width":2000},{"alt":null,"id":23789110460515,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed3a1ec37cb88e0c2af2aa0532de0eb739439ef1_b641bfa6-748f-4f30-89c8-7d49776670c0.webp?v=1737529296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed3a1ec37cb88e0c2af2aa0532de0eb739439ef1_b641bfa6-748f-4f30-89c8-7d49776670c0.webp?v=1737529296","width":2000},{"alt":null,"id":23789111115875,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0241b6e30ac35b6b121c83825c17afc8397def85_4f13c417-09d0-414b-8146-d31d46be7ba1.webp?v=1737529296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0241b6e30ac35b6b121c83825c17afc8397def85_4f13c417-09d0-414b-8146-d31d46be7ba1.webp?v=1737529296","width":2000},{"alt":null,"id":23789111738467,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17f31a3fef2fc0f9c280f30e96ca8006464b75ff_d409d4e6-8bbe-4ff0-9b48-13983423c317.webp?v=1737529296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17f31a3fef2fc0f9c280f30e96ca8006464b75ff_d409d4e6-8bbe-4ff0-9b48-13983423c317.webp?v=1737529296","width":2000},{"alt":null,"id":23789113180259,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5832b322b7a628943e0a832c90e35d35bb797a08_a0383ef9-f197-49e7-925a-c674e3b6c41f.webp?v=1737529296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5832b322b7a628943e0a832c90e35d35bb797a08_a0383ef9-f197-49e7-925a-c674e3b6c41f.webp?v=1737529296","width":2000},{"alt":null,"id":23789114359907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a85bd5de9dc1f7b86ec724acee5d76a0f5362d9f_5941624a-224d-485d-bc56-1bcc97c3d77c.webp?v=1737529296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a85bd5de9dc1f7b86ec724acee5d76a0f5362d9f_5941624a-224d-485d-bc56-1bcc97c3d77c.webp?v=1737529296","width":2000},{"alt":null,"id":23789114949731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea51ffd03c079c01f070700bfd11776fa0002032_19828c85-31a1-476e-aaaf-ee0e1ea51b42.webp?v=1737529296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea51ffd03c079c01f070700bfd11776fa0002032_19828c85-31a1-476e-aaaf-ee0e1ea51b42.webp?v=1737529296","width":2000},{"alt":null,"id":25221970231395,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0d98287cb077d30d6cc28062cc2a1bba7b6af33_d01da34b-37f7-405a-afea-7bb0ab00895b.webp?v=1737529296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0d98287cb077d30d6cc28062cc2a1bba7b6af33_d01da34b-37f7-405a-afea-7bb0ab00895b.webp?v=1737529296","width":2000},{"alt":null,"id":23789115605091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3bb49b4a0bc7f20f49aaff3339e86a269c6a445_43767e4b-b122-4e36-b6eb-1ab9faafa488.webp?v=1737529296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3bb49b4a0bc7f20f49aaff3339e86a269c6a445_43767e4b-b122-4e36-b6eb-1ab9faafa488.webp?v=1737529296","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""}; $isMerge = null; $variants = [{"id":41792892829795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0114924-PL65","requires_shipping":true,"taxable":true,"featured_image":{"id":31386877722723,"product_id":7369133064291,"position":9,"created_at":"2024-04-23T15:31:39+08:00","updated_at":"2025-01-22T15:01:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3bb49b4a0bc7f20f49aaff3339e86a269c6a445_43767e4b-b122-4e36-b6eb-1ab9faafa488.webp?v=1737529296","variant_ids":[41792892829795]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - 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":"NPB0114924-PL65","featured_media":{"alt":null,"id":23789115605091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3bb49b4a0bc7f20f49aaff3339e86a269c6a445_43767e4b-b122-4e36-b6eb-1ab9faafa488.webp?v=1737529296"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41792892829795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0114924-PL65","requires_shipping":true,"taxable":true,"featured_image":{"id":31386877722723,"product_id":7369133064291,"position":9,"created_at":"2024-04-23T15:31:39+08:00","updated_at":"2025-01-22T15:01:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3bb49b4a0bc7f20f49aaff3339e86a269c6a445_43767e4b-b122-4e36-b6eb-1ab9faafa488.webp?v=1737529296","variant_ids":[41792892829795]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - 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":"NPB0114924-PL65","featured_media":{"alt":null,"id":23789115605091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3bb49b4a0bc7f20f49aaff3339e86a269c6a445_43767e4b-b122-4e36-b6eb-1ab9faafa488.webp?v=1737529296"}},"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: "停產" }