$product = {"id":7416379113571,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-咖啡杯-幽默系列","handle":"iphone-8-mod-nx-printable-pc14","description":null,"published_at":"2024-06-11T16:57:27+08:00","created_at":"2024-05-06T14:45:31+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 8","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":41919095013475,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31491981148259,"product_id":7416379113571,"position":2,"created_at":"2024-05-06T14:45:35+08:00","updated_at":"2024-05-06T14:45:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e993a83757416939c7d92b90a03c7ecba134e20_729340c0-6eb6-4709-85bd-cb6920a296dd.webp?v=1714977935","variant_ids":[41919095013475]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0105424-PC14","featured_media":{"alt":null,"id":23897394577507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e993a83757416939c7d92b90a03c7ecba134e20_729340c0-6eb6-4709-85bd-cb6920a296dd.webp?v=1714977935"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8caf9f5a7441535fc970c1e1caefb00a52d86296_b3f22e16-5370-4bf3-bf3a-2a08aef5d4cb.webp?v=1714977933","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e993a83757416939c7d92b90a03c7ecba134e20_729340c0-6eb6-4709-85bd-cb6920a296dd.webp?v=1714977935","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbf8567500dd124d2127f3b2b24db1fa9f96058d_526e352f-a1f3-49cd-8313-2479fb1b6246.webp?v=1714977938","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85a87fe00d3abbceae5b41eb70fe4e25b299669a_ae46e266-95f6-4829-af2a-bc7dedee5f81.webp?v=1714977940","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e84ad81934cbfb230d838d0d97ff30c4431675e4_1106e2bc-5e82-4a5c-91c4-c456dfaf7262.webp?v=1714977942","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/836f92007fcfdbfa846f2a6462f32643c93431c0_f5e4bec4-5a50-4481-b1f1-dca13a75332c.webp?v=1714977945","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/680b21e738741f515bbcbbfe26aa6e81185e836f_623a9107-6615-4164-81a1-007645da11d7.webp?v=1714977947","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc0717b25f8bd3f0e39d362c9f7e8baa47a9136d_0383e1f9-41d5-4ed9-a9ed-82547d8c924e.webp?v=1714977949","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac0ecb90d514999737cf93179a2676376d8fc1fa_b4881def-1bee-4413-a8c1-eda55e53d154.webp?v=1714977952","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08d05049a3e813de452189edeccea0045b70eb38_7b439c73-5220-4a30-905e-3dafe18f0121.webp?v=1714977954"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8caf9f5a7441535fc970c1e1caefb00a52d86296_b3f22e16-5370-4bf3-bf3a-2a08aef5d4cb.webp?v=1714977933","options":["color"],"media":[{"alt":null,"id":23897394249827,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8caf9f5a7441535fc970c1e1caefb00a52d86296_b3f22e16-5370-4bf3-bf3a-2a08aef5d4cb.webp?v=1714977933"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8caf9f5a7441535fc970c1e1caefb00a52d86296_b3f22e16-5370-4bf3-bf3a-2a08aef5d4cb.webp?v=1714977933","width":2000},{"alt":null,"id":23897394577507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e993a83757416939c7d92b90a03c7ecba134e20_729340c0-6eb6-4709-85bd-cb6920a296dd.webp?v=1714977935"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e993a83757416939c7d92b90a03c7ecba134e20_729340c0-6eb6-4709-85bd-cb6920a296dd.webp?v=1714977935","width":2000},{"alt":null,"id":23897395134563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbf8567500dd124d2127f3b2b24db1fa9f96058d_526e352f-a1f3-49cd-8313-2479fb1b6246.webp?v=1714977938"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbf8567500dd124d2127f3b2b24db1fa9f96058d_526e352f-a1f3-49cd-8313-2479fb1b6246.webp?v=1714977938","width":2000},{"alt":null,"id":23897395495011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85a87fe00d3abbceae5b41eb70fe4e25b299669a_ae46e266-95f6-4829-af2a-bc7dedee5f81.webp?v=1714977940"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85a87fe00d3abbceae5b41eb70fe4e25b299669a_ae46e266-95f6-4829-af2a-bc7dedee5f81.webp?v=1714977940","width":2000},{"alt":null,"id":23897396117603,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e84ad81934cbfb230d838d0d97ff30c4431675e4_1106e2bc-5e82-4a5c-91c4-c456dfaf7262.webp?v=1714977942"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e84ad81934cbfb230d838d0d97ff30c4431675e4_1106e2bc-5e82-4a5c-91c4-c456dfaf7262.webp?v=1714977942","width":2000},{"alt":null,"id":23897396576355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/836f92007fcfdbfa846f2a6462f32643c93431c0_f5e4bec4-5a50-4481-b1f1-dca13a75332c.webp?v=1714977945"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/836f92007fcfdbfa846f2a6462f32643c93431c0_f5e4bec4-5a50-4481-b1f1-dca13a75332c.webp?v=1714977945","width":2000},{"alt":null,"id":23897397166179,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/680b21e738741f515bbcbbfe26aa6e81185e836f_623a9107-6615-4164-81a1-007645da11d7.webp?v=1714977947"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/680b21e738741f515bbcbbfe26aa6e81185e836f_623a9107-6615-4164-81a1-007645da11d7.webp?v=1714977947","width":2000},{"alt":null,"id":23897397624931,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc0717b25f8bd3f0e39d362c9f7e8baa47a9136d_0383e1f9-41d5-4ed9-a9ed-82547d8c924e.webp?v=1714977949"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc0717b25f8bd3f0e39d362c9f7e8baa47a9136d_0383e1f9-41d5-4ed9-a9ed-82547d8c924e.webp?v=1714977949","width":2000},{"alt":null,"id":23897398345827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac0ecb90d514999737cf93179a2676376d8fc1fa_b4881def-1bee-4413-a8c1-eda55e53d154.webp?v=1714977952"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac0ecb90d514999737cf93179a2676376d8fc1fa_b4881def-1bee-4413-a8c1-eda55e53d154.webp?v=1714977952","width":2000},{"alt":null,"id":23897398739043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08d05049a3e813de452189edeccea0045b70eb38_7b439c73-5220-4a30-905e-3dafe18f0121.webp?v=1714977954"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08d05049a3e813de452189edeccea0045b70eb38_7b439c73-5220-4a30-905e-3dafe18f0121.webp?v=1714977954","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919095013475,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31491981148259,"product_id":7416379113571,"position":2,"created_at":"2024-05-06T14:45:35+08:00","updated_at":"2024-05-06T14:45:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e993a83757416939c7d92b90a03c7ecba134e20_729340c0-6eb6-4709-85bd-cb6920a296dd.webp?v=1714977935","variant_ids":[41919095013475]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0105424-PC14","featured_media":{"alt":null,"id":23897394577507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e993a83757416939c7d92b90a03c7ecba134e20_729340c0-6eb6-4709-85bd-cb6920a296dd.webp?v=1714977935"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919095013475,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31491981148259,"product_id":7416379113571,"position":2,"created_at":"2024-05-06T14:45:35+08:00","updated_at":"2024-05-06T14:45:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e993a83757416939c7d92b90a03c7ecba134e20_729340c0-6eb6-4709-85bd-cb6920a296dd.webp?v=1714977935","variant_ids":[41919095013475]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0105424-PC14","featured_media":{"alt":null,"id":23897394577507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e993a83757416939c7d92b90a03c7ecba134e20_729340c0-6eb6-4709-85bd-cb6920a296dd.webp?v=1714977935"}},"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: "停產" }