$product = {"id":7922022744163,"title":"iPhone 14 Plus Mod NX TOCOROCOMUGI 哈密呱果凍貓","handle":"iphone-14-plus-mod-nx-toc10","description":null,"published_at":"2025-11-14T08:11:32+08:00","created_at":"2025-11-13T10:33:25+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-tocorocomugi","device-iPhone 14 Plus","merge","reseller-tocorocomugi"],"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":43834944847971,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-TOC10","requires_shipping":true,"taxable":true,"featured_image":{"id":34794370072675,"product_id":7922022744163,"position":10,"created_at":"2025-11-13T10:33:35+08:00","updated_at":"2025-11-13T10:33:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05c842df50e3e9f0c1be559bcc2125b2af21a8e8.webp?v=1763001217","variant_ids":[43834944847971]},"available":true,"name":"iPhone 14 Plus Mod NX TOCOROCOMUGI 哈密呱果凍貓 - 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-TOC10","featured_media":{"alt":null,"id":26359788994659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05c842df50e3e9f0c1be559bcc2125b2af21a8e8.webp?v=1763001217"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68a5718790333f562b3a7c8565ee4a5d8949d748.webp?v=1763001210","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/914f0488361db6b2766df981ae9015ba0fd97aa1.webp?v=1763001211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/765d390b05543f4ef9649cd4815ba150ce5a3f28.webp?v=1763001212","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d95ed7ef1912767d4fd602951d6d3ddf0e6f3a11.webp?v=1763001212","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bbaf46676b881704eca55113edcf55fb4393271.webp?v=1763001213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/842cd8a00f1eefb2b341921451e4160adf2cfe21.webp?v=1763001214","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2570b8718e4bf2f31295c9fbf19730a71c04fc69.webp?v=1763001214","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45a11d0bc326cab0a8c7587e9e010e7deb3d7251.webp?v=1763001215","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1b5359099ee20f27b7d74f146c6e0b5d8a40f98.webp?v=1763001216","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05c842df50e3e9f0c1be559bcc2125b2af21a8e8.webp?v=1763001217","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/974fd54737b21d2f245329f66837cc4f42b425ff.webp?v=1763001217","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10febef5e0ddbd0457d3c3441480e1f4a9bdf1b3.webp?v=1763001218","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a293692c8ea8e90b8c698200c045d1b470ef1893.webp?v=1763001219"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68a5718790333f562b3a7c8565ee4a5d8949d748.webp?v=1763001210","options":["color"],"media":[{"alt":null,"id":26359787126883,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68a5718790333f562b3a7c8565ee4a5d8949d748.webp?v=1763001210"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68a5718790333f562b3a7c8565ee4a5d8949d748.webp?v=1763001210","width":2000},{"alt":null,"id":26359787225187,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/914f0488361db6b2766df981ae9015ba0fd97aa1.webp?v=1763001211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/914f0488361db6b2766df981ae9015ba0fd97aa1.webp?v=1763001211","width":2000},{"alt":null,"id":26359787421795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/765d390b05543f4ef9649cd4815ba150ce5a3f28.webp?v=1763001212"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/765d390b05543f4ef9649cd4815ba150ce5a3f28.webp?v=1763001212","width":2000},{"alt":null,"id":26359787618403,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d95ed7ef1912767d4fd602951d6d3ddf0e6f3a11.webp?v=1763001212"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d95ed7ef1912767d4fd602951d6d3ddf0e6f3a11.webp?v=1763001212","width":2000},{"alt":null,"id":26359787782243,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bbaf46676b881704eca55113edcf55fb4393271.webp?v=1763001213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bbaf46676b881704eca55113edcf55fb4393271.webp?v=1763001213","width":2000},{"alt":null,"id":26359787913315,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/842cd8a00f1eefb2b341921451e4160adf2cfe21.webp?v=1763001214"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/842cd8a00f1eefb2b341921451e4160adf2cfe21.webp?v=1763001214","width":2000},{"alt":null,"id":26359788175459,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2570b8718e4bf2f31295c9fbf19730a71c04fc69.webp?v=1763001214"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2570b8718e4bf2f31295c9fbf19730a71c04fc69.webp?v=1763001214","width":2000},{"alt":null,"id":26359788470371,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45a11d0bc326cab0a8c7587e9e010e7deb3d7251.webp?v=1763001215"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45a11d0bc326cab0a8c7587e9e010e7deb3d7251.webp?v=1763001215","width":2000},{"alt":null,"id":26359788634211,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1b5359099ee20f27b7d74f146c6e0b5d8a40f98.webp?v=1763001216"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1b5359099ee20f27b7d74f146c6e0b5d8a40f98.webp?v=1763001216","width":2000},{"alt":null,"id":26359788994659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05c842df50e3e9f0c1be559bcc2125b2af21a8e8.webp?v=1763001217"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05c842df50e3e9f0c1be559bcc2125b2af21a8e8.webp?v=1763001217","width":2000},{"alt":null,"id":26359789224035,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/974fd54737b21d2f245329f66837cc4f42b425ff.webp?v=1763001217"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/974fd54737b21d2f245329f66837cc4f42b425ff.webp?v=1763001217","width":2000},{"alt":null,"id":26359789453411,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10febef5e0ddbd0457d3c3441480e1f4a9bdf1b3.webp?v=1763001218"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10febef5e0ddbd0457d3c3441480e1f4a9bdf1b3.webp?v=1763001218","width":2000},{"alt":null,"id":26359789617251,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a293692c8ea8e90b8c698200c045d1b470ef1893.webp?v=1763001219"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a293692c8ea8e90b8c698200c045d1b470ef1893.webp?v=1763001219","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43834944847971,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-TOC10","requires_shipping":true,"taxable":true,"featured_image":{"id":34794370072675,"product_id":7922022744163,"position":10,"created_at":"2025-11-13T10:33:35+08:00","updated_at":"2025-11-13T10:33:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05c842df50e3e9f0c1be559bcc2125b2af21a8e8.webp?v=1763001217","variant_ids":[43834944847971]},"available":true,"name":"iPhone 14 Plus Mod NX TOCOROCOMUGI 哈密呱果凍貓 - 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-TOC10","featured_media":{"alt":null,"id":26359788994659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05c842df50e3e9f0c1be559bcc2125b2af21a8e8.webp?v=1763001217"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43834944847971,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-TOC10","requires_shipping":true,"taxable":true,"featured_image":{"id":34794370072675,"product_id":7922022744163,"position":10,"created_at":"2025-11-13T10:33:35+08:00","updated_at":"2025-11-13T10:33:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05c842df50e3e9f0c1be559bcc2125b2af21a8e8.webp?v=1763001217","variant_ids":[43834944847971]},"available":true,"name":"iPhone 14 Plus Mod NX TOCOROCOMUGI 哈密呱果凍貓 - 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-TOC10","featured_media":{"alt":null,"id":26359788994659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05c842df50e3e9f0c1be559bcc2125b2af21a8e8.webp?v=1763001217"}},"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: "停產"
}