$product = {"id":7407848194147,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士","handle":"iphone-14-plus-mod-nx-printable-pb109","description":null,"published_at":"2024-06-11T16:24:32+08:00","created_at":"2024-05-03T11:01:54+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 14 Plus","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":41879592468579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31470519943267,"product_id":7407848194147,"position":9,"created_at":"2024-05-03T11:02:16+08:00","updated_at":"2024-05-03T11:02:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1acf46d75fc66b4ab520af76a925d935ff2bb736_385709d1-16ff-4dea-8b95-71e7e1d93edd.webp?v=1714705336","variant_ids":[41879592468579]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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":"NPB0126124-PB109","featured_media":{"alt":null,"id":23875423699043,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1acf46d75fc66b4ab520af76a925d935ff2bb736_385709d1-16ff-4dea-8b95-71e7e1d93edd.webp?v=1714705336"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c21772edeced1b5b199eb5a3b3eab29257f96330_cf4585df-a84d-47d6-93b2-70f2e875bc0f.webp?v=1714705317","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71f88ac0b91bf4f1f4888d346382d465f14d17a9_4f2e4a59-73ab-4e7c-8b97-5f6dd1d3d1a3.webp?v=1714705319","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/503ffcc6f3d427d628fe82da291aa723657bbfcb_448aa98d-cab6-4c3e-a31e-c56fd3efde0a.webp?v=1714705322","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f1dd3e28acb4882e90d0271de90bf503fa1526_913cea13-dd6c-4aa3-a8e2-39539c9e48bd.webp?v=1714705324","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8274fd84b9e32dd5c4d5350e267553a48df09993_c8c77c7e-ba77-4855-8f13-5c57944e41cf.webp?v=1714705326","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11f39e43854f2c90393fd312fb2ca9939a87896c_31c00e17-609a-4406-b106-b50c537b8f2c.webp?v=1714705329","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9f450f133fd7fed37e934d4225e78c8c08bbe1e_c993c0f3-72c2-4237-b0f1-df34e859f5e2.webp?v=1714705331","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757b2a59b3f3720b54dbfa85ec7f146cbe82cdb4_93173466-61ed-47c1-9aa5-281808e8244b.webp?v=1714705334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1acf46d75fc66b4ab520af76a925d935ff2bb736_385709d1-16ff-4dea-8b95-71e7e1d93edd.webp?v=1714705336","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20d26fb0b167b27daf7de8d4c80bfcb0b96906eb_d60e910d-9335-42eb-85df-232302a4d950.webp?v=1714705339"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c21772edeced1b5b199eb5a3b3eab29257f96330_cf4585df-a84d-47d6-93b2-70f2e875bc0f.webp?v=1714705317","options":["color"],"media":[{"alt":null,"id":23875419996259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c21772edeced1b5b199eb5a3b3eab29257f96330_cf4585df-a84d-47d6-93b2-70f2e875bc0f.webp?v=1714705317"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c21772edeced1b5b199eb5a3b3eab29257f96330_cf4585df-a84d-47d6-93b2-70f2e875bc0f.webp?v=1714705317","width":2000},{"alt":null,"id":23875420356707,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71f88ac0b91bf4f1f4888d346382d465f14d17a9_4f2e4a59-73ab-4e7c-8b97-5f6dd1d3d1a3.webp?v=1714705319"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71f88ac0b91bf4f1f4888d346382d465f14d17a9_4f2e4a59-73ab-4e7c-8b97-5f6dd1d3d1a3.webp?v=1714705319","width":2000},{"alt":null,"id":23875420848227,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/503ffcc6f3d427d628fe82da291aa723657bbfcb_448aa98d-cab6-4c3e-a31e-c56fd3efde0a.webp?v=1714705322"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/503ffcc6f3d427d628fe82da291aa723657bbfcb_448aa98d-cab6-4c3e-a31e-c56fd3efde0a.webp?v=1714705322","width":2000},{"alt":null,"id":23875421339747,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f1dd3e28acb4882e90d0271de90bf503fa1526_913cea13-dd6c-4aa3-a8e2-39539c9e48bd.webp?v=1714705324"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f1dd3e28acb4882e90d0271de90bf503fa1526_913cea13-dd6c-4aa3-a8e2-39539c9e48bd.webp?v=1714705324","width":2000},{"alt":null,"id":23875421831267,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8274fd84b9e32dd5c4d5350e267553a48df09993_c8c77c7e-ba77-4855-8f13-5c57944e41cf.webp?v=1714705326"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8274fd84b9e32dd5c4d5350e267553a48df09993_c8c77c7e-ba77-4855-8f13-5c57944e41cf.webp?v=1714705326","width":2000},{"alt":null,"id":23875422322787,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11f39e43854f2c90393fd312fb2ca9939a87896c_31c00e17-609a-4406-b106-b50c537b8f2c.webp?v=1714705329"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11f39e43854f2c90393fd312fb2ca9939a87896c_31c00e17-609a-4406-b106-b50c537b8f2c.webp?v=1714705329","width":2000},{"alt":null,"id":23875422683235,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9f450f133fd7fed37e934d4225e78c8c08bbe1e_c993c0f3-72c2-4237-b0f1-df34e859f5e2.webp?v=1714705331"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9f450f133fd7fed37e934d4225e78c8c08bbe1e_c993c0f3-72c2-4237-b0f1-df34e859f5e2.webp?v=1714705331","width":2000},{"alt":null,"id":23875423207523,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757b2a59b3f3720b54dbfa85ec7f146cbe82cdb4_93173466-61ed-47c1-9aa5-281808e8244b.webp?v=1714705334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757b2a59b3f3720b54dbfa85ec7f146cbe82cdb4_93173466-61ed-47c1-9aa5-281808e8244b.webp?v=1714705334","width":2000},{"alt":null,"id":23875423699043,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1acf46d75fc66b4ab520af76a925d935ff2bb736_385709d1-16ff-4dea-8b95-71e7e1d93edd.webp?v=1714705336"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1acf46d75fc66b4ab520af76a925d935ff2bb736_385709d1-16ff-4dea-8b95-71e7e1d93edd.webp?v=1714705336","width":2000},{"alt":null,"id":23875424387171,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20d26fb0b167b27daf7de8d4c80bfcb0b96906eb_d60e910d-9335-42eb-85df-232302a4d950.webp?v=1714705339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20d26fb0b167b27daf7de8d4c80bfcb0b96906eb_d60e910d-9335-42eb-85df-232302a4d950.webp?v=1714705339","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879592468579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31470519943267,"product_id":7407848194147,"position":9,"created_at":"2024-05-03T11:02:16+08:00","updated_at":"2024-05-03T11:02:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1acf46d75fc66b4ab520af76a925d935ff2bb736_385709d1-16ff-4dea-8b95-71e7e1d93edd.webp?v=1714705336","variant_ids":[41879592468579]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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":"NPB0126124-PB109","featured_media":{"alt":null,"id":23875423699043,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1acf46d75fc66b4ab520af76a925d935ff2bb736_385709d1-16ff-4dea-8b95-71e7e1d93edd.webp?v=1714705336"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879592468579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31470519943267,"product_id":7407848194147,"position":9,"created_at":"2024-05-03T11:02:16+08:00","updated_at":"2024-05-03T11:02:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1acf46d75fc66b4ab520af76a925d935ff2bb736_385709d1-16ff-4dea-8b95-71e7e1d93edd.webp?v=1714705336","variant_ids":[41879592468579]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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":"NPB0126124-PB109","featured_media":{"alt":null,"id":23875423699043,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1acf46d75fc66b4ab520af76a925d935ff2bb736_385709d1-16ff-4dea-8b95-71e7e1d93edd.webp?v=1714705336"}},"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: "停產" }