$product = {"id":7408541630563,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Batman - 高譚守護者","handle":"iphone-12-mini-mod-nx-printable-sb20","description":null,"published_at":"2024-06-11T16:40:10+08:00","created_at":"2024-05-03T15:46:56+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 12 mini","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-batman","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":41886663114851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-SB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31472543662179,"product_id":7408541630563,"position":6,"created_at":"2024-05-03T15:47:11+08:00","updated_at":"2024-05-03T15:47:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a8609b3f9c9b4c0907120ecad8805f210f8bd6d_c9f76178-e323-485b-8ad2-59534755cc6e.webp?v=1714722431","variant_ids":[41886663114851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Batman - 高譚守護者 - 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":"NPB0118424-SB20","featured_media":{"alt":null,"id":23877460983907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a8609b3f9c9b4c0907120ecad8805f210f8bd6d_c9f76178-e323-485b-8ad2-59534755cc6e.webp?v=1714722431"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd1e2af57f133c2cb9184d784f03c20d45b557b_19ee4d27-c81f-4692-97bf-fad8fb4bd0ce.webp?v=1714722419","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33f96ba28ee51304a9b72c028c3bb4c4e7010e32_9779bd87-6f96-4e36-9d03-957a05ab8e2d.webp?v=1714722421","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/026f7e9d30184a7e5fb00a45891759f1f1330fe4_b0b0e67d-5086-4b80-aff6-dce8b0cce1a1.webp?v=1714722423","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e56b2ad9f78daef840fe3c358dafa17320fb926e_d3618a71-420f-40ed-a470-4e7b85af3729.webp?v=1714722426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc9346d1bf2f4912164b1f9578f451b301ed3e3f_cac44752-8bdb-44a6-9316-9d89552f3330.webp?v=1714722428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a8609b3f9c9b4c0907120ecad8805f210f8bd6d_c9f76178-e323-485b-8ad2-59534755cc6e.webp?v=1714722431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f93e56a357e5f70d48e73a13b491fd902515946f_96d3bd0c-322b-425c-9ef1-335de750ab58.webp?v=1714722433","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c15be39ed7931eddf0d2c687f8c56715668e495_84bccf9c-a526-4b97-b4ad-ca1382b429bc.webp?v=1714722435","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a612e3a3ae6611389392f3ebb04681456c5ecca_194d472c-f907-4fcd-8bea-7202099c6f31.webp?v=1714722438","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/218191a06069c8bdc0d44df9a381b4f37d40f048_d0f66108-1dd9-4bf5-af8a-f53c08c219a2.webp?v=1714722440","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee9d5492750e8074638989f065d04fae4fc96a6_8bf3567b-3e49-4140-ba63-5caa1e5e09f1.webp?v=1714722442"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd1e2af57f133c2cb9184d784f03c20d45b557b_19ee4d27-c81f-4692-97bf-fad8fb4bd0ce.webp?v=1714722419","options":["color"],"media":[{"alt":null,"id":23877458133091,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd1e2af57f133c2cb9184d784f03c20d45b557b_19ee4d27-c81f-4692-97bf-fad8fb4bd0ce.webp?v=1714722419"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd1e2af57f133c2cb9184d784f03c20d45b557b_19ee4d27-c81f-4692-97bf-fad8fb4bd0ce.webp?v=1714722419","width":2000},{"alt":null,"id":23877458624611,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33f96ba28ee51304a9b72c028c3bb4c4e7010e32_9779bd87-6f96-4e36-9d03-957a05ab8e2d.webp?v=1714722421"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33f96ba28ee51304a9b72c028c3bb4c4e7010e32_9779bd87-6f96-4e36-9d03-957a05ab8e2d.webp?v=1714722421","width":2000},{"alt":null,"id":23877459050595,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/026f7e9d30184a7e5fb00a45891759f1f1330fe4_b0b0e67d-5086-4b80-aff6-dce8b0cce1a1.webp?v=1714722423"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/026f7e9d30184a7e5fb00a45891759f1f1330fe4_b0b0e67d-5086-4b80-aff6-dce8b0cce1a1.webp?v=1714722423","width":2000},{"alt":null,"id":23877460033635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e56b2ad9f78daef840fe3c358dafa17320fb926e_d3618a71-420f-40ed-a470-4e7b85af3729.webp?v=1714722426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e56b2ad9f78daef840fe3c358dafa17320fb926e_d3618a71-420f-40ed-a470-4e7b85af3729.webp?v=1714722426","width":2000},{"alt":null,"id":23877460426851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc9346d1bf2f4912164b1f9578f451b301ed3e3f_cac44752-8bdb-44a6-9316-9d89552f3330.webp?v=1714722428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc9346d1bf2f4912164b1f9578f451b301ed3e3f_cac44752-8bdb-44a6-9316-9d89552f3330.webp?v=1714722428","width":2000},{"alt":null,"id":23877460983907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a8609b3f9c9b4c0907120ecad8805f210f8bd6d_c9f76178-e323-485b-8ad2-59534755cc6e.webp?v=1714722431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a8609b3f9c9b4c0907120ecad8805f210f8bd6d_c9f76178-e323-485b-8ad2-59534755cc6e.webp?v=1714722431","width":2000},{"alt":null,"id":23877461475427,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f93e56a357e5f70d48e73a13b491fd902515946f_96d3bd0c-322b-425c-9ef1-335de750ab58.webp?v=1714722433"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f93e56a357e5f70d48e73a13b491fd902515946f_96d3bd0c-322b-425c-9ef1-335de750ab58.webp?v=1714722433","width":2000},{"alt":null,"id":23877462032483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c15be39ed7931eddf0d2c687f8c56715668e495_84bccf9c-a526-4b97-b4ad-ca1382b429bc.webp?v=1714722435"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c15be39ed7931eddf0d2c687f8c56715668e495_84bccf9c-a526-4b97-b4ad-ca1382b429bc.webp?v=1714722435","width":2000},{"alt":null,"id":23877462851683,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a612e3a3ae6611389392f3ebb04681456c5ecca_194d472c-f907-4fcd-8bea-7202099c6f31.webp?v=1714722438"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a612e3a3ae6611389392f3ebb04681456c5ecca_194d472c-f907-4fcd-8bea-7202099c6f31.webp?v=1714722438","width":2000},{"alt":null,"id":23877463375971,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/218191a06069c8bdc0d44df9a381b4f37d40f048_d0f66108-1dd9-4bf5-af8a-f53c08c219a2.webp?v=1714722440"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/218191a06069c8bdc0d44df9a381b4f37d40f048_d0f66108-1dd9-4bf5-af8a-f53c08c219a2.webp?v=1714722440","width":2000},{"alt":null,"id":23877463834723,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee9d5492750e8074638989f065d04fae4fc96a6_8bf3567b-3e49-4140-ba63-5caa1e5e09f1.webp?v=1714722442"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee9d5492750e8074638989f065d04fae4fc96a6_8bf3567b-3e49-4140-ba63-5caa1e5e09f1.webp?v=1714722442","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886663114851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-SB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31472543662179,"product_id":7408541630563,"position":6,"created_at":"2024-05-03T15:47:11+08:00","updated_at":"2024-05-03T15:47:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a8609b3f9c9b4c0907120ecad8805f210f8bd6d_c9f76178-e323-485b-8ad2-59534755cc6e.webp?v=1714722431","variant_ids":[41886663114851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Batman - 高譚守護者 - 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":"NPB0118424-SB20","featured_media":{"alt":null,"id":23877460983907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a8609b3f9c9b4c0907120ecad8805f210f8bd6d_c9f76178-e323-485b-8ad2-59534755cc6e.webp?v=1714722431"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886663114851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-SB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31472543662179,"product_id":7408541630563,"position":6,"created_at":"2024-05-03T15:47:11+08:00","updated_at":"2024-05-03T15:47:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a8609b3f9c9b4c0907120ecad8805f210f8bd6d_c9f76178-e323-485b-8ad2-59534755cc6e.webp?v=1714722431","variant_ids":[41886663114851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Batman - 高譚守護者 - 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":"NPB0118424-SB20","featured_media":{"alt":null,"id":23877460983907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a8609b3f9c9b4c0907120ecad8805f210f8bd6d_c9f76178-e323-485b-8ad2-59534755cc6e.webp?v=1714722431"}},"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: "停產" }