$product = {"id":7920340861027,"title":"iPhone 14 Plus Mod NX 小貓貓們 Little Cattos Big Catto","handle":"iphone-14-plus-mod-nx-ltc03","description":null,"published_at":"2025-11-11T09:28:37+08:00","created_at":"2025-11-10T11:04:17+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-littlecattos","device-iPhone 14 Plus","merge","reseller-littlecattos"],"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":43828270104675,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-LTC03","requires_shipping":true,"taxable":true,"featured_image":{"id":34780690186339,"product_id":7920340861027,"position":11,"created_at":"2025-11-10T11:04:26+08:00","updated_at":"2025-11-10T11:04:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c42db964df0666260a6f171c35fc208d50c16e90.webp?v=1762743868","variant_ids":[43828270104675]},"available":true,"name":"iPhone 14 Plus Mod NX 小貓貓們 Little Cattos Big Catto - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-LTC03","featured_media":{"alt":null,"id":26346826432611,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c42db964df0666260a6f171c35fc208d50c16e90.webp?v=1762743868"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/537166f3552ecded36457bcee5b1b8fb948d1b47.webp?v=1762743861","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdf3ee6a6575324628bcfffe04a828b3e90a1199.webp?v=1762743861","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bc6121f783b038cd5d56e871d1905a365742569.webp?v=1762743862","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2003d060a5c89840af10c5a6a3effbe7aaa8bbdc.webp?v=1762743863","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/524e8611a23a1df0101026f61c08e41226f2df5b.webp?v=1762743864","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c2c6f42454891c9bfc972959c04ac45aaa6d014.webp?v=1762743864","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/401107d596bf056e5c75ff45f6d2d97c2b32cfba.webp?v=1762743865","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33926b62a804e96ae26e73c7f314cb5957bec544.webp?v=1762743866","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cbdf755c0958c2feba0ba94deb591324cd25196.webp?v=1762743867","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69c9cf2b6c1436da1d2f06afc1e596ec23b61133.webp?v=1762743867","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c42db964df0666260a6f171c35fc208d50c16e90.webp?v=1762743868","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc95d5395dc02a2ce659ff22de8bad0faaa7f6a9.webp?v=1762743869","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d03928a4233cbdb68a3f39a57e04bd827e20f52.webp?v=1762743869"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/537166f3552ecded36457bcee5b1b8fb948d1b47.webp?v=1762743861","options":["color"],"media":[{"alt":null,"id":26346824597603,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/537166f3552ecded36457bcee5b1b8fb948d1b47.webp?v=1762743861"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/537166f3552ecded36457bcee5b1b8fb948d1b47.webp?v=1762743861","width":2000},{"alt":null,"id":26346824761443,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdf3ee6a6575324628bcfffe04a828b3e90a1199.webp?v=1762743861"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdf3ee6a6575324628bcfffe04a828b3e90a1199.webp?v=1762743861","width":2000},{"alt":null,"id":26346824859747,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bc6121f783b038cd5d56e871d1905a365742569.webp?v=1762743862"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bc6121f783b038cd5d56e871d1905a365742569.webp?v=1762743862","width":2000},{"alt":null,"id":26346825089123,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2003d060a5c89840af10c5a6a3effbe7aaa8bbdc.webp?v=1762743863"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2003d060a5c89840af10c5a6a3effbe7aaa8bbdc.webp?v=1762743863","width":2000},{"alt":null,"id":26346825351267,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/524e8611a23a1df0101026f61c08e41226f2df5b.webp?v=1762743864"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/524e8611a23a1df0101026f61c08e41226f2df5b.webp?v=1762743864","width":2000},{"alt":null,"id":26346825482339,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c2c6f42454891c9bfc972959c04ac45aaa6d014.webp?v=1762743864"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c2c6f42454891c9bfc972959c04ac45aaa6d014.webp?v=1762743864","width":2000},{"alt":null,"id":26346825547875,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/401107d596bf056e5c75ff45f6d2d97c2b32cfba.webp?v=1762743865"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/401107d596bf056e5c75ff45f6d2d97c2b32cfba.webp?v=1762743865","width":2000},{"alt":null,"id":26346825744483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33926b62a804e96ae26e73c7f314cb5957bec544.webp?v=1762743866"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33926b62a804e96ae26e73c7f314cb5957bec544.webp?v=1762743866","width":2000},{"alt":null,"id":26346825941091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cbdf755c0958c2feba0ba94deb591324cd25196.webp?v=1762743867"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cbdf755c0958c2feba0ba94deb591324cd25196.webp?v=1762743867","width":2000},{"alt":null,"id":26346826203235,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69c9cf2b6c1436da1d2f06afc1e596ec23b61133.webp?v=1762743867"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69c9cf2b6c1436da1d2f06afc1e596ec23b61133.webp?v=1762743867","width":2000},{"alt":null,"id":26346826432611,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c42db964df0666260a6f171c35fc208d50c16e90.webp?v=1762743868"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c42db964df0666260a6f171c35fc208d50c16e90.webp?v=1762743868","width":2000},{"alt":null,"id":26346826825827,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc95d5395dc02a2ce659ff22de8bad0faaa7f6a9.webp?v=1762743869"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc95d5395dc02a2ce659ff22de8bad0faaa7f6a9.webp?v=1762743869","width":2000},{"alt":null,"id":26346827087971,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d03928a4233cbdb68a3f39a57e04bd827e20f52.webp?v=1762743869"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d03928a4233cbdb68a3f39a57e04bd827e20f52.webp?v=1762743869","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43828270104675,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-LTC03","requires_shipping":true,"taxable":true,"featured_image":{"id":34780690186339,"product_id":7920340861027,"position":11,"created_at":"2025-11-10T11:04:26+08:00","updated_at":"2025-11-10T11:04:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c42db964df0666260a6f171c35fc208d50c16e90.webp?v=1762743868","variant_ids":[43828270104675]},"available":true,"name":"iPhone 14 Plus Mod NX 小貓貓們 Little Cattos Big Catto - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-LTC03","featured_media":{"alt":null,"id":26346826432611,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c42db964df0666260a6f171c35fc208d50c16e90.webp?v=1762743868"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43828270104675,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-LTC03","requires_shipping":true,"taxable":true,"featured_image":{"id":34780690186339,"product_id":7920340861027,"position":11,"created_at":"2025-11-10T11:04:26+08:00","updated_at":"2025-11-10T11:04:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c42db964df0666260a6f171c35fc208d50c16e90.webp?v=1762743868","variant_ids":[43828270104675]},"available":true,"name":"iPhone 14 Plus Mod NX 小貓貓們 Little Cattos Big Catto - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-LTC03","featured_media":{"alt":null,"id":26346826432611,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c42db964df0666260a6f171c35fc208d50c16e90.webp?v=1762743868"}},"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: "停產"
}