$product = {"id":7761686167651,"title":"iPad 第10代 (10.9 吋) \/ A16 \/ Air 第4 \/ 5代 \/ Air (M2) \/ Air (M3) \/ Air (M4) \/ mini 第6代 \/ mini (A17 Pro) \/ Pro 第3代 (12.9 吋) 9H 鏡頭玻璃保護貼 - iPad","handle":"ipad-10-109inch-ipad-a16-110inch-ipad-air-4-109inch-ipad-air-5-109inch-ipad-air-6-110inch-ipad-air-6-130inch-ipad-air-m3-110inch-ipad-air-m3-130inch-ipad-mini-6-83inch-ipad-mini-7-830inch-ipad-pro-1-110inch-ipad-pro-3-129inch-lens-protector","description":null,"published_at":"2025-04-01T11:01:07+08:00","created_at":"2025-03-28T15:31:53+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["20%","25%","30%","35%","40%","45%","50%","brand-Apple","discountable","discountable-item","featured-product","member","quickbuy","refresh-kelly-2025","reseller","reseller-lens-protector","type-lens-protector","viewable"],"price":30000,"price_min":30000,"price_max":30000,"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":43274461315171,"title":"銀","option1":"銀","option2":null,"option3":null,"sku":"NLP01304D4","requires_shipping":true,"taxable":true,"featured_image":{"id":33639530135651,"product_id":7761686167651,"position":13,"created_at":"2025-03-28T15:34:16+08:00","updated_at":"2025-03-28T15:34:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b9b9553e19efdab8e9cd221006d0d0389858408.webp?v=1743147258","variant_ids":[43274461315171]},"available":true,"name":"iPad 第10代 (10.9 吋) \/ A16 \/ Air 第4 \/ 5代 \/ Air (M2) \/ Air (M3) \/ Air (M4) \/ mini 第6代 \/ mini (A17 Pro) \/ Pro 第3代 (12.9 吋) 9H 鏡頭玻璃保護貼 - iPad - 銀","public_title":"銀","options":["銀"],"price":30000,"weight":0,"compare_at_price":null,"inventory_quantity":-21,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366125103","featured_media":{"alt":null,"id":25443817062499,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b9b9553e19efdab8e9cd221006d0d0389858408.webp?v=1743147258"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65590935cb6b911d5b5cb1330eac924d58894b84.webp?v=1743147116","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f1558ab4f16a4ff2c8d2f1f0a4e09a22180b4cb.webp?v=1743147116","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46cd9585ef6f11bf6a98ffb46e9641b67843614f.webp?v=1743147117","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06b38aaa45517fafa16573eb712b642cdcad0679.webp?v=1743147117","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdf4a7110d3f516b1f5b35bea6b79d9209528fed.webp?v=1743147118","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51413977545d607256856078487704a126245dd6.webp?v=1743147118","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17157acb4677b1ef8f687b2dbce46164b7ef807d.webp?v=1743147119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3380aa9def69f5550ee6bd399b97043937a1f012.webp?v=1743147255","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/714ea55911329f7a7b6e715f2f53bc97c0342039.webp?v=1743147256","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef248a7b81550a3bdc54e07160be477b8717e1a2.webp?v=1743147256","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27a1dc60a1e624e3f08decb419d7d8bd12849026.webp?v=1743147257","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bddfd1a3cac139c96c65717dc1a36b3a2ad1d420.webp?v=1743147257","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b9b9553e19efdab8e9cd221006d0d0389858408.webp?v=1743147258","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a57baee87fb38f2b6e69f6ca43e2a2198613450.webp?v=1743147258"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65590935cb6b911d5b5cb1330eac924d58894b84.webp?v=1743147116","options":["color"],"media":[{"alt":null,"id":25443810541667,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65590935cb6b911d5b5cb1330eac924d58894b84.webp?v=1743147116"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65590935cb6b911d5b5cb1330eac924d58894b84.webp?v=1743147116","width":2000},{"alt":null,"id":25443810574435,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f1558ab4f16a4ff2c8d2f1f0a4e09a22180b4cb.webp?v=1743147116"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f1558ab4f16a4ff2c8d2f1f0a4e09a22180b4cb.webp?v=1743147116","width":2000},{"alt":null,"id":25443810607203,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46cd9585ef6f11bf6a98ffb46e9641b67843614f.webp?v=1743147117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46cd9585ef6f11bf6a98ffb46e9641b67843614f.webp?v=1743147117","width":2000},{"alt":null,"id":25443810705507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06b38aaa45517fafa16573eb712b642cdcad0679.webp?v=1743147117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06b38aaa45517fafa16573eb712b642cdcad0679.webp?v=1743147117","width":2000},{"alt":null,"id":25443810771043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdf4a7110d3f516b1f5b35bea6b79d9209528fed.webp?v=1743147118"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdf4a7110d3f516b1f5b35bea6b79d9209528fed.webp?v=1743147118","width":2000},{"alt":null,"id":25443810836579,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51413977545d607256856078487704a126245dd6.webp?v=1743147118"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51413977545d607256856078487704a126245dd6.webp?v=1743147118","width":2000},{"alt":null,"id":25443810869347,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17157acb4677b1ef8f687b2dbce46164b7ef807d.webp?v=1743147119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17157acb4677b1ef8f687b2dbce46164b7ef807d.webp?v=1743147119","width":2000},{"alt":null,"id":25443816767587,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3380aa9def69f5550ee6bd399b97043937a1f012.webp?v=1743147255"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3380aa9def69f5550ee6bd399b97043937a1f012.webp?v=1743147255","width":2000},{"alt":null,"id":25443816833123,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/714ea55911329f7a7b6e715f2f53bc97c0342039.webp?v=1743147256"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/714ea55911329f7a7b6e715f2f53bc97c0342039.webp?v=1743147256","width":2000},{"alt":null,"id":25443816898659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef248a7b81550a3bdc54e07160be477b8717e1a2.webp?v=1743147256"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef248a7b81550a3bdc54e07160be477b8717e1a2.webp?v=1743147256","width":2000},{"alt":null,"id":25443816964195,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27a1dc60a1e624e3f08decb419d7d8bd12849026.webp?v=1743147257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27a1dc60a1e624e3f08decb419d7d8bd12849026.webp?v=1743147257","width":2000},{"alt":null,"id":25443817029731,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bddfd1a3cac139c96c65717dc1a36b3a2ad1d420.webp?v=1743147257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bddfd1a3cac139c96c65717dc1a36b3a2ad1d420.webp?v=1743147257","width":2000},{"alt":null,"id":25443817062499,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b9b9553e19efdab8e9cd221006d0d0389858408.webp?v=1743147258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b9b9553e19efdab8e9cd221006d0d0389858408.webp?v=1743147258","width":2000},{"alt":null,"id":25443817160803,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a57baee87fb38f2b6e69f6ca43e2a2198613450.webp?v=1743147258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a57baee87fb38f2b6e69f6ca43e2a2198613450.webp?v=1743147258","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43274461315171,"title":"銀","option1":"銀","option2":null,"option3":null,"sku":"NLP01304D4","requires_shipping":true,"taxable":true,"featured_image":{"id":33639530135651,"product_id":7761686167651,"position":13,"created_at":"2025-03-28T15:34:16+08:00","updated_at":"2025-03-28T15:34:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b9b9553e19efdab8e9cd221006d0d0389858408.webp?v=1743147258","variant_ids":[43274461315171]},"available":true,"name":"iPad 第10代 (10.9 吋) \/ A16 \/ Air 第4 \/ 5代 \/ Air (M2) \/ Air (M3) \/ Air (M4) \/ mini 第6代 \/ mini (A17 Pro) \/ Pro 第3代 (12.9 吋) 9H 鏡頭玻璃保護貼 - iPad - 銀","public_title":"銀","options":["銀"],"price":30000,"weight":0,"compare_at_price":null,"inventory_quantity":-21,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366125103","featured_media":{"alt":null,"id":25443817062499,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b9b9553e19efdab8e9cd221006d0d0389858408.webp?v=1743147258"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43274461315171,"title":"銀","option1":"銀","option2":null,"option3":null,"sku":"NLP01304D4","requires_shipping":true,"taxable":true,"featured_image":{"id":33639530135651,"product_id":7761686167651,"position":13,"created_at":"2025-03-28T15:34:16+08:00","updated_at":"2025-03-28T15:34:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b9b9553e19efdab8e9cd221006d0d0389858408.webp?v=1743147258","variant_ids":[43274461315171]},"available":true,"name":"iPad 第10代 (10.9 吋) \/ A16 \/ Air 第4 \/ 5代 \/ Air (M2) \/ Air (M3) \/ Air (M4) \/ mini 第6代 \/ mini (A17 Pro) \/ Pro 第3代 (12.9 吋) 9H 鏡頭玻璃保護貼 - iPad - 銀","public_title":"銀","options":["銀"],"price":30000,"weight":0,"compare_at_price":null,"inventory_quantity":-21,"inventory_management":null,"inventory_policy":"deny","barcode":"4711366125103","featured_media":{"alt":null,"id":25443817062499,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b9b9553e19efdab8e9cd221006d0d0389858408.webp?v=1743147258"}},"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: "停產"
}