$product = {"id":7408548708451,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆黑","handle":"iphone-12-pro-max-mod-nx-printable-pb01","description":null,"published_at":"2024-06-11T16:40:23+08:00","created_at":"2024-05-03T15:48:21+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","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":41886740938851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472563421283,"product_id":7408548708451,"position":9,"created_at":"2024-05-03T15:48:42+08:00","updated_at":"2024-05-03T15:48:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/946a417b0cb532d36657d7adf59b97b453c91b2a_debdc23d-1d05-457a-a73d-19c1b80af1d0.webp?v=1714722522","variant_ids":[41886740938851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆黑 - 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-PB01","featured_media":{"alt":null,"id":23877480775779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/946a417b0cb532d36657d7adf59b97b453c91b2a_debdc23d-1d05-457a-a73d-19c1b80af1d0.webp?v=1714722522"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16693fbc81838f76f8c2c73e55e5440b35c6c6b1_7371c1e6-7bf2-4c18-8232-47610cd1ff21.webp?v=1714722504","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad12c6517d9c57612308d4cd41b5e80e51bcc2b6_79f7c4f8-e9ee-4dfd-a8ac-d7a1e9f65b0d.webp?v=1714722506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41c95a318a51cd313b71e21b0b767d6cb6c9777d_30c22336-e061-4967-b87f-ec8b21dfe655.webp?v=1714722508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ab6d8d32c0175013ad973644f671c68cbe6bd0d_9a537684-a2d2-4b41-ae15-c41b51a94fa1.webp?v=1714722511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d6d1b786752082fe5a51b8ef75196d1feec4307_150fcab4-37c5-4b2f-84a2-6645a6b6ae2e.webp?v=1714722513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf918d045352e36a97f4ca9e4c051436e1afb389_4eeebf74-a1ce-40c5-92bb-14abbd26ed87.webp?v=1714722516","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f16fd8756cc6d189f9f26119fbd2b8f1d23a307_23a94cc8-81dd-4b3c-8fd8-78916ca5818c.webp?v=1714722518","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0e14b9071fbb72ea3dfc66f82964fed376d06a9_efb6b525-dd83-4765-95f8-d286e6d8e630.webp?v=1714722520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/946a417b0cb532d36657d7adf59b97b453c91b2a_debdc23d-1d05-457a-a73d-19c1b80af1d0.webp?v=1714722522","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eabf09c882a13ba7b6d7a7af94e43e31f3d518f8_7c0cd61d-fbb0-4ed3-b6ac-21b4aae20cdd.webp?v=1714722525"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16693fbc81838f76f8c2c73e55e5440b35c6c6b1_7371c1e6-7bf2-4c18-8232-47610cd1ff21.webp?v=1714722504","options":["color"],"media":[{"alt":null,"id":23877476679779,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16693fbc81838f76f8c2c73e55e5440b35c6c6b1_7371c1e6-7bf2-4c18-8232-47610cd1ff21.webp?v=1714722504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16693fbc81838f76f8c2c73e55e5440b35c6c6b1_7371c1e6-7bf2-4c18-8232-47610cd1ff21.webp?v=1714722504","width":2000},{"alt":null,"id":23877477171299,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad12c6517d9c57612308d4cd41b5e80e51bcc2b6_79f7c4f8-e9ee-4dfd-a8ac-d7a1e9f65b0d.webp?v=1714722506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad12c6517d9c57612308d4cd41b5e80e51bcc2b6_79f7c4f8-e9ee-4dfd-a8ac-d7a1e9f65b0d.webp?v=1714722506","width":2000},{"alt":null,"id":23877477597283,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41c95a318a51cd313b71e21b0b767d6cb6c9777d_30c22336-e061-4967-b87f-ec8b21dfe655.webp?v=1714722508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41c95a318a51cd313b71e21b0b767d6cb6c9777d_30c22336-e061-4967-b87f-ec8b21dfe655.webp?v=1714722508","width":2000},{"alt":null,"id":23877478187107,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ab6d8d32c0175013ad973644f671c68cbe6bd0d_9a537684-a2d2-4b41-ae15-c41b51a94fa1.webp?v=1714722511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ab6d8d32c0175013ad973644f671c68cbe6bd0d_9a537684-a2d2-4b41-ae15-c41b51a94fa1.webp?v=1714722511","width":2000},{"alt":null,"id":23877478613091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d6d1b786752082fe5a51b8ef75196d1feec4307_150fcab4-37c5-4b2f-84a2-6645a6b6ae2e.webp?v=1714722513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d6d1b786752082fe5a51b8ef75196d1feec4307_150fcab4-37c5-4b2f-84a2-6645a6b6ae2e.webp?v=1714722513","width":2000},{"alt":null,"id":23877479202915,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf918d045352e36a97f4ca9e4c051436e1afb389_4eeebf74-a1ce-40c5-92bb-14abbd26ed87.webp?v=1714722516"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf918d045352e36a97f4ca9e4c051436e1afb389_4eeebf74-a1ce-40c5-92bb-14abbd26ed87.webp?v=1714722516","width":2000},{"alt":null,"id":23877479825507,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f16fd8756cc6d189f9f26119fbd2b8f1d23a307_23a94cc8-81dd-4b3c-8fd8-78916ca5818c.webp?v=1714722518"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f16fd8756cc6d189f9f26119fbd2b8f1d23a307_23a94cc8-81dd-4b3c-8fd8-78916ca5818c.webp?v=1714722518","width":2000},{"alt":null,"id":23877480317027,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0e14b9071fbb72ea3dfc66f82964fed376d06a9_efb6b525-dd83-4765-95f8-d286e6d8e630.webp?v=1714722520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0e14b9071fbb72ea3dfc66f82964fed376d06a9_efb6b525-dd83-4765-95f8-d286e6d8e630.webp?v=1714722520","width":2000},{"alt":null,"id":23877480775779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/946a417b0cb532d36657d7adf59b97b453c91b2a_debdc23d-1d05-457a-a73d-19c1b80af1d0.webp?v=1714722522"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/946a417b0cb532d36657d7adf59b97b453c91b2a_debdc23d-1d05-457a-a73d-19c1b80af1d0.webp?v=1714722522","width":2000},{"alt":null,"id":23877481267299,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eabf09c882a13ba7b6d7a7af94e43e31f3d518f8_7c0cd61d-fbb0-4ed3-b6ac-21b4aae20cdd.webp?v=1714722525"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eabf09c882a13ba7b6d7a7af94e43e31f3d518f8_7c0cd61d-fbb0-4ed3-b6ac-21b4aae20cdd.webp?v=1714722525","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886740938851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472563421283,"product_id":7408548708451,"position":9,"created_at":"2024-05-03T15:48:42+08:00","updated_at":"2024-05-03T15:48:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/946a417b0cb532d36657d7adf59b97b453c91b2a_debdc23d-1d05-457a-a73d-19c1b80af1d0.webp?v=1714722522","variant_ids":[41886740938851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆黑 - 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-PB01","featured_media":{"alt":null,"id":23877480775779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/946a417b0cb532d36657d7adf59b97b453c91b2a_debdc23d-1d05-457a-a73d-19c1b80af1d0.webp?v=1714722522"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886740938851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472563421283,"product_id":7408548708451,"position":9,"created_at":"2024-05-03T15:48:42+08:00","updated_at":"2024-05-03T15:48:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/946a417b0cb532d36657d7adf59b97b453c91b2a_debdc23d-1d05-457a-a73d-19c1b80af1d0.webp?v=1714722522","variant_ids":[41886740938851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆黑 - 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-PB01","featured_media":{"alt":null,"id":23877480775779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/946a417b0cb532d36657d7adf59b97b453c91b2a_debdc23d-1d05-457a-a73d-19c1b80af1d0.webp?v=1714722522"}},"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: "停產" }