$product = {"id":7408515186787,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章1-潮流系列","handle":"iphone-12-pro-max-mod-nx-printable-pb46","description":null,"published_at":"2024-06-11T16:39:24+08:00","created_at":"2024-05-03T15:41:47+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 12 pro 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":41886360535139,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31472474718307,"product_id":7408515186787,"position":2,"created_at":"2024-05-03T15:41:52+08:00","updated_at":"2024-05-03T15:41:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fd78a6be7ec7bab8404c066c5a7923d34e1673_9a3f9693-d0e9-4659-92b2-e4540e3cc2a1.webp?v=1714722112","variant_ids":[41886360535139]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章1-潮流系列 - 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":"NPB0118724-PB46","featured_media":{"alt":null,"id":23877391974499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fd78a6be7ec7bab8404c066c5a7923d34e1673_9a3f9693-d0e9-4659-92b2-e4540e3cc2a1.webp?v=1714722112"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1649f60a8594c6343d35605694db99c66fb96c8_60118b54-a6f7-499e-afdb-164810d5506b.webp?v=1714722110","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fd78a6be7ec7bab8404c066c5a7923d34e1673_9a3f9693-d0e9-4659-92b2-e4540e3cc2a1.webp?v=1714722112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2664d7b4aeb205fba6d9bc29cf42560cb9b42df4_ef36041e-d5f6-4da2-abe6-4c6bb62cfe55.webp?v=1714722114","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b5ff60ccde0d512e9a8fc420875febb1b540294_d90cbc6e-a2d7-4c72-8971-f89fdfe58a0c.webp?v=1714722117","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea607bcda3edac2757ff62c4ab7700f7edb88f88_abec5b54-8275-4989-b259-70014b2bfd15.webp?v=1714722119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4e984917f8e63029a7b23bfbc38de3df66ab453_174979e1-f44b-4af6-909c-4f8ae4ce593b.webp?v=1714722121","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02cd9073e760cf38ab7d7ffa106a038683a066c4_9e247b79-77bf-49ec-a8d3-d4b24804ca9a.webp?v=1714722124","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/325fbec006e61dca3c0d61ce4a1d8c15f1cfd4c7_7ec76232-9355-4a92-83c7-7d2f24c6b4bf.webp?v=1714722126","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bf16c6c6c8ef22b3e9568170d81ed40102d4e07_d1a9e926-6e44-4220-a5b2-61b38ebb4656.webp?v=1714722129","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/344e960a101d97da0fbb474ddb7f2efae6af4f34_d48991ec-9de2-4545-a893-e3ff7805f607.webp?v=1714722131"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1649f60a8594c6343d35605694db99c66fb96c8_60118b54-a6f7-499e-afdb-164810d5506b.webp?v=1714722110","options":["color"],"media":[{"alt":null,"id":23877391482979,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1649f60a8594c6343d35605694db99c66fb96c8_60118b54-a6f7-499e-afdb-164810d5506b.webp?v=1714722110"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1649f60a8594c6343d35605694db99c66fb96c8_60118b54-a6f7-499e-afdb-164810d5506b.webp?v=1714722110","width":2000},{"alt":null,"id":23877391974499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fd78a6be7ec7bab8404c066c5a7923d34e1673_9a3f9693-d0e9-4659-92b2-e4540e3cc2a1.webp?v=1714722112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fd78a6be7ec7bab8404c066c5a7923d34e1673_9a3f9693-d0e9-4659-92b2-e4540e3cc2a1.webp?v=1714722112","width":2000},{"alt":null,"id":23877392531555,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2664d7b4aeb205fba6d9bc29cf42560cb9b42df4_ef36041e-d5f6-4da2-abe6-4c6bb62cfe55.webp?v=1714722114"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2664d7b4aeb205fba6d9bc29cf42560cb9b42df4_ef36041e-d5f6-4da2-abe6-4c6bb62cfe55.webp?v=1714722114","width":2000},{"alt":null,"id":23877393121379,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b5ff60ccde0d512e9a8fc420875febb1b540294_d90cbc6e-a2d7-4c72-8971-f89fdfe58a0c.webp?v=1714722117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b5ff60ccde0d512e9a8fc420875febb1b540294_d90cbc6e-a2d7-4c72-8971-f89fdfe58a0c.webp?v=1714722117","width":2000},{"alt":null,"id":23877393514595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea607bcda3edac2757ff62c4ab7700f7edb88f88_abec5b54-8275-4989-b259-70014b2bfd15.webp?v=1714722119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea607bcda3edac2757ff62c4ab7700f7edb88f88_abec5b54-8275-4989-b259-70014b2bfd15.webp?v=1714722119","width":2000},{"alt":null,"id":23877394006115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4e984917f8e63029a7b23bfbc38de3df66ab453_174979e1-f44b-4af6-909c-4f8ae4ce593b.webp?v=1714722121"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4e984917f8e63029a7b23bfbc38de3df66ab453_174979e1-f44b-4af6-909c-4f8ae4ce593b.webp?v=1714722121","width":2000},{"alt":null,"id":23877394497635,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02cd9073e760cf38ab7d7ffa106a038683a066c4_9e247b79-77bf-49ec-a8d3-d4b24804ca9a.webp?v=1714722124"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02cd9073e760cf38ab7d7ffa106a038683a066c4_9e247b79-77bf-49ec-a8d3-d4b24804ca9a.webp?v=1714722124","width":2000},{"alt":null,"id":23877394989155,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/325fbec006e61dca3c0d61ce4a1d8c15f1cfd4c7_7ec76232-9355-4a92-83c7-7d2f24c6b4bf.webp?v=1714722126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/325fbec006e61dca3c0d61ce4a1d8c15f1cfd4c7_7ec76232-9355-4a92-83c7-7d2f24c6b4bf.webp?v=1714722126","width":2000},{"alt":null,"id":23877395644515,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bf16c6c6c8ef22b3e9568170d81ed40102d4e07_d1a9e926-6e44-4220-a5b2-61b38ebb4656.webp?v=1714722129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bf16c6c6c8ef22b3e9568170d81ed40102d4e07_d1a9e926-6e44-4220-a5b2-61b38ebb4656.webp?v=1714722129","width":2000},{"alt":null,"id":23877396136035,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/344e960a101d97da0fbb474ddb7f2efae6af4f34_d48991ec-9de2-4545-a893-e3ff7805f607.webp?v=1714722131"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/344e960a101d97da0fbb474ddb7f2efae6af4f34_d48991ec-9de2-4545-a893-e3ff7805f607.webp?v=1714722131","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886360535139,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31472474718307,"product_id":7408515186787,"position":2,"created_at":"2024-05-03T15:41:52+08:00","updated_at":"2024-05-03T15:41:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fd78a6be7ec7bab8404c066c5a7923d34e1673_9a3f9693-d0e9-4659-92b2-e4540e3cc2a1.webp?v=1714722112","variant_ids":[41886360535139]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章1-潮流系列 - 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":"NPB0118724-PB46","featured_media":{"alt":null,"id":23877391974499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fd78a6be7ec7bab8404c066c5a7923d34e1673_9a3f9693-d0e9-4659-92b2-e4540e3cc2a1.webp?v=1714722112"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886360535139,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31472474718307,"product_id":7408515186787,"position":2,"created_at":"2024-05-03T15:41:52+08:00","updated_at":"2024-05-03T15:41:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fd78a6be7ec7bab8404c066c5a7923d34e1673_9a3f9693-d0e9-4659-92b2-e4540e3cc2a1.webp?v=1714722112","variant_ids":[41886360535139]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章1-潮流系列 - 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":"NPB0118724-PB46","featured_media":{"alt":null,"id":23877391974499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fd78a6be7ec7bab8404c066c5a7923d34e1673_9a3f9693-d0e9-4659-92b2-e4540e3cc2a1.webp?v=1714722112"}},"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: "停產" }