$product = {"id":7408467640419,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 漫畫風格","handle":"iphone-12-pro-max-mod-nx-printable-sb02","description":null,"published_at":"2024-06-11T16:38:03+08:00","created_at":"2024-05-03T15:32:25+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-batman","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":41885809934435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31472355836003,"product_id":7408467640419,"position":8,"created_at":"2024-05-03T15:32:44+08:00","updated_at":"2024-05-03T15:32:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfe83ef8a640cb412354d56c107cda5f74f1c256_e61b8694-a463-4746-992a-40a6a5a8efec.webp?v=1714721564","variant_ids":[41885809934435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 漫畫風格 - 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-SB02","featured_media":{"alt":null,"id":23877272535139,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfe83ef8a640cb412354d56c107cda5f74f1c256_e61b8694-a463-4746-992a-40a6a5a8efec.webp?v=1714721564"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcc730bc11cd5f3efa4370e190e7b4fd0bce3654_cf129873-48cb-44c6-becf-85286d00f83f.webp?v=1714721547","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/696476571e045f75e5f7a4abe793da00801b6afe_d8f506e0-1eb6-4963-98aa-0578a23454dd.webp?v=1714721550","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3899ba2130259a428029635c9c9fb1de9b033c13_1781f45d-97da-4998-8606-88bb71cd497d.webp?v=1714721552","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/febb9f4032e3ea1b2b307bd1fe5264165a89b284_43173d2f-5d16-45bd-a68f-2862bff49207.webp?v=1714721554","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f262c0eee9dd95dedbd6c85225c2dde43d00137a_d61f7de7-fe34-4056-8476-6709c5c8b73d.webp?v=1714721557","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a8d6b6fe94b70cb92687bca7cd779359e3e42dc_d25f0b58-c9e2-413f-9db9-e119db7f5b93.webp?v=1714721559","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c12bcde497deb7928212f17e544db96a4bcfd654_835e5595-0c09-4374-92d6-54fd7908c1a0.webp?v=1714721561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfe83ef8a640cb412354d56c107cda5f74f1c256_e61b8694-a463-4746-992a-40a6a5a8efec.webp?v=1714721564","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76db7cffd00782743dd5c4860c9852ae9a69d22e_125fe1e2-9729-430b-a223-88c70b85dce4.webp?v=1714721566","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1209632d6ed39b6454c5eb37ff77c76c92fbf196_15862be0-6d11-4d26-9af7-c385ec200233.webp?v=1714721568"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcc730bc11cd5f3efa4370e190e7b4fd0bce3654_cf129873-48cb-44c6-becf-85286d00f83f.webp?v=1714721547","options":["color"],"media":[{"alt":null,"id":23877268930659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcc730bc11cd5f3efa4370e190e7b4fd0bce3654_cf129873-48cb-44c6-becf-85286d00f83f.webp?v=1714721547"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcc730bc11cd5f3efa4370e190e7b4fd0bce3654_cf129873-48cb-44c6-becf-85286d00f83f.webp?v=1714721547","width":2000},{"alt":null,"id":23877269291107,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/696476571e045f75e5f7a4abe793da00801b6afe_d8f506e0-1eb6-4963-98aa-0578a23454dd.webp?v=1714721550"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/696476571e045f75e5f7a4abe793da00801b6afe_d8f506e0-1eb6-4963-98aa-0578a23454dd.webp?v=1714721550","width":2000},{"alt":null,"id":23877270012003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3899ba2130259a428029635c9c9fb1de9b033c13_1781f45d-97da-4998-8606-88bb71cd497d.webp?v=1714721552"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3899ba2130259a428029635c9c9fb1de9b033c13_1781f45d-97da-4998-8606-88bb71cd497d.webp?v=1714721552","width":2000},{"alt":null,"id":23877270536291,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/febb9f4032e3ea1b2b307bd1fe5264165a89b284_43173d2f-5d16-45bd-a68f-2862bff49207.webp?v=1714721554"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/febb9f4032e3ea1b2b307bd1fe5264165a89b284_43173d2f-5d16-45bd-a68f-2862bff49207.webp?v=1714721554","width":2000},{"alt":null,"id":23877271093347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f262c0eee9dd95dedbd6c85225c2dde43d00137a_d61f7de7-fe34-4056-8476-6709c5c8b73d.webp?v=1714721557"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f262c0eee9dd95dedbd6c85225c2dde43d00137a_d61f7de7-fe34-4056-8476-6709c5c8b73d.webp?v=1714721557","width":2000},{"alt":null,"id":23877271519331,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a8d6b6fe94b70cb92687bca7cd779359e3e42dc_d25f0b58-c9e2-413f-9db9-e119db7f5b93.webp?v=1714721559"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a8d6b6fe94b70cb92687bca7cd779359e3e42dc_d25f0b58-c9e2-413f-9db9-e119db7f5b93.webp?v=1714721559","width":2000},{"alt":null,"id":23877272109155,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c12bcde497deb7928212f17e544db96a4bcfd654_835e5595-0c09-4374-92d6-54fd7908c1a0.webp?v=1714721561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c12bcde497deb7928212f17e544db96a4bcfd654_835e5595-0c09-4374-92d6-54fd7908c1a0.webp?v=1714721561","width":2000},{"alt":null,"id":23877272535139,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfe83ef8a640cb412354d56c107cda5f74f1c256_e61b8694-a463-4746-992a-40a6a5a8efec.webp?v=1714721564"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfe83ef8a640cb412354d56c107cda5f74f1c256_e61b8694-a463-4746-992a-40a6a5a8efec.webp?v=1714721564","width":2000},{"alt":null,"id":23877273026659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76db7cffd00782743dd5c4860c9852ae9a69d22e_125fe1e2-9729-430b-a223-88c70b85dce4.webp?v=1714721566"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76db7cffd00782743dd5c4860c9852ae9a69d22e_125fe1e2-9729-430b-a223-88c70b85dce4.webp?v=1714721566","width":2000},{"alt":null,"id":23877273452643,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1209632d6ed39b6454c5eb37ff77c76c92fbf196_15862be0-6d11-4d26-9af7-c385ec200233.webp?v=1714721568"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1209632d6ed39b6454c5eb37ff77c76c92fbf196_15862be0-6d11-4d26-9af7-c385ec200233.webp?v=1714721568","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885809934435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31472355836003,"product_id":7408467640419,"position":8,"created_at":"2024-05-03T15:32:44+08:00","updated_at":"2024-05-03T15:32:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfe83ef8a640cb412354d56c107cda5f74f1c256_e61b8694-a463-4746-992a-40a6a5a8efec.webp?v=1714721564","variant_ids":[41885809934435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 漫畫風格 - 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-SB02","featured_media":{"alt":null,"id":23877272535139,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfe83ef8a640cb412354d56c107cda5f74f1c256_e61b8694-a463-4746-992a-40a6a5a8efec.webp?v=1714721564"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885809934435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31472355836003,"product_id":7408467640419,"position":8,"created_at":"2024-05-03T15:32:44+08:00","updated_at":"2024-05-03T15:32:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfe83ef8a640cb412354d56c107cda5f74f1c256_e61b8694-a463-4746-992a-40a6a5a8efec.webp?v=1714721564","variant_ids":[41885809934435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 漫畫風格 - 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-SB02","featured_media":{"alt":null,"id":23877272535139,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfe83ef8a640cb412354d56c107cda5f74f1c256_e61b8694-a463-4746-992a-40a6a5a8efec.webp?v=1714721564"}},"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: "停產" }