$product = {"id":7408423960675,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術","handle":"iphone-12-pro-max-mod-nx-printable-pb34","description":null,"published_at":"2024-06-11T16:36:51+08:00","created_at":"2024-05-03T15:23:58+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":41885317890147,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31472236953699,"product_id":7408423960675,"position":1,"created_at":"2024-05-03T15:24:00+08:00","updated_at":"2024-05-03T15:24:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1cba9114641b949dc8b87488078fac29d73d0e_750cfba6-f06a-4756-8506-e8fa33126bc9.webp?v=1714721040","variant_ids":[41885317890147]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23877153063011,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1cba9114641b949dc8b87488078fac29d73d0e_750cfba6-f06a-4756-8506-e8fa33126bc9.webp?v=1714721040"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1cba9114641b949dc8b87488078fac29d73d0e_750cfba6-f06a-4756-8506-e8fa33126bc9.webp?v=1714721040","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62d9da1ea71e24afb94c96fd8f3a4c65e9ed8a77_7a325908-8820-456d-a04d-f92e03ea03a1.webp?v=1714721042","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4751948e8ff658cc39b87ba9621b65745490623c_963916fa-850f-4cd3-a898-fe909729904a.webp?v=1714721045","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e53594854c0344b74c65a161cf256f346d393c2a_c96ef5d5-94a4-4f4c-a4cb-ca9c8b23ed85.webp?v=1714721047","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a1c8dad166158ce05d5ccfaa17115ed0cf8993d_2d973626-5a95-4534-986d-2476ee7e0375.webp?v=1714721049","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5ee6099a5d3f3713a541ccb874f141f0e35714f_74e22ca1-a2ef-436f-9e58-c8503ce03506.webp?v=1714721051","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a98f76e9c25e9b97d41a94f4f8f0bb40fb7da85e_75b17c33-5484-4208-9874-74fa6c543405.webp?v=1714721053","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63ef5361d088df7715a1069757e9dd557cb99d17_9c2a0763-b772-4866-9f7e-ef7336db6066.webp?v=1714721055","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a485260202a98081947e4612d1e20a90988c4ad1_816aece1-488a-40c7-a8a2-1117a072d7b8.webp?v=1714721058","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12496813a51969dba6e763c17f29e17f51e6df84_b29eb5ad-d898-4a73-91c1-180865d5fed0.webp?v=1714721060"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1cba9114641b949dc8b87488078fac29d73d0e_750cfba6-f06a-4756-8506-e8fa33126bc9.webp?v=1714721040","options":["color"],"media":[{"alt":null,"id":23877153063011,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1cba9114641b949dc8b87488078fac29d73d0e_750cfba6-f06a-4756-8506-e8fa33126bc9.webp?v=1714721040"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1cba9114641b949dc8b87488078fac29d73d0e_750cfba6-f06a-4756-8506-e8fa33126bc9.webp?v=1714721040","width":2000},{"alt":null,"id":23877153652835,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62d9da1ea71e24afb94c96fd8f3a4c65e9ed8a77_7a325908-8820-456d-a04d-f92e03ea03a1.webp?v=1714721042"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62d9da1ea71e24afb94c96fd8f3a4c65e9ed8a77_7a325908-8820-456d-a04d-f92e03ea03a1.webp?v=1714721042","width":2000},{"alt":null,"id":23877154111587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4751948e8ff658cc39b87ba9621b65745490623c_963916fa-850f-4cd3-a898-fe909729904a.webp?v=1714721045"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4751948e8ff658cc39b87ba9621b65745490623c_963916fa-850f-4cd3-a898-fe909729904a.webp?v=1714721045","width":2000},{"alt":null,"id":23877154570339,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e53594854c0344b74c65a161cf256f346d393c2a_c96ef5d5-94a4-4f4c-a4cb-ca9c8b23ed85.webp?v=1714721047"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e53594854c0344b74c65a161cf256f346d393c2a_c96ef5d5-94a4-4f4c-a4cb-ca9c8b23ed85.webp?v=1714721047","width":2000},{"alt":null,"id":23877155127395,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a1c8dad166158ce05d5ccfaa17115ed0cf8993d_2d973626-5a95-4534-986d-2476ee7e0375.webp?v=1714721049"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a1c8dad166158ce05d5ccfaa17115ed0cf8993d_2d973626-5a95-4534-986d-2476ee7e0375.webp?v=1714721049","width":2000},{"alt":null,"id":23877155651683,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5ee6099a5d3f3713a541ccb874f141f0e35714f_74e22ca1-a2ef-436f-9e58-c8503ce03506.webp?v=1714721051"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5ee6099a5d3f3713a541ccb874f141f0e35714f_74e22ca1-a2ef-436f-9e58-c8503ce03506.webp?v=1714721051","width":2000},{"alt":null,"id":23877156012131,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a98f76e9c25e9b97d41a94f4f8f0bb40fb7da85e_75b17c33-5484-4208-9874-74fa6c543405.webp?v=1714721053"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a98f76e9c25e9b97d41a94f4f8f0bb40fb7da85e_75b17c33-5484-4208-9874-74fa6c543405.webp?v=1714721053","width":2000},{"alt":null,"id":23877156536419,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63ef5361d088df7715a1069757e9dd557cb99d17_9c2a0763-b772-4866-9f7e-ef7336db6066.webp?v=1714721055"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63ef5361d088df7715a1069757e9dd557cb99d17_9c2a0763-b772-4866-9f7e-ef7336db6066.webp?v=1714721055","width":2000},{"alt":null,"id":23877156962403,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a485260202a98081947e4612d1e20a90988c4ad1_816aece1-488a-40c7-a8a2-1117a072d7b8.webp?v=1714721058"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a485260202a98081947e4612d1e20a90988c4ad1_816aece1-488a-40c7-a8a2-1117a072d7b8.webp?v=1714721058","width":2000},{"alt":null,"id":23877157519459,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12496813a51969dba6e763c17f29e17f51e6df84_b29eb5ad-d898-4a73-91c1-180865d5fed0.webp?v=1714721060"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12496813a51969dba6e763c17f29e17f51e6df84_b29eb5ad-d898-4a73-91c1-180865d5fed0.webp?v=1714721060","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885317890147,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31472236953699,"product_id":7408423960675,"position":1,"created_at":"2024-05-03T15:24:00+08:00","updated_at":"2024-05-03T15:24:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1cba9114641b949dc8b87488078fac29d73d0e_750cfba6-f06a-4756-8506-e8fa33126bc9.webp?v=1714721040","variant_ids":[41885317890147]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23877153063011,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1cba9114641b949dc8b87488078fac29d73d0e_750cfba6-f06a-4756-8506-e8fa33126bc9.webp?v=1714721040"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885317890147,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31472236953699,"product_id":7408423960675,"position":1,"created_at":"2024-05-03T15:24:00+08:00","updated_at":"2024-05-03T15:24:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1cba9114641b949dc8b87488078fac29d73d0e_750cfba6-f06a-4756-8506-e8fa33126bc9.webp?v=1714721040","variant_ids":[41885317890147]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23877153063011,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1cba9114641b949dc8b87488078fac29d73d0e_750cfba6-f06a-4756-8506-e8fa33126bc9.webp?v=1714721040"}},"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: "停產" }