$product = {"id":7408530423907,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Look - 人在做 北極冰川在看","handle":"iphone-12-pro-max-mod-nx-printable-af05","description":null,"published_at":"2024-06-11T16:39:50+08:00","created_at":"2024-05-03T15:44:38+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-look","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":41886537416803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472510206051,"product_id":7408530423907,"position":1,"created_at":"2024-05-03T15:44:41+08:00","updated_at":"2024-05-03T15:44:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c8c7cc02089566f32144ac1a8505fa038f9ec7b_d6082884-8360-473c-bd36-c6294b49c65f.webp?v=1714722281","variant_ids":[41886537416803]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Look - 人在做 北極冰川在看 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-AF05","featured_media":{"alt":null,"id":23877427495011,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c8c7cc02089566f32144ac1a8505fa038f9ec7b_d6082884-8360-473c-bd36-c6294b49c65f.webp?v=1714722281"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c8c7cc02089566f32144ac1a8505fa038f9ec7b_d6082884-8360-473c-bd36-c6294b49c65f.webp?v=1714722281","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a0a245e27ebfff444f31de0c40fae53d615c7e4_f61ff309-3d98-44b8-9c4a-8672ebea8b90.webp?v=1714722283","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b124e37e59cdf655d8fbcdbbe737a1ea46be865_218d686c-af44-4a84-b3a7-da5b0d885681.webp?v=1714722285","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fd2b68d1eab7b5c195c195c7c6a657b17213060_41bdcf33-aab1-4ef3-ab44-c978b03a4e52.webp?v=1714722288","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b023db081da88bafe66031c2ec11d413cab90e73_6014e879-b741-4639-ba9a-6fb7c172c8fe.webp?v=1714722290","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41ae27e256f55dad5e09be952e90fe00026547d6_d9edca2c-c4f4-47eb-88d8-64f3a3ac2c84.webp?v=1714722293","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76fbea54494c5c808e9f73ca9eccaca1493a4f43_4abedbf7-69c6-4395-9ddf-76d09e6fa3a5.webp?v=1714722295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd315580935d49a51029d77a3302ab3346afa00_be430e27-69fb-4f79-8b95-c32a8c212d93.webp?v=1714722297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/908cba55b65071b780ef8365f8f6c464b62a1218_c840ef70-d91a-43da-8d6f-7a965a914e57.webp?v=1714722300","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfb2ae961701ad57bab4266c13cf9a0b9d30ee65_c41c7d15-2be7-4675-9fc9-8d95ae6a0302.webp?v=1714722302"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c8c7cc02089566f32144ac1a8505fa038f9ec7b_d6082884-8360-473c-bd36-c6294b49c65f.webp?v=1714722281","options":["color"],"media":[{"alt":null,"id":23877427495011,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c8c7cc02089566f32144ac1a8505fa038f9ec7b_d6082884-8360-473c-bd36-c6294b49c65f.webp?v=1714722281"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c8c7cc02089566f32144ac1a8505fa038f9ec7b_d6082884-8360-473c-bd36-c6294b49c65f.webp?v=1714722281","width":2000},{"alt":null,"id":23877428248675,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a0a245e27ebfff444f31de0c40fae53d615c7e4_f61ff309-3d98-44b8-9c4a-8672ebea8b90.webp?v=1714722283"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a0a245e27ebfff444f31de0c40fae53d615c7e4_f61ff309-3d98-44b8-9c4a-8672ebea8b90.webp?v=1714722283","width":2000},{"alt":null,"id":23877428674659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b124e37e59cdf655d8fbcdbbe737a1ea46be865_218d686c-af44-4a84-b3a7-da5b0d885681.webp?v=1714722285"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b124e37e59cdf655d8fbcdbbe737a1ea46be865_218d686c-af44-4a84-b3a7-da5b0d885681.webp?v=1714722285","width":2000},{"alt":null,"id":23877429264483,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fd2b68d1eab7b5c195c195c7c6a657b17213060_41bdcf33-aab1-4ef3-ab44-c978b03a4e52.webp?v=1714722288"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fd2b68d1eab7b5c195c195c7c6a657b17213060_41bdcf33-aab1-4ef3-ab44-c978b03a4e52.webp?v=1714722288","width":2000},{"alt":null,"id":23877429624931,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b023db081da88bafe66031c2ec11d413cab90e73_6014e879-b741-4639-ba9a-6fb7c172c8fe.webp?v=1714722290"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b023db081da88bafe66031c2ec11d413cab90e73_6014e879-b741-4639-ba9a-6fb7c172c8fe.webp?v=1714722290","width":2000},{"alt":null,"id":23877430116451,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41ae27e256f55dad5e09be952e90fe00026547d6_d9edca2c-c4f4-47eb-88d8-64f3a3ac2c84.webp?v=1714722293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41ae27e256f55dad5e09be952e90fe00026547d6_d9edca2c-c4f4-47eb-88d8-64f3a3ac2c84.webp?v=1714722293","width":2000},{"alt":null,"id":23877430575203,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76fbea54494c5c808e9f73ca9eccaca1493a4f43_4abedbf7-69c6-4395-9ddf-76d09e6fa3a5.webp?v=1714722295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76fbea54494c5c808e9f73ca9eccaca1493a4f43_4abedbf7-69c6-4395-9ddf-76d09e6fa3a5.webp?v=1714722295","width":2000},{"alt":null,"id":23877431296099,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd315580935d49a51029d77a3302ab3346afa00_be430e27-69fb-4f79-8b95-c32a8c212d93.webp?v=1714722297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd315580935d49a51029d77a3302ab3346afa00_be430e27-69fb-4f79-8b95-c32a8c212d93.webp?v=1714722297","width":2000},{"alt":null,"id":23877431656547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/908cba55b65071b780ef8365f8f6c464b62a1218_c840ef70-d91a-43da-8d6f-7a965a914e57.webp?v=1714722300"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/908cba55b65071b780ef8365f8f6c464b62a1218_c840ef70-d91a-43da-8d6f-7a965a914e57.webp?v=1714722300","width":2000},{"alt":null,"id":23877432082531,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfb2ae961701ad57bab4266c13cf9a0b9d30ee65_c41c7d15-2be7-4675-9fc9-8d95ae6a0302.webp?v=1714722302"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfb2ae961701ad57bab4266c13cf9a0b9d30ee65_c41c7d15-2be7-4675-9fc9-8d95ae6a0302.webp?v=1714722302","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886537416803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472510206051,"product_id":7408530423907,"position":1,"created_at":"2024-05-03T15:44:41+08:00","updated_at":"2024-05-03T15:44:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c8c7cc02089566f32144ac1a8505fa038f9ec7b_d6082884-8360-473c-bd36-c6294b49c65f.webp?v=1714722281","variant_ids":[41886537416803]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Look - 人在做 北極冰川在看 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-AF05","featured_media":{"alt":null,"id":23877427495011,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c8c7cc02089566f32144ac1a8505fa038f9ec7b_d6082884-8360-473c-bd36-c6294b49c65f.webp?v=1714722281"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886537416803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472510206051,"product_id":7408530423907,"position":1,"created_at":"2024-05-03T15:44:41+08:00","updated_at":"2024-05-03T15:44:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c8c7cc02089566f32144ac1a8505fa038f9ec7b_d6082884-8360-473c-bd36-c6294b49c65f.webp?v=1714722281","variant_ids":[41886537416803]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Look - 人在做 北極冰川在看 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-AF05","featured_media":{"alt":null,"id":23877427495011,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c8c7cc02089566f32144ac1a8505fa038f9ec7b_d6082884-8360-473c-bd36-c6294b49c65f.webp?v=1714722281"}},"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: "停產" }