$product = {"id":7408423010403,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-潮流系列","handle":"iphone-12-pro-max-mod-nx-printable-pb42","description":null,"published_at":"2024-06-11T16:36:49+08:00","created_at":"2024-05-03T15:23:46+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":41885310812259,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB42","requires_shipping":true,"taxable":true,"featured_image":{"id":31472239738979,"product_id":7408423010403,"position":10,"created_at":"2024-05-03T15:24:12+08:00","updated_at":"2024-05-03T15:24:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b96b391629e3c4647d01ee27e0b8a136ca79e9_980c092f-bf51-4e16-951b-00accfe4c471.webp?v=1714721052","variant_ids":[41885310812259]},"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-PB42","featured_media":{"alt":null,"id":23877155881059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b96b391629e3c4647d01ee27e0b8a136ca79e9_980c092f-bf51-4e16-951b-00accfe4c471.webp?v=1714721052"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd7b7b1d8927efa542a01f367c31b85d9aa60103_c42db378-aec6-4829-b9b6-a52a8fa335e9.webp?v=1714721029","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52841813f251895c3af9cdb456d7971f1303f3d9_a0adc44d-5083-4fd6-8637-00c0fc5a6d40.webp?v=1714721032","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68ca43c3523df5d2ce869814ce28eaadd5d462ee_d370eed8-070a-45e5-99e5-1666a7cfe6d1.webp?v=1714721034","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0668bf7aa50fe615af0e9b44401ab9f40105771d_1540b968-2494-417f-bcd6-852ea7cf0fe6.webp?v=1714721037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/385c5442d230fd965053d84454cb3c5f6404f850_3330860b-2b58-4aa0-9c9f-65a6120beeff.webp?v=1714721039","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01f5208b40d92174958b1990e16a3a70cd0e4f21_84ae5008-5aaf-453e-b32a-22fd0790b5bf.webp?v=1714721042","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80c2cbfd71b1dcbdf7b1b550cd3ac4c9241ad286_045219d4-cb69-4676-8fa7-d3f9141a16bd.webp?v=1714721045","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4c1bfe5b7707523582fd874653ae325223050f5_4ed9c8c3-fde7-42a9-8b47-e9eb454626ff.webp?v=1714721047","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7b55813d41efd2d24dfdbf645eeeba8fc197380_ce03a542-b1c0-4b7a-ada0-38e1472c4a5a.webp?v=1714721050","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b96b391629e3c4647d01ee27e0b8a136ca79e9_980c092f-bf51-4e16-951b-00accfe4c471.webp?v=1714721052"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd7b7b1d8927efa542a01f367c31b85d9aa60103_c42db378-aec6-4829-b9b6-a52a8fa335e9.webp?v=1714721029","options":["color"],"media":[{"alt":null,"id":23877150802019,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd7b7b1d8927efa542a01f367c31b85d9aa60103_c42db378-aec6-4829-b9b6-a52a8fa335e9.webp?v=1714721029"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd7b7b1d8927efa542a01f367c31b85d9aa60103_c42db378-aec6-4829-b9b6-a52a8fa335e9.webp?v=1714721029","width":2000},{"alt":null,"id":23877151326307,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52841813f251895c3af9cdb456d7971f1303f3d9_a0adc44d-5083-4fd6-8637-00c0fc5a6d40.webp?v=1714721032"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52841813f251895c3af9cdb456d7971f1303f3d9_a0adc44d-5083-4fd6-8637-00c0fc5a6d40.webp?v=1714721032","width":2000},{"alt":null,"id":23877151850595,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68ca43c3523df5d2ce869814ce28eaadd5d462ee_d370eed8-070a-45e5-99e5-1666a7cfe6d1.webp?v=1714721034"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68ca43c3523df5d2ce869814ce28eaadd5d462ee_d370eed8-070a-45e5-99e5-1666a7cfe6d1.webp?v=1714721034","width":2000},{"alt":null,"id":23877152309347,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0668bf7aa50fe615af0e9b44401ab9f40105771d_1540b968-2494-417f-bcd6-852ea7cf0fe6.webp?v=1714721037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0668bf7aa50fe615af0e9b44401ab9f40105771d_1540b968-2494-417f-bcd6-852ea7cf0fe6.webp?v=1714721037","width":2000},{"alt":null,"id":23877152997475,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/385c5442d230fd965053d84454cb3c5f6404f850_3330860b-2b58-4aa0-9c9f-65a6120beeff.webp?v=1714721039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/385c5442d230fd965053d84454cb3c5f6404f850_3330860b-2b58-4aa0-9c9f-65a6120beeff.webp?v=1714721039","width":2000},{"alt":null,"id":23877153521763,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01f5208b40d92174958b1990e16a3a70cd0e4f21_84ae5008-5aaf-453e-b32a-22fd0790b5bf.webp?v=1714721042"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01f5208b40d92174958b1990e16a3a70cd0e4f21_84ae5008-5aaf-453e-b32a-22fd0790b5bf.webp?v=1714721042","width":2000},{"alt":null,"id":23877154144355,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80c2cbfd71b1dcbdf7b1b550cd3ac4c9241ad286_045219d4-cb69-4676-8fa7-d3f9141a16bd.webp?v=1714721045"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80c2cbfd71b1dcbdf7b1b550cd3ac4c9241ad286_045219d4-cb69-4676-8fa7-d3f9141a16bd.webp?v=1714721045","width":2000},{"alt":null,"id":23877154668643,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4c1bfe5b7707523582fd874653ae325223050f5_4ed9c8c3-fde7-42a9-8b47-e9eb454626ff.webp?v=1714721047"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4c1bfe5b7707523582fd874653ae325223050f5_4ed9c8c3-fde7-42a9-8b47-e9eb454626ff.webp?v=1714721047","width":2000},{"alt":null,"id":23877155258467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7b55813d41efd2d24dfdbf645eeeba8fc197380_ce03a542-b1c0-4b7a-ada0-38e1472c4a5a.webp?v=1714721050"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7b55813d41efd2d24dfdbf645eeeba8fc197380_ce03a542-b1c0-4b7a-ada0-38e1472c4a5a.webp?v=1714721050","width":2000},{"alt":null,"id":23877155881059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b96b391629e3c4647d01ee27e0b8a136ca79e9_980c092f-bf51-4e16-951b-00accfe4c471.webp?v=1714721052"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b96b391629e3c4647d01ee27e0b8a136ca79e9_980c092f-bf51-4e16-951b-00accfe4c471.webp?v=1714721052","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885310812259,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB42","requires_shipping":true,"taxable":true,"featured_image":{"id":31472239738979,"product_id":7408423010403,"position":10,"created_at":"2024-05-03T15:24:12+08:00","updated_at":"2024-05-03T15:24:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b96b391629e3c4647d01ee27e0b8a136ca79e9_980c092f-bf51-4e16-951b-00accfe4c471.webp?v=1714721052","variant_ids":[41885310812259]},"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-PB42","featured_media":{"alt":null,"id":23877155881059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b96b391629e3c4647d01ee27e0b8a136ca79e9_980c092f-bf51-4e16-951b-00accfe4c471.webp?v=1714721052"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885310812259,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB42","requires_shipping":true,"taxable":true,"featured_image":{"id":31472239738979,"product_id":7408423010403,"position":10,"created_at":"2024-05-03T15:24:12+08:00","updated_at":"2024-05-03T15:24:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b96b391629e3c4647d01ee27e0b8a136ca79e9_980c092f-bf51-4e16-951b-00accfe4c471.webp?v=1714721052","variant_ids":[41885310812259]},"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-PB42","featured_media":{"alt":null,"id":23877155881059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b96b391629e3c4647d01ee27e0b8a136ca79e9_980c092f-bf51-4e16-951b-00accfe4c471.webp?v=1714721052"}},"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: "停產" }