$product = {"id":7369142534243,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 曬太陽","handle":"iphone-12-pro-max-mod-nx-printable-pl63","description":null,"published_at":"2024-06-11T16:13:10+08:00","created_at":"2024-04-23T15:32:47+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 12 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":41792984612963,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PL63","requires_shipping":true,"taxable":true,"featured_image":{"id":31386903511139,"product_id":7369142534243,"position":10,"created_at":"2024-04-23T15:33:18+08:00","updated_at":"2024-04-23T15:33:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1caa0ed85a198eb65deb8d92be417d7a21dfb4ae_a987b66e-59cd-4b41-8ffe-141cfbffc425.webp?v=1713857598","variant_ids":[41792984612963]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 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":"NPB0118724-PL63","featured_media":{"alt":null,"id":23789141491811,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1caa0ed85a198eb65deb8d92be417d7a21dfb4ae_a987b66e-59cd-4b41-8ffe-141cfbffc425.webp?v=1713857598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fd5ab0770c291016056589ab1952d480ffb149b_2535acac-8364-4c14-bbab-4fe2b3047ad0.webp?v=1713857570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32e958182f837f147449b69caa666300c283994a_8dd3d5ff-ef5d-4fde-a346-f1b84c5830d6.webp?v=1713857573","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b8caa69f4576ced5ec9aad4bd0755e07fa821c7_093e02d6-f6de-406d-b4f3-40ef9eb64850.webp?v=1713857575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8bdec96f53b5e989ef68a0f2f774035d08eca4_6a0be68b-1f0c-42f4-98c8-ebf8db9e65c9.webp?v=1713857577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbdd88b8c13e5eb2ada27b302679c479a24a6126_e873c086-defc-4fb4-83b7-785b780a9219.webp?v=1713857580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/399170397a12555c6137c7a3f72a780c54c5d7b7_96e9db8b-af75-4292-b1a0-11cd9fde5352.webp?v=1713857583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f7d3cc606588a80640e6c333caacde3a70ac6c0_72d25e52-bdb1-41d0-90b6-1bda3c7fa470.webp?v=1713857585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62571e93ddca573f9b330da0ee098af254e40592_a176a5a0-d6b7-4560-bfb6-8d04dd6c735e.webp?v=1713857588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2c434210a024c0fdeb8c00c982ffec14e2aeae7_3c90b850-5faa-4b12-b560-de939db5eac6.webp?v=1713857595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1caa0ed85a198eb65deb8d92be417d7a21dfb4ae_a987b66e-59cd-4b41-8ffe-141cfbffc425.webp?v=1713857598"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fd5ab0770c291016056589ab1952d480ffb149b_2535acac-8364-4c14-bbab-4fe2b3047ad0.webp?v=1713857570","options":["color"],"media":[{"alt":null,"id":23789134544995,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fd5ab0770c291016056589ab1952d480ffb149b_2535acac-8364-4c14-bbab-4fe2b3047ad0.webp?v=1713857570"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fd5ab0770c291016056589ab1952d480ffb149b_2535acac-8364-4c14-bbab-4fe2b3047ad0.webp?v=1713857570","width":2000},{"alt":null,"id":23789135167587,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32e958182f837f147449b69caa666300c283994a_8dd3d5ff-ef5d-4fde-a346-f1b84c5830d6.webp?v=1713857573"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32e958182f837f147449b69caa666300c283994a_8dd3d5ff-ef5d-4fde-a346-f1b84c5830d6.webp?v=1713857573","width":2000},{"alt":null,"id":23789135659107,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b8caa69f4576ced5ec9aad4bd0755e07fa821c7_093e02d6-f6de-406d-b4f3-40ef9eb64850.webp?v=1713857575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b8caa69f4576ced5ec9aad4bd0755e07fa821c7_093e02d6-f6de-406d-b4f3-40ef9eb64850.webp?v=1713857575","width":2000},{"alt":null,"id":23789136216163,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8bdec96f53b5e989ef68a0f2f774035d08eca4_6a0be68b-1f0c-42f4-98c8-ebf8db9e65c9.webp?v=1713857577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8bdec96f53b5e989ef68a0f2f774035d08eca4_6a0be68b-1f0c-42f4-98c8-ebf8db9e65c9.webp?v=1713857577","width":2000},{"alt":null,"id":23789136838755,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbdd88b8c13e5eb2ada27b302679c479a24a6126_e873c086-defc-4fb4-83b7-785b780a9219.webp?v=1713857580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbdd88b8c13e5eb2ada27b302679c479a24a6126_e873c086-defc-4fb4-83b7-785b780a9219.webp?v=1713857580","width":2000},{"alt":null,"id":23789137592419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/399170397a12555c6137c7a3f72a780c54c5d7b7_96e9db8b-af75-4292-b1a0-11cd9fde5352.webp?v=1713857583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/399170397a12555c6137c7a3f72a780c54c5d7b7_96e9db8b-af75-4292-b1a0-11cd9fde5352.webp?v=1713857583","width":2000},{"alt":null,"id":23789138280547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f7d3cc606588a80640e6c333caacde3a70ac6c0_72d25e52-bdb1-41d0-90b6-1bda3c7fa470.webp?v=1713857585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f7d3cc606588a80640e6c333caacde3a70ac6c0_72d25e52-bdb1-41d0-90b6-1bda3c7fa470.webp?v=1713857585","width":2000},{"alt":null,"id":23789138739299,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62571e93ddca573f9b330da0ee098af254e40592_a176a5a0-d6b7-4560-bfb6-8d04dd6c735e.webp?v=1713857588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62571e93ddca573f9b330da0ee098af254e40592_a176a5a0-d6b7-4560-bfb6-8d04dd6c735e.webp?v=1713857588","width":2000},{"alt":null,"id":23789140934755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2c434210a024c0fdeb8c00c982ffec14e2aeae7_3c90b850-5faa-4b12-b560-de939db5eac6.webp?v=1713857595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2c434210a024c0fdeb8c00c982ffec14e2aeae7_3c90b850-5faa-4b12-b560-de939db5eac6.webp?v=1713857595","width":2000},{"alt":null,"id":23789141491811,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1caa0ed85a198eb65deb8d92be417d7a21dfb4ae_a987b66e-59cd-4b41-8ffe-141cfbffc425.webp?v=1713857598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1caa0ed85a198eb65deb8d92be417d7a21dfb4ae_a987b66e-59cd-4b41-8ffe-141cfbffc425.webp?v=1713857598","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41792984612963,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PL63","requires_shipping":true,"taxable":true,"featured_image":{"id":31386903511139,"product_id":7369142534243,"position":10,"created_at":"2024-04-23T15:33:18+08:00","updated_at":"2024-04-23T15:33:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1caa0ed85a198eb65deb8d92be417d7a21dfb4ae_a987b66e-59cd-4b41-8ffe-141cfbffc425.webp?v=1713857598","variant_ids":[41792984612963]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 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":"NPB0118724-PL63","featured_media":{"alt":null,"id":23789141491811,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1caa0ed85a198eb65deb8d92be417d7a21dfb4ae_a987b66e-59cd-4b41-8ffe-141cfbffc425.webp?v=1713857598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41792984612963,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PL63","requires_shipping":true,"taxable":true,"featured_image":{"id":31386903511139,"product_id":7369142534243,"position":10,"created_at":"2024-04-23T15:33:18+08:00","updated_at":"2024-04-23T15:33:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1caa0ed85a198eb65deb8d92be417d7a21dfb4ae_a987b66e-59cd-4b41-8ffe-141cfbffc425.webp?v=1713857598","variant_ids":[41792984612963]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 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":"NPB0118724-PL63","featured_media":{"alt":null,"id":23789141491811,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1caa0ed85a198eb65deb8d92be417d7a21dfb4ae_a987b66e-59cd-4b41-8ffe-141cfbffc425.webp?v=1713857598"}},"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: "停產" }