$product = {"id":7416340971619,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-線稿風格","handle":"iphone-8-mod-nx-printable-pb51","description":null,"published_at":"2024-06-11T16:56:23+08:00","created_at":"2024-05-06T14:37:56+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":41918683709539,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31491890282595,"product_id":7416340971619,"position":7,"created_at":"2024-05-06T14:38:13+08:00","updated_at":"2024-05-06T14:38:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c98d5ef7da0509c55df834df847edcd00cc39227_9a9f2934-8fc3-4f7b-b561-832c86785ca9.webp?v=1714977493","variant_ids":[41918683709539]},"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-PB51","featured_media":{"alt":null,"id":23897303122019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c98d5ef7da0509c55df834df847edcd00cc39227_9a9f2934-8fc3-4f7b-b561-832c86785ca9.webp?v=1714977493"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27338be707190e60d79f73e37bfcfaccade0f084_85511850-1595-4dc9-a4eb-79062f216f54.webp?v=1714977479","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a6f5cfb3a0fb3e0347bf2ac9ae7b03698aa3133_03b1a583-abc4-4154-b584-0672585c3d64.webp?v=1714977481","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1879084095a1e59f0ad196debeee821ca73842bc_d82aca71-3647-4ce8-a493-9beae1411d22.webp?v=1714977484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da66ac19bd417bd02c5434bf14548d04c39811ca_91dc3831-4d57-4056-8e78-999c34fd8f5a.webp?v=1714977486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4216adde3abec31464991d43896595597e1c0748_c0bb440f-cb9b-46a3-8b79-18b8c0c85b46.webp?v=1714977488","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36697b1e58a668ba618c1d90c42c2f45a7bc5f71_a0366f26-8410-4a95-889e-a169daa6eb3a.webp?v=1714977490","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c98d5ef7da0509c55df834df847edcd00cc39227_9a9f2934-8fc3-4f7b-b561-832c86785ca9.webp?v=1714977493","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c84a06676a2c8fc5c7441f263c2169317e82aad9_f626eaca-b7a9-42d5-8982-483bc2f77e09.webp?v=1714977495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32f61033bc1dec1f3a5ca3f8267bf72358ca0f61_c7485fb1-e97e-4e5f-bd2e-dd5cbd0000ee.webp?v=1714977497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00fdde6db886fbc4b76b15bb66b848684a9eabc7_1d0c05fe-d574-4307-987d-1aafb6a2498f.webp?v=1714977500"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27338be707190e60d79f73e37bfcfaccade0f084_85511850-1595-4dc9-a4eb-79062f216f54.webp?v=1714977479","options":["color"],"media":[{"alt":null,"id":23897300303971,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27338be707190e60d79f73e37bfcfaccade0f084_85511850-1595-4dc9-a4eb-79062f216f54.webp?v=1714977479"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27338be707190e60d79f73e37bfcfaccade0f084_85511850-1595-4dc9-a4eb-79062f216f54.webp?v=1714977479","width":2000},{"alt":null,"id":23897300762723,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a6f5cfb3a0fb3e0347bf2ac9ae7b03698aa3133_03b1a583-abc4-4154-b584-0672585c3d64.webp?v=1714977481"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a6f5cfb3a0fb3e0347bf2ac9ae7b03698aa3133_03b1a583-abc4-4154-b584-0672585c3d64.webp?v=1714977481","width":2000},{"alt":null,"id":23897301221475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1879084095a1e59f0ad196debeee821ca73842bc_d82aca71-3647-4ce8-a493-9beae1411d22.webp?v=1714977484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1879084095a1e59f0ad196debeee821ca73842bc_d82aca71-3647-4ce8-a493-9beae1411d22.webp?v=1714977484","width":2000},{"alt":null,"id":23897301844067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da66ac19bd417bd02c5434bf14548d04c39811ca_91dc3831-4d57-4056-8e78-999c34fd8f5a.webp?v=1714977486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da66ac19bd417bd02c5434bf14548d04c39811ca_91dc3831-4d57-4056-8e78-999c34fd8f5a.webp?v=1714977486","width":2000},{"alt":null,"id":23897302237283,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4216adde3abec31464991d43896595597e1c0748_c0bb440f-cb9b-46a3-8b79-18b8c0c85b46.webp?v=1714977488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4216adde3abec31464991d43896595597e1c0748_c0bb440f-cb9b-46a3-8b79-18b8c0c85b46.webp?v=1714977488","width":2000},{"alt":null,"id":23897302761571,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36697b1e58a668ba618c1d90c42c2f45a7bc5f71_a0366f26-8410-4a95-889e-a169daa6eb3a.webp?v=1714977490"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36697b1e58a668ba618c1d90c42c2f45a7bc5f71_a0366f26-8410-4a95-889e-a169daa6eb3a.webp?v=1714977490","width":2000},{"alt":null,"id":23897303122019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c98d5ef7da0509c55df834df847edcd00cc39227_9a9f2934-8fc3-4f7b-b561-832c86785ca9.webp?v=1714977493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c98d5ef7da0509c55df834df847edcd00cc39227_9a9f2934-8fc3-4f7b-b561-832c86785ca9.webp?v=1714977493","width":2000},{"alt":null,"id":23897303580771,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c84a06676a2c8fc5c7441f263c2169317e82aad9_f626eaca-b7a9-42d5-8982-483bc2f77e09.webp?v=1714977495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c84a06676a2c8fc5c7441f263c2169317e82aad9_f626eaca-b7a9-42d5-8982-483bc2f77e09.webp?v=1714977495","width":2000},{"alt":null,"id":23897303875683,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32f61033bc1dec1f3a5ca3f8267bf72358ca0f61_c7485fb1-e97e-4e5f-bd2e-dd5cbd0000ee.webp?v=1714977497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32f61033bc1dec1f3a5ca3f8267bf72358ca0f61_c7485fb1-e97e-4e5f-bd2e-dd5cbd0000ee.webp?v=1714977497","width":2000},{"alt":null,"id":23897304399971,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00fdde6db886fbc4b76b15bb66b848684a9eabc7_1d0c05fe-d574-4307-987d-1aafb6a2498f.webp?v=1714977500"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00fdde6db886fbc4b76b15bb66b848684a9eabc7_1d0c05fe-d574-4307-987d-1aafb6a2498f.webp?v=1714977500","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918683709539,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31491890282595,"product_id":7416340971619,"position":7,"created_at":"2024-05-06T14:38:13+08:00","updated_at":"2024-05-06T14:38:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c98d5ef7da0509c55df834df847edcd00cc39227_9a9f2934-8fc3-4f7b-b561-832c86785ca9.webp?v=1714977493","variant_ids":[41918683709539]},"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-PB51","featured_media":{"alt":null,"id":23897303122019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c98d5ef7da0509c55df834df847edcd00cc39227_9a9f2934-8fc3-4f7b-b561-832c86785ca9.webp?v=1714977493"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918683709539,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31491890282595,"product_id":7416340971619,"position":7,"created_at":"2024-05-06T14:38:13+08:00","updated_at":"2024-05-06T14:38:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c98d5ef7da0509c55df834df847edcd00cc39227_9a9f2934-8fc3-4f7b-b561-832c86785ca9.webp?v=1714977493","variant_ids":[41918683709539]},"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-PB51","featured_media":{"alt":null,"id":23897303122019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c98d5ef7da0509c55df834df847edcd00cc39227_9a9f2934-8fc3-4f7b-b561-832c86785ca9.webp?v=1714977493"}},"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: "停產" }