$product = {"id":7920297246819,"title":"iPhone 14 Plus Mod NX 小貓貓們 Little Cattos States of Mind","handle":"iphone-14-plus-mod-nx-ltc06","description":null,"published_at":"2025-11-11T09:36:21+08:00","created_at":"2025-11-10T10:53:10+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":43828105314403,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-LTC06","requires_shipping":true,"taxable":true,"featured_image":{"id":34780510158947,"product_id":7920297246819,"position":3,"created_at":"2025-11-10T10:53:15+08:00","updated_at":"2025-11-10T10:53:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ff98c5aeee525c6a8122870130d162998af9a3.webp?v=1762743197","variant_ids":[43828105314403]},"available":true,"name":"iPhone 14 Plus Mod NX 小貓貓們 Little Cattos States of Mind - 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-LTC06","featured_media":{"alt":null,"id":26346646437987,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ff98c5aeee525c6a8122870130d162998af9a3.webp?v=1762743197"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e14d3c27201bbc9e294995127a46ef72bbfc99d0.webp?v=1762743196","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac974b8d64d907c4a8422334324b41d3d9b6190.webp?v=1762743196","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ff98c5aeee525c6a8122870130d162998af9a3.webp?v=1762743197","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319ba7a2208173cd023325928210ad3487f6dbcb.webp?v=1762743198","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f64dd780a089ddb479e81794bb9b58d3a52f74b0.webp?v=1762743199","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfe01d2424cd66287231dd9e673d469e6a6c2d87.webp?v=1762743200","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb4a1ac64592156e7e17521856cb3d5b6a96a4bb.webp?v=1762743201","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92931ea975d000ae136ca9fe2c005ee613c50dff.webp?v=1762743202","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4555ff99189dc68d4da628be0e5df95807cb09da.webp?v=1762743203","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6141c5ba083d36e18158644a76e9f8ddae6a806.webp?v=1762743203","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4fda7d2189fcf0e8ea050ac22b0632ff49fbe1c.webp?v=1762743204","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7dcf70f51a8b23f391a032ff7cc64a2953694c39.webp?v=1762743206","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40ec3709720f2af83bd0b1c55371c171c83a3201.webp?v=1762743207"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e14d3c27201bbc9e294995127a46ef72bbfc99d0.webp?v=1762743196","options":["color"],"media":[{"alt":null,"id":26346645979235,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e14d3c27201bbc9e294995127a46ef72bbfc99d0.webp?v=1762743196"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e14d3c27201bbc9e294995127a46ef72bbfc99d0.webp?v=1762743196","width":2000},{"alt":null,"id":26346646208611,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac974b8d64d907c4a8422334324b41d3d9b6190.webp?v=1762743196"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac974b8d64d907c4a8422334324b41d3d9b6190.webp?v=1762743196","width":2000},{"alt":null,"id":26346646437987,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ff98c5aeee525c6a8122870130d162998af9a3.webp?v=1762743197"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ff98c5aeee525c6a8122870130d162998af9a3.webp?v=1762743197","width":2000},{"alt":null,"id":26346646765667,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319ba7a2208173cd023325928210ad3487f6dbcb.webp?v=1762743198"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319ba7a2208173cd023325928210ad3487f6dbcb.webp?v=1762743198","width":2000},{"alt":null,"id":26346646929507,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f64dd780a089ddb479e81794bb9b58d3a52f74b0.webp?v=1762743199"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f64dd780a089ddb479e81794bb9b58d3a52f74b0.webp?v=1762743199","width":2000},{"alt":null,"id":26346647126115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfe01d2424cd66287231dd9e673d469e6a6c2d87.webp?v=1762743200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfe01d2424cd66287231dd9e673d469e6a6c2d87.webp?v=1762743200","width":2000},{"alt":null,"id":26346647257187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb4a1ac64592156e7e17521856cb3d5b6a96a4bb.webp?v=1762743201"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb4a1ac64592156e7e17521856cb3d5b6a96a4bb.webp?v=1762743201","width":2000},{"alt":null,"id":26346647650403,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92931ea975d000ae136ca9fe2c005ee613c50dff.webp?v=1762743202"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92931ea975d000ae136ca9fe2c005ee613c50dff.webp?v=1762743202","width":2000},{"alt":null,"id":26346647781475,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4555ff99189dc68d4da628be0e5df95807cb09da.webp?v=1762743203"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4555ff99189dc68d4da628be0e5df95807cb09da.webp?v=1762743203","width":2000},{"alt":null,"id":26346647945315,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6141c5ba083d36e18158644a76e9f8ddae6a806.webp?v=1762743203"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6141c5ba083d36e18158644a76e9f8ddae6a806.webp?v=1762743203","width":2000},{"alt":null,"id":26346648305763,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4fda7d2189fcf0e8ea050ac22b0632ff49fbe1c.webp?v=1762743204"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4fda7d2189fcf0e8ea050ac22b0632ff49fbe1c.webp?v=1762743204","width":2000},{"alt":null,"id":26346648961123,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7dcf70f51a8b23f391a032ff7cc64a2953694c39.webp?v=1762743206"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7dcf70f51a8b23f391a032ff7cc64a2953694c39.webp?v=1762743206","width":2000},{"alt":null,"id":26346649157731,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40ec3709720f2af83bd0b1c55371c171c83a3201.webp?v=1762743207"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40ec3709720f2af83bd0b1c55371c171c83a3201.webp?v=1762743207","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43828105314403,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-LTC06","requires_shipping":true,"taxable":true,"featured_image":{"id":34780510158947,"product_id":7920297246819,"position":3,"created_at":"2025-11-10T10:53:15+08:00","updated_at":"2025-11-10T10:53:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ff98c5aeee525c6a8122870130d162998af9a3.webp?v=1762743197","variant_ids":[43828105314403]},"available":true,"name":"iPhone 14 Plus Mod NX 小貓貓們 Little Cattos States of Mind - 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-LTC06","featured_media":{"alt":null,"id":26346646437987,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ff98c5aeee525c6a8122870130d162998af9a3.webp?v=1762743197"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43828105314403,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-LTC06","requires_shipping":true,"taxable":true,"featured_image":{"id":34780510158947,"product_id":7920297246819,"position":3,"created_at":"2025-11-10T10:53:15+08:00","updated_at":"2025-11-10T10:53:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ff98c5aeee525c6a8122870130d162998af9a3.webp?v=1762743197","variant_ids":[43828105314403]},"available":true,"name":"iPhone 14 Plus Mod NX 小貓貓們 Little Cattos States of Mind - 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-LTC06","featured_media":{"alt":null,"id":26346646437987,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ff98c5aeee525c6a8122870130d162998af9a3.webp?v=1762743197"}},"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: "停產"
}