$product = {"id":7369151053923,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Snoopy 史努比 - 冰淇淋甜筒","handle":"iphone-14-pro-mod-nx-printable-pl59","description":null,"published_at":"2024-06-11T16:13:20+08:00","created_at":"2024-04-23T15:34:11+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 Pro","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":41793060536419,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PL59","requires_shipping":true,"taxable":true,"featured_image":{"id":31386919272547,"product_id":7369151053923,"position":3,"created_at":"2024-04-23T15:34:19+08:00","updated_at":"2024-04-23T15:34:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/953a740857f538a82ec08414231e52afa89f69fe_58edf779-a399-45dd-b493-45471d93aa32.webp?v=1713857659","variant_ids":[41793060536419]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 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":"NPB0126224-PL59","featured_media":{"alt":null,"id":23789157253219,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/953a740857f538a82ec08414231e52afa89f69fe_58edf779-a399-45dd-b493-45471d93aa32.webp?v=1713857659"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41793060601955,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PL59","requires_shipping":true,"taxable":true,"featured_image":{"id":31386919960675,"product_id":7369151053923,"position":4,"created_at":"2024-04-23T15:34:21+08:00","updated_at":"2024-04-23T15:34:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7124bdc54614f5e088e0a43eed679b514855d8_e2d10658-3d42-4a48-9b40-b4a2a9e4c6d8.webp?v=1713857661","variant_ids":[41793060601955]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 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":"NPB0126204-PL59","featured_media":{"alt":null,"id":23789157974115,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7124bdc54614f5e088e0a43eed679b514855d8_e2d10658-3d42-4a48-9b40-b4a2a9e4c6d8.webp?v=1713857661"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41793060831331,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PL59","requires_shipping":true,"taxable":true,"featured_image":{"id":31386922549347,"product_id":7369151053923,"position":8,"created_at":"2024-04-23T15:34:30+08:00","updated_at":"2024-04-23T15:34:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51bcf5a4c80eacb409f749e3c9903be07a4987e5_7707e4e0-9e27-4dda-8d43-511503102742.webp?v=1713857670","variant_ids":[41793060831331]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 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":"NPB01262J5-PL59","featured_media":{"alt":null,"id":23789160562787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51bcf5a4c80eacb409f749e3c9903be07a4987e5_7707e4e0-9e27-4dda-8d43-511503102742.webp?v=1713857670"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/471fdf19182e384869051b2265e5f54c423c362e_f9965c21-1a08-4498-b672-a2e6632bb3bd.webp?v=1713857653","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cab8d32250cf59d1311c82c7c923e6517d42e0eb_9713413e-a1b9-4bf1-9470-bb50013ffe76.webp?v=1713857656","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/953a740857f538a82ec08414231e52afa89f69fe_58edf779-a399-45dd-b493-45471d93aa32.webp?v=1713857659","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7124bdc54614f5e088e0a43eed679b514855d8_e2d10658-3d42-4a48-9b40-b4a2a9e4c6d8.webp?v=1713857661","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/847289e083e670bb940c90c56afc0d5610d4c74d_0aa05164-2d04-4331-b725-dc378f889a85.webp?v=1713857663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea193db6783e24161292af9a0eb17795d24da59f_87d65369-eec6-47dc-86f6-73e45902c75b.webp?v=1713857666","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69a8e0a9afc64d45a75004a8185297551c8d4a0a_00df273c-afca-417d-85a0-6717b5568729.webp?v=1713857668","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51bcf5a4c80eacb409f749e3c9903be07a4987e5_7707e4e0-9e27-4dda-8d43-511503102742.webp?v=1713857670","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7d54123bddd202d7c1cef147408241de8b7a9c4_cd9efb3f-d690-4941-a2bb-36f611921f4f.webp?v=1713857673","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77583295e4181d11bb6b7dbcf61054a58533a9dd_e45f76b8-e628-4e0a-abed-79911e9a8b9b.webp?v=1713857675"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/471fdf19182e384869051b2265e5f54c423c362e_f9965c21-1a08-4498-b672-a2e6632bb3bd.webp?v=1713857653","options":["color"],"media":[{"alt":null,"id":23789155844195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/471fdf19182e384869051b2265e5f54c423c362e_f9965c21-1a08-4498-b672-a2e6632bb3bd.webp?v=1713857653"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/471fdf19182e384869051b2265e5f54c423c362e_f9965c21-1a08-4498-b672-a2e6632bb3bd.webp?v=1713857653","width":2000},{"alt":null,"id":23789156565091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cab8d32250cf59d1311c82c7c923e6517d42e0eb_9713413e-a1b9-4bf1-9470-bb50013ffe76.webp?v=1713857656"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cab8d32250cf59d1311c82c7c923e6517d42e0eb_9713413e-a1b9-4bf1-9470-bb50013ffe76.webp?v=1713857656","width":2000},{"alt":null,"id":23789157253219,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/953a740857f538a82ec08414231e52afa89f69fe_58edf779-a399-45dd-b493-45471d93aa32.webp?v=1713857659"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/953a740857f538a82ec08414231e52afa89f69fe_58edf779-a399-45dd-b493-45471d93aa32.webp?v=1713857659","width":2000},{"alt":null,"id":23789157974115,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7124bdc54614f5e088e0a43eed679b514855d8_e2d10658-3d42-4a48-9b40-b4a2a9e4c6d8.webp?v=1713857661"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7124bdc54614f5e088e0a43eed679b514855d8_e2d10658-3d42-4a48-9b40-b4a2a9e4c6d8.webp?v=1713857661","width":2000},{"alt":null,"id":23789158498403,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/847289e083e670bb940c90c56afc0d5610d4c74d_0aa05164-2d04-4331-b725-dc378f889a85.webp?v=1713857663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/847289e083e670bb940c90c56afc0d5610d4c74d_0aa05164-2d04-4331-b725-dc378f889a85.webp?v=1713857663","width":2000},{"alt":null,"id":23789159186531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea193db6783e24161292af9a0eb17795d24da59f_87d65369-eec6-47dc-86f6-73e45902c75b.webp?v=1713857666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea193db6783e24161292af9a0eb17795d24da59f_87d65369-eec6-47dc-86f6-73e45902c75b.webp?v=1713857666","width":2000},{"alt":null,"id":23789160005731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69a8e0a9afc64d45a75004a8185297551c8d4a0a_00df273c-afca-417d-85a0-6717b5568729.webp?v=1713857668"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69a8e0a9afc64d45a75004a8185297551c8d4a0a_00df273c-afca-417d-85a0-6717b5568729.webp?v=1713857668","width":2000},{"alt":null,"id":23789160562787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51bcf5a4c80eacb409f749e3c9903be07a4987e5_7707e4e0-9e27-4dda-8d43-511503102742.webp?v=1713857670"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51bcf5a4c80eacb409f749e3c9903be07a4987e5_7707e4e0-9e27-4dda-8d43-511503102742.webp?v=1713857670","width":2000},{"alt":null,"id":23789161054307,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7d54123bddd202d7c1cef147408241de8b7a9c4_cd9efb3f-d690-4941-a2bb-36f611921f4f.webp?v=1713857673"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7d54123bddd202d7c1cef147408241de8b7a9c4_cd9efb3f-d690-4941-a2bb-36f611921f4f.webp?v=1713857673","width":2000},{"alt":null,"id":23789161807971,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77583295e4181d11bb6b7dbcf61054a58533a9dd_e45f76b8-e628-4e0a-abed-79911e9a8b9b.webp?v=1713857675"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77583295e4181d11bb6b7dbcf61054a58533a9dd_e45f76b8-e628-4e0a-abed-79911e9a8b9b.webp?v=1713857675","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41793060536419,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PL59","requires_shipping":true,"taxable":true,"featured_image":{"id":31386919272547,"product_id":7369151053923,"position":3,"created_at":"2024-04-23T15:34:19+08:00","updated_at":"2024-04-23T15:34:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/953a740857f538a82ec08414231e52afa89f69fe_58edf779-a399-45dd-b493-45471d93aa32.webp?v=1713857659","variant_ids":[41793060536419]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 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":"NPB0126224-PL59","featured_media":{"alt":null,"id":23789157253219,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/953a740857f538a82ec08414231e52afa89f69fe_58edf779-a399-45dd-b493-45471d93aa32.webp?v=1713857659"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41793060601955,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PL59","requires_shipping":true,"taxable":true,"featured_image":{"id":31386919960675,"product_id":7369151053923,"position":4,"created_at":"2024-04-23T15:34:21+08:00","updated_at":"2024-04-23T15:34:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7124bdc54614f5e088e0a43eed679b514855d8_e2d10658-3d42-4a48-9b40-b4a2a9e4c6d8.webp?v=1713857661","variant_ids":[41793060601955]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 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":"NPB0126204-PL59","featured_media":{"alt":null,"id":23789157974115,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7124bdc54614f5e088e0a43eed679b514855d8_e2d10658-3d42-4a48-9b40-b4a2a9e4c6d8.webp?v=1713857661"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41793060831331,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PL59","requires_shipping":true,"taxable":true,"featured_image":{"id":31386922549347,"product_id":7369151053923,"position":8,"created_at":"2024-04-23T15:34:30+08:00","updated_at":"2024-04-23T15:34:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51bcf5a4c80eacb409f749e3c9903be07a4987e5_7707e4e0-9e27-4dda-8d43-511503102742.webp?v=1713857670","variant_ids":[41793060831331]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 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":"NPB01262J5-PL59","featured_media":{"alt":null,"id":23789160562787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51bcf5a4c80eacb409f749e3c9903be07a4987e5_7707e4e0-9e27-4dda-8d43-511503102742.webp?v=1713857670"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41793060536419,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PL59","requires_shipping":true,"taxable":true,"featured_image":{"id":31386919272547,"product_id":7369151053923,"position":3,"created_at":"2024-04-23T15:34:19+08:00","updated_at":"2024-04-23T15:34:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/953a740857f538a82ec08414231e52afa89f69fe_58edf779-a399-45dd-b493-45471d93aa32.webp?v=1713857659","variant_ids":[41793060536419]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 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":"NPB0126224-PL59","featured_media":{"alt":null,"id":23789157253219,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/953a740857f538a82ec08414231e52afa89f69fe_58edf779-a399-45dd-b493-45471d93aa32.webp?v=1713857659"}},"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: "停產" }