$product = {"id":7416029380707,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 戰機-日文字系列","handle":"iphone-xs-max-mod-nx-printable-pb63","description":null,"published_at":"2024-06-11T16:50:51+08:00","created_at":"2024-05-06T12:45:07+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 XS 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":41916679684195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB63","requires_shipping":true,"taxable":true,"featured_image":{"id":31491030089827,"product_id":7416029380707,"position":8,"created_at":"2024-05-06T12:45:28+08:00","updated_at":"2024-05-06T12:45:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fd6454317b3d2cc10b6fb5113095ef0ddaadb2c_df5898ec-020b-448b-b04a-f504fff83fc8.webp?v=1714970728","variant_ids":[41916679684195]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS 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":"NPB0108624-PB63","featured_media":{"alt":null,"id":23896437391459,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fd6454317b3d2cc10b6fb5113095ef0ddaadb2c_df5898ec-020b-448b-b04a-f504fff83fc8.webp?v=1714970728"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e02e48612624c802cccdecf5495b97afe9e7dec_d4f85559-02d9-4690-aabd-cac3cd560324.webp?v=1714970710","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c472837222395ba6c44cc657f857e2bb2fdbf61_10fc4465-a7f7-4dc8-a65c-64ab69f0e408.webp?v=1714970713","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d5fcede1e9fe8489a1e550669972d14cff80fdd_67b22c64-314e-4883-9e0f-99a135789eef.webp?v=1714970716","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad0f67b0685d01c945158aeaf06b1850c3e0cac6_4b58e976-7560-4464-b3fa-167d65b033a3.webp?v=1714970718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd819ade85937cf783e191dc0af4ad215ef86537_f4db9ae2-7db9-4466-b6a7-cb84a3ab96a6.webp?v=1714970721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59d17d2e1cb97d872553da25bc5acb54e06fd5e7_804ec672-a5cd-41bc-a689-f1a955db5ae8.webp?v=1714970723","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2476cfe5be3c8b7bdadbc8b2a0e99667b64a529_5b4bbdef-9d5f-4e88-a589-3cdf6f925844.webp?v=1714970726","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fd6454317b3d2cc10b6fb5113095ef0ddaadb2c_df5898ec-020b-448b-b04a-f504fff83fc8.webp?v=1714970728","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5247c0ffd2e9a9b7e062828ecf9593e5e261cd2f_942b0e20-9d19-4092-b853-1875eeb85898.webp?v=1714970730","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603a216987ec884cb617f4b9a6d60fc67df58b67_c5da0437-2629-42da-b4c6-16cae8c5700b.webp?v=1714970733"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e02e48612624c802cccdecf5495b97afe9e7dec_d4f85559-02d9-4690-aabd-cac3cd560324.webp?v=1714970710","options":["color"],"media":[{"alt":null,"id":23896433164387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e02e48612624c802cccdecf5495b97afe9e7dec_d4f85559-02d9-4690-aabd-cac3cd560324.webp?v=1714970710"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e02e48612624c802cccdecf5495b97afe9e7dec_d4f85559-02d9-4690-aabd-cac3cd560324.webp?v=1714970710","width":2000},{"alt":null,"id":23896433786979,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c472837222395ba6c44cc657f857e2bb2fdbf61_10fc4465-a7f7-4dc8-a65c-64ab69f0e408.webp?v=1714970713"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c472837222395ba6c44cc657f857e2bb2fdbf61_10fc4465-a7f7-4dc8-a65c-64ab69f0e408.webp?v=1714970713","width":2000},{"alt":null,"id":23896434671715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d5fcede1e9fe8489a1e550669972d14cff80fdd_67b22c64-314e-4883-9e0f-99a135789eef.webp?v=1714970716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d5fcede1e9fe8489a1e550669972d14cff80fdd_67b22c64-314e-4883-9e0f-99a135789eef.webp?v=1714970716","width":2000},{"alt":null,"id":23896435359843,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad0f67b0685d01c945158aeaf06b1850c3e0cac6_4b58e976-7560-4464-b3fa-167d65b033a3.webp?v=1714970718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad0f67b0685d01c945158aeaf06b1850c3e0cac6_4b58e976-7560-4464-b3fa-167d65b033a3.webp?v=1714970718","width":2000},{"alt":null,"id":23896435818595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd819ade85937cf783e191dc0af4ad215ef86537_f4db9ae2-7db9-4466-b6a7-cb84a3ab96a6.webp?v=1714970721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd819ade85937cf783e191dc0af4ad215ef86537_f4db9ae2-7db9-4466-b6a7-cb84a3ab96a6.webp?v=1714970721","width":2000},{"alt":null,"id":23896436408419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59d17d2e1cb97d872553da25bc5acb54e06fd5e7_804ec672-a5cd-41bc-a689-f1a955db5ae8.webp?v=1714970723"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59d17d2e1cb97d872553da25bc5acb54e06fd5e7_804ec672-a5cd-41bc-a689-f1a955db5ae8.webp?v=1714970723","width":2000},{"alt":null,"id":23896436899939,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2476cfe5be3c8b7bdadbc8b2a0e99667b64a529_5b4bbdef-9d5f-4e88-a589-3cdf6f925844.webp?v=1714970726"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2476cfe5be3c8b7bdadbc8b2a0e99667b64a529_5b4bbdef-9d5f-4e88-a589-3cdf6f925844.webp?v=1714970726","width":2000},{"alt":null,"id":23896437391459,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fd6454317b3d2cc10b6fb5113095ef0ddaadb2c_df5898ec-020b-448b-b04a-f504fff83fc8.webp?v=1714970728"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fd6454317b3d2cc10b6fb5113095ef0ddaadb2c_df5898ec-020b-448b-b04a-f504fff83fc8.webp?v=1714970728","width":2000},{"alt":null,"id":23896437850211,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5247c0ffd2e9a9b7e062828ecf9593e5e261cd2f_942b0e20-9d19-4092-b853-1875eeb85898.webp?v=1714970730"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5247c0ffd2e9a9b7e062828ecf9593e5e261cd2f_942b0e20-9d19-4092-b853-1875eeb85898.webp?v=1714970730","width":2000},{"alt":null,"id":23896438702179,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603a216987ec884cb617f4b9a6d60fc67df58b67_c5da0437-2629-42da-b4c6-16cae8c5700b.webp?v=1714970733"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/603a216987ec884cb617f4b9a6d60fc67df58b67_c5da0437-2629-42da-b4c6-16cae8c5700b.webp?v=1714970733","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41916679684195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB63","requires_shipping":true,"taxable":true,"featured_image":{"id":31491030089827,"product_id":7416029380707,"position":8,"created_at":"2024-05-06T12:45:28+08:00","updated_at":"2024-05-06T12:45:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fd6454317b3d2cc10b6fb5113095ef0ddaadb2c_df5898ec-020b-448b-b04a-f504fff83fc8.webp?v=1714970728","variant_ids":[41916679684195]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS 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":"NPB0108624-PB63","featured_media":{"alt":null,"id":23896437391459,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fd6454317b3d2cc10b6fb5113095ef0ddaadb2c_df5898ec-020b-448b-b04a-f504fff83fc8.webp?v=1714970728"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41916679684195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB63","requires_shipping":true,"taxable":true,"featured_image":{"id":31491030089827,"product_id":7416029380707,"position":8,"created_at":"2024-05-06T12:45:28+08:00","updated_at":"2024-05-06T12:45:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fd6454317b3d2cc10b6fb5113095ef0ddaadb2c_df5898ec-020b-448b-b04a-f504fff83fc8.webp?v=1714970728","variant_ids":[41916679684195]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS 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":"NPB0108624-PB63","featured_media":{"alt":null,"id":23896437391459,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fd6454317b3d2cc10b6fb5113095ef0ddaadb2c_df5898ec-020b-448b-b04a-f504fff83fc8.webp?v=1714970728"}},"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: "停產" }