$product = {"id":7416384159843,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-剪紙系列","handle":"iphone-8-mod-nx-printable-pb56","description":null,"published_at":"2024-06-11T16:57:36+08:00","created_at":"2024-05-06T14:46:29+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":41919156519011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31491998318691,"product_id":7416384159843,"position":8,"created_at":"2024-05-06T14:46:48+08:00","updated_at":"2024-05-06T14:46:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f004a98fa009b3cb5701625c0eace464f8b55d9b_d17e2bbb-5e2c-4ff7-b7c6-adc7564a7096.webp?v=1714978008","variant_ids":[41919156519011]},"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-PB56","featured_media":{"alt":null,"id":23897412141155,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f004a98fa009b3cb5701625c0eace464f8b55d9b_d17e2bbb-5e2c-4ff7-b7c6-adc7564a7096.webp?v=1714978008"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd48dd400527a743019ccfb46c90391c5700fd6_b69e4172-6a8e-42a3-b8f4-70fe5e789da8.webp?v=1714977991","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc1ecef2c47259430260f1e09d12c7b388c8d28c_6d1439a1-881d-4063-aea7-7fd87ae5fe30.webp?v=1714977993","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ead3baeb2147e4b77232d01b76e17072db8d4b6_d7728058-695b-4f67-a6f4-5a29daf80a7c.webp?v=1714977996","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df62fd16e50c53021d20a50d6cc1dedf942f6d86_fcafe619-1533-4e02-ab86-2f6878078307.webp?v=1714977999","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5456651a25bc8f1e4d0a8462cf5165f42a1f84fa_cd33b1b7-73f9-4235-b26e-de1fa31cc89c.webp?v=1714978001","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7b606e1f722bd71db081fb90400026fc8c0d550_947e8e42-22b9-4671-aa81-94f5cf8b335c.webp?v=1714978004","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f42d45204f68d6c5cad0f885dbdf44e059692d14_48814986-1eb9-42c2-b05a-1d6f465b8695.webp?v=1714978006","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f004a98fa009b3cb5701625c0eace464f8b55d9b_d17e2bbb-5e2c-4ff7-b7c6-adc7564a7096.webp?v=1714978008","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24023903f7a922564864bbef589c5eaa971cc11a_d65b9d00-8eb9-4b17-a4fb-a2b277152886.webp?v=1714978011","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f797b9c244d9f0debc8059810841d7ddc8b25089_aabcd69d-8be0-424c-8219-dc92e2923c87.webp?v=1714978013"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd48dd400527a743019ccfb46c90391c5700fd6_b69e4172-6a8e-42a3-b8f4-70fe5e789da8.webp?v=1714977991","options":["color"],"media":[{"alt":null,"id":23897407750243,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd48dd400527a743019ccfb46c90391c5700fd6_b69e4172-6a8e-42a3-b8f4-70fe5e789da8.webp?v=1714977991"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd48dd400527a743019ccfb46c90391c5700fd6_b69e4172-6a8e-42a3-b8f4-70fe5e789da8.webp?v=1714977991","width":2000},{"alt":null,"id":23897408372835,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc1ecef2c47259430260f1e09d12c7b388c8d28c_6d1439a1-881d-4063-aea7-7fd87ae5fe30.webp?v=1714977993"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc1ecef2c47259430260f1e09d12c7b388c8d28c_6d1439a1-881d-4063-aea7-7fd87ae5fe30.webp?v=1714977993","width":2000},{"alt":null,"id":23897408929891,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ead3baeb2147e4b77232d01b76e17072db8d4b6_d7728058-695b-4f67-a6f4-5a29daf80a7c.webp?v=1714977996"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ead3baeb2147e4b77232d01b76e17072db8d4b6_d7728058-695b-4f67-a6f4-5a29daf80a7c.webp?v=1714977996","width":2000},{"alt":null,"id":23897410011235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df62fd16e50c53021d20a50d6cc1dedf942f6d86_fcafe619-1533-4e02-ab86-2f6878078307.webp?v=1714977999"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df62fd16e50c53021d20a50d6cc1dedf942f6d86_fcafe619-1533-4e02-ab86-2f6878078307.webp?v=1714977999","width":2000},{"alt":null,"id":23897410437219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5456651a25bc8f1e4d0a8462cf5165f42a1f84fa_cd33b1b7-73f9-4235-b26e-de1fa31cc89c.webp?v=1714978001"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5456651a25bc8f1e4d0a8462cf5165f42a1f84fa_cd33b1b7-73f9-4235-b26e-de1fa31cc89c.webp?v=1714978001","width":2000},{"alt":null,"id":23897411059811,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7b606e1f722bd71db081fb90400026fc8c0d550_947e8e42-22b9-4671-aa81-94f5cf8b335c.webp?v=1714978004"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7b606e1f722bd71db081fb90400026fc8c0d550_947e8e42-22b9-4671-aa81-94f5cf8b335c.webp?v=1714978004","width":2000},{"alt":null,"id":23897411682403,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f42d45204f68d6c5cad0f885dbdf44e059692d14_48814986-1eb9-42c2-b05a-1d6f465b8695.webp?v=1714978006"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f42d45204f68d6c5cad0f885dbdf44e059692d14_48814986-1eb9-42c2-b05a-1d6f465b8695.webp?v=1714978006","width":2000},{"alt":null,"id":23897412141155,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f004a98fa009b3cb5701625c0eace464f8b55d9b_d17e2bbb-5e2c-4ff7-b7c6-adc7564a7096.webp?v=1714978008"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f004a98fa009b3cb5701625c0eace464f8b55d9b_d17e2bbb-5e2c-4ff7-b7c6-adc7564a7096.webp?v=1714978008","width":2000},{"alt":null,"id":23897412534371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24023903f7a922564864bbef589c5eaa971cc11a_d65b9d00-8eb9-4b17-a4fb-a2b277152886.webp?v=1714978011"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24023903f7a922564864bbef589c5eaa971cc11a_d65b9d00-8eb9-4b17-a4fb-a2b277152886.webp?v=1714978011","width":2000},{"alt":null,"id":23897413255267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f797b9c244d9f0debc8059810841d7ddc8b25089_aabcd69d-8be0-424c-8219-dc92e2923c87.webp?v=1714978013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f797b9c244d9f0debc8059810841d7ddc8b25089_aabcd69d-8be0-424c-8219-dc92e2923c87.webp?v=1714978013","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919156519011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31491998318691,"product_id":7416384159843,"position":8,"created_at":"2024-05-06T14:46:48+08:00","updated_at":"2024-05-06T14:46:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f004a98fa009b3cb5701625c0eace464f8b55d9b_d17e2bbb-5e2c-4ff7-b7c6-adc7564a7096.webp?v=1714978008","variant_ids":[41919156519011]},"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-PB56","featured_media":{"alt":null,"id":23897412141155,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f004a98fa009b3cb5701625c0eace464f8b55d9b_d17e2bbb-5e2c-4ff7-b7c6-adc7564a7096.webp?v=1714978008"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919156519011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31491998318691,"product_id":7416384159843,"position":8,"created_at":"2024-05-06T14:46:48+08:00","updated_at":"2024-05-06T14:46:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f004a98fa009b3cb5701625c0eace464f8b55d9b_d17e2bbb-5e2c-4ff7-b7c6-adc7564a7096.webp?v=1714978008","variant_ids":[41919156519011]},"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-PB56","featured_media":{"alt":null,"id":23897412141155,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f004a98fa009b3cb5701625c0eace464f8b55d9b_d17e2bbb-5e2c-4ff7-b7c6-adc7564a7096.webp?v=1714978008"}},"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: "停產" }