$product = {"id":7408470949987,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 眾紅風暴兵","handle":"iphone-12-pro-max-mod-nx-printable-pc02","description":null,"published_at":"2024-06-11T16:38:09+08:00","created_at":"2024-05-03T15:33:04+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":41885851975779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31472363470947,"product_id":7408470949987,"position":8,"created_at":"2024-05-03T15:33:23+08:00","updated_at":"2024-05-03T15:33:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/356a0027f953b79ed85315f04f3d6809eebb8f4a_0d34c7b9-1bc9-42d6-80e8-8f42cfb7f37a.webp?v=1714721603","variant_ids":[41885851975779]},"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-PC02","featured_media":{"alt":null,"id":23877280366691,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/356a0027f953b79ed85315f04f3d6809eebb8f4a_0d34c7b9-1bc9-42d6-80e8-8f42cfb7f37a.webp?v=1714721603"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ccb0ba154f1d9036b092bb1b29461427fbd981_1a2b4c02-e2c6-4f9a-9438-bb79e6b92d5a.webp?v=1714721587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2f637c5bdcfd6d88adffbbeb795bfa0d83d382_b6ad6e0b-c4ba-4f98-8bc0-d57ff4e44f12.webp?v=1714721589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90b24496aa4de837ade3a02f8a742888869edbf3_496841eb-53ca-40c6-a26f-29919a6f10ca.webp?v=1714721591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b149a982c79410fc881315edd474aa3be1c0efd_806ea660-490f-4dae-b1b3-fbb4b286d018.webp?v=1714721593","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/279b34ad4617c41eec32656674f4841b5cadd74c_4a0c9e7b-f7aa-4750-bf2b-794172bc65e8.webp?v=1714721596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e66ca43aa1e239603285952c3d506210abc87a4_c8145d96-5eb2-4564-b4d1-50c8bd9341ce.webp?v=1714721598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f65a5de506bf5b655e5f528af1a6bcb195a47933_eb32b966-fc7c-4ce9-9943-bdbc41030716.webp?v=1714721601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/356a0027f953b79ed85315f04f3d6809eebb8f4a_0d34c7b9-1bc9-42d6-80e8-8f42cfb7f37a.webp?v=1714721603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13c9cc754c65e60c424d196a6672cc1846166ede_41e9863f-8c79-4eee-a1ab-b911ae698a34.webp?v=1714721605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e99b81ec3d3a9e0022e13898ebaa9812c2e72855_db93ab36-35e2-4e9f-bf7b-209fa2a35fd8.webp?v=1714721608"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ccb0ba154f1d9036b092bb1b29461427fbd981_1a2b4c02-e2c6-4f9a-9438-bb79e6b92d5a.webp?v=1714721587","options":["color"],"media":[{"alt":null,"id":23877277253731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ccb0ba154f1d9036b092bb1b29461427fbd981_1a2b4c02-e2c6-4f9a-9438-bb79e6b92d5a.webp?v=1714721587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ccb0ba154f1d9036b092bb1b29461427fbd981_1a2b4c02-e2c6-4f9a-9438-bb79e6b92d5a.webp?v=1714721587","width":2000},{"alt":null,"id":23877277646947,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2f637c5bdcfd6d88adffbbeb795bfa0d83d382_b6ad6e0b-c4ba-4f98-8bc0-d57ff4e44f12.webp?v=1714721589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2f637c5bdcfd6d88adffbbeb795bfa0d83d382_b6ad6e0b-c4ba-4f98-8bc0-d57ff4e44f12.webp?v=1714721589","width":2000},{"alt":null,"id":23877277974627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90b24496aa4de837ade3a02f8a742888869edbf3_496841eb-53ca-40c6-a26f-29919a6f10ca.webp?v=1714721591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90b24496aa4de837ade3a02f8a742888869edbf3_496841eb-53ca-40c6-a26f-29919a6f10ca.webp?v=1714721591","width":2000},{"alt":null,"id":23877278629987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b149a982c79410fc881315edd474aa3be1c0efd_806ea660-490f-4dae-b1b3-fbb4b286d018.webp?v=1714721593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b149a982c79410fc881315edd474aa3be1c0efd_806ea660-490f-4dae-b1b3-fbb4b286d018.webp?v=1714721593","width":2000},{"alt":null,"id":23877278892131,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/279b34ad4617c41eec32656674f4841b5cadd74c_4a0c9e7b-f7aa-4750-bf2b-794172bc65e8.webp?v=1714721596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/279b34ad4617c41eec32656674f4841b5cadd74c_4a0c9e7b-f7aa-4750-bf2b-794172bc65e8.webp?v=1714721596","width":2000},{"alt":null,"id":23877279514723,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e66ca43aa1e239603285952c3d506210abc87a4_c8145d96-5eb2-4564-b4d1-50c8bd9341ce.webp?v=1714721598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e66ca43aa1e239603285952c3d506210abc87a4_c8145d96-5eb2-4564-b4d1-50c8bd9341ce.webp?v=1714721598","width":2000},{"alt":null,"id":23877279776867,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f65a5de506bf5b655e5f528af1a6bcb195a47933_eb32b966-fc7c-4ce9-9943-bdbc41030716.webp?v=1714721601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f65a5de506bf5b655e5f528af1a6bcb195a47933_eb32b966-fc7c-4ce9-9943-bdbc41030716.webp?v=1714721601","width":2000},{"alt":null,"id":23877280366691,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/356a0027f953b79ed85315f04f3d6809eebb8f4a_0d34c7b9-1bc9-42d6-80e8-8f42cfb7f37a.webp?v=1714721603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/356a0027f953b79ed85315f04f3d6809eebb8f4a_0d34c7b9-1bc9-42d6-80e8-8f42cfb7f37a.webp?v=1714721603","width":2000},{"alt":null,"id":23877280727139,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13c9cc754c65e60c424d196a6672cc1846166ede_41e9863f-8c79-4eee-a1ab-b911ae698a34.webp?v=1714721605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13c9cc754c65e60c424d196a6672cc1846166ede_41e9863f-8c79-4eee-a1ab-b911ae698a34.webp?v=1714721605","width":2000},{"alt":null,"id":23877281251427,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e99b81ec3d3a9e0022e13898ebaa9812c2e72855_db93ab36-35e2-4e9f-bf7b-209fa2a35fd8.webp?v=1714721608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e99b81ec3d3a9e0022e13898ebaa9812c2e72855_db93ab36-35e2-4e9f-bf7b-209fa2a35fd8.webp?v=1714721608","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885851975779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31472363470947,"product_id":7408470949987,"position":8,"created_at":"2024-05-03T15:33:23+08:00","updated_at":"2024-05-03T15:33:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/356a0027f953b79ed85315f04f3d6809eebb8f4a_0d34c7b9-1bc9-42d6-80e8-8f42cfb7f37a.webp?v=1714721603","variant_ids":[41885851975779]},"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-PC02","featured_media":{"alt":null,"id":23877280366691,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/356a0027f953b79ed85315f04f3d6809eebb8f4a_0d34c7b9-1bc9-42d6-80e8-8f42cfb7f37a.webp?v=1714721603"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885851975779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31472363470947,"product_id":7408470949987,"position":8,"created_at":"2024-05-03T15:33:23+08:00","updated_at":"2024-05-03T15:33:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/356a0027f953b79ed85315f04f3d6809eebb8f4a_0d34c7b9-1bc9-42d6-80e8-8f42cfb7f37a.webp?v=1714721603","variant_ids":[41885851975779]},"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-PC02","featured_media":{"alt":null,"id":23877280366691,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/356a0027f953b79ed85315f04f3d6809eebb8f4a_0d34c7b9-1bc9-42d6-80e8-8f42cfb7f37a.webp?v=1714721603"}},"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: "停產" }