$product = {"id":7860571603043,"title":"iPhone Air Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕)","handle":"iphone-air-mod-nx-magsafe-bumper-with-capture-button-clearplate","description":null,"published_at":"2025-08-21T11:00:11+08:00","created_at":"2025-08-21T10:58:24+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"ModNX MagSafe with Capture Button","tags":["20%","25%","30%","35%","40%","45%","50%","all-phone-case-fp","brand-Apple","device-iPhone Air","discountable","discountable-item","dropdownDevice-Apple iPhone Air","featured-product","iphone-17-series","member","quickbuy","reseller","reseller-mod-nx-magsafe-bumper-with-capture-button-clearplate","type-mod-nx-bumper-clearplate-magsafe-with-capture-button-featured-product","viewable"],"price":100000,"price_min":100000,"price_max":100000,"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":43602710102115,"title":"白","option1":"白","option2":null,"option3":null,"sku":"MXB0135104","requires_shipping":true,"taxable":true,"featured_image":{"id":34700760219747,"product_id":7860571603043,"position":6,"created_at":"2025-10-29T10:23:27+08:00","updated_at":"2025-10-29T10:23:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b64f2417023c70f85464c1dfd097280893599643.webp?v=1761704609","variant_ids":[43602710102115]},"available":true,"name":"iPhone Air Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) - 白","public_title":"白","options":["白"],"price":100000,"weight":0,"compare_at_price":null,"inventory_quantity":-23,"inventory_management":null,"inventory_policy":"deny","barcode":"4711592495858","featured_media":{"alt":null,"id":26269792141411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b64f2417023c70f85464c1dfd097280893599643.webp?v=1761704609"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43602711838819,"title":"黑","option1":"黑","option2":null,"option3":null,"sku":"MXB0135124","requires_shipping":true,"taxable":true,"featured_image":{"id":34700759924835,"product_id":7860571603043,"position":5,"created_at":"2025-10-29T10:23:26+08:00","updated_at":"2025-10-29T10:23:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c297efd3a5007efaad8909de9d001180db72bb3f.webp?v=1761704608","variant_ids":[43602711838819]},"available":true,"name":"iPhone Air Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) - 黑","public_title":"黑","options":["黑"],"price":100000,"weight":0,"compare_at_price":null,"inventory_quantity":-17,"inventory_management":null,"inventory_policy":"deny","barcode":"4711592495865","featured_media":{"alt":null,"id":26269791846499,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c297efd3a5007efaad8909de9d001180db72bb3f.webp?v=1761704608"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43602711871587,"title":"泥灰","option1":"泥灰","option2":null,"option3":null,"sku":"MXB0135169","requires_shipping":true,"taxable":true,"featured_image":{"id":34700760547427,"product_id":7860571603043,"position":7,"created_at":"2025-10-29T10:23:27+08:00","updated_at":"2025-10-29T10:23:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/478b4ffa026dd7d61dc45851cfdce59559839476.webp?v=1761704610","variant_ids":[43602711871587]},"available":true,"name":"iPhone Air Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) - 泥灰","public_title":"泥灰","options":["泥灰"],"price":100000,"weight":0,"compare_at_price":null,"inventory_quantity":-17,"inventory_management":null,"inventory_policy":"deny","barcode":"4711592495889","featured_media":{"alt":null,"id":26269792436323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/478b4ffa026dd7d61dc45851cfdce59559839476.webp?v=1761704610"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43602711904355,"title":"海軍藍","option1":"海軍藍","option2":null,"option3":null,"sku":"MXB01351J5","requires_shipping":true,"taxable":true,"featured_image":{"id":34700760711267,"product_id":7860571603043,"position":8,"created_at":"2025-10-29T10:23:28+08:00","updated_at":"2025-10-29T10:23:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2d9a085bd89967ca1a93ba72bd7d8bc7f726a38.webp?v=1761704610","variant_ids":[43602711904355]},"available":true,"name":"iPhone Air Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) - 海軍藍","public_title":"海軍藍","options":["海軍藍"],"price":100000,"weight":0,"compare_at_price":null,"inventory_quantity":-18,"inventory_management":null,"inventory_policy":"deny","barcode":"4711592495919","featured_media":{"alt":null,"id":26269792600163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2d9a085bd89967ca1a93ba72bd7d8bc7f726a38.webp?v=1761704610"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b1b214d48d50c6c21b9189762b0e60dea871adf.webp?v=1755745108","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c62a5f2f04223aee3081c9f168afffe5e52f7df5.webp?v=1755745108","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/098a5127b8561f7b3f54bb87b7c3d807bec3e6db.webp?v=1755745109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cd5f27796bd49945b736f25009101a2f784945b.webp?v=1755745110","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c297efd3a5007efaad8909de9d001180db72bb3f.webp?v=1761704608","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b64f2417023c70f85464c1dfd097280893599643.webp?v=1761704609","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/478b4ffa026dd7d61dc45851cfdce59559839476.webp?v=1761704610","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2d9a085bd89967ca1a93ba72bd7d8bc7f726a38.webp?v=1761704610"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b1b214d48d50c6c21b9189762b0e60dea871adf.webp?v=1755745108","options":["color"],"media":[{"alt":null,"id":25932810354787,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b1b214d48d50c6c21b9189762b0e60dea871adf.webp?v=1755745108"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b1b214d48d50c6c21b9189762b0e60dea871adf.webp?v=1755745108","width":2000},{"alt":null,"id":25932810551395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c62a5f2f04223aee3081c9f168afffe5e52f7df5.webp?v=1755745108"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c62a5f2f04223aee3081c9f168afffe5e52f7df5.webp?v=1755745108","width":2000},{"alt":null,"id":25932810715235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/098a5127b8561f7b3f54bb87b7c3d807bec3e6db.webp?v=1755745109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/098a5127b8561f7b3f54bb87b7c3d807bec3e6db.webp?v=1755745109","width":2000},{"alt":null,"id":25932810879075,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cd5f27796bd49945b736f25009101a2f784945b.webp?v=1755745110"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cd5f27796bd49945b736f25009101a2f784945b.webp?v=1755745110","width":2000},{"alt":null,"id":26269791846499,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c297efd3a5007efaad8909de9d001180db72bb3f.webp?v=1761704608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c297efd3a5007efaad8909de9d001180db72bb3f.webp?v=1761704608","width":2000},{"alt":null,"id":26269792141411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b64f2417023c70f85464c1dfd097280893599643.webp?v=1761704609"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b64f2417023c70f85464c1dfd097280893599643.webp?v=1761704609","width":2000},{"alt":null,"id":26269792436323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/478b4ffa026dd7d61dc45851cfdce59559839476.webp?v=1761704610"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/478b4ffa026dd7d61dc45851cfdce59559839476.webp?v=1761704610","width":2000},{"alt":null,"id":26269792600163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2d9a085bd89967ca1a93ba72bd7d8bc7f726a38.webp?v=1761704610"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2d9a085bd89967ca1a93ba72bd7d8bc7f726a38.webp?v=1761704610","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43602710102115,"title":"白","option1":"白","option2":null,"option3":null,"sku":"MXB0135104","requires_shipping":true,"taxable":true,"featured_image":{"id":34700760219747,"product_id":7860571603043,"position":6,"created_at":"2025-10-29T10:23:27+08:00","updated_at":"2025-10-29T10:23:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b64f2417023c70f85464c1dfd097280893599643.webp?v=1761704609","variant_ids":[43602710102115]},"available":true,"name":"iPhone Air Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) - 白","public_title":"白","options":["白"],"price":100000,"weight":0,"compare_at_price":null,"inventory_quantity":-23,"inventory_management":null,"inventory_policy":"deny","barcode":"4711592495858","featured_media":{"alt":null,"id":26269792141411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b64f2417023c70f85464c1dfd097280893599643.webp?v=1761704609"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43602711838819,"title":"黑","option1":"黑","option2":null,"option3":null,"sku":"MXB0135124","requires_shipping":true,"taxable":true,"featured_image":{"id":34700759924835,"product_id":7860571603043,"position":5,"created_at":"2025-10-29T10:23:26+08:00","updated_at":"2025-10-29T10:23:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c297efd3a5007efaad8909de9d001180db72bb3f.webp?v=1761704608","variant_ids":[43602711838819]},"available":true,"name":"iPhone Air Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) - 黑","public_title":"黑","options":["黑"],"price":100000,"weight":0,"compare_at_price":null,"inventory_quantity":-17,"inventory_management":null,"inventory_policy":"deny","barcode":"4711592495865","featured_media":{"alt":null,"id":26269791846499,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c297efd3a5007efaad8909de9d001180db72bb3f.webp?v=1761704608"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43602711871587,"title":"泥灰","option1":"泥灰","option2":null,"option3":null,"sku":"MXB0135169","requires_shipping":true,"taxable":true,"featured_image":{"id":34700760547427,"product_id":7860571603043,"position":7,"created_at":"2025-10-29T10:23:27+08:00","updated_at":"2025-10-29T10:23:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/478b4ffa026dd7d61dc45851cfdce59559839476.webp?v=1761704610","variant_ids":[43602711871587]},"available":true,"name":"iPhone Air Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) - 泥灰","public_title":"泥灰","options":["泥灰"],"price":100000,"weight":0,"compare_at_price":null,"inventory_quantity":-17,"inventory_management":null,"inventory_policy":"deny","barcode":"4711592495889","featured_media":{"alt":null,"id":26269792436323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/478b4ffa026dd7d61dc45851cfdce59559839476.webp?v=1761704610"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43602711904355,"title":"海軍藍","option1":"海軍藍","option2":null,"option3":null,"sku":"MXB01351J5","requires_shipping":true,"taxable":true,"featured_image":{"id":34700760711267,"product_id":7860571603043,"position":8,"created_at":"2025-10-29T10:23:28+08:00","updated_at":"2025-10-29T10:23:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2d9a085bd89967ca1a93ba72bd7d8bc7f726a38.webp?v=1761704610","variant_ids":[43602711904355]},"available":true,"name":"iPhone Air Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) - 海軍藍","public_title":"海軍藍","options":["海軍藍"],"price":100000,"weight":0,"compare_at_price":null,"inventory_quantity":-18,"inventory_management":null,"inventory_policy":"deny","barcode":"4711592495919","featured_media":{"alt":null,"id":26269792600163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2d9a085bd89967ca1a93ba72bd7d8bc7f726a38.webp?v=1761704610"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43602710102115,"title":"白","option1":"白","option2":null,"option3":null,"sku":"MXB0135104","requires_shipping":true,"taxable":true,"featured_image":{"id":34700760219747,"product_id":7860571603043,"position":6,"created_at":"2025-10-29T10:23:27+08:00","updated_at":"2025-10-29T10:23:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b64f2417023c70f85464c1dfd097280893599643.webp?v=1761704609","variant_ids":[43602710102115]},"available":true,"name":"iPhone Air Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) - 白","public_title":"白","options":["白"],"price":100000,"weight":0,"compare_at_price":null,"inventory_quantity":-23,"inventory_management":null,"inventory_policy":"deny","barcode":"4711592495858","featured_media":{"alt":null,"id":26269792141411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b64f2417023c70f85464c1dfd097280893599643.webp?v=1761704609"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; var sellingStatus; $device_handle = null if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages([productImg, bumperColors[currentVariant]],{ crossOrigin: 'anonymous' }) .then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages([bumperColors[currentVariant], productImg],{ crossOrigin: 'anonymous' }) .then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } }); }; var storedData = sessionStorage.getItem('sellingStatusData'); try { sellingStatusData = JSON.parse(storedData) } catch (error) { console.error('JSON.parse Error', error) sellingStatusData = null } $(document).ready(function() { handleSellingStatus($defaultVariant.sku, sellingStatusData); }); function handleSellingStatus(currentSku, sellingStatusData) { const sellingStatusElement = document.getElementById('selling-status') const addToCartButton = document.getElementById('AddToCart-product-template') const currentProductSku = currentSku.replace(/-(.*)$/, '-') if ($variants) { const matchSellingStatusProduct = sellingStatusData.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, sellingStatusData) }); });
// 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: "停產" }