$product = {"id":7408493232227,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-線稿風格","handle":"iphone-12-pro-max-mod-nx-printable-pb51","description":null,"published_at":"2024-06-11T16:38:47+08:00","created_at":"2024-05-03T15:37:26+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":41886104977507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31472417538147,"product_id":7408493232227,"position":3,"created_at":"2024-05-03T15:37:33+08:00","updated_at":"2024-05-03T15:37:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd6f080836be52a5d4f0cd2512bb75e1a28cf3c_0a9f05bc-bf59-4ee8-8af1-ed3f4a410404.webp?v=1714721853","variant_ids":[41886104977507]},"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-PB51","featured_media":{"alt":null,"id":23877334466659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd6f080836be52a5d4f0cd2512bb75e1a28cf3c_0a9f05bc-bf59-4ee8-8af1-ed3f4a410404.webp?v=1714721853"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/293a86cae4c9863ff5dfca6dbf137c172b0bc0ed_5ead676e-8203-4aa5-800f-4178be23e9bd.webp?v=1714721849","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd7b1fbccc758925620282973e3f237fe4c07cae_37d6a119-0a11-4bd9-815d-5cfc01305f89.webp?v=1714721851","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd6f080836be52a5d4f0cd2512bb75e1a28cf3c_0a9f05bc-bf59-4ee8-8af1-ed3f4a410404.webp?v=1714721853","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e39a70352c8798f8d9e74391d5797f70c3e68f0_0df8fd0d-2286-401d-aa44-8ec7e58703f0.webp?v=1714721856","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbb0cc6464d5a6ee5a821f10b29101750e18c437_245d318d-fd36-40c5-9619-22d4bf1902e3.webp?v=1714721858","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f8b9723ae80941bf656fc19dbf2f7393bafb6e0_a98f1c71-566f-4c73-9110-c5eef490a424.webp?v=1714721860","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e27268e4c6aadc00ce8f1ba29af7657023996eb6_3adfddc7-e57b-4d1e-a21c-b9be3e716f0d.webp?v=1714721863","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8db283c9f0ff5ff9ce54e01f0d1dd3f7b9913496_8a527da6-546d-4171-b19e-55fdc3cddef3.webp?v=1714721865","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7109da16e3f43f1109d445b72698bb2450c1596f_7efb93ba-468a-44b1-96c5-540bb056d8d7.webp?v=1714721867","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cf38ab66b344f34bbe2da902ae6e244e9392e72_fa5373c9-7a54-4e4b-b740-aa51201aa208.webp?v=1714721870"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/293a86cae4c9863ff5dfca6dbf137c172b0bc0ed_5ead676e-8203-4aa5-800f-4178be23e9bd.webp?v=1714721849","options":["color"],"media":[{"alt":null,"id":23877333516387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/293a86cae4c9863ff5dfca6dbf137c172b0bc0ed_5ead676e-8203-4aa5-800f-4178be23e9bd.webp?v=1714721849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/293a86cae4c9863ff5dfca6dbf137c172b0bc0ed_5ead676e-8203-4aa5-800f-4178be23e9bd.webp?v=1714721849","width":2000},{"alt":null,"id":23877333975139,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd7b1fbccc758925620282973e3f237fe4c07cae_37d6a119-0a11-4bd9-815d-5cfc01305f89.webp?v=1714721851"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd7b1fbccc758925620282973e3f237fe4c07cae_37d6a119-0a11-4bd9-815d-5cfc01305f89.webp?v=1714721851","width":2000},{"alt":null,"id":23877334466659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd6f080836be52a5d4f0cd2512bb75e1a28cf3c_0a9f05bc-bf59-4ee8-8af1-ed3f4a410404.webp?v=1714721853"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd6f080836be52a5d4f0cd2512bb75e1a28cf3c_0a9f05bc-bf59-4ee8-8af1-ed3f4a410404.webp?v=1714721853","width":2000},{"alt":null,"id":23877335187555,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e39a70352c8798f8d9e74391d5797f70c3e68f0_0df8fd0d-2286-401d-aa44-8ec7e58703f0.webp?v=1714721856"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e39a70352c8798f8d9e74391d5797f70c3e68f0_0df8fd0d-2286-401d-aa44-8ec7e58703f0.webp?v=1714721856","width":2000},{"alt":null,"id":23877335613539,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbb0cc6464d5a6ee5a821f10b29101750e18c437_245d318d-fd36-40c5-9619-22d4bf1902e3.webp?v=1714721858"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbb0cc6464d5a6ee5a821f10b29101750e18c437_245d318d-fd36-40c5-9619-22d4bf1902e3.webp?v=1714721858","width":2000},{"alt":null,"id":23877336203363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f8b9723ae80941bf656fc19dbf2f7393bafb6e0_a98f1c71-566f-4c73-9110-c5eef490a424.webp?v=1714721860"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f8b9723ae80941bf656fc19dbf2f7393bafb6e0_a98f1c71-566f-4c73-9110-c5eef490a424.webp?v=1714721860","width":2000},{"alt":null,"id":23877336629347,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e27268e4c6aadc00ce8f1ba29af7657023996eb6_3adfddc7-e57b-4d1e-a21c-b9be3e716f0d.webp?v=1714721863"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e27268e4c6aadc00ce8f1ba29af7657023996eb6_3adfddc7-e57b-4d1e-a21c-b9be3e716f0d.webp?v=1714721863","width":2000},{"alt":null,"id":23877337219171,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8db283c9f0ff5ff9ce54e01f0d1dd3f7b9913496_8a527da6-546d-4171-b19e-55fdc3cddef3.webp?v=1714721865"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8db283c9f0ff5ff9ce54e01f0d1dd3f7b9913496_8a527da6-546d-4171-b19e-55fdc3cddef3.webp?v=1714721865","width":2000},{"alt":null,"id":23877337645155,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7109da16e3f43f1109d445b72698bb2450c1596f_7efb93ba-468a-44b1-96c5-540bb056d8d7.webp?v=1714721867"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7109da16e3f43f1109d445b72698bb2450c1596f_7efb93ba-468a-44b1-96c5-540bb056d8d7.webp?v=1714721867","width":2000},{"alt":null,"id":23877338300515,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cf38ab66b344f34bbe2da902ae6e244e9392e72_fa5373c9-7a54-4e4b-b740-aa51201aa208.webp?v=1714721870"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cf38ab66b344f34bbe2da902ae6e244e9392e72_fa5373c9-7a54-4e4b-b740-aa51201aa208.webp?v=1714721870","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886104977507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31472417538147,"product_id":7408493232227,"position":3,"created_at":"2024-05-03T15:37:33+08:00","updated_at":"2024-05-03T15:37:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd6f080836be52a5d4f0cd2512bb75e1a28cf3c_0a9f05bc-bf59-4ee8-8af1-ed3f4a410404.webp?v=1714721853","variant_ids":[41886104977507]},"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-PB51","featured_media":{"alt":null,"id":23877334466659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd6f080836be52a5d4f0cd2512bb75e1a28cf3c_0a9f05bc-bf59-4ee8-8af1-ed3f4a410404.webp?v=1714721853"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886104977507,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31472417538147,"product_id":7408493232227,"position":3,"created_at":"2024-05-03T15:37:33+08:00","updated_at":"2024-05-03T15:37:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd6f080836be52a5d4f0cd2512bb75e1a28cf3c_0a9f05bc-bf59-4ee8-8af1-ed3f4a410404.webp?v=1714721853","variant_ids":[41886104977507]},"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-PB51","featured_media":{"alt":null,"id":23877334466659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd6f080836be52a5d4f0cd2512bb75e1a28cf3c_0a9f05bc-bf59-4ee8-8af1-ed3f4a410404.webp?v=1714721853"}},"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: "停產" }