$product = {"id":7369159508067,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Snoopy 史努比 - 曬太陽","handle":"iphone-8-mod-nx-printable-pl63","description":null,"published_at":"2024-06-11T16:13:30+08:00","created_at":"2024-04-23T15:35:38+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 8","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":41793140195427,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PL63","requires_shipping":true,"taxable":true,"featured_image":{"id":31386940768355,"product_id":7369159508067,"position":1,"created_at":"2024-04-23T15:35:40+08:00","updated_at":"2024-04-23T15:35:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a43b8021233c8e6a96cc39dcf3215147c2666e_852984d4-a44e-4331-a6a3-7d9c37de035c.webp?v=1713857740","variant_ids":[41793140195427]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 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":"NPB0105424-PL63","featured_media":{"alt":null,"id":23789178945635,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a43b8021233c8e6a96cc39dcf3215147c2666e_852984d4-a44e-4331-a6a3-7d9c37de035c.webp?v=1713857740"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a43b8021233c8e6a96cc39dcf3215147c2666e_852984d4-a44e-4331-a6a3-7d9c37de035c.webp?v=1713857740","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f3f38b35079e1d0c75bc303b34f589b116c5c6c_2a394756-9bc5-4944-ae45-c86ef7cf38cd.webp?v=1713857742","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63b148ed247a405abd2b0a2cd695b3574b512b4e_ab2a2032-f2fb-45b7-af87-2b4281fe7d79.webp?v=1713857745","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c203aa34d350bd2c0f614223103fbd45a52adc1d_475d11e6-dc26-407b-9098-992cd4de520c.webp?v=1713857747","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d1697b32d5b142ca367d4aeb513b9f1d31d6993_f5392992-c296-435b-8116-c4a58a3cc212.webp?v=1713857749","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/799d08b97e6e80d234540e5a71272120fc9bb2ae_eeed28cf-7725-4ad9-8149-6daf0e59a785.webp?v=1713857752","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af4210b6ecf41d3fa822cf20096d1c23b5ef12dc_68f05994-26b5-4bf4-adf8-cad9e0fce412.webp?v=1713857754","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96a1d25441583893c0e09471b426f573e2cd8551_70f36362-67e3-473d-b211-be04dcb6b734.webp?v=1713857757","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a097758e451dbf25e734ce6948a83e44c9066577_08b24c45-661c-43e6-b589-766de842568c.webp?v=1713857759","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2defb0b50cbefd4eb63c77b7ebed90db5ca979d2_17a9ee81-7afb-41aa-bb0a-81bdc436e6f4.webp?v=1713857762"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a43b8021233c8e6a96cc39dcf3215147c2666e_852984d4-a44e-4331-a6a3-7d9c37de035c.webp?v=1713857740","options":["color"],"media":[{"alt":null,"id":23789178945635,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a43b8021233c8e6a96cc39dcf3215147c2666e_852984d4-a44e-4331-a6a3-7d9c37de035c.webp?v=1713857740"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a43b8021233c8e6a96cc39dcf3215147c2666e_852984d4-a44e-4331-a6a3-7d9c37de035c.webp?v=1713857740","width":2000},{"alt":null,"id":23789179797603,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f3f38b35079e1d0c75bc303b34f589b116c5c6c_2a394756-9bc5-4944-ae45-c86ef7cf38cd.webp?v=1713857742"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f3f38b35079e1d0c75bc303b34f589b116c5c6c_2a394756-9bc5-4944-ae45-c86ef7cf38cd.webp?v=1713857742","width":2000},{"alt":null,"id":23789180387427,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63b148ed247a405abd2b0a2cd695b3574b512b4e_ab2a2032-f2fb-45b7-af87-2b4281fe7d79.webp?v=1713857745"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63b148ed247a405abd2b0a2cd695b3574b512b4e_ab2a2032-f2fb-45b7-af87-2b4281fe7d79.webp?v=1713857745","width":2000},{"alt":null,"id":23789181042787,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c203aa34d350bd2c0f614223103fbd45a52adc1d_475d11e6-dc26-407b-9098-992cd4de520c.webp?v=1713857747"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c203aa34d350bd2c0f614223103fbd45a52adc1d_475d11e6-dc26-407b-9098-992cd4de520c.webp?v=1713857747","width":2000},{"alt":null,"id":23789181960291,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d1697b32d5b142ca367d4aeb513b9f1d31d6993_f5392992-c296-435b-8116-c4a58a3cc212.webp?v=1713857749"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d1697b32d5b142ca367d4aeb513b9f1d31d6993_f5392992-c296-435b-8116-c4a58a3cc212.webp?v=1713857749","width":2000},{"alt":null,"id":23789182517347,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/799d08b97e6e80d234540e5a71272120fc9bb2ae_eeed28cf-7725-4ad9-8149-6daf0e59a785.webp?v=1713857752"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/799d08b97e6e80d234540e5a71272120fc9bb2ae_eeed28cf-7725-4ad9-8149-6daf0e59a785.webp?v=1713857752","width":2000},{"alt":null,"id":23789183172707,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af4210b6ecf41d3fa822cf20096d1c23b5ef12dc_68f05994-26b5-4bf4-adf8-cad9e0fce412.webp?v=1713857754"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af4210b6ecf41d3fa822cf20096d1c23b5ef12dc_68f05994-26b5-4bf4-adf8-cad9e0fce412.webp?v=1713857754","width":2000},{"alt":null,"id":23789184024675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96a1d25441583893c0e09471b426f573e2cd8551_70f36362-67e3-473d-b211-be04dcb6b734.webp?v=1713857757"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96a1d25441583893c0e09471b426f573e2cd8551_70f36362-67e3-473d-b211-be04dcb6b734.webp?v=1713857757","width":2000},{"alt":null,"id":23789184581731,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a097758e451dbf25e734ce6948a83e44c9066577_08b24c45-661c-43e6-b589-766de842568c.webp?v=1713857759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a097758e451dbf25e734ce6948a83e44c9066577_08b24c45-661c-43e6-b589-766de842568c.webp?v=1713857759","width":2000},{"alt":null,"id":23789185269859,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2defb0b50cbefd4eb63c77b7ebed90db5ca979d2_17a9ee81-7afb-41aa-bb0a-81bdc436e6f4.webp?v=1713857762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2defb0b50cbefd4eb63c77b7ebed90db5ca979d2_17a9ee81-7afb-41aa-bb0a-81bdc436e6f4.webp?v=1713857762","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41793140195427,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PL63","requires_shipping":true,"taxable":true,"featured_image":{"id":31386940768355,"product_id":7369159508067,"position":1,"created_at":"2024-04-23T15:35:40+08:00","updated_at":"2024-04-23T15:35:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a43b8021233c8e6a96cc39dcf3215147c2666e_852984d4-a44e-4331-a6a3-7d9c37de035c.webp?v=1713857740","variant_ids":[41793140195427]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 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":"NPB0105424-PL63","featured_media":{"alt":null,"id":23789178945635,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a43b8021233c8e6a96cc39dcf3215147c2666e_852984d4-a44e-4331-a6a3-7d9c37de035c.webp?v=1713857740"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41793140195427,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PL63","requires_shipping":true,"taxable":true,"featured_image":{"id":31386940768355,"product_id":7369159508067,"position":1,"created_at":"2024-04-23T15:35:40+08:00","updated_at":"2024-04-23T15:35:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a43b8021233c8e6a96cc39dcf3215147c2666e_852984d4-a44e-4331-a6a3-7d9c37de035c.webp?v=1713857740","variant_ids":[41793140195427]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 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":"NPB0105424-PL63","featured_media":{"alt":null,"id":23789178945635,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a43b8021233c8e6a96cc39dcf3215147c2666e_852984d4-a44e-4331-a6a3-7d9c37de035c.webp?v=1713857740"}},"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: "停產" }