$product = {"id":7408463413347,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Look - 人在做 峇里島在看","handle":"iphone-12-pro-max-mod-nx-printable-af06","description":null,"published_at":"2024-06-11T16:37:56+08:00","created_at":"2024-05-03T15:31: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":41885767434339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472346988643,"product_id":7408463413347,"position":8,"created_at":"2024-05-03T15:31:59+08:00","updated_at":"2024-05-03T15:31:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a71e62516d997386f73480e9bd33d31ea2d0055f_0c1a59c5-0d61-46ee-a993-a1546d176ac6.webp?v=1714721519","variant_ids":[41885767434339]},"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-AF06","featured_media":{"alt":null,"id":23877263622243,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a71e62516d997386f73480e9bd33d31ea2d0055f_0c1a59c5-0d61-46ee-a993-a1546d176ac6.webp?v=1714721519"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f1482258c95d805f2e735b7deba7cd567897dc_67452b40-d426-4617-8286-7ee3d2870c29.webp?v=1714721501","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d80b54fc50d0c461198267a068d118adcb27f724_84a728d5-6c15-4581-ae83-2865fe1778f9.webp?v=1714721503","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb1cf9c92c729a673fea036f5ad3e985b95cf31a_48e00eca-2177-4a4a-928b-fe267752790e.webp?v=1714721506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac909ee7b8813d2d9c131bb62c7f5cbfd583a01d_52393629-02a3-4755-98c4-38559d8e5ff3.webp?v=1714721508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ab2072d92db7ef0bc207eaaeda402f4a0de1495_f457b2ee-18c8-4b3c-a02d-8397127aa16a.webp?v=1714721511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc33d96632a5bd950e5f72da5b349ba4177d445e_877f65c4-c740-4fa7-98e9-fc39c8a3f270.webp?v=1714721513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01a72ccb693b3164cbe4004be456bb594f3e99a3_94079024-ce02-4b18-9ab3-347c3503e111.webp?v=1714721516","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a71e62516d997386f73480e9bd33d31ea2d0055f_0c1a59c5-0d61-46ee-a993-a1546d176ac6.webp?v=1714721519","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b04d864c76a9372fad38c1143b0e78d8dafa62d_481a269f-6f39-486e-8395-d14b344be02c.webp?v=1714721521","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02c1011e7f022574fd00171663fa8bca1198d526_af2009fb-0c9f-473b-8a65-da79bf16a4ab.webp?v=1714721523"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f1482258c95d805f2e735b7deba7cd567897dc_67452b40-d426-4617-8286-7ee3d2870c29.webp?v=1714721501","options":["color"],"media":[{"alt":null,"id":23877259591779,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f1482258c95d805f2e735b7deba7cd567897dc_67452b40-d426-4617-8286-7ee3d2870c29.webp?v=1714721501"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f1482258c95d805f2e735b7deba7cd567897dc_67452b40-d426-4617-8286-7ee3d2870c29.webp?v=1714721501","width":2000},{"alt":null,"id":23877260050531,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d80b54fc50d0c461198267a068d118adcb27f724_84a728d5-6c15-4581-ae83-2865fe1778f9.webp?v=1714721503"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d80b54fc50d0c461198267a068d118adcb27f724_84a728d5-6c15-4581-ae83-2865fe1778f9.webp?v=1714721503","width":2000},{"alt":null,"id":23877260673123,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb1cf9c92c729a673fea036f5ad3e985b95cf31a_48e00eca-2177-4a4a-928b-fe267752790e.webp?v=1714721506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb1cf9c92c729a673fea036f5ad3e985b95cf31a_48e00eca-2177-4a4a-928b-fe267752790e.webp?v=1714721506","width":2000},{"alt":null,"id":23877261164643,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac909ee7b8813d2d9c131bb62c7f5cbfd583a01d_52393629-02a3-4755-98c4-38559d8e5ff3.webp?v=1714721508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac909ee7b8813d2d9c131bb62c7f5cbfd583a01d_52393629-02a3-4755-98c4-38559d8e5ff3.webp?v=1714721508","width":2000},{"alt":null,"id":23877262049379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ab2072d92db7ef0bc207eaaeda402f4a0de1495_f457b2ee-18c8-4b3c-a02d-8397127aa16a.webp?v=1714721511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ab2072d92db7ef0bc207eaaeda402f4a0de1495_f457b2ee-18c8-4b3c-a02d-8397127aa16a.webp?v=1714721511","width":2000},{"alt":null,"id":23877262606435,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc33d96632a5bd950e5f72da5b349ba4177d445e_877f65c4-c740-4fa7-98e9-fc39c8a3f270.webp?v=1714721513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc33d96632a5bd950e5f72da5b349ba4177d445e_877f65c4-c740-4fa7-98e9-fc39c8a3f270.webp?v=1714721513","width":2000},{"alt":null,"id":23877262999651,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01a72ccb693b3164cbe4004be456bb594f3e99a3_94079024-ce02-4b18-9ab3-347c3503e111.webp?v=1714721516"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01a72ccb693b3164cbe4004be456bb594f3e99a3_94079024-ce02-4b18-9ab3-347c3503e111.webp?v=1714721516","width":2000},{"alt":null,"id":23877263622243,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a71e62516d997386f73480e9bd33d31ea2d0055f_0c1a59c5-0d61-46ee-a993-a1546d176ac6.webp?v=1714721519"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a71e62516d997386f73480e9bd33d31ea2d0055f_0c1a59c5-0d61-46ee-a993-a1546d176ac6.webp?v=1714721519","width":2000},{"alt":null,"id":23877263982691,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b04d864c76a9372fad38c1143b0e78d8dafa62d_481a269f-6f39-486e-8395-d14b344be02c.webp?v=1714721521"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b04d864c76a9372fad38c1143b0e78d8dafa62d_481a269f-6f39-486e-8395-d14b344be02c.webp?v=1714721521","width":2000},{"alt":null,"id":23877264539747,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02c1011e7f022574fd00171663fa8bca1198d526_af2009fb-0c9f-473b-8a65-da79bf16a4ab.webp?v=1714721523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02c1011e7f022574fd00171663fa8bca1198d526_af2009fb-0c9f-473b-8a65-da79bf16a4ab.webp?v=1714721523","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885767434339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472346988643,"product_id":7408463413347,"position":8,"created_at":"2024-05-03T15:31:59+08:00","updated_at":"2024-05-03T15:31:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a71e62516d997386f73480e9bd33d31ea2d0055f_0c1a59c5-0d61-46ee-a993-a1546d176ac6.webp?v=1714721519","variant_ids":[41885767434339]},"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-AF06","featured_media":{"alt":null,"id":23877263622243,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a71e62516d997386f73480e9bd33d31ea2d0055f_0c1a59c5-0d61-46ee-a993-a1546d176ac6.webp?v=1714721519"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885767434339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-AF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472346988643,"product_id":7408463413347,"position":8,"created_at":"2024-05-03T15:31:59+08:00","updated_at":"2024-05-03T15:31:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a71e62516d997386f73480e9bd33d31ea2d0055f_0c1a59c5-0d61-46ee-a993-a1546d176ac6.webp?v=1714721519","variant_ids":[41885767434339]},"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-AF06","featured_media":{"alt":null,"id":23877263622243,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a71e62516d997386f73480e9bd33d31ea2d0055f_0c1a59c5-0d61-46ee-a993-a1546d176ac6.webp?v=1714721519"}},"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: "停產" }